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 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 12 | require conf/machine/include/soc-zynq.inc |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 13 | require conf/machine/include/machine-xilinx-default.inc |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 14 | require conf/machine/include/machine-xilinx-qemu.inc |
| 15 | |
| 16 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget" |
| 17 | |
| 18 | # u-boot configuration |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 19 | UBOOT_MACHINE = "xilinx_zynq_virt_defconfig" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 20 | SPL_BINARY ?= "spl/boot.bin" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 21 | |
| 22 | EXTRA_IMAGEDEPENDS += " \ |
| 23 | u-boot-zynq-uenv \ |
| 24 | virtual/boot-bin \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 25 | virtual/bootloader \ |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 26 | u-boot-zynq-scr \ |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 27 | " |
| 28 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 29 | SERIAL_CONSOLES ?= "115200;ttyPS0" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 30 | |
| 31 | KERNEL_DEVICETREE = "zynq-zc706.dtb" |
| 32 | |
| 33 | IMAGE_BOOT_FILES += " \ |
| 34 | boot.bin \ |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 35 | uEnv.txt \ |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 36 | boot.scr \ |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 37 | " |
| 38 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 39 | QB_MEM = "-m 1024" |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 40 | QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" |
| 41 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 42 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 43 | QB_SYSTEM_NAME ?= "${@qemu_target_binary(d)}" |
| 44 | QB_DEFAULT_FSTYPE = "cpio.gz.u-boot" |
| 45 | QB_DTB = "system.dtb" |
| 46 | QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 47 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 48 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) |
| 49 | QB_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 | " |