Results 1 to 3 of 3

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

  1. #1
    Join Date
    Jan 2015
    Location
    Bangladesh
    Posts
    20

    Cool 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

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

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

    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/v...c.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-qem...-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
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3
    Join Date
    Jan 2015
    Location
    Bangladesh
    Posts
    20

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

    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

    You could try using one of those kernels with an openSUSE image, but YMMV.
    Yup, been there done that
    Did not work

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •