u-boot移植

移植u-boot1.1.6使用4.3.2的编译器遇到的问题:

1.make前忘记make 100ask24x0_config
2.jz2440编译u-boot1.1.6 undefinded refence to 'raise'
 解决办法:
 (1)修改u-boot根目录下的Makefile文件中的PLATFORM_LIBS
 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
 改为:

PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lc -L /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/usr/lib
 (2)修改 cpu /arm920t/config.mk 文件
 将:
 PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)  
 PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
 修改成:
 PLATFORM_CPPFLAGS +=$(call cc-option,)
 PLATFORM_RELFLAGS +=$(call cc-option,$(call cc-option,))

3.之后出现问题:
Source object lib_generic/libgeneric.a(crc16.o) has EABI version 0, but target u-boot has EABI version 5
解决办法:
make distclean
make 100ask24x0_config
make 即可成功

posted @ 2016-03-03 14:51  程诚  阅读(266)  评论(0编辑  收藏  举报