[opensuse-arm] Booting Tumbleweed in qemu?
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: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On Mittwoch, 30. September 2020 20:55:10 CEST Michal Suchánek wrote:
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 had no trouble "running" Aarch64 Tumbleweed with qemu-aarch64, just installed it from virt-manager. Due to full emulation, it is somewhat slow, though. Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019
Hi,
-----Original Message----- From: Stefan Brüns
Sent: 30 September 2020 22:30 To: opensuse-arm@opensuse.org Subject: Re: [opensuse-arm] Booting Tumbleweed in qemu? On Mittwoch, 30. September 2020 20:55:10 CEST Michal Suchánek wrote:
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 had no trouble "running" Aarch64 Tumbleweed with qemu-aarch64, just installed it from virt-manager. Due to full emulation, it is somewhat slow, though.
You have some hints on the wiki: https://en.opensuse.org/openSUSE:AArch64#QEMU If you are on aarch64, please enable KVM to speed it up. Also, using huge pages may increase your performances. Cheers, Guillaume
Kind regards, Stefan
-- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (3)
-
Guillaume Gardet
-
Michal Suchánek
-
Stefan Brüns