blob: be0f701cbfd613a1cde0f3415f3a14e7527b55a6 [file] [log] [blame]
Brad Bishop754b8fa2019-08-20 09:16:20 -04001#@TYPE: Machine
Andrew Geissler84ad7c52020-06-27 00:00:16 -05002#@NAME: Generic Zynq
3#@DESCRIPTION: Generic Zynq Device
Brad Bishop754b8fa2019-08-20 09:16:20 -04004
Andrew Geissler84ad7c52020-06-27 00:00:16 -05005require conf/machine/include/soc-zynq.inc
Brad Bishop754b8fa2019-08-20 09:16:20 -04006require conf/machine/include/machine-xilinx-default.inc
Andrew Geissler84ad7c52020-06-27 00:00:16 -05007require conf/machine/include/machine-xilinx-qemu.inc
Andrew Geisslerc60845c2021-01-29 15:55:05 -06008require conf/machine/include/xilinx-board.inc
Brad Bishop754b8fa2019-08-20 09:16:20 -04009
10MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget"
11
12EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native"
Andrew Geissler84ad7c52020-06-27 00:00:16 -050013
14UBOOT_MACHINE ?= "xilinx_zynq_virt_defconfig"
15
16SERIAL_CONSOLES ?= "115200;ttyPS0"
17
18MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree"
19
20HDF_MACHINE = "zc702-zynq7"
21
22QB_MEM = "-m 1024"
23QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic"
24QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage"
25
26QB_SYSTEM_NAME ?= "${@qemu_target_binary(d)}"
27QB_DEFAULT_FSTYPE = "cpio.gz.u-boot"
28QB_DTB = "system.dtb"
29QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw"
30
31# Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW)
32QB_OPT_APPEND = " \
33 -nographic -serial null -serial mon:stdio \
34 -initrd ${DEPLOY_DIR_IMAGE}/petalinux-image-minimal-zynq-generic.cpio.gz.u-boot \
35 -gdb tcp::9000 \
36 -device loader,addr=0xf8000008,data=0xDF0D,data-len=4 \
37 -device loader,addr=0xf8000140,data=0x00500801,data-len=4 \
38 -device loader,addr=0xf800012c,data=0x1ed044d,data-len=4 \
39 -device loader,addr=0xf8000108,data=0x0001e008,data-len=4 \
40 -device loader,addr=0xF8000910,data=0xF,data-len=0x4 \
41 "