U-boot移植出现的错误
来源:互联网 发布:伦敦金2016年历史数据 编辑:程序博客网 时间:2024/06/05 22:29
鄙人,花了三天用来移植uboot到FL2440更换过各种版本的uboot和交叉编译器最终在arm-linux-gcc 4.4.3版本和uboot-1.3.4版本的情况先移植成功。
先面介绍一下我遇到的各种错误及解决方案:
错误一:
main.c:51:error:inline function 'show_boot_progress' cannot bedecleared weak
make[1]:***[main.0]错误1
make[1]:正在离开目录'/home/sns/linux2.6.32/icetek-v3/u-boot-orig/common'
make:***[common/libcommon.a]错误2
解决方法:去掉show_boot_progress 前面的inline即可
错误二:
board.c:127: error: inline function 'coloured_LED_init' cannotbe declared weak
board.c:129: error: inline function 'red_LED_on' cannot be declaredweak
board.c:131: error: inline function 'red_LED_off' cannot bedeclared weak
board.c:133: error: inline function 'green_LED_on' cannot bedeclared weak
board.c:135: error: inline function 'green_LED_off' cannot bedeclared weak
board.c:137: error: inline function 'yellow_LED_on' cannot bedeclared weak
board.c:139: error: inline function 'yellow_LED_off' cannot bedeclared weak
board.c:141: error: inline function 'blue_LED_on' cannot bedeclared weak
board.c:143: error: inline function 'blue_LED_off' cannot bedeclared weak
make[1]: *** [board.o] 错误 1
make[1]: Leaving directory`/root/workspace/u-boot-2009.08/lib_arm'
make: *** [lib_arm/libarm.a] 错误 2
解决方法:
打开lib_arm/board.c,定位到127行开始,将其注释掉:
void inline __coloured_LED_init (void){}
//void inline coloured_LED_init (void) __attribute__((weak,alias("__coloured_LED_init")));
这里注释掉了'coloured_LED_init' 的部分,自己做时对照注释掉后面几个带__attribute__的部分即可
错误三:cpu/arm920t/start.o: In function`start_code':
/root/workspace/u-boot-2009.08/cpu/arm920t/start.S:117: undefinedreference to `coloured_LED_init'
/root/workspace/u-boot-2009.08/cpu/arm920t/start.S:118: undefinedreference to `red_LED_on'
make: *** [u-boot] 错误 1
解决方法:
打开cpu/arm920t/start.S,搜索“coloured_LED_init”定位到117行,找到如下代码:
bl coloured_LED_init
bl red_LED_on
这两行是AT91RM9200DK开发板的LED初始化,注释掉即可。
五:warning: target CPU does not support interworking
解决:一看就知道是跟CPU有关,到u-boot根目录下执行
$sudo gedit "cpu/arm920t/config.mk"
把 PLATFORM_CPPFLAGS += -march=armv4 改成 PLATFORM_CPPFLAGS += -march=armv4t
六:uboot软浮点错误
问题:
opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0 -lgcc \
-Map u-boot.map -o u-boot
arm-linux-ld: ERROR: /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0/libgcc.a(_udivdi3.o) uses hardware FP, whereas u-boot uses software FP
arm-linux-ld: failed to merge target specific data of file /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0/libgcc.a(_udivdi3.o)
arm-linux-ld: ERROR: /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0/libgcc.a(_clz.o) uses hardware FP, whereas u-boot uses software FP
arm-linux-ld: failed to merge target specific data of file /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-linux/lib/gcc/arm-linux/4.1.0/libgcc.a(_clz.o)
make: *** [u-boot] 错误 1
不过用2.95版本的时候还要修改一个链接。
- U-boot移植出现的错误
- u-boot移植出现的问题
- u-boot移植中出现的问题
- 移植uip-0.9到u-boot中出现undefined reference to `strstr'错误的解决过程
- 移植uip-0.9到u-boot中出现undefined reference to `flash_info'错误的分析过程
- u-boot编译出现的错误
- U-Boot的移植
- U-Boot 的移植
- u-boot的移植
- u-boot-1.1.4移植的几个错误解决方法(转载)
- u-boot移植时出现inline function 'coloured_LED_init' cannot be declared weak及相关错误时的解决办法!
- u-boot移植时出现inline function 'coloured_LED_init' cannot be declared weak及相关错误时的解决办法!
- u-boot移植时出现inline function 'coloured_LED_init' cannot be declared weak及相关错误时的解决办法!
- u-boot移植时出现inline function 'coloured_LED_init' cannot be declared weak及相关错误时的解决办法
- U-BOOT的移植-Linux
- u-boot-2010.03的移植
- u-boot-2010.03的移植
- OK6410的u-boot移植
- 让MYSQL记录所有的SQL语句
- 第4周作业-数学学习工具(网络131 梁文俊)
- 深入分析C、C++值传递、
- 图像处理软件开发记录(六) 图像特效(浮雕、怀旧)
- java图片压缩
- U-boot移植出现的错误
- 求两个时间段的差在设定的范围内
- hadoop 伪分布式环境配置
- Android图形用户界面开发之ViewTree和DecorView详细介绍
- Unity 用户手册用户攻略Unity 根底学习界面工程浏览器 (Project Browser)
- 错误代码: An instance 0xc346000 of class UITableView was deallocated while key value observers were stil
- Hadoop集群系列5:Hadoop安装配置(2)
- 剪贴板操作
- 第三周-2