blob: 10b5e29c946824caf459bd233421d22b6b74dc26 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001#@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
Andrew Geissler84ad7c52020-06-27 00:00:16 -050012require conf/machine/include/soc-zynq.inc
Brad Bishop286d45c2018-10-02 15:21:57 -040013require conf/machine/include/machine-xilinx-default.inc
Brad Bishop286d45c2018-10-02 15:21:57 -040014require conf/machine/include/machine-xilinx-qemu.inc
15
16MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget"
17
18# u-boot configuration
Andrew Geissler84ad7c52020-06-27 00:00:16 -050019UBOOT_MACHINE = "xilinx_zynq_virt_defconfig"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020SPL_BINARY ?= "spl/boot.bin"
Brad Bishop286d45c2018-10-02 15:21:57 -040021
22EXTRA_IMAGEDEPENDS += " \
23 u-boot-zynq-uenv \
24 virtual/boot-bin \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080025 virtual/bootloader \
Andrew Geissler84ad7c52020-06-27 00:00:16 -050026 u-boot-zynq-scr \
Brad Bishop286d45c2018-10-02 15:21:57 -040027 "
28
Andrew Geissler84ad7c52020-06-27 00:00:16 -050029SERIAL_CONSOLES ?= "115200;ttyPS0"
Brad Bishop286d45c2018-10-02 15:21:57 -040030
31KERNEL_DEVICETREE = "zynq-zc706.dtb"
32
33IMAGE_BOOT_FILES += " \
34 boot.bin \
Brad Bishop286d45c2018-10-02 15:21:57 -040035 uEnv.txt \
Andrew Geissler84ad7c52020-06-27 00:00:16 -050036 boot.scr \
Brad Bishop286d45c2018-10-02 15:21:57 -040037 "
38
Brad Bishop286d45c2018-10-02 15:21:57 -040039QB_MEM = "-m 1024"
Andrew Geissler84ad7c52020-06-27 00:00:16 -050040QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic"
41QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage"
Brad Bishop286d45c2018-10-02 15:21:57 -040042
Andrew Geissler84ad7c52020-06-27 00:00:16 -050043QB_SYSTEM_NAME ?= "${@qemu_target_binary(d)}"
44QB_DEFAULT_FSTYPE = "cpio.gz.u-boot"
45QB_DTB = "system.dtb"
46QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw"
Brad Bishop286d45c2018-10-02 15:21:57 -040047
Andrew Geissler84ad7c52020-06-27 00:00:16 -050048# Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW)
49QB_OPT_APPEND = " \
50 -nographic -serial null -serial mon:stdio \
51 -initrd ${DEPLOY_DIR_IMAGE}/petalinux-image-minimal-zc706-zynq7.cpio.gz.u-boot \
52 -gdb tcp::9000 \
53 -device loader,addr=0xf8000008,data=0xDF0D,data-len=4 \
54 -device loader,addr=0xf8000140,data=0x00500801,data-len=4 \
55 -device loader,addr=0xf800012c,data=0x1ed044d,data-len=4 \
56 -device loader,addr=0xf8000108,data=0x0001e008,data-len=4 \
57 -device loader,addr=0xF8000910,data=0xF,data-len=0x4 \
58 "