Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: zc706-zynq7 |
| 3 | #@DESCRIPTION: Machine support for ZC706 Evaluation Board. |
| 4 | # |
| 5 | # For details on the Evaluation board: |
| 6 | # http://www.xilinx.com/products/boards-and-kits/EK-Z7-ZC706-G.htm |
| 7 | # For documentation and design files for the ZC702: |
| 8 | # http://www.xilinx.com/support/index.html/content/xilinx/en/supportNav/boards_and_kits/zynq-7000_soc_boards_and_kits/zynq-7000_soc_zc706_evaluation_kit.html |
| 9 | # For the FSBL 'zynq_fsbl_0.elf' refer to UG873 and the associated design files. |
| 10 | # |
| 11 | |
| 12 | SOC_VARIANT ?= "7z" |
| 13 | |
| 14 | require conf/machine/include/tune-zynq.inc |
| 15 | require conf/machine/include/machine-xilinx-overrides.inc |
| 16 | require conf/machine/include/machine-xilinx-default.inc |
| 17 | require conf/machine/include/machine-xilinx-board.inc |
| 18 | require conf/machine/include/machine-xilinx-qemu.inc |
| 19 | |
| 20 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget" |
| 21 | |
| 22 | # u-boot configuration |
| 23 | UBOOT_MACHINE = "zynq_zc706_config" |
| 24 | SPL_BINARY = "spl/boot.bin" |
| 25 | |
| 26 | EXTRA_IMAGEDEPENDS += " \ |
| 27 | u-boot-zynq-uenv \ |
| 28 | virtual/boot-bin \ |
| 29 | " |
| 30 | |
| 31 | SERIAL_CONSOLE = "115200 ttyPS0" |
| 32 | |
| 33 | KERNEL_DEVICETREE = "zynq-zc706.dtb" |
| 34 | |
| 35 | IMAGE_BOOT_FILES += " \ |
| 36 | boot.bin \ |
| 37 | ${KERNEL_IMAGETYPE}-zynq-zc706.dtb \ |
| 38 | uEnv.txt \ |
| 39 | " |
| 40 | |
| 41 | # Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine |
| 42 | IMAGE_CLASSES += "qemuboot" |
| 43 | QB_MEM = "-m 1024" |
| 44 | QB_MACHINE = "-machine xilinx-zynq-a9" |
| 45 | QB_OPT_APPEND = "-nographic -serial null -serial mon:stdio" |
| 46 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" |
| 47 | |
| 48 | # Xilinx's fork of QEMU has much better results, so let's default to that |
| 49 | # Use qemu-xilinx instead of mainline |
| 50 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" |
| 51 | |
| 52 | IMAGE_CLASSES += "qemuboot-xilinx" |