Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 13:14
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Virtualization
Qemu Arm 1.0.1 + Qemu-Linaro
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
Tman


Joined: 22 Jan 2011
Posts: 814
Location: Toronto

PostPosted: 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.
qemu-arm-slacko.jpg
 Description   
 Filesize   40.29 KB
 Viewed   1214 Time(s)

qemu-arm-slacko.jpg


Last edited by Tman on Thu 10 May 2012, 18:37; edited 1 time in total
Back to top
View user's profile Send private message 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: 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
View user's profile Send private message 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: 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
Code:

-hdb /dev/sdb4


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
View user's profile Send private message 
Tman


Joined: 22 Jan 2011
Posts: 814
Location: Toronto

PostPosted: 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
View user's profile Send private message 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: 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
View user's profile Send private message 
Tman


Joined: 22 Jan 2011
Posts: 814
Location: Toronto

PostPosted: 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. Shocked
Back to top
View user's profile Send private message 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: 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. Shocked


Thanks for that - seems to work well Smile

_________________
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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Virtualization
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0619s ][ Queries: 12 (0.0116s) ][ GZIP on ]