diff options
| author | Alistair Francis <alistair.francis@xilinx.com> | 2017-01-17 13:31:03 -0800 |
|---|---|---|
| committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-01-18 17:14:40 +1000 |
| commit | 2faaadd1f671ea8b850f721dcfc178aaee9b91fb (patch) | |
| tree | 2b0d1e77f9e581dc4509763bb49d2acc657c490f /conf | |
| parent | ff08d861e2c509495ad972f669136ac193553496 (diff) | |
| download | meta-xilinx-2faaadd1f671ea8b850f721dcfc178aaee9b91fb.tar.gz | |
zcu102: Add support for running Xilinx's QEMU
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/machine/zcu102-zynqmp.conf | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/conf/machine/zcu102-zynqmp.conf b/conf/machine/zcu102-zynqmp.conf index a38ac4ac..3dd2cb3b 100644 --- a/conf/machine/zcu102-zynqmp.conf +++ b/conf/machine/zcu102-zynqmp.conf | |||
| @@ -8,7 +8,7 @@ require conf/machine/include/machine-xilinx-default.inc | |||
| 8 | require conf/machine/include/machine-xilinx-board.inc | 8 | require conf/machine/include/machine-xilinx-board.inc |
| 9 | require conf/machine/include/machine-xilinx-qemu.inc | 9 | require conf/machine/include/machine-xilinx-qemu.inc |
| 10 | 10 | ||
| 11 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost mali" | 11 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost mali qemu-system-xilinx" |
| 12 | 12 | ||
| 13 | UBOOT_MACHINE = "xilinx_zynqmp_zcu102_revB_defconfig" | 13 | UBOOT_MACHINE = "xilinx_zynqmp_zcu102_revB_defconfig" |
| 14 | 14 | ||
| @@ -30,3 +30,20 @@ QB_OPT_APPEND = "-nographic -serial mon:stdio -serial null" | |||
| 30 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" | 30 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" |
| 31 | QB_SLIRP_OPT = "-netdev user,id=net0 -net nic -net nic -net nic -net nic,netdev=net0" | 31 | QB_SLIRP_OPT = "-netdev user,id=net0 -net nic -net nic -net nic -net nic,netdev=net0" |
| 32 | 32 | ||
| 33 | # Xilinx QEMU options | ||
| 34 | QB_OPT_APPEND_append_qemuboot-xilinx = " -hw-dtb ${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/zcu102-arm.dtb " | ||
| 35 | |||
| 36 | # Reset and unhalt CPU0 | ||
| 37 | QB_OPT_APPEND_append_qemuboot-xilinx = " -device loader,addr=0xfd1a0104,data=0x8000000e,data-len=4 " | ||
| 38 | |||
| 39 | # Load the boot media | ||
| 40 | QB_OPT_APPEND_append_qemuboot-xilinx = " -device loader,file=${DEPLOY_DIR_IMAGE}/arm-trusted-firmware-${MACHINE}.elf,cpu-num=0 \ | ||
| 41 | -device loader,file=${DEPLOY_DIR_IMAGE}/u-boot.elf \ | ||
| 42 | " | ||
| 43 | |||
| 44 | # Load the kernel image so the user can run 'booti 0x80000 0x6000000 0x4000000' to boot the kernel | ||
| 45 | QB_DEFAULT_FSTYPE_qemuboot-xilinx = "cpio.gz.u-boot" | ||
| 46 | QB_ROOTFS_OPT_qemuboot-xilinx = " -device loader,addr=0x6000000,file=@ROOTFS@,force-raw=true" | ||
| 47 | QB_OPT_APPEND_append_qemuboot-xilinx = " -device loader,addr=0x4000000,file=${DEPLOY_DIR_IMAGE}/${QB_DTB} \ | ||
| 48 | -device loader,addr=0x80000,file=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} \ | ||
| 49 | " | ||
