Hello,

I tried writing Leap 15.2 EFI image to a SD card and slotting it into a
board, and it just works.

However, booting openSUSE in qemu is really difficult.

First you need the qemu which by deafult provides only aarch64 uefi, you
need to ask for the arm32 one:

zypper in qemu-arm qemu-uefi-aarch32

Than you need to create flash images for the firmware - at least there
are numerous guides that tell you that. Imagine it just worked like x86
and ppc

dd if=/dev/zero of=flash0.img bs=1M count=64
dd if=/dev/zero of=flash1.img bs=1M count=64
dd if=/usr/share/qemu/aavmf-aarch32-code.bin of=flash0.img conv=notrunc
dd if=/usr/share/qemu/aavmf-aarch32-vars.bin of=flash1.img conv=notrunc

Finally you can boot the image

qemu-system-aarch64 -nographic -machine virt -drive
file=openSUSE-Tumbleweed-ARM-JeOS-efi.armv7l-2020.09.29-Snapshot20200928.img,if=none,id=drive0,cache=writeback
-device virtio-blk,drive=drive0,bootindex=0 -drive
file=flash0.img,format=raw,if=pflash -drive
file=flash1.img,format=raw,if=pflash

after a lot of output grub comes up and complains:

error: failed to install/update FDT.
Loading Linux 5.8.7-1-default ...
Loading initial ramdisk ...

Press any key to continue...

That is when it does complain. Initially you select from the menu and
grub just immediately returns to the menu overwriting any error shown
with the menu background.

Is there a way to run ARM Tumbleweed in qemu?

I might be better off with statically linked qemu-user I suppose.

Thanks

Michal
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to