summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2016-09-03 23:33:28 +1000
committerNathan Rossi <nathan@nathanrossi.com>2016-09-30 00:27:20 +1000
commitebb718efd39c2fd64ebee6e7c40acaa2b5f8050d (patch)
treece033c9b7910f3ae299c750f9e33b97ffaf994ae
parent981d04a0dd3eb4e48ac12937c0d15fb846bc5a5f (diff)
downloadmeta-xilinx-ebb718efd39c2fd64ebee6e7c40acaa2b5f8050d.tar.gz
ep108-zynqmp, zcu102-zynqmp: Add runqemu support
The ep108-zynqmp machine already has support in QEMU however was exposed as the qemuzynqmp machine. QEMU 2.7 introduced support for the 'xlnx-zcu102' machine model. This allows for runqemu to boot a machine based on the ep108 or zcu102 hardware. The support added is based on the configuration that was in qemuzynqmp. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r--README.md2
-rw-r--r--conf/machine/ep108-zynqmp.conf12
-rw-r--r--conf/machine/zcu102-zynqmp.conf16
3 files changed, 28 insertions, 2 deletions
diff --git a/README.md b/README.md
index 11b21984..491b19c4 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ Boards/Machines supported by this layer:
26 * [Digilent Zybo Linux BD](conf/machine/zybo-linux-bd-zynq7.conf) - `zybo-linux-bd-zynq7` 26 * [Digilent Zybo Linux BD](conf/machine/zybo-linux-bd-zynq7.conf) - `zybo-linux-bd-zynq7`
27 * ZynqMP: 27 * ZynqMP:
28 * [Xilinx EP108](conf/machine/ep108-zynqmp.conf) - `ep108-zynqmp` (QEMU support) 28 * [Xilinx EP108](conf/machine/ep108-zynqmp.conf) - `ep108-zynqmp` (QEMU support)
29 * [Xilinx ZCU102](conf/machine/zcu102-zynqmp.conf) - `zcu102-zynqmp` 29 * [Xilinx ZCU102](conf/machine/zcu102-zynqmp.conf) - `zcu102-zynqmp` (QEMU support)
30 30
31Additional information on Xilinx architectures can be found at: 31Additional information on Xilinx architectures can be found at:
32 http://www.xilinx.com/support/index.htm 32 http://www.xilinx.com/support/index.htm
diff --git a/conf/machine/ep108-zynqmp.conf b/conf/machine/ep108-zynqmp.conf
index 17363ef5..2eabecf3 100644
--- a/conf/machine/ep108-zynqmp.conf
+++ b/conf/machine/ep108-zynqmp.conf
@@ -21,5 +21,15 @@ UBOOT_ENTRYPOINT = "0x80000"
21 21
22EXTRA_IMAGEDEPENDS += "arm-trusted-firmware" 22EXTRA_IMAGEDEPENDS += "arm-trusted-firmware"
23 23
24QEMU_DTB = "${KERNEL_IMAGETYPE}-${@os.path.splitext(os.path.basename(d.getVar("KERNEL_DEVICETREE",True)))[0]}" 24# For runqemu
25IMAGE_CLASSES += "qemuboot"
26QB_SYSTEM_NAME = "qemu-system-aarch64"
27QB_MACHINE = "-machine xlnx-ep108"
28QB_MEM = "-m 2048"
29QB_DTB = "${KERNEL_IMAGETYPE}-${@os.path.splitext(os.path.basename(d.getVar("KERNEL_DEVICETREE",True)))[0]}.dtb"
30QB_OPT_APPEND = "-nographic -serial mon:stdio -serial null"
31QB_DEFAULT_FSTYPE = "cpio"
32QB_KERNEL_CMDLINE_APPEND = "console=ttyPS0"
33QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -net nic,netdev=net0,macaddr=@MAC@"
34QB_SLIRP_OPT = "-netdev user,id=net0 -net nic,netdev=net0"
25 35
diff --git a/conf/machine/zcu102-zynqmp.conf b/conf/machine/zcu102-zynqmp.conf
index 11a8ddbf..f762922a 100644
--- a/conf/machine/zcu102-zynqmp.conf
+++ b/conf/machine/zcu102-zynqmp.conf
@@ -9,6 +9,9 @@ require conf/machine/include/machine-xilinx-board.inc
9 9
10MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost mali" 10MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost mali"
11 11
12# This machine has a qemu machine model
13EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"
14
12UBOOT_MACHINE = "xilinx_zynqmp_zcu102_revB_defconfig" 15UBOOT_MACHINE = "xilinx_zynqmp_zcu102_revB_defconfig"
13 16
14SERIAL_CONSOLE = "115200 ttyPS0" 17SERIAL_CONSOLE = "115200 ttyPS0"
@@ -21,3 +24,16 @@ PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx"
21EXTRA_IMAGEDEPENDS += "\ 24EXTRA_IMAGEDEPENDS += "\
22 arm-trusted-firmware \ 25 arm-trusted-firmware \
23 " 26 "
27
28# For runqemu
29IMAGE_CLASSES += "qemuboot"
30QB_SYSTEM_NAME = "qemu-system-aarch64"
31QB_MACHINE = "-machine xlnx-zcu102"
32QB_MEM = "-m 2048"
33QB_DTB = "${KERNEL_IMAGETYPE}-${@os.path.splitext(os.path.basename(d.getVar("KERNEL_DEVICETREE",True)))[0]}.dtb"
34QB_OPT_APPEND = "-nographic -serial mon:stdio -serial null"
35QB_DEFAULT_FSTYPE = "cpio"
36QB_KERNEL_CMDLINE_APPEND = "console=ttyPS0"
37QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@"
38QB_SLIRP_OPT = "-netdev user,id=net0 -net nic -net nic -net nic -net nic,netdev=net0"
39