xue6282009-05-10 21:28
你好,我编译u-boot1.20遇到了和你一样的问题,看到你已经解决了,能跟我说一下是怎么解决的吗?谢谢了! 我完全按照你的方法修改uboot1.2.0,gpio和内存地址分配参考开发商提供的bootloader 编译时保错,主要原因是在修改中删除了很多define,很多东西都没有定义了 flash.c: In function 'flash_init': flash.c:64: error: 'CFG_MAX_FLASH_BANKS' undeclared (first use in this function) flash.c:64: error: (Each undeclared identifier is reported only once flash.c:64: error: for each function it appears in.) flash.c:67: error: 'flash_info' undeclared (first use in this function) flash.c:75:2: error: #error "Unknown flash configured" flash.c:77: error: 'PHYS_FLASH_SIZE' undeclared (first use in this function) flash.c:78: error: 'CFG_MAX_FLASH_SECT' undeclared (first use in this function) flash.c:81: error: 'PHYS_FLASH_1' undeclared (first use in this function) flash.c:113: warning: implicit declaration of function 'flash_protect' flash.c:113: error: 'FLAG_PROTECT_SET' undeclared (first use in this function) flash.c:114: error: 'CFG_FLASH_BASE' undeclared (first use in this function) flash.c:119: error: 'CFG_ENV_ADDR' undeclared (first use in this function) flash.c: At top level: flash.c:127: error: expected ')' before '*' token flash.c:172: error: expected ')' before '*' token flash.c:293: error: expected ')' before '*' token flash.c:371: error: expected ')' before '*' token 你有碰到过这些问题吗?