diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-16 13:47:53 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-17 07:57:27 -0700 |
commit | de8ff5126dc1909effde2dda649d14a55b2fd9b2 (patch) | |
tree | 0ec9188e41f267b3359467f6439c3171fbf88b94 /meta-xilinx-bsp | |
parent | 4762f741e62b3d21294d9eac4e56e949f0a9de20 (diff) | |
download | meta-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.conf | 24 |
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 | ||
39 | IMAGE_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 |
40 | IMAGE_CLASSES += "qemuboot" | ||
41 | QB_MEM = "-m 1024" | 41 | QB_MEM = "-m 1024" |
42 | QB_MACHINE = "-machine xilinx-zynq-a9" | 42 | QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" |
43 | QB_OPT_APPEND = "-nographic -serial null -serial mon:stdio" | 43 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" |
44 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" | 44 | |
45 | QB_SYSTEM_NAME ?= "${@qemu_target_binary(d)}" | ||
46 | QB_DEFAULT_FSTYPE = "cpio.gz.u-boot" | ||
47 | QB_DTB = "system.dtb" | ||
48 | QB_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 |
48 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | 52 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" |
49 | 53 | ||
50 | IMAGE_CLASSES += "qemuboot-xilinx" | 54 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) |
55 | QB_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 | " | ||