summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2020-03-16 13:47:53 -0700
committerMark Hatle <mark.hatle@xilinx.com>2020-03-17 07:57:27 -0700
commitde8ff5126dc1909effde2dda649d14a55b2fd9b2 (patch)
tree0ec9188e41f267b3359467f6439c3171fbf88b94 /meta-xilinx-bsp
parent4762f741e62b3d21294d9eac4e56e949f0a9de20 (diff)
downloadmeta-xilinx-de8ff5126dc1909effde2dda649d14a55b2fd9b2.tar.gz
zc706-zynq7: Add qemu wiring for zc706 machine
Enable qemuboot for zc702-zynq7 machine using qemu-xilinx provider Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp')
-rw-r--r--meta-xilinx-bsp/conf/machine/zc706-zynq7.conf24
1 files changed, 19 insertions, 5 deletions
diff --git a/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf b/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf
index 2ae13ffa..5273a66b 100644
--- a/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zc706-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-zc706-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 "