Patch u-boot device tree with Yocto

hi @sarah ,
I had to modify the bootloader device tree as well and the process is actually very simple with devtool:

  1. “devtool modify u-boot-toradex”
  2. make your changes in build-torizon/workspace/source/u-boot-toradex/arch/arm/dts
  3. add and commit your changes: cd build-torizon/workspace/source/u-boot-toradex && git add -A && git commit -m “<whatever_you_want>”
  4. “devtool update-recipe u-boot-toradex -a <path/to/your/custom/layer>”
  5. “devtool reset u-boot-toradex”
  6. delete workspace from your bblayers.conf and add your custom layer
  7. important : make sure your layer as a lower priority than meta-toradex-torizon layer. this layer has 90 as priority so I gave my layer priority 99, in this way my changes are actually applied at the very end
  8. rebuild your image and that’s it!

Regards,
Rocco

1 Like