Yocto DTB target

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

Yocto DTB target

16,963 Views
MarkoPanger
Contributor III

Hello,

Is there a was to tell bitbake/yocto to build and deploy just the DTB blob ?

Thanks

Labels (1)
Tags (2)
5 Replies

3,894 Views
Tarek
Senior Contributor I

Assuming that the Makefile under fsl-release-bsp/build/tmp/work-shared/imx6qsabresd/kernel-source/arch/arm/boot/dts includes your dts file

$ bitbake linux-imx -f -c deploy   Should build the dtb file for you.

You can find the generated blob under: fsl-release-bsp/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.52-r0.1/build/arch/arm/boot/dts/

0 Kudos

3,894 Views
yahuicao
Contributor III

Hi Marko:

     You can build the DTB blob use the tool provided by the kernel directly. After the first build of Yocto, for the imx6qsabresd, you can find the kernel in <build dir>/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/git/, change directory to it and then :

./scripts/dtc/dtc -I dts -O dtb -o ./devicetree.dtb   <file path of dts file you want to compile>

Then you can get the devcietree.dtb.

3,894 Views
MarkoPanger
Contributor III

Thank you for your input. I'll use that, however I was looking for a way to build the DTB using bitbake, e.g "bitbake -c compile linux-dtb".

0 Kudos

3,894 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

You can also get the meta-toolchain..
Task #7 - Create the toolchain

Task #8 - Build kernel manually using created toolchain

And after  having it configured you can just do :

make <pallform>.dts in the Linux directory source code.

Best Regards,

Alejandro

0 Kudos

3,894 Views
jamesbone
NXP TechSupport
NXP TechSupport

alejandrolozano, can please share your experience doing this example

0 Kudos