[opensuse-arm] Emulate image for Raspberry Pi2 in QEMU
From looking around it appears one needs kernel, initrd and DTB separately. So I
Hello all, I'm trying to get an openSUSE image for Raspberry Pi2 going in QEMU. But everything I've tried so far didn't work. --> I'd greatly appreciate any hints or pointers where to perform an RTFM. I started at https://en.opensuse.org/HCL:Raspberry_Pi2 with this image openSUSE-Leap15.0-ARM-JeOS-raspberrypi2.armv7l-2018.07.02-Buildlp150.1.1.raw peeled them off the image and tried booting like this: --- snip --- INITRD=initrd-4.12.14-lp150.11-lpae KERNEL=zImage-4.12.14-lp150.11-lpae DTB=bcm2709-rpi-2-b.dtb HDDIMG=openSUSE-Leap15.0-ARM-JeOS-raspberrypi2.armv7l-2018.07.02-Buildlp150.1.1.raw qemu-system-arm \ -M raspi2 \ -kernel ${KERNEL} \ -initrd ${INITRD} \ -dtb ${DTB} \ -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" \ -drive if=sd,format=raw,file=${HDDIMG} --- snap --- But this only gives a blank screen in the QEMU window (also on the serial console) and 100% CPU usage. I've tried a few variations but the symptoms stay the same. So how do I start one of the openSUSE images for Raspberry Pi2 in QEMU? Thanks and regards -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 0 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Am 23.03.19 um 19:32 schrieb Till Dörges:
I'm trying to get an openSUSE image for Raspberry Pi2 going in QEMU.
FTR, I'm using QEMU 2.11.2. Does anyone know, whether this is actually supposed to work? Thanks and regards -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 0 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi,
-----Original Message----- From: Till Dörges <doerges@pre-sense.de> Sent: 27 March 2019 11:02 To: opensuse-arm@opensuse.org Subject: Re: [opensuse-arm] Emulate image for Raspberry Pi2 in QEMU
Am 23.03.19 um 19:32 schrieb Till Dörges:
I'm trying to get an openSUSE image for Raspberry Pi2 going in QEMU.
FTR, I'm using QEMU 2.11.2.
Does anyone know, whether this is actually supposed to work?
Any reason to try the RPi2 image instead of an EFI image? I did not try to use RPi2 image on qemu, but you can use JeOS-efi image which works properly (I tested armv7 JeOS-efi image under qemu recently). Thanks, Guillaume
Thanks and regards -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 0 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
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. N�����r��y隊Z)z{.�櫛맲��r��z�^�ˬz��N�(�֜��^� ޭ隊Z)z{.�櫛�0�����Ǩ�
Am 28.03.19 um 16:42 schrieb Guillaume Gardet:
Does anyone know, whether this is actually supposed to work?
Any reason to try the RPi2 image instead of an EFI image?
Yeah. An image to be deployed to an RPi2 is best prepared in a (virtual) environment as compatible as possible.
I did not try to use RPi2 image on qemu, but you can use JeOS-efi image which works properly (I tested armv7 JeOS-efi image under qemu recently).
I could easily boot the openSUSE AArch64 images for Tumbleweed and Leap 15.0 und QEMU. It's just that QEMU appears to also support the Raspberry Pi 2, so I wanted to get openSUSE going with that, too. Regards -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 0 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
-----Original Message----- From: Till Dörges <doerges@pre-sense.de> Sent: 29 March 2019 10:15 To: Guillaume Gardet <Guillaume.Gardet@arm.com>; opensuse- arm@opensuse.org Subject: Re: [opensuse-arm] Emulate image for Raspberry Pi2 in QEMU
Am 28.03.19 um 16:42 schrieb Guillaume Gardet:
Does anyone know, whether this is actually supposed to work?
Any reason to try the RPi2 image instead of an EFI image?
Yeah. An image to be deployed to an RPi2 is best prepared in a (virtual) environment as compatible as possible.
Sure. You can use armv7 JeOS-efi (not aarch64) which is pretty close.
I did not try to use RPi2 image on qemu, but you can use JeOS-efi image which works properly (I tested armv7 JeOS-efi image under qemu recently).
I could easily boot the openSUSE AArch64 images for Tumbleweed and Leap 15.0 und QEMU.
Why aarch64? Use armv7l version.
It's just that QEMU appears to also support the Raspberry Pi 2, so I wanted to get openSUSE going with that, too.
IIRC, the RPi2 support in qemu is quite limited, no graphical output, only serial. No support for boot from firmware as only the ARM cpu is emulated, not the GPU. So, you will need to extract kernel + initrd and pass rights options as kernel cmdline, as you are trying to do. Maybe adding '-nographic' option could help? Guillaume 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. N�����r��y隊Z)z{.�櫛맲��r��z�^�ˬz��N�(�֜��^� ޭ隊Z)z{.�櫛�0�����Ǩ�
Am 29.03.19 um 10:34 schrieb Guillaume Gardet:
IIRC, the RPi2 support in qemu is quite limited, no graphical output, only serial. No support for boot from firmware as only the ARM cpu is emulated, not the GPU. So, you will need to extract kernel + initrd and pass rights options as kernel cmdline, as you are trying to do. Maybe adding '-nographic' option could help?
I tried that, but it didn't work. So I guess I won't pursue QEMU + RPi2-emulation any further but stick to JeOS-armvl instead. Thanks again -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 0 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (2)
-
Guillaume Gardet
-
Till Dörges