免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1380 | 回复: 0
打印 上一主题 下一主题

u-boot移植过程中abi=apcs-gnu问题的解决 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-03 22:40 |只看该作者 |倒序浏览

               
                以下摘自

http://sourceforge.net/mailarchive/message.php?msg

> I'm using the GCC 3.2 toolchain for building U-Boot (current head of git) for an ARM
target.
> I get the following error:
>    cc1: invalid option 'abi=apcs-gnu'
>
> This option (correct me if I'm wrong) was introduced with a recent
> patch by Peter Pearse.  Digging a bit in gcc.gnu.org it appears that
> this option comes only with GCC 4.0!

That's true but the cc-option checker should use -mapcs-32 if it is
available, otherwise it will fall back to -mabi=apcs-gnu. It looks
like your compiler doesn't support the first option either. In this
case, I'm not sure it worked before Peter's patch. What CPU is it?

You could try the following in your config.mk but you should
investigate why -mapcs-32 doesn't work:

PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,$(call cc-option,-mabi=apcs-gnu,))
我使用的GCC为 arm-linux-gcc-3.4.1.tar.bz2
有效!
这是BOOTCOMMANDLINE, 主要需要定义的参数有console, root, mem, init.程序中需要这些参数来配置U-BOOT, 主要的几个参数就按照提供的格式配,这个主要是U-BOOT COMMAND LINE解析来控制的。
root
的意思就是使用什么驱动设备,主要是提供是以什么为根文件系统,设备的主设备号,从设备号参见内核中Document/devices文档。上面是使用的
RAMDISK作为根文件系统的。console就是配置打印串口的配置,波特率等。mem配置内存大小,开始地址,init就是init进程的指定。看
看U-BOOT的代码,就会更清楚的。
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/21164/showart_150584.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP