How do I run openSUSE on virtualized Raspberry Pi 2 with QEMU

Hi

I am running Leap 42.3 x64 (KDE desktop) fully updated.

I have run Rapbian with QEMU; it required a custom kernel to boot, which was readily available for download.

https://github.com/dhruvvyas90/qemu-rpi-kernel

Now where can I get a qemu-kernel for openSUSE??? If not, where can i get the instructions to build one myself.

Thanks
Emon

Curious about this,
i took a look at what has been published about this.

I remember years ago I ran an original RPi ARM image in QEMU.
I don’t remember the specifics years later, but I imagine I likely selected a generic ARM emulation at the time.
It was slow, but it worked.

What you’re asking for may not be easily accomplished.
From what I’ve read,
As recently as Fall 2017 (only a few months ago) there were efforts to “properly” build QEMU BCM2835 and BCM2836 emulated kernels, with possibly more success for the BCM2836 kernel (for the RPi3). I’d recommend the following to evaluate and possibly build upon (The BCM2835 for RPi2 might “sort of” work in the last few posts).
https://www.raspberrypi.org/forums/viewtopic.php?t=195565

The alternative seems to be what was SOP before…
Which is to build a custom kernel and specify the kernel as part of the QEMU configuration when launching the VM, which is what approx 99% of all the published guides describe. The problem with this approach is that only Ubuntu kernels have been created for this purpose. You could try using one of those kernels with an openSUSE image, but YMMV. One more descriptive article of the many out there is the following
https://blog.agchapman.com/using-qemu-to-emulate-a-raspberry-pi/

When the most recent approach works (the first procedure I described above), then it’ll be very simple and easy to emulate a RPi image on an x64, following standard documentation. But, until that becomes possible, then you might find the older procedure more likely to work.

IMO,
TSU

Hi

Sorry about the late response.

The problem with this approach is that only Ubuntu kernels have been created for this purpose.

That’s exactly the problem that I am facing right now… no openSUSE kernel is avail able for this approach :frowning:

You could try using one of those kernels with an openSUSE image, but YMMV.

Yup, been there done that :wink:
Did not work:P

As recently as Fall 2017 (only a few months ago) there were efforts to “properly” build QEMU BCM2835 and BCM2836 emulated kernels, with possibly more success for the BCM2836 kernel (for the RPi3). I’d recommend the following to evaluate and possibly build upon (The BCM2835 for RPi2 might “sort of” work in the last few posts).
https://www.raspberrypi.org/forums/v…c.php?t=195565

That requires patching & custom compiling QEMU, I was hoping to stay within the default repositories of openSUSE, you know, less chance of breaking more/other stuffs on the system.

Anyways, thanks for the pointers.
I guess I don’t have much of an option as long as I plan to try this with openSUSE instead of Rasbian.

Emon