Firefly开源社区

打印 上一主题 下一主题

求助 rk3288 reload 编译内核出错

129

积分

0

威望

0

贡献

技术小白

积分
129

求助 rk3288 reload 编译内核出错

发表于 2016-5-20 17:31:02      浏览:7944 | 回复:2        打印      只看该作者   [复制链接] 楼主
本帖最后由 点缀0001 于 2016-5-20 17:32 编辑

所使用的虚拟机:ubuntu12-04.3 32bit
编译 android 5.1

在kernel/arch/arm/configs/目录下,只找到firefly-rk3288_defconfig,所以就用它配置了
使用sdk里面的编译工具链:
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc

make firefly-rk3288_defconfig
make -j8 firefly-rk3288-reload.img

但是编译出错了:
make -j8 firefly-rk3288-reload.img

  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/empty.o
  CC      scripts/mod/devicetable-offsets.s
  CHK     include/generated/utsrelease.h
/work/rk3288/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /work/rk3288/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/work/rk3288/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/work/rk3288/kernel/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/work/rk3288/kernel/include/uapi -Iinclude/generated/uapi -include /work/rk3288/kernel/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(empty) -DKBUILD_MODNAME=KBUILD_STR(empty) -c -o scripts/mod/empty.o scripts/mod/empty.c [Errno 8] Exec format error
/work/rk3288/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc -Wp,-MD,scripts/mod/.devicetable-offsets.s.d -nostdinc -isystem /work/rk3288/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/work/rk3288/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/work/rk3288/kernel/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/work/rk3288/kernel/include/uapi -Iinclude/generated/uapi -include /work/rk3288/kernel/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(devicetable_offsets) -DKBUILD_MODNAME=KBUILD_STR(devicetable_offsets) -fverbose-asm -S -o scripts/mod/devicetable-offsets.s scripts/mod/devicetable-offsets.c [Errno 8] Exec format error
make[1]: `include/generated/mach-types.h' is up to date.
make[2]: *** [scripts/mod/empty.o] Error 8
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 8
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: INTERNAL: Exiting with 9 jobserver tokens available; should be 8!

卡了几天了,没有解决问题

执行
/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc -v
prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file  // 出错了

请问这是什么回事了
回复

使用道具 举报

2918

积分

56

威望

46

贡献

高级创客

Rank: 6Rank: 6

积分
2918

优秀版主论坛元老

发表于 2016-5-20 17:46:11        只看该作者  推荐
环境装的问题,建议不用32bit,除非楼主清楚怎么处理各种各样异常的问题
已有 1评分威望 +10 收起 理由
点缀0001 + 10 很给力!

查看全部评分

回复

使用道具 举报

129

积分

0

威望

0

贡献

技术小白

积分
129
发表于 2016-5-20 20:16:44        只看该作者  板凳
zhansb 发表于 2016-5-20 17:46
环境装的问题,建议不用32bit,除非楼主清楚怎么处理各种各样异常的问题

感谢版主,问题已经解决了,我根据你说的,换成64位的系统,编译通过了,执行arm-eabi-gcc -v 也可以看到工具链的版本了,真心感谢!
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表