移植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文件中的P
移植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 即可成功