| Author |
Message |
Tman

Joined: 22 Jan 2011 Posts: 732 Location: Toronto
|
Posted: Sun 06 May 2012, 23:06 Post subject:
Qemu Arm 1.0.1 + Qemu-Linaro Subject description: for Slacko |
|
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.
| Description |
|
| Filesize |
40.29 KB |
| Viewed |
875 Time(s) |

|
Last edited by Tman on Thu 10 May 2012, 18:37; edited 1 time in total
|
|
Back to top
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: Wed 09 May 2012, 08:29 Post subject:
|
|
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
_________________ My System:Arch-Arm on RPi!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
|
|
Back to top
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: Fri 11 May 2012, 04:24 Post subject:
|
|
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
_________________ My System:Arch-Arm on RPi!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
|
|
Back to top
|
|
 |
Tman

Joined: 22 Jan 2011 Posts: 732 Location: Toronto
|
Posted: Sat 12 May 2012, 22:16 Post subject:
|
|
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:2222::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, 12:38; edited 1 time in total
|
|
Back to top
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: Sun 13 May 2012, 01:37 Post subject:
|
|
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
_________________ My System:Arch-Arm on RPi!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
|
|
Back to top
|
|
 |
Tman

Joined: 22 Jan 2011 Posts: 732 Location: Toronto
|
Posted: Sun 13 May 2012, 20:03 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: Mon 14 May 2012, 06:51 Post subject:
|
|
| Tman 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.  |
Thanks for that - seems to work well
_________________ My System:Arch-Arm on RPi!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
|
|
Back to top
|
|
 |
|