[oe] testing with qemu, was Re: Angstrom and h2200

Patrick Fischer fischer at 4g-systems.com
Mon Feb 26 12:03:26 UTC 2007


Nicola Ranaldo wrote:
> On Sunday 25 February 2007 19:34:30 Paul Sokolovsky wrote:
> [...]
>   
>>> * the last, may i use some kind of emulator before deploying the fs image
>>> to the ipaq?
>>>       
>>   Yes, QEMU.
>>     
>
> I already use it to emulate x86 machines, but i was not able before to find 
> the qemu-system-arm command!!! the poky-runqemu documentation seems to be 
> complex, to run the test images at 
> http://www.angstrom-distribution.org/unstable/images/20070120/qemuarm/  i 
> simply used the following command:
>
> qemu-system-arm -M versatilepb -kernel 
> zImage-2.6.18-qemuarm-20070120215313.bin -hda 
> Angstrom-gpe-image-test-20070120-qemuarm.rootfs.ext2  -append "root=/dev/sda"
> When the system asked to calibrate to touchscreen i pressed ESC and gpe 
> appeared!
> I did not use the file modules-2.6.18-qemuarm.tgz.... is there a reason it's 
> there?
>
> thanks
>
> 	Nicola Ranaldo
>   
This is my test script for qemu

#!/bin/sh

KERNEL=$1
IMAGE=$2
IP=192.168.1.42
GATEWAY=192.168.1.1 

cp $KERNEL /tmp/kernel.bin
cp $IMAGE /tmp/image.ext2.gz
gzip -d /tmp/image.ext2.gz

/usr/local/bin/qemu -kernel /tmp/kernel.bin -std-vga \
-append "root=/dev/hda rw mem=64M ip=${IP}::${GATEWAY}:255.255.255.0" \
-net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script= \
-hda /tmp/image.ext2 

rm /tmp/image.ext2
rm /tmp/kernel.bin

---
call it like

./testqemu.sh tmp/deploy/images/bzImage-qemux86.bin tmp/deploy/images/bootstrap-image-qemux86-20070112211142.rootfs.ext2.gz




-- 
Mit freundlichen Grüßen
Best Regards 

Dipl.-Ing. (FH) Patrick Fischer
Software Engineer


Meet 4G Systems at CeBIT 
March 15th - 21st, Hanover 
Hall 13, Stand B86


4G Systems GmbH  
Jarrestrasse 4,
D-22303 Hamburg

Phone: +49 (0)40-70 38 33-327
Fax:   +49 (0)40-70 38 33-700
Mail: Patrick.Fischer at 4g-systems.com
www.4g-systems.com

Amtsgericht Hamburg, HRB 85342
Geschäftsführer: Enrico Just, Achim Schaller








More information about the Openembedded-devel mailing list