[RFC PATCH openbmc v3 7/8] palmetto: Build devicetrees for hardware and QEMU
Patrick Williams
patrick at stwcx.xyz
Tue May 17 06:19:11 AEST 2016
On Wed, Mar 23, 2016 at 06:33:34PM +1030, Andrew Jeffery wrote:
> 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"
Need to find a way to do this generically as well.
> fi
>
> if [ "$MACHINE" = "qemuarm64" ]; then
> --
> 2.5.0
>
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc
--
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20160516/85f65cd6/attachment.sig>
More information about the openbmc
mailing list