Re: [Qemu-devel] ethlite mac on virtex board
On Aug 08, 2011 15:13, "Lê Đức Tài" wrote: > Hi Edgar, > I have a problem with Ethernet Lite on Virtex board as following. > Could you help me? > Thank you! Hi, I have just successful configured the Ethernet Lite :). The reason of my bug is interrupt controller of virtex different with microblaze board. Tai
[Qemu-devel] ethlite mac on virtex board
Hi Edgar, I have a problem with Ethernet Lite on Virtex board as following. Could you help me? Thank you! [Modify device tree - linux-2.6.37] diff --git a/arch/powerpc/boot/dts/virtex440-ml507.dts b/arch/powerpc/boot/dts/virtex440-ml507.dts index 9cf6081..acc8406 100644 --- a/arch/powerpc/boot/dts/virtex440-ml507.dts +++ b/arch/powerpc/boot/dts/virtex440-ml507.dts @@ -155,6 +155,18 @@ #size-cells = <1>; compatible = "xlnx,plb-v46-1.03.a", "simple-bus"; ranges ; + ethernet@8100 { + compatible = "xlnx,xps-ethernetlite-1.00.a"; + device_type = "network"; + interrupt-parent = <&xps_intc_0>; + interrupts = < 5 2 >; + local-mac-address = [02 00 00 00 00 00]; + reg = <0x8100 0x1>; + xlnx,duplex = <0x1>; + xlnx,family = "spartan3adsp"; + xlnx,rx-ping-pong = <0x0>; + xlnx,tx-ping-pong = <0x0>; + }; DIP_Switches_8Bit: gpio@8146 { compatible = "xlnx,xps-gpio-1.00.a"; interrupt-parent = <&xps_intc_0>; [Modify qemu - v0.15.0rc1] diff --git a/hw/virtex_ml507.c b/hw/virtex_ml507.c index 7bde8c7..4dea56a 100644 --- a/hw/virtex_ml507.c +++ b/hw/virtex_ml507.c @@ -232,6 +232,7 @@ static void virtex_init(ram_addr_t ram_size, /* 2 timers at irq 2 @ 62 Mhz. */ xilinx_timer_create(0x83c0, irq[3], 2, 62 * 100); +xilinx_ethlite_create(&nd_table[0], 0x8100, irq[5], 0, 0); if (kernel_filename) { uint64_t entry, low, high; [Error when running guest machine] zImage starting: loaded at 0x0120 (sp: 0x0153cfb0) Allocating 0x4bbe68 bytes for kernel ... gunzipping (0x <- 0x0120e000:0x013cb92a)...done 0x39b4f0 bytes Attached initrd image at 0x013cc000-0x0153bf20 initrd head: 0x1f8b0808 Linux/PowerPC load: console=ttyS0 Finalizing device tree... flat tree at 0x1549300 [0.00] Using Xilinx Virtex440 machine description [0.00] Linux version 2.6.37+ (taild@debian-ttec) (gcc version 4.3.5 (Debian 4.3.5-4) ) #35 PREEMPT Wed Aug 3 11:30:45 ICT 2011 [0.00] Found initrd at 0xc13cc000:0xc153bf20 [0.00] Zone PFN ranges: [0.00] DMA 0x -> 0x0001 [0.00] Normal empty [0.00] Movable zone start PFN for each node [0.00] early_node_map[1] active PFN ranges [0.00] 0: 0x -> 0x0001 [0.00] MMU: Allocated 1088 bytes of context maps for 255 contexts [0.00] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 [0.00] Kernel command line: console=ttyS0 [0.00] PID hash table entries: 1024 (order: 0, 4096 bytes) [0.00] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [0.00] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [0.00] Memory: 253468k/262144k available (3520k kernel code, 8676k reserved, 176k data, 1151k bss, 160k init) [0.00] Kernel virtual memory layout: [0.00] * 0xfffdf000..0xf000 : fixmap [0.00] * 0xfde0..0xfe00 : consistent mem [0.00] * 0xfde0..0xfde0 : early ioremap [0.00] * 0xd100..0xfde0 : vmalloc & ioremap [0.00] Preemptable hierarchical RCU implementation. [0.00] RCU-based detection of stalled CPUs is disabled. [0.00] Verbose stalled-CPUs detection is disabled. [0.00] NR_IRQS:512 [0.00] clocksource: timebase mult[a0] shift[22] registered [0.00] Console: colour dummy device 80x25 [0.016523] pid_max: default: 32768 minimum: 301 [0.017972] Mount-cache hash table entries: 512 [0.086498] NET: Registered protocol family 16 [0.104131] PCI: Probing PCI hardware [0.131515] bio: create slab at 0 [0.136472] XGpio: /plb@0/gpio@8146: registered [0.137461] XGpio: /plb@0/gpio@8140: registered [0.138130] XGpio: /plb@0/gpio@8142: registered [0.138710] XGpio: /plb@0/gpio@8144: registered [0.141923] vgaarb: loaded [0.155370] Switching to clocksource timebase [0.203063] NET: Registered protocol family 2 [0.207284] IP route cache hash table entries: 2048 (order: 1, 8192 bytes) [0.214170] TCP established hash table entries: 8192 (order: 4, 65536 bytes) [0.214492] TCP bind hash table entries: 8192 (order: 3, 32768 bytes) [0.215635] TCP: Hash tables configured (established 8192 bind 8192) [0.215961] TCP reno registered [0.216157] UDP hash table entries: 256 (order: 0, 4096 bytes) [0.216482] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [0.218590] NET: Registered protocol family 1 [0.222081] RPC: Registered udp transport module. [0.05] RPC: Registered
Re: [Qemu-devel] PCI with Xilinx virtex-ml507 board
On Jul 13, 2011 14:09, "Edgar E. Iglesias" wrote: > Hi, > Hi the ethlite driver is this one: > http://lxr.linux.no/linux+v2.6.39/drivers/net/xilinx_emaclite.c > The easy way is probably to look at the petalogix s3adsp board dtb >distributed with qemu. Iirc, the command to make readable is dtc -I dtb -O >dts >-o tree.dts tree.dtb. > It should be possible to replace the hard lltemac in your tree.dtb with the >an entry describing a soft emaclite. Then you'll have to edit qemu and >instantiate the mac at the appropriate address and connect to the >appropriate >interrupt line. > Cheers I have created the xilinx-ethlite according your help :d. Now I'm testing for this ethernet. Thank you very much, Tai
Re: [Qemu-devel] PCI with Xilinx virtex-ml507 board
On Jul 11, 2011 15:31, "Edgar E. Iglesias" wrote: > Hi, > The emulated board and fpga config doesnt have pci. It does have a xilinx >ll-temac ethernet mac though. I have patches for that, its on my todo list to >post them. Right now im on the road with little access to my stuff. It'll >have >to wait, sorry. > If you dont need a particular mac, you could try to change the dtb and qemu >to instantiate a xilinx ethlite mac which qemu upstream does emulate. I >suggest >looking at the microblaze boards as reference. > Good luck, > Edgar Hi Edgar, I'm trying to create Xilinx Ethernet Lite MAC. So, I have two question :d. What is the kernel driver that use for xilinx-ethlite nic? And what should I change the dts file? (Does remove Hard Ethernet Mac?) Please help me. Thank you. Tai
[Qemu-devel] Về: PCI with Xilinx virtex-ml507 board
On Jul 11, 2011 15:31, "Edgar E. Iglesias" wrote: > On Jul 11, 2011 5:31 AM, "Lê Đức Tài" wrote: > > > Hi, > > It seems that virtex board doesn't have a PCI bus emulation. > > I have tried to create one using ppc4xx_pci_init() function but it doesn't >work. > > Could you help me some ideas to create PCI bus for virtex board? > > Or if you have already implemented PCI for virtex (I think that PCI is >necessary > > > to init Ethernet), could you send me the patch? > > > > Thank you very much, > > Tai > > Hi, > The emulated board and fpga config doesnt have pci. It does have a xilinx >ll-temac ethernet mac though. I have patches for that, its on my todo list to >post them. Right now im on the road with little access to my stuff. It'll >have >to wait, sorry. > If you dont need a particular mac, you could try to change the dtb and qemu >to instantiate a xilinx ethlite mac which qemu upstream does emulate. I >suggest >looking at the microblaze boards as reference. > Good luck, > Edgar Thank you for your suggestion, Tai
[Qemu-devel] PCI with Xilinx virtex-ml507 board
Hi, It seems that virtex board doesn't have a PCI bus emulation. I have tried to create one using ppc4xx_pci_init() function but it doesn't work. Could you help me some ideas to create PCI bus for virtex board? Or if you have already implemented PCI for virtex (I think that PCI is necessary to init Ethernet), could you send me the patch? Thank you very much, Tai
Re: [Qemu-devel] Qemu performance
On 08.07.2011, at 16:55, Alexander Graf wrote: > I see. Qemu always gives you "best performance", as it can't throttle the > guest >:). Btw, I'd be happy to merge your custom board (or at least some components >of >it if they are reasonably mainstream) upstream, if you think it makes sense >and >the code is in good shape. > > Alex I'm a new in Qemu. I'm beginning to develop my custom board, and the is no components is implemented :). So, I'm looking forward to get help from you. Thank you for your support from the past till now. Tai
Re: [Qemu-devel] Qemu performance
On 30.06.2011, at 15:24, Alexander Graf wrote: > On 30.06.2011, at 04:11, Lê Đức Tài wrote: > > > Thank for your answer. > > Beside nbench, I'm also using Dhrystone to measure the guest cpu >performance. > > > The performance does not much diffetence too. > > Is the emulated guest performance not depend on guest processor clock? > > Please don't top-post. > > Qemu doesn't emulate cycle-accurately. Instead, it converts guest code to > host >code and executes it as fast as it can. So whatever you tell the > guest on >the >cpu speed doesn't really matter. Except for the timebase of course :). > > Mind if I ask what exactly you're trying to do with ppc emulation? I'm >interested in use cases people have. > > Alex Thank you, Exactly I want to emulate my ppc custom board (ppc440) with many features supporting as Ethernet, HDD, VGA, .. for my test environment (I have a software that running on ppc440). And I wan to get the best performance of Qemu. Tai
[Qemu-devel] Về: Qemu performance
Thank for your answer. Beside nbench, I'm also using Dhrystone to measure the guest cpu performance. The performance does not much diffetence too. Is the emulated guest performance not depend on guest processor clock? Tai Từ: Mulyadi Santosa Đến: Lê Đức Tài Cc: "qemu-devel@nongnu.orgDevelopers" Gửi ngày: 17:27:20, Thứ Tư, 29 tháng 6 2011 Chủ đề: Re: [Qemu-devel] Qemu performance Hi... :) 2011/6/29 Lê Đức Tài : > Hi, > I have a question about performance of Qemu for powerpc. > When I'm changing the CPU clock for taihu board from 33Mhz to 330Mhz by > setting the PLL value, the performance of Guest OS is not increased. I use > nbench to measure the guest performance. > Is qemu always running as maximum performance? Yes... Logically, nbench is just pressing out all of your processor can do (CPU bound tasks). In this case, emulated guest processor clock has very little meaning IMO. After all, AFAIK it's just a complimentary info so it is seen as "real processor". -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
[Qemu-devel] Qemu performance
Hi, I have a question about performance of Qemu for powerpc. When I'm changing the CPU clock for taihu board from 33Mhz to 330Mhz by setting the PLL value, the performance of Guest OS is not increased. I use nbench to measure the guest performance. Is qemu always running as maximum performance? Thank. Tai
Re: [Qemu-devel] HDD problem with Xilinx virtex-ml507 board
Can you give me any suggestion for create a face vga controler for my virtex board. I just want display a system with X support. Can I reference to the vga of PowerMac emulator? Thank Từ: Edgar E. Iglesias Đến: Lê ?c Tài Cc: Alexander Graf ; "qemu-devel@nongnu.orgDevelopers" Gửi ngày: 15:49:38, Thứ Hai, 13 tháng 6 2011 Chủ đề: Re: [Qemu-devel] HDD problem with Xilinx virtex-ml507 board On Mon, Jun 13, 2011 at 04:29:10PM +0800, Lê ?c Tài wrote: >> There is no VGA controller. >OK, but virtex-ml507 have a DVI controler. >Does QEMU support DVI output? Hi, It's not so much about what you can do with the virtex (I bet you can do lot's of stuff with it) but more limited to the devices available on the reference design. Take a look at: arch/powerpc/boot/dts/virtex440-ml507.dts to see what the reference design provides. QEMU provides only a subset of those devices. But you are of course free to create your own board or qemu machine, with what ever devices you'd like to throw in. Cheers
Re: [Qemu-devel] HDD problem with Xilinx virtex-ml507 board
> There is no VGA controller. OK, but virtex-ml507 have a DVI controler. Does QEMU support DVI output? Từ: Edgar E. Iglesias Đến: Lê ?c Tài Cc: Alexander Graf ; "qemu-devel@nongnu.orgDevelopers" Gửi ngày: 15:13:49, Thứ Hai, 13 tháng 6 2011 Chủ đề: Re: [Qemu-devel] HDD problem with Xilinx virtex-ml507 board On Mon, Jun 13, 2011 at 04:05:59PM +0800, Lê ?c Tài wrote: >Hi, >I have a new question about QEMU for virtex-ml507. >Can QEMU display X11 on this board? >Because I don't see any VGA output when remove "-nographic" option. >QEMU just display "monitor console" and "serial console". >Tai > __ > >Từ: Lê Äức Tà i >Äến: Edgar E. Iglesias >Cc: Alexander Graf ; "qemu-devel@nongnu.orgDevelopers" > >Gá»i ngà y: 10:56:14, Thứ Bảy, 11 tháng 6 2011 >Chủ Äá»: [Qemu-devel] HDD problem with Xilinx virtex-ml507 board >Hi, >I have a problem when emulating virtex-ml507. >Loop device can not be mounted as hda, no partitions are listed. >My environment is as following: >1. Qemu 0.14.1 build with libfdt support. >2. Kernel download from Xilinx Git server. >config is customized from 44x/virtex_defconfig with enable some >option to make kernel can automount filesystem: >Under device drivers--->block devices: >CONFIG_BLK_DEV_LOOP >CONFIG_BLK_DEV_RAM >CONFIG_BLK_DEV_NBD >Under device drivers--->ATA/ATAPI/MFM/RLL support >CONFIG_IDE_GD >CONFIG_IDE_GD_ATA >CONFIG_BLK_DEV_GENERIC >CONFIG_BLK_DEV_PIIX >Under file systems: >CONFIG_AUTOFS_FS >CONFIG_AUTOFS4_FS >Also the ext2, ext3 file systems are supported >3. RFS is busybox >Run Qemu: >$ qemu-system-ppc -M virtex-ml507 -kernel vmlinux -m 256 -hda >rootfs_ppc.ext2 -append "console=ttyS0 root=/dev/hda" -nographic >Output: >[0.755969] NET: Registered protocol family 17 >[0.760477] hd: no drives specified - use hd=cyl,head,sectors on >kernel command line >[0.782726] Root-NFS: no NFS server address >[0.782932] VFS: Unable to mount root fs via NFS, trying floppy. >[0.790541] VFS: Cannot open root device "hda" or unknown-block(2,0) >[0.792438] Please append a correct "root=" boot option; here are >the available partitions: >[0.795265] Kernel panic - not syncing: VFS: Unable to mount root fs >on unknown-block(2,0) >Can you help me for this problem? Hi, The emulated board doesn't have harddisks, you'll need to use ramdisks or the emulated NOR flash. There is no VGA controller. Cheers
Re: [Qemu-devel] HDD problem with Xilinx virtex-ml507 board
Hi, I have a new question about QEMU for virtex-ml507. Can QEMU display X11 on this board? Because I don't see any VGA output when remove "-nographic" option. QEMU just display "monitor console" and "serial console". Tai ____________ Từ: Lê Đức Tài Đến: Edgar E. Iglesias Cc: Alexander Graf ; "qemu-devel@nongnu.orgDevelopers" Gửi ngày: 10:56:14, Thứ Bảy, 11 tháng 6 2011 Chủ đề: [Qemu-devel] HDD problem with Xilinx virtex-ml507 board Hi, I have a problem when emulating virtex-ml507. Loop device can not be mounted as hda, no partitions are listed. My environment is as following: 1. Qemu 0.14.1 build with libfdt support. 2. Kernel download from Xilinx Git server. config is customized from 44x/virtex_defconfig with enable some option to make kernel can automount filesystem: Under device drivers--->block devices: CONFIG_BLK_DEV_LOOP CONFIG_BLK_DEV_RAM CONFIG_BLK_DEV_NBD Under device drivers--->ATA/ATAPI/MFM/RLL support CONFIG_IDE_GD CONFIG_IDE_GD_ATA CONFIG_BLK_DEV_GENERIC CONFIG_BLK_DEV_PIIX Under file systems: CONFIG_AUTOFS_FS CONFIG_AUTOFS4_FS Also the ext2, ext3 file systems are supported 3. RFS is busybox Run Qemu: $ qemu-system-ppc -M virtex-ml507 -kernel vmlinux -m 256 -hda rootfs_ppc.ext2 -append "console=ttyS0 root=/dev/hda" -nographic Output: [0.755969] NET: Registered protocol family 17 [0.760477] hd: no drives specified - use hd=cyl,head,sectors on kernel command line [0.782726] Root-NFS: no NFS server address [0.782932] VFS: Unable to mount root fs via NFS, trying floppy. [0.790541] VFS: Cannot open root device "hda" or unknown-block(2,0) [0.792438] Please append a correct "root=" boot option; here are the available partitions: [0.795265] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) Can you help me for this problem? Thank. TaiLD
[Qemu-devel] HDD problem with Xilinx virtex-ml507 board
Hi, I have a problem when emulating virtex-ml507. Loop device can not be mounted as hda, no partitions are listed. My environment is as following: 1. Qemu 0.14.1 build with libfdt support. 2. Kernel download from Xilinx Git server. config is customized from 44x/virtex_defconfig with enable some option to make kernel can automount filesystem: Under device drivers--->block devices: CONFIG_BLK_DEV_LOOP CONFIG_BLK_DEV_RAM CONFIG_BLK_DEV_NBD Under device drivers--->ATA/ATAPI/MFM/RLL support CONFIG_IDE_GD CONFIG_IDE_GD_ATA CONFIG_BLK_DEV_GENERIC CONFIG_BLK_DEV_PIIX Under file systems: CONFIG_AUTOFS_FS CONFIG_AUTOFS4_FS Also the ext2, ext3 file systems are supported 3. RFS is busybox Run Qemu: $ qemu-system-ppc -M virtex-ml507 -kernel vmlinux -m 256 -hda rootfs_ppc.ext2 -append "console=ttyS0 root=/dev/hda" -nographic Output: [0.755969] NET: Registered protocol family 17 [0.760477] hd: no drives specified - use hd=cyl,head,sectors on kernel command line [0.782726] Root-NFS: no NFS server address [0.782932] VFS: Unable to mount root fs via NFS, trying floppy. [0.790541] VFS: Cannot open root device "hda" or unknown-block(2,0) [0.792438] Please append a correct "root=" boot option; here are the available partitions: [0.795265] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) Can you help me for this problem? Thank. TaiLD
Re: [Qemu-devel] QEMU for ppc440 on i386 host
On Wed, Jun 01, 2011 at 15:36, Edgar E. Iglesias wrote: > On Wed, Jun 01, 2011 at 03:03:18PM +0800, Lê Đức Tài wrote: > > On 31.05.2011, at 23:52, Alexander Graf wrote: > > > On 31.05.2011, at 18:05, Lê Đức Tài wrote: > > > > > > > > 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 with qemu on my i386 PC > > > > I alway get the error like that: > > > > > > > > $ qemu-system-ppc -M bamboo -kernel vmlinux > > > > qemu: fatal: Trying to execute code outside RAM or ROM at 0xc000 > > > > > > > > NIP c000 LR CTR XER > > > > MSR HID0 0300 HF idx 0 > > > > Segmentation fault > > > > > > > > $ qemu-system-ppc -M bamboo -kernel arch/powerpc/boot/uImage > > > > Trying to read privileged spr 947 3b3 at 1014 > > > > Trying to read invalid spr 62 03e at 0778 > > > > > > > > I using QEMU that configured and built with device tree support > > > > (enable libfdt). > > > > QEMU version 0.14.1 > > > > The kernel image is built for bamboo using powerpc-440 toolchain. > > > > kernel-version 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 to work is the > > > virtex5 ml507 one with a 440x5 xilinx cpu. Please see > > > [1]http://wiki.qemu.org/ChangeLog/0.14#PPC for details. > > > > > > The bamboo board was added to enable 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 run this command: > > $ qemu-system-ppc -M ? > > Supported machines are: > > virtex-ml507 Xilinx Virtex ML507 reference design > > mpc8544ds mpc8544ds > > bamboobamboo (alias of bamboo-0.13) > > bamboo-0.13 bamboo > > bamboo-0.12 bamboo > > ref405ep ref405ep > > taihu taihu > > mac99 Mac99 based PowerMAC > > g3beigeHeathrow based PowerMAC (default) > > prep PowerPC PREP platform > > I find two boards that have a PPC440 cpu: virtex-ml507 and bamboo. > > 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 trying to run: > > $ qemu-system-ppc -M virtex-ml507 -kernel > > arch/powerpc/boot/simpleImage.virtex440-ml507.elf > > I get the following output: > > Unable 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 guide to emulate virtex-ml507 on i368 host? > > Hi, > > I've just uploaded a test image to the wiki's download pages. > See http://wiki.qemu.org/Download. > > You'll need a recent qemu, built with libfdt support. > > I threw in the linux kernelconfig used to build the image. I > used a rather old version (2.6.34) of the kernel provided by > Xilinx at: > git://git.xilinx.com/linux-2.6-xlnx.git > commit: > 91e2c43452914a789a4bebea7c199695bbf888f2 > > My guess is that you should be able to build a kernel directly > from upstream, but I haven't tried. > > One thing to note is that qemu still lacks support for the ll-temac > (ethernet nic) and the kernel hangs when probing for it. The workaround > is to remove it from the device tree file (ppc.dtb). Already done in > the archive with my test image, but good to know if you start rolling > your own stuff. > > Regarding the ll-temac, we've got it running and plan to submit, I just > need to get some time to clean it up etc.. sorry. > > Good luck > Thank you. I've just downloaded the test image from QEMU site. Then I run the qemu-run.sh script, it boot succesful. I get a nice shell. # cat /proc/cpuinfo processor : 0 cpu : 440 in Virtex-5 FXT revision: 25.16 (pvr 7ff2 1910) bogomips: 800.00 timebase: 4 platform: Xilinx Virtex440 model : testing Memory : 256 MB Thank for your support one more. I will get the Xilinx kernel and try to build it. Tai
Re: [Qemu-devel] QEMU for ppc440 on i386 host
On 31.05.2011, at 23:52, Alexander Graf wrote: >On 31.05.2011, at 18:05, Lê Đức Tài wrote: > >> 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 with qemu on my i386 PC >> I alway get the error like that: >> >> $ qemu-system-ppc -M bamboo -kernel vmlinux >> qemu: fatal: Trying to execute code outside RAM or ROM at 0xc000 >> >> NIP c000 LR CTR XER >> MSR HID0 0300 HF idx 0 >> Segmentation fault >> >> $ qemu-system-ppc -M bamboo -kernel arch/powerpc/boot/uImage >> Trying to read privileged spr 947 3b3 at 1014 >> Trying to read invalid spr 62 03e at 0778 >> >> I using QEMU that configured and built with device tree support (enable >>libfdt). >> QEMU version 0.14.1 >> The kernel image is built for bamboo using powerpc-440 toolchain. >> kernel-version 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 to 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 enable 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 run this command: $ qemu-system-ppc -M ? Supported machines are: virtex-ml507 Xilinx Virtex ML507 reference design mpc8544ds mpc8544ds bamboo bamboo (alias of bamboo-0.13) bamboo-0.13 bamboo bamboo-0.12 bamboo ref405ep ref405ep taihu taihu mac99 Mac99 based PowerMAC g3beigeHeathrow based PowerMAC (default) prep PowerPC PREP platform I find two boards that have a PPC440 cpu: virtex-ml507 and bamboo. 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 trying to run: $ qemu-system-ppc -M virtex-ml507 -kernel arch/powerpc/boot/simpleImage.virtex440-ml507.elf I get the following output: Unable 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 guide to emulate virtex-ml507 on i368 host? Thank you very much. Tai
[Qemu-devel] QEMU for ppc440 on i386 host
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 with qemu on my i386 PC I alway get the error like that: $ qemu-system-ppc -M bamboo -kernel vmlinux qemu: fatal: Trying to execute code outside RAM or ROM at 0xc000 NIP c000 LR CTR XER MSR HID0 0300 HF idx 0 Segmentation fault $ qemu-system-ppc -M bamboo -kernel arch/powerpc/boot/uImage Trying to read privileged spr 947 3b3 at 1014 Trying to read invalid spr 62 03e at 0778 I using QEMU that configured and built with device tree support (enable libfdt). QEMU version 0.14.1 The kernel image is built for bamboo using powerpc-440 toolchain. kernel-version 2.6.38.2 Thank you very much!