* Carl-Daniel Hailfinger <[email protected]> [110718 23:44]:
> Am 18.07.2011 19:07 schrieb Stefan Reinauer:
> > * Wagner, Helge (GE Intelligent Platforms) <[email protected]> [110527 
> > 15:46]:
> >   
> >> To be sure that the spi_block_erase_20 works for both the MX25L6405 and the
> >> MX25L6445E, we could change the block erase size from 64K to 4K. This 
> >> should
> >> work even for the MX25L6405, but with the side effect of the erase taking
> >> longer than needed.
> >>
> >>  
> >>
> >> Any comments?
> >>     
> >  
> > works great for me! 
> >  
> >   
> >> Please find my patches included.
> >>
> >> Signed-off-by: Helge Wagner <[email protected]>
> >>     
> > Acked-by: Stefan Reinauer <[email protected]>
> >   
> 
> Sorry, but AFAICS this will cause chip corruption. To be exact,
> specifying a too small eraseblock size (4 kB instead of 64 kB) means
> that flashrom will walk the device in 4 kB blocks, erase each block and
> write to it. Now if the actual erase block size is bigger than the
> specified block size, you'll get this:

Yes, I agree that changing the block erase size is risky. Good thing the
patch does not change it, so it should be save to apply, plus it solves
the problem.

Stefan


_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to