登录|立即注册
论坛 > 内核/u-boot/驱动开发
发帖|
看15987|回5|收藏
我爱下载 看全部
2016-12-11 08:10:18
我的系统是Debian 8.2 编译器为源码中自带的。
编译Orangepi-h2-linux的uboot顺利通过了,但是编译内核时却失败了提示的错误信息是
  CC      arch/arm/mach-sunxi/power/brom/resume_head.o
arch/arm/mach-sunxi/power/brom/gen_check_code: 1: arch/arm/mach-sunxi/power/brom/gen_check_code: Syntax error: end of file unexpected (expecting ")")
/root/mywork/orangepi_h2_linux-master/OrangePi-Kernel/linux-3.4/arch/arm/mach-sunxi/power/brom/Makefile:26: recipe for target 'arch/arm/mach-sunxi/power/brom/resumes.code' failed
make[3]: *** [arch/arm/mach-sunxi/power/brom/resumes.code] Error 2
/root/mywork/orangepi_h2_linux-master/OrangePi-Kernel/linux-3.4/arch/arm/mach-sunxi/power/Makefile:23: recipe for target 'arch/arm/mach-sunxi/power/brom/resumes.code' failed
make[2]: *** [arch/arm/mach-sunxi/power/brom/resumes.code] Error 2
scripts/Makefile.build:443: recipe for target 'arch/arm/mach-sunxi/power' failed
make[1]: *** [arch/arm/mach-sunxi/power] Error 2
Makefile:945: recipe for target 'arch/arm/mach-sunxi' failed
make: *** [arch/arm/mach-sunxi] Error 2

请大神帮我分析一下原因,谢谢

cazureopi 看全部
2016-12-11 11:00:44
是这个arch/arm/mach-sunxi/power/brom/gen_check_code编译不过去,
第一种办法建议你用64位的主机编译,但要安装32位的c库不然arm-linux-gnueabi-gcc会运行不了出现更多错误
cazureopi 看全部
2016-12-11 11:07:03
还有一种方法就是给内核源码打补丁,
附件: 您需要登录才可以下载或查看附件。没有账号?立即注册
我爱下载 看全部
2016-12-11 12:46:44

引用:

cazureopi 发表于 2016-12-11 11:07
还有一种方法就是给内核源码打补丁,

谢谢回复,测试一下
我爱下载 看全部
2016-12-11 12:49:59

引用:

cazureopi 发表于 2016-12-11 11:00
是这个arch/arm/mach-sunxi/power/brom/gen_check_code编译不过去,
第一种办法建议你用64位的主机编译,但 ...

谢谢回复,找台机器测试一下
12下一页

orange pi.

Powered by Discuz! X3.4

首页|简易版|触屏版|电脑版