LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 10-07-2018, 06:26 PM   #1
pakcjo
LQ Newbie
 
Registered: Oct 2018
Posts: 2

Rep: Reputation: Disabled
SARPi3 on qemu


Hello,

Is it possible to run SARPi installer (or an image of the final system) in qemu?

I loop mounted the image to get the kernel, initrd and dtb files but still I only get a black window.

I have a minimum slackware distribution installed on a raspberry pi3 (unsing SARPi installer) and what I'd like to achieve is to have a test/build environment to build packages from slackbuilds or similar and test things before copying them to the raspberry box.

Please share your qemu-system-aarch64 command line arguments.

I also read that the kernel shipped in SARPi works only on the raspberry board and qemu is not compatible with it, so the kernel must be rebuild to have it working with qemu, is that true? if so, where can I get more information about it?

Thanks!
 
Old 10-08-2018, 02:47 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 717

Rep: Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554
Quote:
Originally Posted by pakcjo View Post
Hello,

Is it possible to run SARPi installer (or an image of the final system) in qemu?

I loop mounted the image to get the kernel, initrd and dtb files but still I only get a black window.

I have a minimum slackware distribution installed on a raspberry pi3 (unsing SARPi installer) and what I'd like to achieve is to have a test/build environment to build packages from slackbuilds or similar and test things before copying them to the raspberry box.

Please share your qemu-system-aarch64 command line arguments.

I also read that the kernel shipped in SARPi works only on the raspberry board and qemu is not compatible with it, so the kernel must be rebuild to have it working with qemu, is that true? if so, where can I get more information about it?
SARPi is in a nut shell, a package of documentation and supporting files to be able to load and run the port of Slackware on ARM ("Slackware ARM") on the Raspberry Pi (hence "SA" (Slackware ARM) (on a) "RPi" Raspberry Pi)". It's not a distribution in its own right.

QEMU does not emulate the hardware on a Raspberry Pi, and QEMU is no longer supported by Slackware ARM. The hardware support ("Versatile Express") is still in the kernel, but I stopped maintaining and testing it some time ago, and it no longer works properly.
If you want to get Slackware ARM working with QEMU, you should read that installation document and get hacking.

Last edited by drmozes; 10-08-2018 at 07:11 AM.
 
Old 10-08-2018, 02:37 PM   #3
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 234

Rep: Reputation: 69
Quote:
Originally Posted by drmozes View Post
SARPi is in a nut shell, a package of documentation and supporting files to be able to load and run the port of Slackware on ARM ("Slackware ARM") on the Raspberry Pi (hence "SA" (Slackware ARM) (on a) "RPi" Raspberry Pi)". It's not a distribution in its own right.
You got that right! Maybe now you've stated what SARPi is people might take a little more notice. Nobody ever installs SARPi. They install Slackware ARM. SARPi is not, and never will be, a distribution. It's as you say; just a means to install Slackware ARM on the RPi(s).

WHY DON'T PEOPLE GET THIS????
 
Old 10-16-2018, 10:16 AM   #4
pakcjo
LQ Newbie
 
Registered: Oct 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drmozes View Post
QEMU does not emulate the hardware on a Raspberry Pi, and QEMU is no longer supported by Slackware ARM. The hardware support ("Versatile Express") is still in the kernel, but I stopped maintaining and testing it some time ago, and it no longer works properly.
If you want to get Slackware ARM working with QEMU, you should read that installation document and get hacking.
Thanks for your reply. I have seen guides about versatile express but always thought they were outdated, since as qemu 2.12, there are raspi2 and raspi3. Playing around with arch linux's raspberry pi images (http://il.us.mirror.archlinuxarm.org/os/) I was able to get up to init for raspi2 and uboot for raspi3. I also tried with raspbian, but no luck.

Basically I just wanted to know if anyone was using qemu, thanks.
 
Old 10-17-2018, 04:08 AM   #5
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 717

Rep: Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554
Quote:
Originally Posted by pakcjo View Post
Thanks for your reply. I have seen guides about versatile express but always thought they were outdated, since as qemu 2.12, there are raspi2 and raspi3. Playing around with arch linux's raspberry pi images (http://il.us.mirror.archlinuxarm.org/os/) I was able to get up to init for raspi2 and uboot for raspi3. I also tried with raspbian, but no luck.

Basically I just wanted to know if anyone was using qemu, thanks.
What exactly do you want to achieve? Why do you want to emulate a Raspberry Pi specifically?
The ARM Versatile was chosen as the supported machine type because it offered the best combination of hardware emulation - amount of RAM, and storage interface.
When I checked last week, QEMU does not support the SoC that compromises any of the Raspberry Pi models.

Unless there's something in particular about the Raspberry Pi hardware that you wanted to emulate, it makes not much difference as to which machine you're emulating.
When real hardware is affordable, in my opinion it's really not worth using QEMU to emulate ARM - which is also why I am not spending any time maintaining it. It's so slow as to be nothing but a frustrating experience.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware ARM - SARPi3. Is it safe to perform system upgrade? horizn Slackware - ARM 1 08-10-2018 01:16 PM
Slackware ARM on a Raspberry Pi 3 - SARPi3 Exaga Slackware - ARM 11 08-05-2018 04:38 AM
SARPi3 - updated to kernel 4.4.8 Exaga Slackware - ARM 1 05-08-2016 02:27 PM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 08:41 AM
qemu: hardware error: qemu: could not load PowerPC bios 'openbios-ppc' Skaperen Linux - Virtualization and Cloud 8 06-09-2011 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration