Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: qemu-zynq7 |
| 3 | #@DESCRIPTION: Zynq QEMU machine support ('xilinx-zynq-a9' model) |
| 4 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 5 | require conf/machine/include/soc-zynq.inc |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 6 | require conf/machine/include/machine-xilinx-default.inc |
| 7 | require conf/machine/include/machine-xilinx-qemu.inc |
| 8 | |
| 9 | MACHINE_FEATURES = "ext2 vfat" |
| 10 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 11 | SERIAL_CONSOLES ?= "115200;ttyPS0" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 12 | |
| 13 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 14 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 15 | HDF_MACHINE = "zc702-zynq7" |
| 16 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 17 | # Use the networking setup from qemuarm |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 18 | MACHINEOVERRIDES_prepend_pn-init-ifupdown = "qemuall:" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 19 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" |
| 20 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 21 | QB_MEM = "-m 1024" |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 22 | QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" |
| 23 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 24 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 25 | QB_SYSTEM_NAME ?= "${@qemu_target_binary(d)}" |
| 26 | QB_DEFAULT_FSTYPE = "cpio.gz.u-boot" |
| 27 | QB_DTB = "system.dtb" |
| 28 | QB_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) |
| 31 | QB_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 | " |