* [Qemu-devel] How to run realview-pbx-a9 image in qemu @ 2011-07-11 8:21 Xiao Jiang 2011-07-11 8:52 ` David Gilbert 0 siblings, 1 reply; 11+ messages in thread From: Xiao Jiang @ 2011-07-11 8:21 UTC (permalink / raw) To: qemu-devel Hello, I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 board now from below cmd. $ qemu-system-arm -M ?|grep Cortex-A9 realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9 Then I compiled a zImage from latest mainline with use realview-smp_defconfig as config file, but unfortunately qemu can't run with the image, I had tried the below instructions. 1. qemu-system-arm -M realview-pbx-a9 -kernel zImage -initrd initrd.img -nographic -append "console=ttyAMA0" 2. qemu-system-arm -M realview-pbx-a9 -m 1024M -kernel zImage -nographic -append "root=/dev/nfs nfsroot=128.225.160.22:/home/work/rootfs rw console=ttyAMA0 rdinit=/sbin/init" -net nic -net tap,ifname=tap0,script=no Both instructions can't work, console is hang and no informations is appeared. so I am wondering if there are something wrong about the kernel, am I choose the wrong config file for realview-pbx-a9 board? Or the native mainline kernel can't boot on qemu? Any suggestions? Thanks a lot! Regards, Xiao ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-07-11 8:21 [Qemu-devel] How to run realview-pbx-a9 image in qemu Xiao Jiang @ 2011-07-11 8:52 ` David Gilbert 2011-07-11 9:32 ` Xiao Jiang 2011-07-12 4:10 ` Xiao Jiang 0 siblings, 2 replies; 11+ messages in thread From: David Gilbert @ 2011-07-11 8:52 UTC (permalink / raw) To: Xiao Jiang; +Cc: qemu-devel On 11 July 2011 09:21, Xiao Jiang <jgq516@gmail.com> wrote: > Hello, > > I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 board now > from > below cmd. > $ qemu-system-arm -M ?|grep Cortex-A9 > realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9 > > Then I compiled a zImage from latest mainline with use > realview-smp_defconfig as config > file, but unfortunately qemu can't run with the image, I had tried the below > instructions. > 1. qemu-system-arm -M realview-pbx-a9 -kernel zImage -initrd initrd.img > -nographic -append "console=ttyAMA0" > 2. qemu-system-arm -M realview-pbx-a9 -m 1024M -kernel zImage -nographic > -append "root=/dev/nfs nfsroot=128.225.160.22:/home/work/rootfs rw > console=ttyAMA0 rdinit=/sbin/init" -net nic -net tap,ifname=tap0,script=no > Both instructions can't work, console is hang and no informations is > appeared. > so I am wondering if there are something wrong about the kernel, am I choose > the wrong > config file for realview-pbx-a9 board? Or the native mainline kernel can't > boot on > qemu? Any suggestions? Thanks a lot! The command I use is: sudo ./arm-softmmu/qemu-system-arm -M realview-pbx-a9 -m 1024 -kernel thekernel -serial telnet::4444,server -append "console=earlycon console=ttyS0 console=ttyAMA0 earlyprintk root=/dev/nfs nfsroot=10.1.1.1:/armroot rw ip=10.1.1.2:10.1.1.1:10.1.1.1:255.255.255.0:armqemu nfsrootdebug " -net nic -net tap,ifname=tap0,script=no,downscript=no and then telnet to port 4444 to get the console. (I'm using the linaro qemu tree). Dave ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-07-11 8:52 ` David Gilbert @ 2011-07-11 9:32 ` Xiao Jiang 2011-07-12 4:10 ` Xiao Jiang 1 sibling, 0 replies; 11+ messages in thread From: Xiao Jiang @ 2011-07-11 9:32 UTC (permalink / raw) To: David Gilbert; +Cc: qemu-devel David Gilbert wrote: > On 11 July 2011 09:21, Xiao Jiang <jgq516@gmail.com> wrote: > >> Hello, >> >> I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 board now >> from >> below cmd. >> $ qemu-system-arm -M ?|grep Cortex-A9 >> realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9 >> >> Then I compiled a zImage from latest mainline with use >> realview-smp_defconfig as config >> file, but unfortunately qemu can't run with the image, I had tried the below >> instructions. >> 1. qemu-system-arm -M realview-pbx-a9 -kernel zImage -initrd initrd.img >> -nographic -append "console=ttyAMA0" >> 2. qemu-system-arm -M realview-pbx-a9 -m 1024M -kernel zImage -nographic >> -append "root=/dev/nfs nfsroot=128.225.160.22:/home/work/rootfs rw >> console=ttyAMA0 rdinit=/sbin/init" -net nic -net tap,ifname=tap0,script=no >> Both instructions can't work, console is hang and no informations is >> appeared. >> so I am wondering if there are something wrong about the kernel, am I choose >> the wrong >> config file for realview-pbx-a9 board? Or the native mainline kernel can't >> boot on >> qemu? Any suggestions? Thanks a lot! >> > > The command I use is: > > sudo ./arm-softmmu/qemu-system-arm -M realview-pbx-a9 -m 1024 -kernel > thekernel -serial telnet::4444,server -append "console=earlycon > console=ttyS0 console=ttyAMA0 earlyprintk root=/dev/nfs > nfsroot=10.1.1.1:/armroot rw > ip=10.1.1.2:10.1.1.1:10.1.1.1:255.255.255.0:armqemu nfsrootdebug " > -net nic -net tap,ifname=tap0,script=no,downscript=no > > and then telnet to port 4444 to get the console. > > (I'm using the linaro qemu tree). > > Hi Dave, Thanks you very much, I will try it :) Regards, Xiao > Dave > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-07-11 8:52 ` David Gilbert 2011-07-11 9:32 ` Xiao Jiang @ 2011-07-12 4:10 ` Xiao Jiang 2011-07-12 6:04 ` Xiao Jiang 1 sibling, 1 reply; 11+ messages in thread From: Xiao Jiang @ 2011-07-12 4:10 UTC (permalink / raw) To: David Gilbert; +Cc: qemu-devel David Gilbert wrote: > On 11 July 2011 09:21, Xiao Jiang <jgq516@gmail.com> wrote: > >> Hello, >> >> I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 board now >> from >> below cmd. >> $ qemu-system-arm -M ?|grep Cortex-A9 >> realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9 >> >> Then I compiled a zImage from latest mainline with use >> realview-smp_defconfig as config >> file, but unfortunately qemu can't run with the image, I had tried the below >> instructions. >> 1. qemu-system-arm -M realview-pbx-a9 -kernel zImage -initrd initrd.img >> -nographic -append "console=ttyAMA0" >> 2. qemu-system-arm -M realview-pbx-a9 -m 1024M -kernel zImage -nographic >> -append "root=/dev/nfs nfsroot=128.225.160.22:/home/work/rootfs rw >> console=ttyAMA0 rdinit=/sbin/init" -net nic -net tap,ifname=tap0,script=no >> Both instructions can't work, console is hang and no informations is >> appeared. >> so I am wondering if there are something wrong about the kernel, am I choose >> the wrong >> config file for realview-pbx-a9 board? Or the native mainline kernel can't >> boot on >> qemu? Any suggestions? Thanks a lot! >> > > The command I use is: > > sudo ./arm-softmmu/qemu-system-arm -M realview-pbx-a9 -m 1024 -kernel > thekernel -serial telnet::4444,server -append "console=earlycon > console=ttyS0 console=ttyAMA0 earlyprintk root=/dev/nfs > nfsroot=10.1.1.1:/armroot rw > ip=10.1.1.2:10.1.1.1:10.1.1.1:255.255.255.0:armqemu nfsrootdebug " > -net nic -net tap,ifname=tap0,script=no,downscript=no > > and then telnet to port 4444 to get the console. > > (I'm using the linaro qemu tree). > > Hi Dave, It looks like I am not in luck, qemu still can't run successfully. I recompiled the qemu from linaro qemu tree and executed below instructions in order. 1. open window A, run below cmd. xjiang@xjiang-desktop:~/work/qemu$ sudo qemu-system-arm -M realview-pbx-a9 -m 1024 -kernel zImage-cortex-a9 -serial telnet::4444,server -append "console=earlycon console=ttyS0 console=ttyAMA0 earlyprintk root=/dev/nfs nfsroot=10.1.6.6:/home/gjiang/work/ti_sitara_am35xx-standard-glibc_std ip=10.1.6.8:10.1.6.6:10.1.6.1:255.255.255.0" -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no QEMU waiting for connection on: telnet:0.0.0.0:4444,server 2. open another window B, telnet to port 4444. xjiang@xjiang-desktop$ telnet localhost 4444 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host. 3, Then in window A, "VNC server running on `127.0.0.1:5901'" is appeared, so I open terminal service client, set the computer name to 127.0.0.1:5901 and selected vnc protocol. But after I clicked connect I can't see any infos, and the window named as "TightVNC: QEMU" is totally black. Are there something wrong in above instructions? or there are other necessary cmds which I have missed? Thanks in advance! Regards, Xiao > Dave > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-07-12 4:10 ` Xiao Jiang @ 2011-07-12 6:04 ` Xiao Jiang 2011-07-12 9:00 ` David Gilbert 0 siblings, 1 reply; 11+ messages in thread From: Xiao Jiang @ 2011-07-12 6:04 UTC (permalink / raw) To: David Gilbert; +Cc: qemu-devel Xiao Jiang wrote: > David Gilbert wrote: >> On 11 July 2011 09:21, Xiao Jiang <jgq516@gmail.com> wrote: >> >>> Hello, >>> >>> I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 >>> board now >>> from >>> below cmd. >>> $ qemu-system-arm -M ?|grep Cortex-A9 >>> realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9 >>> >>> Then I compiled a zImage from latest mainline with use >>> realview-smp_defconfig as config >>> file, but unfortunately qemu can't run with the image, I had tried >>> the below >>> instructions. >>> 1. qemu-system-arm -M realview-pbx-a9 -kernel zImage -initrd initrd.img >>> -nographic -append "console=ttyAMA0" >>> 2. qemu-system-arm -M realview-pbx-a9 -m 1024M -kernel zImage >>> -nographic >>> -append "root=/dev/nfs nfsroot=128.225.160.22:/home/work/rootfs rw >>> console=ttyAMA0 rdinit=/sbin/init" -net nic -net >>> tap,ifname=tap0,script=no >>> Both instructions can't work, console is hang and no informations is >>> appeared. >>> so I am wondering if there are something wrong about the kernel, am >>> I choose >>> the wrong >>> config file for realview-pbx-a9 board? Or the native mainline kernel >>> can't >>> boot on >>> qemu? Any suggestions? Thanks a lot! >>> >> >> The command I use is: >> >> sudo ./arm-softmmu/qemu-system-arm -M realview-pbx-a9 -m 1024 -kernel >> thekernel -serial telnet::4444,server -append "console=earlycon >> console=ttyS0 console=ttyAMA0 earlyprintk root=/dev/nfs >> nfsroot=10.1.1.1:/armroot rw >> ip=10.1.1.2:10.1.1.1:10.1.1.1:255.255.255.0:armqemu nfsrootdebug " >> -net nic -net tap,ifname=tap0,script=no,downscript=no >> >> and then telnet to port 4444 to get the console. >> >> (I'm using the linaro qemu tree). >> >> > Hi Dave, > > It looks like I am not in luck, qemu still can't run successfully. > I recompiled the qemu from linaro qemu tree and executed below > instructions in order. > > 1. open window A, run below cmd. > xjiang@xjiang-desktop:~/work/qemu$ sudo qemu-system-arm -M > realview-pbx-a9 -m 1024 -kernel zImage-cortex-a9 -serial > telnet::4444,server -append "console=earlycon console=ttyS0 > console=ttyAMA0 earlyprintk root=/dev/nfs > nfsroot=10.1.6.6:/home/gjiang/work/ti_sitara_am35xx-standard-glibc_std > ip=10.1.6.8:10.1.6.6:10.1.6.1:255.255.255.0" -net nic,vlan=0 -net > tap,vlan=0,ifname=tap0,script=no,downscript=no > QEMU waiting for connection on: telnet:0.0.0.0:4444,server > > 2. open another window B, telnet to port 4444. > xjiang@xjiang-desktop$ telnet localhost 4444 > Trying ::1... > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > Connection closed by foreign host. > > 3, Then in window A, "VNC server running on `127.0.0.1:5901'" is > appeared, > so I open terminal service client, set the computer name to > 127.0.0.1:5901 > and selected vnc protocol. But after I clicked connect I can't see any > infos, > and the window named as "TightVNC: QEMU" is totally black. > Fatal infos appeared in window A after some time, pls see belows. xjiang@xjiang-desktop:~/work/qemu$ sudo qemu-system-arm -M realview-pbx-a9 -m 1024 -kernel zImage-cortex-a9 -serial telnet::4444,server -append "console=earlycon console=ttyS0 console=ttyAMA0 earlyprintk root=/dev/nfs nfsroot=10.1.6.6:/home/gjiang/work/ti_sitara_am35xx-standard-glibc_std ip=10.1.6.8:10.1.6.6:10.1.6.1:255.255.255.0" -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no QEMU waiting for connection on: telnet:0.0.0.0:4444,server VNC server running on `127.0.0.1:5901' qemu: fatal: Trying to execute code outside RAM or ROM at 0x10000000 R00=c03442e4 R01=00000124 R02=00000000 R03=c02ced38 R04=00000000 R05=00208f4c R06=0020799c R07=00000001 R08=00000009 R09=00209a74 R10=27d312c8 R11=00208a20 R12=0001b80e R13=002088b0 R14=00101a08 R15=10000000 PSR=200001d3 --C- A svc32 Thanks, Xiao > Are there something wrong in above instructions? or there are other > necessary > cmds which I have missed? Thanks in advance! > > Regards, > Xiao >> Dave >> > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-07-12 6:04 ` Xiao Jiang @ 2011-07-12 9:00 ` David Gilbert 2011-07-12 10:00 ` Xiao Jiang 0 siblings, 1 reply; 11+ messages in thread From: David Gilbert @ 2011-07-12 9:00 UTC (permalink / raw) To: Xiao Jiang; +Cc: qemu-devel On 12 July 2011 07:04, Xiao Jiang <jgq516@gmail.com> wrote: >> It looks like I am not in luck, qemu still can't run successfully. >> I recompiled the qemu from linaro qemu tree and executed below >> instructions in order. >> >> 1. open window A, run below cmd. >> xjiang@xjiang-desktop:~/work/qemu$ sudo qemu-system-arm -M realview-pbx-a9 >> -m 1024 -kernel zImage-cortex-a9 -serial telnet::4444,server -append I think you have a bad kernel image. There are some prebuilt ones (and config files) linked off: http://www.arm.com/community/software-enablement/linux.php but unfortunately the webserver that holds them isn't happy today. Dave ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-07-12 9:00 ` David Gilbert @ 2011-07-12 10:00 ` Xiao Jiang 2011-09-27 13:01 ` loody 0 siblings, 1 reply; 11+ messages in thread From: Xiao Jiang @ 2011-07-12 10:00 UTC (permalink / raw) To: David Gilbert; +Cc: qemu-devel David Gilbert wrote: > On 12 July 2011 07:04, Xiao Jiang <jgq516@gmail.com> wrote: > >>> It looks like I am not in luck, qemu still can't run successfully. >>> I recompiled the qemu from linaro qemu tree and executed below >>> instructions in order. >>> >>> 1. open window A, run below cmd. >>> xjiang@xjiang-desktop:~/work/qemu$ sudo qemu-system-arm -M realview-pbx-a9 >>> -m 1024 -kernel zImage-cortex-a9 -serial telnet::4444,server -append >>> > > I think you have a bad kernel image. > There are some prebuilt ones (and config files) linked off: > > http://www.arm.com/community/software-enablement/linux.php > > but unfortunately the webserver that holds them isn't happy today. > > Hi Dave, Thanks for the link, the server is unhappy :(. I compiled this image from mainline ..., so to support qemu, there should be some modifications in linux kernel, maybe I should try kernel tree from linaro. But fortunately, I can run vexpress-a9 image in linaro qemu successfully this afternoon which is also built from mainline, :) Regards, Xiao > Dave > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-07-12 10:00 ` Xiao Jiang @ 2011-09-27 13:01 ` loody 2011-09-27 13:18 ` David Gilbert 0 siblings, 1 reply; 11+ messages in thread From: loody @ 2011-09-27 13:01 UTC (permalink / raw) To: Xiao Jiang; +Cc: David Gilbert, qemu-devel hi: 2011/7/12 Xiao Jiang <jgq516@gmail.com>: > David Gilbert wrote: >> >> On 12 July 2011 07:04, Xiao Jiang <jgq516@gmail.com> wrote: >> >>>> >>>> It looks like I am not in luck, qemu still can't run successfully. >>>> I recompiled the qemu from linaro qemu tree and executed below >>>> instructions in order. >>>> >>>> 1. open window A, run below cmd. >>>> xjiang@xjiang-desktop:~/work/qemu$ sudo qemu-system-arm -M >>>> realview-pbx-a9 >>>> -m 1024 -kernel zImage-cortex-a9 -serial telnet::4444,server -append >>>> >> >> I think you have a bad kernel image. >> There are some prebuilt ones (and config files) linked off: >> >> http://www.arm.com/community/software-enablement/linux.php >> >> but unfortunately the webserver that holds them isn't happy today. >> >> > > Hi Dave, > > Thanks for the link, the server is unhappy :(. > I compiled this image from mainline ..., so to support qemu, > there should be some modifications in linux kernel, maybe I > should try kernel tree from linaro. > But fortunately, I can run vexpress-a9 image in linaro qemu > successfully this afternoon which is also built from mainline, :) > > Regards, > Xiao >> >> Dave Would you mind to let me know which configs you use to compile for a9 running on qemu? Thanks for your help, ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-09-27 13:01 ` loody @ 2011-09-27 13:18 ` David Gilbert 2011-09-27 13:48 ` loody 0 siblings, 1 reply; 11+ messages in thread From: David Gilbert @ 2011-09-27 13:18 UTC (permalink / raw) To: loody; +Cc: Xiao Jiang, qemu-devel On 27 September 2011 14:01, loody <miloody@gmail.com> wrote: > hi: <snip> > Would you mind to let me know which configs you use to compile for a9 > running on qemu? Kernel configs? I mostly use prebuilt kernels from the Linaro images. Dave ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-09-27 13:18 ` David Gilbert @ 2011-09-27 13:48 ` loody 2011-09-28 0:59 ` Xiao Jiang 0 siblings, 1 reply; 11+ messages in thread From: loody @ 2011-09-27 13:48 UTC (permalink / raw) To: David Gilbert; +Cc: Xiao Jiang, qemu-devel hi dave: 2011/9/27 David Gilbert <david.gilbert@linaro.org>: > On 27 September 2011 14:01, loody <miloody@gmail.com> wrote: >> hi: > > > <snip> > >> Would you mind to let me know which configs you use to compile for a9 >> running on qemu? > > Kernel configs? I mostly use prebuilt kernels from the Linaro images. > > Dave > Doesn't qemu emulate any default confis in arm, such as realview_defconfig? (as far as I know, qemu can emulate malta in mips configs) So that mean qemu can emulate Linaro soc board? Thanks for your help, -- Regards, ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu 2011-09-27 13:48 ` loody @ 2011-09-28 0:59 ` Xiao Jiang 0 siblings, 0 replies; 11+ messages in thread From: Xiao Jiang @ 2011-09-28 0:59 UTC (permalink / raw) To: loody; +Cc: David Gilbert, qemu-devel loody wrote: > hi dave: > > 2011/9/27 David Gilbert <david.gilbert@linaro.org>: > >> On 27 September 2011 14:01, loody <miloody@gmail.com> wrote: >> >>> hi: >>> >> <snip> >> >> >>> Would you mind to let me know which configs you use to compile for a9 >>> running on qemu? >>> >> Kernel configs? I mostly use prebuilt kernels from the Linaro images. >> >> Dave >> >> > Doesn't qemu emulate any default confis in arm, such as realview_defconfig? > (as far as I know, qemu can emulate malta in mips configs) > > IIRC, vexpress_defconfig works well with linaro qemu. Regards, Xiao > So that mean qemu can emulate Linaro soc board? > > Thanks for your help, > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-09-28 0:21 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-07-11 8:21 [Qemu-devel] How to run realview-pbx-a9 image in qemu Xiao Jiang 2011-07-11 8:52 ` David Gilbert 2011-07-11 9:32 ` Xiao Jiang 2011-07-12 4:10 ` Xiao Jiang 2011-07-12 6:04 ` Xiao Jiang 2011-07-12 9:00 ` David Gilbert 2011-07-12 10:00 ` Xiao Jiang 2011-09-27 13:01 ` loody 2011-09-27 13:18 ` David Gilbert 2011-09-27 13:48 ` loody 2011-09-28 0:59 ` Xiao Jiang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).