Received: from eggs.gnu.org ([140.186.70.92]:52963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRfSh-0001ZU-9m for qemu-devel@nongnu.org; Wed, 01 Jun 2011 03:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRfSe-0002dB-R8 for qemu-devel@nongnu.org; Wed, 01 Jun 2011 03:03:27 -0400 Received: from nm7.bullet.mail.sg1.yahoo.com ([115.178.12.209]:21141) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QRfSe-0002XA-1P for qemu-devel@nongnu.org; Wed, 01 Jun 2011 03:03:24 -0400 Message-ID: <790135.19996.qm@web77917.mail.sg1.yahoo.com> References: <86111.23825.qm@web77915.mail.sg1.yahoo.com> <1068344C-018A-4AE7-8B6D-7DA416378430@suse.de> Date: Wed, 1 Jun 2011 15:03:18 +0800 (SGT) From: =?utf-8?B?TMOqIMSQ4bupYyBUw6Bp?= In-Reply-To: <1068344C-018A-4AE7-8B6D-7DA416378430@suse.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1059621827-1306911798=:19996" Subject: Re: [Qemu-devel] QEMU for ppc440 on i386 host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "Edgar E. Iglesias" , "qemu-devel@nongnu.orgDevelopers" --0-1059621827-1306911798=:19996 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 31.05.2011, at 23:52, Alexander Graf wrote:=0A=0A>On 31.05.2011, at 18:0= 5, L=C3=AA =C4=90=E1=BB=A9c T=C3=A0i wrote:=0A>=0A>> Hi!=0A>> My name is Ta= i.=0A>> Sorry for bother you!=0A>>=0A>> I have a question about QEMU for po= werpc.=0A>> Can QEMU emulate the ppc440 on a i386 host?=0A>> I mean it is f= ull-system emulation.=0A>> Because when I'm trying to run linux ppc440 with= qemu on my i386 PC=0A>> I alway get the error like that:=0A>>=0A>> $ qemu-= system-ppc -M bamboo -kernel vmlinux=0A>> qemu: fatal: Trying to execute co= de outside RAM or ROM at 0xc0000000=0A>>=0A>> NIP c0000000 LR 00000000 CTR= 00000000 XER 00000000=0A>> MSR 00000000 HID0 00000300 HF 00000000 idx 0= =0A>> Segmentation fault=0A>>=0A>> $ qemu-system-ppc -M bamboo -kernel arch= /powerpc/boot/uImage=0A>> Trying to read privileged spr 947 3b3 at 00001014= =0A>> Trying to read invalid spr 62 03e at 00000778=0A>>=0A>> I using QEMU = that configured and built with device tree support (enable =0A>>libfdt).=0A= >> QEMU version 0.14.1=0A>> The kernel image is built for bamboo using powe= rpc-440 toolchain.=0A>> kernel-version 2.6.38.2=0A>=0A>PPC440 emulation sup= port has only been added to Qemu very recently (0.14). So =0A>far, the only= board that is somewhat known to work is the virtex5 ml507 one with =0A>a 4= 40x5 xilinx cpu. Please see http://wiki.qemu.org/ChangeLog/0.14#PPC for =0A= >details.=0A>=0A>The bamboo board was added to enable KVM support for 440, = it hasn't been used =0A>with the emulation target yet.=0A>=0A>What exactly = are you trying to emulate?=0A>=0A>=0A>Alex=0A=0AThank for your answer.=0A= =0AI'm trying to emulate the ppc440 on a i386 host.=0AMy final target: Linu= x for PPC440 can run on Qemu and drop a shell prompt.=0A=0AWhen I try to ru= n this command:=0A=0A$ qemu-system-ppc -M ?=0ASupported machines are:=0Avir= tex-ml507 Xilinx Virtex ML507 reference design=0Ampc8544ds mpc8544ds=0Abam= boo bamboo (alias of bamboo-0.13)=0Abamboo-0.13 bamboo=0Abamboo-0.12 ba= mboo=0Aref405ep ref405ep=0Ataihu taihu=0Amac99 Mac99 based Powe= rMAC=0Ag3beige Heathrow based PowerMAC (default)=0Aprep PowerPC PR= EP platform=0A=0AI find two boards that have a PPC440 cpu: virtex-ml507 and= bamboo.=0AI have checked the bamboo board fist, then I get the result as a= bove.=0A=0AHower, the ml507 board seems not working too.=0AI have built ker= nel image for Virtex ML507 using powerpc-440 toolchain.=0Akernel-version: l= inux-2.6.39=0Aconfig: 44x/virtex5_defconfig=0A=0AWhen I'm trying to run:=0A= $ qemu-system-ppc -M virtex-ml507 -kernel =0Aarch/powerpc/boot/simpleImage.= virtex440-ml507.elf=0A=0AI get the following output:=0AUnable to get size o= f device tree file 'ppc.dtb'=0AWarning: vlan 0 with no nics=0A=0AQemu just = display a monitor console, it seems not to be loading the kernel.=0A=0ACoul= d you help me some ideas?=0ACould you help me the guide to emulate virtex-m= l507 on i368 host?=0A=0AThank you very much.=0A=0ATai --0-1059621827-1306911798=:19996 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 31.05.2011, at 23:52, Alexander Graf wrote:

>On 3= 1.05.2011, at 18:05, L=C3=AA =C4=90=E1=BB=A9c T=C3=A0i wrote:
>
&g= t;> Hi!
>> My name is Tai.
>> Sorry for bother you!>>
>> I have a question about QEMU for powerpc.
>>= Can QEMU emulate the ppc440 on a i386 host?
>> I mean it is full-= system emulation.
>> Because when I'm trying to run linux ppc440 w= ith qemu on my i386 PC
>> I alway get the error like that:
>= >
>> $ qemu-system-ppc -M bamboo -kernel vmlinux
>> qe= mu: fatal: Trying to execute code outside RAM or ROM at 0xc0000000
>&= gt;
>> NIP c0000000  LR 00000000 CTR 00000000 XER 00000000>> MSR 00000000 HID0 00000300  HF 00000000 idx 0
>> Se= gmentation fault
>>
>> $ qemu-system-ppc -M bamboo -kernel arch/pow= erpc/boot/uImage
>> Trying to read privileged spr 947 3b3 at 00001= 014
>> Trying to read invalid spr 62 03e at 00000778
>>>> I using QEMU that configured and built with device tree support = (enable libfdt).
>> QEMU version 0.14.1
>> The kernel ima= ge is built for bamboo using powerpc-440 toolchain.
>> kernel-vers= ion 2.6.38.2
>
>PPC440 emulation support has only been added to= Qemu very recently (0.14). So far, the only board that is somewhat known t= o work is the virtex5 ml507 one with a 440x5 xilinx cpu. Please see http://wiki.qemu.org/ChangeLog= /0.14#PPC for details.
>
>The bamboo board was added to ena= ble KVM support for 440, it hasn't been used with the emulation target yet.=
>
>What exactly are you trying to emulate?
>
>
>Alex

Thank for your answer.

= I'm trying to emulate the ppc440 on a i386 host.
My final target: Linux = for PPC440 can run on Qemu and drop a shell prompt.

When I try to ru= n this command:

$ qemu-system-ppc -M ?
Supported machines are:virtex-ml507 Xilinx Virtex ML507 reference design
mpc8544ds  mpc85= 44ds
bamboo     bamboo (alias of bamboo-0.13)
bam= boo-0.13 bamboo
bamboo-0.12 bamboo
ref405ep   ref405ep
t= aihu      taihu
mac99    &n= bsp; Mac99 based PowerMAC
g3beige    Heathrow based Power= MAC (default)
prep       PowerPC PREP plat= form

I find two boards that have a PPC440 cpu: virtex-ml507 and bamb= oo.
I have checked the bamboo board fist, then I get the result as above= .

Hower, the ml507 board seems not working too.
I have built kernel image for Virtex ML507 using powerpc-440 toolchain.
kernel= -version: linux-2.6.39
config: 44x/virtex5_defconfig

When I'm try= ing to run:
$ qemu-system-ppc -M virtex-ml507 -kernel arch/powerpc/boot/= simpleImage.virtex440-ml507.elf

I get the following output:
Unabl= e to get size of device tree file 'ppc.dtb'
Warning: vlan 0 with no nics=

Qemu just display a monitor console, it seems not to be loading the= kernel.

Could you help me some ideas?
Could you help me the guid= e to emulate virtex-ml507 on i368 host?

Thank you very much.

= Tai

=0A
--0-1059621827-1306911798=:19996--