summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2020-03-16 12:33:08 -0700
committerMark Hatle <mark.hatle@xilinx.com>2020-03-17 07:57:27 -0700
commit4762f741e62b3d21294d9eac4e56e949f0a9de20 (patch)
tree59ba88a167cc2a7c7922ac28d08e940d6fbbc821
parentea41ab2eff6d818ce1e75af3f6c2233b98c2bf8f (diff)
downloadmeta-xilinx-4762f741e62b3d21294d9eac4e56e949f0a9de20.tar.gz
zc702-zynq7: Add qemu wiring for zc702 machine
Enable qemuboot for zc702-zynq7 machine using qemu-xilinx provider Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass3
-rw-r--r--meta-xilinx-bsp/conf/machine/zc702-zynq7.conf24
2 files changed, 21 insertions, 6 deletions
diff --git a/meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass b/meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass
index 024626cb..e30712c0 100644
--- a/meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass
+++ b/meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass
@@ -3,7 +3,8 @@
3OVERRIDES .= ":qemuboot-xilinx" 3OVERRIDES .= ":qemuboot-xilinx"
4 4
5# setup the target binary 5# setup the target binary
6QB_SYSTEM_NAME_prepend = "qemu-xilinx/" 6QB_SYSTEM_NAME_prepend_aarch64 = "qemu-xilinx/"
7QB_SYSTEM_NAME_prepend_microblaze = "qemu-xilinx/"
7 8
8# Default machine targets for Xilinx QEMU (FDT Generic) 9# Default machine targets for Xilinx QEMU (FDT Generic)
9QB_MACHINE_aarch64 = "-machine arm-generic-fdt" 10QB_MACHINE_aarch64 = "-machine arm-generic-fdt"
diff --git a/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf b/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf
index 9642fd96..cd23a9d9 100644
--- a/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf
@@ -36,15 +36,29 @@ IMAGE_BOOT_FILES += " \
36 boot.scr \ 36 boot.scr \
37 " 37 "
38 38
39IMAGE_CLASSES += "qemuboot-xilinx"
39# Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine 40# Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine
40IMAGE_CLASSES += "qemuboot"
41QB_MEM = "-m 1024" 41QB_MEM = "-m 1024"
42QB_MACHINE = "-machine xilinx-zynq-a9" 42QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic"
43QB_OPT_APPEND = "-nographic -serial null -serial mon:stdio" 43QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage"
44QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" 44
45QB_SYSTEM_NAME ?= "${@qemu_target_binary(d)}"
46QB_DEFAULT_FSTYPE = "cpio.gz.u-boot"
47QB_DTB = "system.dtb"
48QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw"
45 49
46# Xilinx's fork of QEMU has much better results, so let's default to that 50# Xilinx's fork of QEMU has much better results, so let's default to that
47# Use qemu-xilinx instead of mainline 51# Use qemu-xilinx instead of mainline
48PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" 52PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native"
49 53
50IMAGE_CLASSES += "qemuboot-xilinx" 54# Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW)
55QB_OPT_APPEND = " \
56 -nographic -serial null -serial mon:stdio \
57 -initrd ${DEPLOY_DIR_IMAGE}/petalinux-image-minimal-zc702-zynq7.cpio.gz.u-boot \
58 -gdb tcp::9000 \
59 -device loader,addr=0xf8000008,data=0xDF0D,data-len=4 \
60 -device loader,addr=0xf8000140,data=0x00500801,data-len=4 \
61 -device loader,addr=0xf800012c,data=0x1ed044d,data-len=4 \
62 -device loader,addr=0xf8000108,data=0x0001e008,data-len=4 \
63 -device loader,addr=0xF8000910,data=0xF,data-len=0x4 \
64 "