blob: fbd58a6e88e7caf5252e21fce8170d9c60111b39 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001#@TYPE: Machine
2#@NAME: zc702-zynq7
3#@DESCRIPTION: Machine support for ZC702 Evaluation Board.
4#
5# For details on the Evaluation board:
6# http://www.xilinx.com/products/boards-and-kits/EK-Z7-ZC702-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_zc702_evaluation_kit.html
9# For the FSBL 'zynq_fsbl_0.elf' refer to UG873 and the associated design files.
10#
11SOC_VARIANT ?= "7z"
12
13require conf/machine/include/tune-zynq.inc
14require conf/machine/include/machine-xilinx-overrides.inc
15require conf/machine/include/machine-xilinx-default.inc
Brad Bishop286d45c2018-10-02 15:21:57 -040016require conf/machine/include/machine-xilinx-qemu.inc
17
18MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost"
19
20# u-boot configuration
21UBOOT_MACHINE = "zynq_zc702_config"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022SPL_BINARY ?= "spl/boot.bin"
Brad Bishop286d45c2018-10-02 15:21:57 -040023
24EXTRA_IMAGEDEPENDS += " \
25 u-boot-zynq-uenv \
26 virtual/boot-bin \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080027 virtual/bootloader \
Brad Bishop286d45c2018-10-02 15:21:57 -040028 "
29
30SERIAL_CONSOLE = "115200 ttyPS0"
31
32KERNEL_DEVICETREE = "zynq-zc702.dtb"
33
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034IMAGE_BOOT_FILES += " \
35 boot.bin \
36 uEnv.txt \
37 "
Brad Bishop286d45c2018-10-02 15:21:57 -040038
39# Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine
40IMAGE_CLASSES += "qemuboot"
41QB_MEM = "-m 1024"
42QB_MACHINE = "-machine xilinx-zynq-a9"
43QB_OPT_APPEND = "-nographic -serial null -serial mon:stdio"
44QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@"
45
46# Xilinx's fork of QEMU has much better results, so let's default to that
47# Use qemu-xilinx instead of mainline
48PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native"
49
50IMAGE_CLASSES += "qemuboot-xilinx"