linux2.6.21 make zImage时出现的错误
来源:互联网 发布:php电子商务源码 编辑:程序博客网 时间:2024/05/18 02:35
1.invalid option `abi=aapcs-linux'选项错误
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c2410
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CC arch/arm/kernel/asm-offsets.s
cc1: error: invalid option `abi=aapcs-linux'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
解决的方法
You're building an EABI kernel with an OABI compiler. You can eitherturn off the EABI option in your config file (Kernel Features->UseEABI),or, you can use an EABI toolchain such as the ARM/GNU Linux onefrom<http://www.codesourcery.com/gnu_toolchains/arm/download.html>.Irecommend the latter, because then you can run Arjan's new images.
上述的关掉EABI选项可以通过测试
2.`rtc_lock'未定义错误(未完全解决)
drivers/built-in.o(.text+0x281e4):drivers/char/nvram.c:350: more undefined references to `rtc_lock' follow
查找drivers/char/nvram.c有关的rtc_lock定义,发现2.6.21与以往的kernel不同,于是在包含文件中查找,在include/linux/mc146818rtc.h中发现了rtc_lock的定义,但是有一个__KERNEL__的条件编译选项,去掉这个条件编译选项,再makezImage,但是问题好像依然存在,继续在drivers/char/nvram.c中增加这个定义spinlock_t rtc_lock;再编译,发现编译通过。
3.make zImage和make xipImage
Kernel configured for XIP (CONFIG_XIP_KERNEL=y)
Only the xipImage target is available in this case
make[1]: *** [arch/arm/boot/zImage] Error 1
make: *** [zImage] Error 2
好象是make menuconfig的时候Boot options--->Kernel Execte-In-Place fromROM选项问题,去掉这个选项编译通过(如果是make xopImage时則需要将这个选项选上),最终成功编译了make zImage。
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c2410
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CC arch/arm/kernel/asm-offsets.s
cc1: error: invalid option `abi=aapcs-linux'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
解决的方法
You're building an EABI kernel with an OABI compiler. You can eitherturn off the EABI option in your config file (Kernel Features->UseEABI),or, you can use an EABI toolchain such as the ARM/GNU Linux onefrom<http://www.codesourcery.com/gnu_toolchains/arm/download.html>.Irecommend the latter, because then you can run Arjan's new images.
上述的关掉EABI选项可以通过测试
2.`rtc_lock'未定义错误(未完全解决)
drivers/built-in.o(.text+0x281e4):drivers/char/nvram.c:350: more undefined references to `rtc_lock' follow
查找drivers/char/nvram.c有关的rtc_lock定义,发现2.6.21与以往的kernel不同,于是在包含文件中查找,在include/linux/mc146818rtc.h中发现了rtc_lock的定义,但是有一个__KERNEL__的条件编译选项,去掉这个条件编译选项,再makezImage,但是问题好像依然存在,继续在drivers/char/nvram.c中增加这个定义spinlock_t rtc_lock;再编译,发现编译通过。
3.make zImage和make xipImage
Kernel configured for XIP (CONFIG_XIP_KERNEL=y)
Only the xipImage target is available in this case
make[1]: *** [arch/arm/boot/zImage] Error 1
make: *** [zImage] Error 2
好象是make menuconfig的时候Boot options--->Kernel Execte-In-Place fromROM选项问题,去掉这个选项编译通过(如果是make xopImage时則需要将这个选项选上),最终成功编译了make zImage。
- linux2.6.21 make zImage时出现的错误(1)
- linux2.6.21 make zImage时出现的错误
- 解决make zImage时出现的Clock skew detected问题
- make zImage的流程
- make 出现的错误
- make时出现错误
- make &make install 时出现错误和警告的修正
- Linux2.6.0内核下make menuconfig时出现的问题及解决方法
- make uImage 和make zImage的区别
- make uImage 和make zImage的区别
- Openwrt make出现的错误
- make menuconfig出现的错误
- make zImage
- 工程make时出现"时钟错误的问题"的解决方案
- make install PHP时出现的错误以及解决方法
- QT make时出现的错误 NO SUCH FILE
- make Image uImage与zImage的区别
- make Image uImage与zImage的区别
- PostgreSQL 数据库性能提升的几个方面
- 李开复给中国学生的第五封信:致学生的父母
- 最浪漫的一句话经典
- 李开复给中国学生的第四封信:大学四年应该这样过
- Ghost 一键还原
- linux2.6.21 make zImage时出现的错误
- 实战LSMW(05)
- 李开复给学生第三封信:要成功自信与快乐
- 李开复给中国学生的第二封信::从优秀到卓越
- 李开复给中国学生的第一封信:从诚信谈起
- 2010年计算机基础综合 考试大纲
- IK Analyzer 3.0 中文分词器
- 第三章:面向对象编程上(封装)
- 第四章:面向对象(继承和多态)