您尚未登录。

楼主 #1 2020-05-03 19:48:51

yugezaizheli
会员
注册时间: 2020-05-03
已发帖子: 10
积分: 10

【求助】香橙派ZeroPlus2,全志H5,内核驱动编译出错

编译官方给的Linux 源码没有问题,写完内核驱动(驱动没问题)并修改了Makefile和Kconfig,然后用make menuconfig加载驱动,最后调用官方给的编译脚本命令 ./build.sh,编译过程中出现错误。帮忙看看怎么解决,谢谢。
root@ubuntu:/home/orangepi/Android_5.1/Android/lichee# ./build.sh
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun50iw2p1
INFO: platform: android
INFO: business:
INFO: kernel: linux-3.10
INFO: arch: arm64
INFO: board:
INFO: output: out/sun50iw2p1/android/
INFO: ----------------------------------------
INFO: build buildroot ...
external toolchain has been installed
external toolchain_32 has been installed
INFO: build buildroot OK.
INFO: build kernel ...
INFO: prepare toolchain ...
use last time build config
Building kernel
/home/orangepi/Android_5.1/Android/lichee/linux-3.10/output/lib/modules/3.10.65
Copy rootfs.cpio.gz for arm64
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/compile.h
  CC      arch/arm64/kernel/debug-monitors.o
arch/arm64/kernel/debug-monitors.c:323:5: error: redefinition of 'aarch32_break_handler'
int aarch32_break_handler(struct pt_regs *regs)
     ^
In file included from arch/arm64/kernel/debug-monitors.c:29:0:
/home/orangepi/Android_5.1/Android/lichee/linux-3.10/arch/arm64/include/asm/debug-monitors.h:149:12: note: previous definition of 'aarch32_break_handler' was here
static int aarch32_break_handler(struct pt_regs *regs)
            ^
/home/orangepi/Android_5.1/Android/lichee/linux-3.10/arch/arm64/include/asm/debug-monitors.h:149:12: warning: 'aarch32_break_handler' defined but not used [-Wunused-function]
make[1]: *** [arch/arm64/kernel/debug-monitors.o] 错误 1
make: *** [arch/arm64/kernel] 错误 2
make: *** 正在等待未完成的任务....
  GZIP    kernel/config_data.gz
  CHK     kernel/config_data.h
ERROR: build kernel Failed

离线

#2 2020-05-03 20:05:49

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,387
积分: 1902
个人网站

Re: 【求助】香橙派ZeroPlus2,全志H5,内核驱动编译出错

aarch32_break_handler 重复定义





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn