blob: 8bccfde29a9ff839639f667c01ea6d0a89ac6179 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001#@TYPE: Machine
2#@NAME: qemu-zynq7
3#@DESCRIPTION: Zynq QEMU machine support ('xilinx-zynq-a9' model)
4
Andrew Geissler84ad7c52020-06-27 00:00:16 -05005require conf/machine/include/soc-zynq.inc
Brad Bishop286d45c2018-10-02 15:21:57 -04006require conf/machine/include/machine-xilinx-default.inc
7require conf/machine/include/machine-xilinx-qemu.inc
8
9MACHINE_FEATURES = "ext2 vfat"
10
Andrew Geissler84ad7c52020-06-27 00:00:16 -050011SERIAL_CONSOLES ?= "115200;ttyPS0"
Brad Bishop286d45c2018-10-02 15:21:57 -040012
13MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree"
Brad Bishop286d45c2018-10-02 15:21:57 -040014
Andrew Geissler84ad7c52020-06-27 00:00:16 -050015HDF_MACHINE = "zc702-zynq7"
16
Brad Bishop286d45c2018-10-02 15:21:57 -040017# Use the networking setup from qemuarm
Andrew Geissler84ad7c52020-06-27 00:00:16 -050018MACHINEOVERRIDES_prepend_pn-init-ifupdown = "qemuall:"
Brad Bishop286d45c2018-10-02 15:21:57 -040019FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm"
20
Brad Bishop286d45c2018-10-02 15:21:57 -040021QB_MEM = "-m 1024"
Andrew Geissler84ad7c52020-06-27 00:00:16 -050022QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic"
23QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage"
Brad Bishop286d45c2018-10-02 15:21:57 -040024
Andrew Geissler84ad7c52020-06-27 00:00:16 -050025QB_SYSTEM_NAME ?= "${@qemu_target_binary(d)}"
26QB_DEFAULT_FSTYPE = "cpio.gz.u-boot"
27QB_DTB = "system.dtb"
28QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw"
29
30# Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW)
31QB_OPT_APPEND = " \
32 -nographic -serial null -serial mon:stdio \
33 -initrd ${DEPLOY_DIR_IMAGE}/petalinux-image-minimal-qemu-zynq7.cpio.gz.u-boot \
34 -gdb tcp::9000 \
35 -device loader,addr=0xf8000008,data=0xDF0D,data-len=4 \
36 -device loader,addr=0xf8000140,data=0x00500801,data-len=4 \
37 -device loader,addr=0xf800012c,data=0x1ed044d,data-len=4 \
38 -device loader,addr=0xf8000108,data=0x0001e008,data-len=4 \
39 -device loader,addr=0xF8000910,data=0xF,data-len=0x4 \
40 "