On 22 November 2017 at 05:10, Alistair Francis <[email protected]> wrote: > Add support for both mainline and Xilinx's QEMU. > > Signed-off-by: Alistair Francis <[email protected]>
Signed-off-by: Nathan Rossi <[email protected]> Regards, Nathan > --- > README.md | 2 +- > conf/machine/zc702-zynq7.conf | 13 +++++++++++++ > 2 files changed, 14 insertions(+), 1 deletion(-) > > diff --git a/README.md b/README.md > index b821a47..80e3dd9 100644 > --- a/README.md > +++ b/README.md > @@ -19,7 +19,7 @@ Boards/Machines supported by this layer: > * [Xilinx KC705](conf/machine/kc705-microblazeel.conf) - > `kc705-microblazeel` > * Zynq: > * [Zynq (QEMU)](conf/machine/qemu-zynq7.conf) - `qemu-zynq7` (QEMU Support) > - * [Xilinx ZC702](conf/machine/zc702-zynq7.conf) - `zc702-zynq7` > + * [Xilinx ZC702](conf/machine/zc702-zynq7.conf) - `zc702-zynq7` (with QEMU > support) > * [Xilinx ZC706](conf/machine/zc706-zynq7.conf) - `zc706-zynq7` > * [Avnet MicroZed](conf/machine/microzed-zynq7.conf) - `microzed-zynq7` > * [Avnet PicoZed](conf/machine/picozed-zynq7.conf) - `picozed-zynq7` > diff --git a/conf/machine/zc702-zynq7.conf b/conf/machine/zc702-zynq7.conf > index 1430c84..1bf3730 100644 > --- a/conf/machine/zc702-zynq7.conf > +++ b/conf/machine/zc702-zynq7.conf > @@ -12,6 +12,7 @@ > require conf/machine/include/tune-zynq.inc > require conf/machine/include/machine-xilinx-default.inc > require conf/machine/include/machine-xilinx-board.inc > +require conf/machine/include/machine-xilinx-qemu.inc > > MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" > > @@ -27,3 +28,15 @@ KERNEL_DEVICETREE = "zynq-zc702.dtb" > > IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${KERNEL_IMAGETYPE}-zynq-zc702.dtb" > > +# Although not fully supported you can run this machine on the mainline QEMU > 'xilinx-zynq-a9' machine > +IMAGE_CLASSES += "qemuboot" > +QB_MEM = "-m 1024" > +QB_MACHINE = "-machine xilinx-zynq-a9" > +QB_OPT_APPEND = "-nographic -serial null -serial mon:stdio" > +QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" > + > +# Xilinx's fork of QEMU has much better results, so let's default to that > +# Use qemu-xilinx instead of mainline > +PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" > + > +IMAGE_CLASSES += "qemuboot-xilinx" > -- > 2.14.1 > > -- > _______________________________________________ > meta-xilinx mailing list > [email protected] > https://lists.yoctoproject.org/listinfo/meta-xilinx -- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
