IMX8QXP linux-imx build failed

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

IMX8QXP linux-imx build failed

Jump to solution
3,296 Views
jing_xu1
Contributor II

Hi,

I want to bulid Linux kernel in standslone environment for i.mx8qxp mek board, follow these steps in i.MX_Porting_Guide.pdf

Toolchain : environment-setup-aarch64-poky-linux
Linux_Config: defconfig
ARCH=arm64
CROSS_COMPILE=aarch64-poky-linux

$ cd linux-imx
$ make distclean
$ make defconfig

$ make -j 8

this error appeared:

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
make: *** Waiting for unfinished jobs....

How can i solve it ?

0 Kudos
1 Solution
2,727 Views
jing_xu1
Contributor II

Hi Jinhua

1.vim scripts/Makefile.lib,

   add 3 lines into dtc_cpp_flags  

dtc_cpp_flags  = -Wp,-MD,$(depfile).pre.tmp -nostdinc                    \

          -I$(srctree)/include \

          -I$(srctree)/arch/$(SRCARCH)/boot/dts \

          -I$(srctree)/arch/$(SRCARCH)/boot/dts/include \

          -I$(srctree)/drivers/of/unittest-data \

         $(addprefix -I,$(DTC_INCLUDE))                          \

               -undef -D__DTS__

2.ln -s ~/path/to/linux-imx/include ~/path/to/linux-imx/arch/arm64/boot/dts/include (ps:the path is must be absolute path)

...

 

View solution in original post

0 Kudos
4 Replies
2,727 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Xu,

 

I’m afraid that i.MX8X family is still on preproduction and no additional information/support could be provided yet. For further assistance, please contact with your Sales/FAE.

 

Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------

0 Kudos
2,727 Views
jing_xu1
Contributor II

Hi CarlosCasillas,

Thanks for your reply, i fixed it by myself.^_^

0 Kudos
2,727 Views
shenjinhua
Contributor I

I have the same problem working on imx8mq, how do you solve it?

0 Kudos
2,728 Views
jing_xu1
Contributor II

Hi Jinhua

1.vim scripts/Makefile.lib,

   add 3 lines into dtc_cpp_flags  

dtc_cpp_flags  = -Wp,-MD,$(depfile).pre.tmp -nostdinc                    \

          -I$(srctree)/include \

          -I$(srctree)/arch/$(SRCARCH)/boot/dts \

          -I$(srctree)/arch/$(SRCARCH)/boot/dts/include \

          -I$(srctree)/drivers/of/unittest-data \

         $(addprefix -I,$(DTC_INCLUDE))                          \

               -undef -D__DTS__

2.ln -s ~/path/to/linux-imx/include ~/path/to/linux-imx/arch/arm64/boot/dts/include (ps:the path is must be absolute path)

...

 

0 Kudos