2010-08-15 20:51:08 Why I cant save the Environment variables?
zhang zhihua (CHINA)
Message: 92429
大家好,
我开发板是BF518-EZBRD,当我把SPI flash 由m25p16换成m25p128后发现在u-boot里修改环境变量后我无法保存,当时是修改过来了,但是reset之后又回到了原来的环境变量?
而我首先用VDSP++将u-boot烧写到SPI flash后,所在分区为0x0--0x40000,再使用如下方法擦除SPI flash 其它分区后u-boot就无法启动了:
>/ sf probe 2
>/sf erase 0x40000 0x1c0000
这是为什么呢?因为我的u-boot放在0x0-0x40000,为什么我擦除0x40000-0x200000会将u-boot也擦掉了呢?
TranslateQuoteReplyEditDelete
2010-08-15 21:37:33 Re: Why I cant save the Environment variables?
Aaron Wu (CHINA)
Message: 92431
If you describe your problem in English, we may have more people to help you
QuoteReplyEditDelete
2010-08-15 21:45:27 Re: Why I cant save the Environment variables?
Mike Frysinger (UNITED STATES)
Message: 92434
you manually removed the SPI flash from the bf518-ezbrd and then soldered in your own part ?
the board config is hardcoded to the SPI flashes that are on the boards. if you changed it, then you'll have to review the board config to make sure the offsets/sizes match the new flash. if they dont, then it isnt going to work.
QuoteReplyEditDelete
2010-08-15 21:50:34 Re: Why I cant save the Environment variables?
Aaron Wu (CHINA)
Message: 92436
Looks like you have problem writing to the flash, can you detect the right flash information after replacing it with the new one? Some information for detect, read and write test may be helpful:
docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:serial-flash
QuoteReplyEditDelete
2010-08-15 21:51:59 Re: Why I cant save the Environment variables?
Sonic Zhang (CHINA)
Message: 92437
If you change the SPI chip model, you should also update ENV_OFFSET, ENV_SIZE and ENV_SECT_SIZE accordingly in include/configs/bf518f-ezbrd.h before you build the uboot image.