|
发表于 2021-9-6 16:32:20
16410 浏览 0 回复
编译报错 k65v1_64_bsp/cust.dtsi' file not found
编译错误log信息
- FAILED: /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/Image.gz-dtb
- /bin/bash -c "(make -j24 -C kernel-4.9 O=/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- CLANG_TRIPLE=aarch64-linux-gnu- CC=/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/prebuilts/clang/host/linux-x86/clang-4691093/bin/clang ROOTDIR=/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP ) && (if [ -e /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/compressed/.piggy.xzkern.cmd ]; then cp /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/compressed/.piggy.xzkern.cmd /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/compressed/.piggy.xzkern.cmd.bak; sed -e 's/\\\\\\\\\\\\\\\\/\\\\\\\\/g' < /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/compressed/.piggy.xzkern.cmd.bak > /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/compressed/.piggy.xzkern.cmd; rm -f /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/compressed/.piggy.xzkern.cmd.bak; fi )"
- make: Entering directory `/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9'
- Segmentation fault (core dumped)
- make[1]: Entering directory `/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ'
- arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
- CHK include/config/kernel.release
- GEN ./Makefile
- CHK include/generated/uapi/linux/version.h
- CHK include/generated/utsrelease.h
- for i in /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9/arch/arm64/boot/dts/mediatek/k65v1_64_bsp.dts; do \
- base_prj=`grep -m 1 '#include [<"].*\/cust\.dtsi[>"]' $i | sed 's/#include [<"]//g'\
- | sed 's/\/cust\.dtsi[>"]//g' | sed 's/\/\*//g' | sed 's/\*\///g' | sed 's/ //g'`\
- prj_path=./arch/arm64/boot/dts/$base_prj ;\
- dws_path=/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9/drivers/misc/mediatek/dws/mt6765/$base_prj.dws ;\
- if [ -f $dws_path ] ; then \
- mkdir -p $prj_path ;\
- /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9/tools/dct/DrvGen.py $dws_path $prj_path $prj_path cust_dtsi;\
- fi \
- done
- for i in /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9/arch/arm64/boot/dts/mediatek/k65v1_64_bsp.dts; do \
- base_prj=`grep -m 1 '#include [<"].*\/cust\.dtsi[>"]' $i | sed 's/#include [<"]//g'\
- | sed 's/\/cust\.dtsi[>"]//g' | sed 's/\/\*//g' | sed 's/\*\///g' | sed 's/ //g'`\
- prj_path=./arch/arm64/boot/dts/$base_prj ;\
- dws_path=/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9/drivers/misc/mediatek/dws/mt6765/$base_prj.dws ;\
- if [ -f $dws_path ] ; then \
- mkdir -p $prj_path ;\
- /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9/tools/dct/DrvGen.py $dws_path $prj_path $prj_path cust_dtsi;\
- fi \
- done
- rm -f dtboimg.cfg.tmp
- echo /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ/arch/arm64/boot/dts/mediatek/k65v1_64_bsp.dtb >>dtboimg.cfg.tmp; echo " id=0" >>dtboimg.cfg.tmp;
- if ! cmp -s dtboimg.cfg.tmp dtboimg.cfg; then \
- mv dtboimg.cfg.tmp dtboimg.cfg; \
- else \
- rm dtboimg.cfg.tmp; \
- fi
- Using /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9 as source for kernel
- CHK scripts/mod/devicetable-offsets.h
- DTC arch/arm64/boot/dts/mediatek/k65v1_64_bsp.dtb
- /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9/arch/arm64/boot/dts/mediatek/k65v1_64_bsp.dts:897:10: fatal error: 'k65v1_64_bsp/cust.dtsi' file not found
复制代码
导致错误的原因:
客户在windows下修改了文件 kernel-4.9/arch/arm64/boot/dts/mediatek/k65v1_64_bsp.dts
使用Beyond Compare 3 对比工具对比发现该文件的格式被保存为ansi pc 格式,导致编译时工具无法解析
将ansi pc 格式 改为 ansi UNUX 后能够正常编译
|
|
|
|
|
|
|
登录或注册
|