Modifying device tree in Yocto using recipetool

Steps to modify device tree using recipetool:

1. Setup the environment by running oe-init-buildenv script
2. Run the following command to generate a recipe for devicetree using recipetool

recipetool appendsrcfile -wm your-machine-name path/to/meta-mylayer virtual/kernel /path/to/your.dts 'arch/${ARCH}/boot/dts/your.dts'


The above command will create a bbappend file with all the necessary information

3. If you are using a different name for device tree, then update the linux bbappend file with the new name

KERNEL_DEVICETREE += "new_name.dtb"

Comments

Popular posts from this blog

bb.utils.contains yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig

PR, PN and PV Variable in Yocto