2010-03-16 02:11:15     some problem use 'sf erase '(BF518F-EZBRD)

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-03-16 02:11:15     some problem use 'sf erase '(BF518F-EZBRD)

zhang zhihua (CHINA)

Message: 87227   

 

Hi,

 

    我现在把开发板上的SPI flash换成了M25P128,sector size is 0x40000,我现在是想把kernel和filesystem全部放到SPI flash,所以修改内核参数把它进行分区:

 

boot loader(spi):0x0 --0x40000

 

linux kernel(spi):0x40000 -- 0x20 0000

 

filesystem(spi):0x20 0000 0x100 0000

 

但是当我往里面写入kernel和filesystem的时候运行 sf erase 0x40000 0x1c0000 或者sf erase 0x200000 0x1c0000  时却发现把u-boot也擦掉了,每次写完kernel和filesystem之后u-boot都起不来...

TranslateQuoteReplyEditDelete

 

 

2010-03-16 04:05:26     Re: some problem use 'sf erase '(BF518F-EZBRD)

Yi Li (CHINA)

Message: 87243   

 

Can you post the details steps of "sf probe", "sf erase", "sf write" and the output message?

 

-Yi

QuoteReplyEditDelete

 

 

2010-03-18 20:35:52     Re: some problem use 'sf erase '(BF518F-EZBRD)

zhang zhihua (CHINA)

Message: 87432   

 

sf probe 2

 

tftp 0x1000000 vmImage

 

sf erase 0x40000 0x1c0000

 

sf write 0x1000000 0x40000 size

 

tftp 0x1000000 rootfs.jffs2

 

sf erase 0x200000 0xe00000

 

sf write 0x1000000 0x200000 size

 

但是写完之后就起不来了,u-boot坏掉了... ...

Attachments

    Outcomes