Howto re-build dtb with bitbake cmd

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Howto re-build dtb with bitbake cmd

4,722 Views
floriankoenig
Contributor II

hi,

i builded a complete image, but now i want to change some properties in the device tree file (dts) and simply just want to rebuild the dts file into a dtb.

I saw on net, that "bitbake my-own-linux -f -c deploy"  should do the trick. But when i look at the date of the dtb-file in the build/arch/arm/boot/dts/ directory. it is not re-build ?

When i look at poky/meta/recipes-kernel/linux/linux-dtb.inc it seemed that the  do_compile_append task is building the dtb with "oe_runmake ${DTB}"  , but i think it is only callable with bitbake when i run "bitbake my-own-linux -c do_compile" , is that correct ?

Is there any way to re-build only the dtb with bitbake commands to have a consistent workflow ?

thanks

Labels (3)
3 Replies

2,827 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Florian,

it is not necessary to use bitbake. You can just go to your kernel-source folder and execute

make imx_v7_defconfig

make file_name.dtb

and the new .dtb will be located at kernel-source/arch/arm/boot/dts/ directory.


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,827 Views
abhijeet_ghodga
Contributor III

What about the .dtb files generated in the deploy folder in /tmp directory? Do we have to delete those files or they get overwritten? Also how to find which .dts files are relevant as there are many made in the /kernel-source/arch/arm/boot/dts directory?

239 Views
Zater
Contributor II

Hello Mr. ghodga

did you find how to assign the desired  .dts file to bitbake to be build ?

0 Kudos