天嵌 ARM开发社区

 找回密码
 注册
查看: 3150|回复: 0

配置里选了“Use the ARM EABI to compile the kernel”,内核编译失败

[复制链接]
有理想的咸鱼 发表于 2013-7-5 11:49:00 | 显示全部楼层 |阅读模式
按照TQ的手册,该做的都做了,linux源码目录里的makefile里作了如下设置:
ARCH                = arm
CROSS_COMPILE        = arm-linux-
然后内核配置里有如下选项:
Kernel Features --->
[] Use the ARM EABI to compile the kernel
[] Allow old ABI binaries to run with this kernel (EXPERIMENTA)
一开始我没有选择这个,然后编译通过了,产生的内核搭配nand flash的yaffs文件系统,可以引导建立成功。

然后我想在norflash里面建jffs2文件系统,按以前的方法编译,即内核和busybox的makefile都如下设置:
ARCH                = arm
CROSS_COMPILE        = arm-linux-
但引导最后串口打印出现:
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing init memory: 204K
Kernel panic - not syncing: Attempted to kill init!
然后后面还有一堆看不懂的打印。

在网上看到某个文章说要在内核配置里选择支持EABI选项,于是就加了:
Kernel Features --->
[*] Use the ARM EABI to compile the kernel
[*] Allow old ABI binaries to run with this kernel (EXPERIMENTA)
但加了后,make uImage后反而编译不成功了,出现错误:
arm-linux-ld: error:arch/arm/boot/compressed/piggy.o:Unknown CPU architecture
arm-linux-ld: arch/arm/boot/compressed/vmlinux:Unknown mandatory EABI object attribute 42
arm-linux-ld: failed to merge target specific data of file arch/arm/boot/compressed/piggy.o
arm-linux-ld: arch/arm/boot/compressed/vmlinux:Unknown mandatory EABI object attribute 42
arm-linux-ld: failed to merge target specific data of file arch/arm/boot/compressed/misc.o
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [uImage] Error 2

怎么回事?
我看移植step by step手册上是说4.3.3的编译器是支持EABI的呀,怎么加了EABI选项后不能编译通过呢???
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-25 16:59 , Processed in 2.042108 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表