[oe] Understanding what qemuppc emulates and getting it to emulate a ppc440 CPU

Elvis Dowson elvis.dowson at gmail.com
Mon Jun 4 18:19:58 UTC 2012


Hi Khem,

On Jun 4, 2012, at 7:01 PM, Khem Raj wrote:

> On Mon, Jun 4, 2012 at 2:07 AM, Elvis Dowson <elvis.dowson at gmail.com> wrote:
>> 
>> 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


More information about the Openembedded-devel mailing list