求助 rk3288 reload 编译内核出错
本帖最后由 点缀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 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 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 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 Exec format error
make: `include/generated/mach-types.h' is up to date.
make: *** Error 8
make: *** Waiting for unfinished jobs....
make: *** Error 8
make: *** Error 2
make: *** 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// 出错了
请问这是什么回事了
环境装的问题,建议不用32bit,除非楼主清楚怎么处理各种各样异常的问题 zhansb 发表于 2016-5-20 17:46
环境装的问题,建议不用32bit,除非楼主清楚怎么处理各种各样异常的问题
感谢版主,问题已经解决了,我根据你说的,换成64位的系统,编译通过了,执行arm-eabi-gcc -v 也可以看到工具链的版本了,真心感谢!
页:
[1]