- 论坛徽章:
- 0
|
以下摘自
![]()
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 |
|