Qemu-arm version 1.0.1 is an Arm Emulator compiled in Slacko 5.3.3 Final.
You can use it to compile apps for the Arm-based computers like the Raspberry Pi.
http://www.smokey01.com/Tman/apps/slacko_apps/
Thanks to Antiloquax, who help me get it running. The pic below is qemu running an image of his "Puppi", a virtual Arch-arm based distro.
The thread for it is -> Puppy Projects -> Raspberry Puppi
EDIT:
Qemu-linaro is now also availiable. It is a fork of Qemu, more specialized for Arm emulation.
Qemu Arm 1.0.1 + Qemu-Linaro
Qemu Arm 1.0.1 + Qemu-Linaro
- Attachments
-
- qemu-arm-slacko.jpg
- (40.29 KiB) Downloaded 1826 times
Last edited by Tman on Thu 10 May 2012, 22:37, edited 1 time in total.
- antiloquax
- Posts: 405
- Joined: Fri 27 Jan 2012, 09:17
Nice work Tman.
By the way, if anyone wants to have a play with this qemu image, there is a copy on my ftp site:
ftp PupPi files
account name: a3804781
password: puppi1
By the way, if anyone wants to have a play with this qemu image, there is a copy on my ftp site:
ftp PupPi files
account name: a3804781
password: puppi1
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
- antiloquax
- Posts: 405
- Joined: Fri 27 Jan 2012, 09:17
You might find that your qemu pi works better with its own swap partition. I made a swap partition on the usb drive where I keep my qemu images and then added this to the qemu launch command
Obviously you'd need to set the path to where your swap partition is!
Hopfully this will speed up compiling!
mark
Code: Select all
-hdb /dev/sdb4
Hopfully this will speed up compiling!
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
QEMU SWAP FILE
making a 768MB swap image: qemu-img create swap.img 768M
formatting the swap image: mkswap -c swap.img -L swap_image
adding the swap to your qemu startup options (example using Antiloquax's puppi image) :
qemu-system-arm -M versatilepb -cpu arm1176 -m 256 -kernel zImage -append "root=/dev/sda" -hda puppi.img -hdb swap.img -serial stdio -redir tcp:22
after launching qemu, enable the swap with this command: swapon /dev/sdb
----------------------------------------------------------------------------------
QEMU WITHOUT GRAPHICS
If you are compiling, you may not need a graphical window. You can run qemu in text-only mode to save on system resources.
Example of a script to run Puppi without graphics:
#!/bin/sh
# this assumes that the .img files and the zImage (kernel image) are located in /mnt/home/puppi
cd /mnt/home/puppi
exec urxvt -e qemu-system-arm -cpu arm1176 -m 256 -M versatilepb -kernel zImage -append "root=/dev/sda" -hda puppi.img -hdb swap.img -clock dynticks -nographic
making a 768MB swap image: qemu-img create swap.img 768M
formatting the swap image: mkswap -c swap.img -L swap_image
adding the swap to your qemu startup options (example using Antiloquax's puppi image) :
qemu-system-arm -M versatilepb -cpu arm1176 -m 256 -kernel zImage -append "root=/dev/sda" -hda puppi.img -hdb swap.img -serial stdio -redir tcp:22
after launching qemu, enable the swap with this command: swapon /dev/sdb
----------------------------------------------------------------------------------
QEMU WITHOUT GRAPHICS
If you are compiling, you may not need a graphical window. You can run qemu in text-only mode to save on system resources.
Example of a script to run Puppi without graphics:
#!/bin/sh
# this assumes that the .img files and the zImage (kernel image) are located in /mnt/home/puppi
cd /mnt/home/puppi
exec urxvt -e qemu-system-arm -cpu arm1176 -m 256 -M versatilepb -kernel zImage -append "root=/dev/sda" -hda puppi.img -hdb swap.img -clock dynticks -nographic
Last edited by Tman on Sun 13 May 2012, 16:38, edited 1 time in total.
- antiloquax
- Posts: 405
- Joined: Fri 27 Jan 2012, 09:17
Thanks Tman - I'd been using a "real" swap partition. I will have a go using a .img file instead. I think that's probably a better way to do it.
mark
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
Hi Mark,
Yes, the swap image would have faster access times if you place it in your hard-drive over your usb drive.
QEMU seems to support a maximum or 256MB of RAM, for the versatilepb motherboard option.
I was thinking that with computers that have a lot of RAM, the swap partition could be created in the /tmp folder in Puppy Linux. Since that folder runs in RAM, the swap image would be virtual RAM running in real RAM.
Yes, the swap image would have faster access times if you place it in your hard-drive over your usb drive.
QEMU seems to support a maximum or 256MB of RAM, for the versatilepb motherboard option.
I was thinking that with computers that have a lot of RAM, the swap partition could be created in the /tmp folder in Puppy Linux. Since that folder runs in RAM, the swap image would be virtual RAM running in real RAM.
- antiloquax
- Posts: 405
- Joined: Fri 27 Jan 2012, 09:17
Thanks for that - seems to work wellTman wrote:I was thinking that with computers that have a lot of RAM, the swap partition could be created in the /tmp folder in Puppy Linux. Since that folder runs in RAM, the swap image would be virtual RAM running in real RAM.
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.