在编译2.6.21.1的内核时出现问题
CHK include/linux/version.h
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-omap
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 either
turn off the EABI option in your config file (Kernel Features->Use
EABI),
or, you can use an EABI toolchain such as the ARM/GNU Linux one from
<http://www.codesourcery.com/gnu_toolchains/arm/download.html>.
I recommend the latter, because then you can run Arjan's new images.
这是大部分帖子都会给的答案,于是我从上述网站下载了源代码,具体的安装过程如下:
1 下载arm-2009q1-203-arm-none-linux-gnueabi.bin
2
执行./arm-200很有可能需要修改该文件的权限,最简单是chomod 777 文件名。
3 修改环境变量 gedit~/.bashrc 在文件最后面添加export
PATH="/opt/arm-2009q1/bin:$PATH"
4 修改以后执行 source /.bashrc 使得刚才的设置生效
5
测试安装结果 输入 arm-none-linux-gnueabi-gcc6 提示NO input file 成功……
参考帖子如下:
http://blog.chinaunix.net/space.php?uid=20919306&do=blog&cuid=1858623
http://pxi.eefocus.com/PSOCPSOC/blog/11-08/228845_b0bc2.html
文章评论(0条评论)
登录后参与讨论