[meta-xilinx] [PATCH 1/2] zc702-zynq7: Add runqemu support

Alistair Francis alistair.francis at xilinx.com
Mon Nov 20 13:33:09 PST 2017


Add support for both mainline and Xilinx's QEMU.

Signed-off-by: Alistair Francis <alistair.francis at xilinx.com>
---
 conf/machine/zc702-zynq7.conf | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/conf/machine/zc702-zynq7.conf b/conf/machine/zc702-zynq7.conf
index ef42301..d5f641f 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"
 
@@ -28,3 +29,16 @@ KERNEL_FEATURES += "features/rtc/rtc.scc"
 
 IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${KERNEL_IMAGETYPE}-zynq-zc702.dtb"
 
+# Althogh not fully supported you can run this machin 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"
+QB_MACHINE_qemuboot-xilinx = "-machine arm-generic-fdt-7series"
-- 
2.14.1




More information about the meta-xilinx mailing list