IMX8QXP make dtbs failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IMX8QXP make dtbs failed

跳至解决方案
6,195 次查看
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 项奖励
回复
1 解答
5,674 次查看
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 回复数
5,675 次查看
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.

4,850 次查看
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 项奖励
回复
5,673 次查看
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 项奖励
回复