|
求助 rk3288 reload 编译内核出错
发表于 2016-5-20 17:31:02
浏览:7959
|
回复: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 // 出错了
请问这是什么回事了
|
|