Devicetree files aren’t updating in yocto image

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Devicetree files aren’t updating in yocto image

跳至解决方案
3,068 次查看
moose
Contributor IV

Hello, when I make changes to my evk board dts file, the changes don’t seem to make it to the image. To generate the image, I follow the standard procedure listed in IMXLXYOCTOUG and here is how I make the changes to my dts file:

bitbake virtual/kernel

bitbake -c devshell virtual/kernel

This opens a new shell. I make changes to imx8mn_evk.dts within tmp/work-shared/… directory and I then compile dts files within the new shell.

make dtbs

I exit the shell and then issue:

bitbake -c deploy virtual/kernel

Is this the correct procedure to update the board dts file? I am not sure if I am updating the correct file location or if I need to copy the file? Any guidance on how I should do this and why isn’t it working that would be appreciated. Thank you!

标签 (1)
标记 (1)
0 项奖励
1 解答
3,048 次查看
amberworth
Contributor III

Sure.  Say I wanted to modify the devtree for an imx8m nano (ddr4 version):

I source my setup script into the build directory then:

  1. devtool modify linux-imx  - This pulls and patches sources (including device tree entries)
  2. modify the device tree that has been pulled and patched into the workspace ( <build dir>/workspace/workspace/sources/linux-imx/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts)
  3. devtool build-image <image name> 
  4. load on to board with new image with uuu
  5. devtool finish (or update) to create patches and push changes from the workspace to your layer

 

在原帖中查看解决方案

4 回复数
3,057 次查看
amberworth
Contributor III

I've been using devtool to make changes to the device trees.

 

0 项奖励
3,054 次查看
moose
Contributor IV

@amberworth any chance you could provide more details or instructions? I have used devtool to create/modify/upgrade a recipe but not sure how to use it to modify and update a devicetree file. Thank you!

0 项奖励
3,049 次查看
amberworth
Contributor III

Sure.  Say I wanted to modify the devtree for an imx8m nano (ddr4 version):

I source my setup script into the build directory then:

  1. devtool modify linux-imx  - This pulls and patches sources (including device tree entries)
  2. modify the device tree that has been pulled and patched into the workspace ( <build dir>/workspace/workspace/sources/linux-imx/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts)
  3. devtool build-image <image name> 
  4. load on to board with new image with uuu
  5. devtool finish (or update) to create patches and push changes from the workspace to your layer

 

3,042 次查看
moose
Contributor IV

Thank you @amberworth for the detailed instructions. This actually worked just fine. I was also able to get it working using the devshell method. I found this link to be useful https://stackoverflow.com/questions/34175786/how-to-install-kernel-patch-locally-in-yocto/34187967

Thanks!