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 ?
Solved! Go to Solution.
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)
...
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!
-------------------------------------------------------------------------------
Hi CarlosCasillas,
Thanks for your reply, i fixed it by myself.^_^
I have the same problem working on imx8mq, how do you solve it?
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)
...