[RFC PATCH openbmc v3 7/8] palmetto: Build devicetrees for hardware and QEMU
Andrew Jeffery
andrew at aj.id.au
Wed Mar 23 19:03:34 AEDT 2016
Using a separate devicetree for QEMU allows us to integrate existing
models for hardware features, compromising on accuracy but hopefully
providing a net benefit by reducing development time.
Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
.../meta-openpower/meta-ibm/meta-palmetto/conf/machine/palmetto.conf | 1 +
yocto-poky/scripts/runqemu-internal | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/conf/machine/palmetto.conf b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/conf/machine/palmetto.conf
index f6256a7..d41127d 100644
--- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/conf/machine/palmetto.conf
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/conf/machine/palmetto.conf
@@ -1,5 +1,6 @@
KMACHINE = "aspeed"
KERNEL_DEVICETREE = "${KMACHINE}-bmc-opp-${MACHINE}.dtb"
+KERNEL_DEVICETREE += "${KMACHINE}-bmc-opp-qemu${MACHINE}.dtb"
require conf/machine/include/ast2400.inc
require conf/machine/include/obmc-bsp-common.inc
diff --git a/yocto-poky/scripts/runqemu-internal b/yocto-poky/scripts/runqemu-internal
index 479d61c..f461e9f 100755
--- a/yocto-poky/scripts/runqemu-internal
+++ b/yocto-poky/scripts/runqemu-internal
@@ -393,7 +393,8 @@ if [ "$MACHINE" = "palmetto" ]; then
MACHINE_SUBTYPE=palmetto-bmc
export QEMU_AUDIO_DRV="none"
KERNCMDLINE="console=ttyS4"
- QEMUOPTIONS="$QEMU_NETWORK_CMD -M ${MACHINE_SUBTYPE} -initrd $ROOTFS -no-reboot -nographic"
+ KERNELDTB=${DEPLOY_DIR_IMAGE}/${PALMETTO_DEFAULT_KERNEL}-aspeed-bmc-opp-qemu${MACHINE}.dtb
+ QEMUOPTIONS="$QEMU_NETWORK_CMD -M ${MACHINE_SUBTYPE} -dtb $KERNELDTB -initrd $ROOTFS -no-reboot -nographic"
fi
if [ "$MACHINE" = "qemuarm64" ]; then
--
2.5.0
More information about the openbmc
mailing list