搜索

244

主题

289

帖子

2158

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2158
发表于 2021-9-6 16:32:20 16409 浏览 0 回复

编译报错 k65v1_64_bsp/cust.dtsi' file not found

编译错误log信息
  1. 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
  2. /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 )"
  3. make: Entering directory `/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9'
  4. Segmentation fault (core dumped)
  5. make[1]: Entering directory `/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/out/target/product/k65v1_64_bsp/obj/KERNEL_OBJ'
  6. arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
  7.   CHK     include/config/kernel.release
  8.   GEN     ./Makefile
  9.   CHK     include/generated/uapi/linux/version.h
  10.   CHK     include/generated/utsrelease.h
  11. 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 \
  12.                 base_prj=`grep -m 1 '#include [<"].*\/cust\.dtsi[>"]' $i | sed 's/#include [<"]//g'\
  13.                        | sed 's/\/cust\.dtsi[>"]//g' | sed 's/\/\*//g' | sed 's/\*\///g' | sed 's/ //g'`\
  14.                 prj_path=./arch/arm64/boot/dts/$base_prj ;\
  15.                 dws_path=/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9/drivers/misc/mediatek/dws/mt6765/$base_prj.dws ;\
  16.                 if [ -f $dws_path ] ; then \
  17.                         mkdir -p $prj_path ;\
  18.                          /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;\
  19.                 fi \
  20.         done
  21. 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 \
  22.                 base_prj=`grep -m 1 '#include [<"].*\/cust\.dtsi[>"]' $i | sed 's/#include [<"]//g'\
  23.                        | sed 's/\/cust\.dtsi[>"]//g' | sed 's/\/\*//g' | sed 's/\*\///g' | sed 's/ //g'`\
  24.                 prj_path=./arch/arm64/boot/dts/$base_prj ;\
  25.                 dws_path=/home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9/drivers/misc/mediatek/dws/mt6765/$base_prj.dws ;\
  26.                 if [ -f $dws_path ] ; then \
  27.                         mkdir -p $prj_path ;\
  28.                          /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;\
  29.                 fi \
  30.         done
  31. rm -f dtboimg.cfg.tmp
  32. 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;
  33. if ! cmp -s dtboimg.cfg.tmp dtboimg.cfg; then \
  34.                 mv dtboimg.cfg.tmp dtboimg.cfg; \
  35.         else \
  36.                 rm dtboimg.cfg.tmp; \
  37.         fi
  38.   Using /home/software13/C322-new/Mt6765_LCD5in_TP/Mt6765_LCD5in_TP/kernel-4.9 as source for kernel
  39.   CHK     scripts/mod/devicetable-offsets.h
  40.   DTC     arch/arm64/boot/dts/mediatek/k65v1_64_bsp.dtb
  41. /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 后能够正常编译
回复

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


登录或注册
快速回复 返回顶部 返回列表