dts file questions
Brenden Lai
Brenden_Lai at jabil.com
Wed Jan 30 15:53:12 AEDT 2019
Thanks Konstantin !
Bye the way ,
If I would like to access ast_2500 peripheral such as LPC , I2C in uboot,
Are there any specific file have to modify as well as dts for kernel ?
From: Konstantin Klubnichkin <kitsok at yandex-team.ru>
Sent: Tuesday, January 29, 2019 4:29 PM
To: Brenden Lai <Brenden_Lai at jabil.com>; openbmc at lists.ozlabs.org
Subject: Re: dts file questions
Hello, Brenden!
29.01.2019, 07:08, "Brenden Lai" <brenden_lai at jabil.com<mailto:brenden_lai at jabil.com>>:
Hi all ,
I have couple dts questions about porting OpenBMC into a new machine .
1. Although there are many dts file located in https://github.com/openbmc/linux/blob/dev-4.13/arch/arm/boot/dts/ ,
But , how does bitbake know which one should be applied .
You describe the needed device tree in the machine config file:
KERNEL_DEVICETREE = "${KMACHINE}-bmc-yandex-${MACHINE}.dtb"
1. if there are no suitable dts file in github , it should be made by myself , where should I put my dts file in working space source tree?
To do so you can create an append recipe to linux-aspeed, and copy the needed file to the kernel source tree:
========================================================================
$cat linux-aspeed_%.bbappend
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://aspeed-bmc-yandex-my70.dts"
SRC_URI += "file://my70.cfg"
do_patch_append() {
install -m 0644 ${WORKDIR}/aspeed-bmc-yandex-my70.dts ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/aspeed-bmc-yandex-my70.dts
}
========================================================================
Brenden Lai
SR. BMC Design Engineer
E&I, Jabil Design Services
--
Best regards,
Konstantin Klubnichkin,
lead firmware engineer,
server hardware R&D group,
Yandex Moscow office.
tel: +7-903-510-33-33
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190130/6670254d/attachment.html>
More information about the openbmc
mailing list