Regular/arm

From ALT Linux Wiki
< Regular
Revision as of 10:15, 17 May 2019 by MichaelShigorin (talk | contribs) (init off ru:Regular/arm)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 qemu-targeted qcow2 images and run QEMU (replace <IMAGE> with the path to the downloaded image):

aarch64

$ qemu-system-aarch64 \
	-machine virt -cpu cortex-a57 -m 2048 -smp 4 \
	-bios <aarch64/u-boot.bin> \
	-drive if=none,id=sda,format=qcow2,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

$ qemu-system-arm \
	-machine virt -m 2048 -smp 4 \
	-bios <armh/u-boot.bin> \
	-drive if=none,id=sda,format=qcow2,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