diff options
author | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2020-03-16 12:33:08 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-17 07:57:27 -0700 |
commit | 4762f741e62b3d21294d9eac4e56e949f0a9de20 (patch) | |
tree | 59ba88a167cc2a7c7922ac28d08e940d6fbbc821 | |
parent | ea41ab2eff6d818ce1e75af3f6c2233b98c2bf8f (diff) | |
download | meta-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.bbclass | 3 | ||||
-rw-r--r-- | meta-xilinx-bsp/conf/machine/zc702-zynq7.conf | 24 |
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 @@ | |||
3 | OVERRIDES .= ":qemuboot-xilinx" | 3 | OVERRIDES .= ":qemuboot-xilinx" |
4 | 4 | ||
5 | # setup the target binary | 5 | # setup the target binary |
6 | QB_SYSTEM_NAME_prepend = "qemu-xilinx/" | 6 | QB_SYSTEM_NAME_prepend_aarch64 = "qemu-xilinx/" |
7 | QB_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) |
9 | QB_MACHINE_aarch64 = "-machine arm-generic-fdt" | 10 | QB_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 | ||
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-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 | " | ||