Understanding what qemuppc emulates and getting it to emulate a ppc440 CPU
Hi,
I'd like some help understanding what qemuppc emulates, while building the using yocto core-image-sato.
I've originally built my yocto images for a virtex5 machine, and would like to test it on an emulator. The Virtex-5 FXT processor is an FPGA which contains an embedded PowerPC440 CPU
Now if I specify machine=qemuppc, wouldn't that just be generic PowerPC CPU?
There are so many ppc CPU variants, like ppc405, ppc440, ppc603e, etc.
Can the yocto build environment be modified so that the qemuppc emulator emulates at least the ppc440 CPU subset?
Best regards,
Elvis Dowson
Hi,
Quoted 7 lines · Elvis Dowson
I've originally built my yocto images for a virtex5 machine, and would like to test it on an emulator. The Virtex-5 FXT processor is an FPGA which contains an embedded PowerPC440 CPU
Now if I specify machine=qemuppc, wouldn't that just be generic PowerPC CPU?
There are so many ppc CPU variants, like ppc405, ppc440, ppc603e, etc.
Can the yocto build environment be modified so that the qemuppc emulator emulates at least the ppc440 CPU subset?
After downloading the QEMU sources, I see that there is QEMU support for the Xilinx ML507 development board in the file hw/virtex-ml507.c
I guess now the next step it to configure Yocto to build a specific QEMU machine for the Xilinx ML507.
Elvis Dowson
Quoted 10 lines · Elvis Dowson
Hi,
I'd like some help understanding what qemuppc emulates, while building the using yocto core-image-sato.I've originally built my yocto images for a virtex5 machine, and would like to test it on an emulator. The Virtex-5 FXT processor is an FPGA which contains an embedded PowerPC440 CPU
Now if I specify machine=qemuppc, wouldn't that just be generic PowerPC CPU?
There are so many ppc CPU variants, like ppc405, ppc440, ppc603e, etc.
Can the yocto build environment be modified so that the qemuppc emulator emulates at least the ppc440 CPU subset?
default emulation is using mac99 I think which is ppc7xx IIRC
Quoted 10 lines
Best regards,
Elvis Dowson
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Hi Khem,
Quoted 5 lines · Khem Raj
Quoted 2 lines · Elvis Dowson
Can the yocto build environment be modified so that the qemuppc emulator emulates at least the ppc440 CPU subset?
default emulation is using mac99 I think which is ppc7xx IIRC
I found that the QEMU sources contains direct support for the Xilinx ML507, in file qemu/hw/virtex_ml507.c
$ cd qemu $ ./configure --target-list=ppc-softmmu $ make -j 8 $ ppc-softmmu/qemu-system-ppc --M ?
Supported machines are:
ref405ep ref405ep taihu taihu bamboo bamboo mac99 Mac99 based PowerMAC g3beige Heathrow based PowerMAC (default) prep PowerPC PREP platform mpc8544ds mpc8544ds virtex-ml507 Xilinx Virtex ML507 reference design
I also just checked the version of QEMU built using yocto, and it gives the same results
$ runqemu qemuppc qemuparams="--M ?"
Continuing with the following parameters:
KERNEL: [/tool/yocto/poky/build/tmp/deploy/images/vmlinux-qemuppc.bin]
ROOTFS: [/tool/yocto/poky/build/tmp/deploy/images/core-image-sato-qemuppc.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
[sudo] password for elvis:
Acquiring lockfile for tap0...
WARNING: distccd not present, no distcc support loaded.
Running qemu-system-ppc...
/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc -kernel /tool/yocto/poky/build/tmp/deploy/images/vmlinux-qemuppc.bin -net nic,model=pcnet -net tap,vlan=0,ifname=tap0,script=no,downscript=no -cpu G4 -M mac99 -hda /tool/yocto/poky/build/tmp/deploy/images/core-image-sato-qemuppc.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot --M ? -m 128 --append "root=/dev/hda rw console=ttyS0 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M " Supported machines are:
prep PowerPC PREP platform g3beige Heathrow based PowerMAC (default) mac99 Mac99 based PowerMAC ref405ep ref405ep taihu taihu bamboo bamboo (alias of bamboo-0.13)
bamboo-0.13 bamboo
bamboo-0.12 bamboo
mpc8544ds mpc8544ds
virtex-ml507 Xilinx Virtex ML507 reference design Set 'tap0' nonpersistent
Releasing lockfile of preconfigured tap device 'tap0'
Best regards,
Elvis Dowson
Quoted 2 lines · Elvis Dowson
I found that the QEMU sources contains direct support for the Xilinx ML507, in file
qemu/hw/virtex_ml507.c
OK try it out then you just need to select right machine (-M xxx) and params if any. If upstream support for this platform is sound then you are good to go.
look under scripts/runqemu* scripts and add this variant you need.
-Khem
Hi Khem,
Quoted 6 lines · Khem Raj
OK try it out then you just need to select right machine (-M xxx) and params if any. If upstream support for this platform is sound then you are good to go.
look under
scripts/runqemu*scripts and add this variant you need.
Do you know if qemu can accept other type of images for the kernel and rootfilesystem?
At the moment, my yocto core-image-minimal and core-image-sato builds the following files, if I first build with machine ?= "virtex5", and then subsequently with machine ?= "qemuppc"
core-image-minimal-virtex5-20120603201342.rootfs.tar.gz
core-image-minimal-virtex5-20120604073552.rootfs.tar.gz
core-image-minimal-virtex5.tar.gz
core-image-sato-qemuppc-20120604085337.rootfs.ext3
core-image-sato-qemuppc-20120604085337.rootfs.tar.bz2
core-image-sato-qemuppc.ext3
core-image-sato-qemuppc.tar.bz2
core-image-sato-virtex5-20120603205954.rootfs.tar.gz
core-image-sato-virtex5-20120604074303.rootfs.tar.gz
core-image-sato-virtex5.tar.gz
modules-3.0.0-14.1-build3-r16-virtex5.tgz
modules-3.2.11-yocto-standard-r1-qemuppc.tgz
README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
u-boot-virtex5.bin
u-boot-virtex5-v2012.04.01-r16.bin
uImage
uImage-2.6.37.1+git1+86c81ccd7c8e895904bfff95bd4f87c9615f7fba-r16-virtex5-20120604073552.bin uImage-2.6.37.1+git1+86c81ccd7c8e895904bfff95bd4f87c9615f7fba-r16-virtex5-20120604073552.dtb
uImage-virtex5.bin
uImage-virtex5.dtb
vmlinux vmlinux-3.2.11+git1+49f931bc294d5b6be60502bbd448cff5aa766235_1+cf3e188cf2a18c48a0e6f9ca54c36e6ac39512ec-r1-qemuppc-20120604085337.bin vmlinux-qemuppc.bin
Is it possible to use uImage-virtex5.bin for the kernel image and core-image-minimal-virtex5.tar.gz as the kernel image and rootfilesystem, instead of vmlinux-qemuppc.bin and core-image-sato-qemuppc.ext3 ?
Best regards,
Elvis Dowson
Quoted 2 lines · Elvis Dowson
Is it possible to use uImage-virtex5.bin for the kernel image and core-image-minimal-virtex5.tar.gz as the kernel image and rootfilesystem, instead of vmlinux-qemuppc.bin and core-image-sato-qemuppc.ext3 ?
it should be.