无法从Image创建zImage

时间:2013-12-29 09:46:33

标签: android image compilation kernel

我正在尝试为我的xperia zl(odin)编译cm11内核。我能够编译Image(带有一些警告),但在Image准备就绪之后我得到了:

Kernel: arch/arm/boot/Image is ready
LZO arch/arm/boot/compressed/piggy.lzo
AS arch/arm/boot/compressed/piggy.lzo.o
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/decompress.o
CC arch/arm/boot/compressed/string.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/ashldi3.o
LD arch/arm/boot/compressed/vmlinux

/home/allspark/android/toolchain/android-toolchain-eabi/bin/arm-eabi-ld: error:       arch/arm/boot/compressed/piggy.lzo.o: unknown CPU architecture
/home/allspark/android/toolchain/android-toolchain-eabi/bin/arm-eabi-ld: error: arch/arm/boot/compressed/lib1funcs.o: unknown CPU architecture
/home/allspark/android/toolchain/android-toolchain-eabi/bin/arm-eabi-ld: error: arch/arm/boot/compressed/ashldi3.o: unknown CPU architecture
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2

感谢任何帮助

编辑:我需要一个zImage才能创建boot.img。 PS:我是Linux OS新手(我使用的是Linux Mint)

1 个答案:

答案 0 :(得分:0)

我在尝试构建Android映像时看到了这个确切的错误,它与使用的gcc版本有关。我有一个arm-linux-androideabi-4.8版本,但是回到版本4.6修复了这个特定的错误。看看你是否可以找到你应该构建的版本,并确保在$ PATH / toolchain中正确设置。