IMX8QXP make dtbs failed

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

IMX8QXP make dtbs failed

Jump to solution
4,604 Views
jing_xu1
Contributor II

Hi,

I want to make dtbs,but failed:

xujing@shsw:~/imx-yocto-bsp/linux-imx$ make dtbs
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
DTC arch/arm64/boot/dts/al/alpine-v2-evp.dtb
In file included from arch/arm64/boot/dts/al/alpine-v2-evp.dts:35:0:
arch/arm64/boot/dts/al/alpine-v2.dtsi:37:10: fatal error: dt-bindings/interrupt-controller/arm-gic.h: No such file or directory
#include <dt-bindings/interrupt-controller/arm-gic.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.lib:317: recipe for target 'arch/arm64/boot/dts/al/alpine-v2-evp.dtb' failed
make[2]: *** [arch/arm64/boot/dts/al/alpine-v2-evp.dtb] Error 1
scripts/Makefile.build:587: recipe for target 'arch/arm64/boot/dts/al' failed
make[1]: *** [arch/arm64/boot/dts/al] Error 2
arch/arm64/Makefile:138: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2

I searched this problem on the Internet, the following is the most used way, but it doesn't work for me, do you have any other solution?

create an include directory and symlink dt-bindings from there to the actual location of include/dt-bindings/

Best Regard,

Jing

0 Kudos
Reply
1 Solution
4,083 Views
radhikasomaiya
Senior Contributor II

Hi Jing Xu,

 

You can build the dtb file by following the below step (from yocto build directory).

$ bitbake -f -c deploy linux-imx 

 

You can find the generated .dtb file under: <build dir>/tmp/work/imx8qxpmek-poky-linux/linux-imx/<linux_version>/git/arch/arm/boot/dts.

 

Ragards,

Radhika Somaiya.

View solution in original post

3 Replies
4,084 Views
radhikasomaiya
Senior Contributor II

Hi Jing Xu,

 

You can build the dtb file by following the below step (from yocto build directory).

$ bitbake -f -c deploy linux-imx 

 

You can find the generated .dtb file under: <build dir>/tmp/work/imx8qxpmek-poky-linux/linux-imx/<linux_version>/git/arch/arm/boot/dts.

 

Ragards,

Radhika Somaiya.

3,259 Views
karl1688
Contributor II

Actually I can find new build dtb and kernel in path

<buidl dir>/tmp/work/<platform name>/linux-imx/<version>/deploy-linux-imx

0 Kudos
Reply
4,082 Views
radhikasomaiya
Senior Contributor II

Hi Jing Xu,

Can you please let us know which yocto BSP version you are using and from which path you have tried "make dtbs"?

Ragards,

Radhika Somaiya.

0 Kudos
Reply