Regular/arm: Difference between revisions

From ALT Linux Wiki
m (MichaelShigorin moved page Reqular/arm to Regular/arm: typo!)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Running in QEMU ==
== Running in QEMU ==
# Install qemu package supporting aarch64 (ARMv8) and/or armh (ARMv7hf) ABI; e.g., for ALT/x86_64 host system:<br/><tt>apt-get install [https://packages.altlinux.org/en/sisyphus/srpms/qemu/rpms qemu-system-aarch64-core] [https://packages.altlinux.org/en/sisyphus/srpms/qemu/rpms qemu-system-arm-core]</tt>;
# Install qemu package supporting aarch64 (ARMv8) and/or armh (ARMv7hf) ABI; e.g., for ALT/x86_64 host system:<br/><tt>apt-get install [https://packages.altlinux.org/en/sisyphus/srpms/qemu/rpms qemu-system-aarch64-core] [https://packages.altlinux.org/en/sisyphus/srpms/qemu/rpms qemu-system-arm-core]</tt>;
# Download [https://packages.altlinux.org/en/sisyphus/srpms/u-boot-qemu/rpms u-boot-qemu] for aarch64/armh arches (replace ''<$arch/u-boot.bin>'' below with the path to the corresponding file extracted from the package);
# Download [https://packages.altlinux.org/en/sisyphus/srpms/u-boot-qemu/rpms u-boot-qemu] for aarch64/armh arches (replace ''<$arch/u-boot.bin>'' below with the path to the corresponding file extracted from the package);
# Download [[Regular#download|one of qemu-targeted qcow2 images]] and run QEMU (replace ''<IMAGE>'' with the path to the downloaded image):
# Download [[Regular#download|one of img.xz]], extract and run QEMU (replace ''<IMAGE>'' with the path to the downloaded image):


=== aarch64 ===
=== aarch64 ===
   
   
Also see more up-to-date version in Russian: https://www.altlinux.org/Ports/aarch64/QEMU
  $ qemu-system-aarch64 \
  $ qemu-system-aarch64 \
  -machine virt -cpu cortex-a57 -m 2048 -smp 4 \
  -machine virt -cpu cortex-a57 -m 2048 -smp 4 \
  -bios ''<aarch64/u-boot.bin>'' \
  -bios ''<aarch64/u-boot.bin>'' \
  -drive if=none,id=sda,format=qcow2,file=''<IMAGE>''  \
  -drive if=none,id=sda,format=raw,file=''<IMAGE>''  \
  -device virtio-blk-device,drive=sda \
  -device virtio-blk-device,drive=sda \
  -device virtio-keyboard -device virtio-tablet \
  -device virtio-keyboard -device virtio-tablet \
Line 16: Line 17:


=== armh ===
=== armh ===
Also see more up-to-date version in Russian: https://www.altlinux.org/Ports/armh/QEMU
  $ qemu-system-arm \
  $ qemu-system-arm \
  -machine virt -m 2048 -smp 4 \
  -machine virt -m 2048 -smp 4 \
  -bios ''<armh/u-boot.bin>'' \
  -bios ''<armh/u-boot.bin>'' \
  -drive if=none,id=sda,format=qcow2,file=''<IMAGE>''  \
  -drive if=none,id=sda,format=raw,file=''<IMAGE>''  \
  -device virtio-blk-device,drive=sda \
  -device virtio-blk-device,drive=sda \
  -device virtio-keyboard -device virtio-tablet \
  -device virtio-keyboard -device virtio-tablet \

Latest revision as of 15:17, 22 October 2024

Running in QEMU

  1. Install qemu package supporting aarch64 (ARMv8) and/or armh (ARMv7hf) ABI; e.g., for ALT/x86_64 host system:
    apt-get install qemu-system-aarch64-core qemu-system-arm-core;
  2. Download u-boot-qemu for aarch64/armh arches (replace <$arch/u-boot.bin> below with the path to the corresponding file extracted from the package);
  3. Download one of img.xz, extract and run QEMU (replace <IMAGE> with the path to the downloaded image):

aarch64

Also see more up-to-date version in Russian: https://www.altlinux.org/Ports/aarch64/QEMU

$ qemu-system-aarch64 \
	-machine virt -cpu cortex-a57 -m 2048 -smp 4 \
	-bios <aarch64/u-boot.bin> \
	-drive if=none,id=sda,format=raw,file=<IMAGE>  \
	-device virtio-blk-device,drive=sda \
	-device virtio-keyboard -device virtio-tablet \
	-device virtio-gpu,xres=1366,yres=768 -nographic -vnc :0

armh

Also see more up-to-date version in Russian: https://www.altlinux.org/Ports/armh/QEMU

$ qemu-system-arm \
	-machine virt -m 2048 -smp 4 \
	-bios <armh/u-boot.bin> \
	-drive if=none,id=sda,format=raw,file=<IMAGE>  \
	-device virtio-blk-device,drive=sda \
	-device virtio-keyboard -device virtio-tablet \
	-device virtio-gpu,xres=1366,yres=768 -nographic -vnc :0

The text output will be directed to the terminal. Graphics can be accessed through VNC:

remote-viewer vnc://localhost:5900