<div xmlns="http://www.w3.org/1999/xhtml">Hello, Brenden!</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">29.01.2019, 07:08, "Brenden Lai" <brenden_lai@jabil.com>:</div><blockquote xmlns="http://www.w3.org/1999/xhtml" type="cite"><div link="#0563C1" vlink="#954F72" lang="EN-US"><div><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;">Hi all ,</p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;">               I have couple dts questions about  porting OpenBMC into a new machine .</p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;"> </p><ol style="margin-top:0in;" type="1"><li style="margin-left:0.25in;">Although  there are many dts file located in  <a rel="noopener noreferrer" href="https://github.com/openbmc/linux/blob/dev-4.13/arch/arm/boot/dts/">https://github.com/openbmc/linux/blob/dev-4.13/arch/arm/boot/dts/</a> ,</li></ol><p style="margin-left:0.75in;">But , how does bitbake know which one should be applied .</p></div></div></blockquote><div xmlns="http://www.w3.org/1999/xhtml"><br />You describe the needed device tree in the machine config file:</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">KERNEL_DEVICETREE = "${KMACHINE}-bmc-yandex-${MACHINE}.dtb"</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div><blockquote xmlns="http://www.w3.org/1999/xhtml" type="cite"><div link="#0563C1" vlink="#954F72" lang="EN-US"><div><ol style="margin-top:0in;" type="1"><li style="margin-left:0.25in;">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?</li></ol></div></div></blockquote><div xmlns="http://www.w3.org/1999/xhtml"><div>To do so you can create an append recipe to linux-aspeed, and copy the needed file to the kernel source tree:</div><div>========================================================================</div><div>$cat linux-aspeed_%.bbappend<br />FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"<br /><br />SRC_URI += "file://aspeed-bmc-yandex-my70.dts"<br />SRC_URI += "file://my70.cfg"<br /><br />do_patch_append() {<br />    install -m 0644 ${WORKDIR}/aspeed-bmc-yandex-my70.dts ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/aspeed-bmc-yandex-my70.dts<br />}</div><div>========================================================================</div></div><blockquote xmlns="http://www.w3.org/1999/xhtml" type="cite"><div link="#0563C1" vlink="#954F72" lang="EN-US"><div> <p><span style="color:black;font-size:10pt;">Brenden Lai<br />SR. BMC Design Engineer</span><br /><span style="color:#222222;font-size:10pt;">E&I, Jabil Design Services</span></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;"> </p></div></div></blockquote><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">-- </div><div xmlns="http://www.w3.org/1999/xhtml">Best regards,</div><div xmlns="http://www.w3.org/1999/xhtml">Konstantin Klubnichkin,</div><div xmlns="http://www.w3.org/1999/xhtml">lead firmware engineer,</div><div xmlns="http://www.w3.org/1999/xhtml">server hardware R&D group,</div><div xmlns="http://www.w3.org/1999/xhtml">Yandex Moscow office.</div><div xmlns="http://www.w3.org/1999/xhtml">tel: +7-903-510-33-33</div><div xmlns="http://www.w3.org/1999/xhtml"> </div>