AnsweredAssumed Answered

a error when make the u-boot

Question asked by zhangzhihua on Nov 25, 2011

Hi,My board is bf518f-ezbrd,the SPI falsh is m25p128,now I want to save the env to the spi flash,the space of the env is 0x40000 -- 0x80000,so I modfiy the include/configs/bf51f-ezbrd.h like this:






#define CONFIG_ENV_OFFSET    0x40000

#define CONFIG_ENV_SIZE          0x2000

#define CONFIG_ENV_SECT_SIZE      0x40000


but when make it,it get a error like this:

bfin-uclinux-ldr -T bf518-0.0 -c u-boot.ldr u-boot --bmode SPI_MASTER --use-vmas --initcode arch/blackfin/cpu/initcode.o  -J --punchit $((0x30000)):$((0x2000)):env-ldr.o
Creating LDR u-boot.ldr ...
Adding DXE 'u-boot' ... [initcode 292] [ELF block: 182484 @ 0x01F80000] [ELF block: 8 @ 0xFFA00000] [ELF block: 257632 @ 0x01FAC8E0] bfin-uclinux-ldr: Punching holes beyond the end of an LDR is not supported
make[1]: *** [u-boot.ldr] Error 1
make[1]: Leaving directory `/home/u-boot-2010.06-2010R1-RC2'
make: *** [bf518f-ezbrd] Error 2


Why?If defined the CONFIG_ENV_OFFSET as 0x10000,it's Ok!