[U-Boot] [PATCH v2 2/2] spi: Add SPI NOR protection mechanism

Fabio Estevam festevam at gmail.com
Tue Sep 29 15:58:32 CEST 2015


On Tue, Sep 29, 2015 at 10:54 AM, Jagan Teki <jteki at openedev.com> wrote:

> What if sf erase 0x3f0000 0x20000 - it should skip first 0x10000 from
> 0x3f0000 and then erase next 0x10000 from (0x3f0000+0x10000) did you
> verify this?

On my case (M25P32) the 0x3f0000 is the last sector (sector size is
0x10000), so we cannot pass 0x20000.

Doing so we correctly get the error below:

=> sf erase 0x3f0000 0x20000
ERROR: attempting erase past flash size (0x400000)

Regards,

Fabio Estevam


More information about the U-Boot mailing list