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 21 Oct 2014, 11:11
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 Posts_count  
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
Sub_title: 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   1266 Time(s)

qemu-arm-slacko.jpg


Edited_time_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


Edited_time_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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Virtualization
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0545s ][ Queries: 13 (0.0037s) ][ GZIP on ]