[U-Boot] [PATCH] cmd_sf: add handler for +len arg for all commands

Marek Vasut marex at denx.de
Sun Oct 5 21:12:14 CEST 2014


On Sunday, October 05, 2014 at 08:40:26 PM, Maxime Hadjinlian wrote:
> Hi Thomas, all,
> 
> On Sun, Oct 5, 2014 at 7:43 PM,  <thomas.langer at lantiq.com> wrote:
> > Hello Maxime,
> > 
> > can you explain the usecase?
> > I think, only the erase is executed per sector, all other commands are
> > working fine with a byte oriented length.
> 
> I need to write a file that is downloaded through TFTP. So I can get
> the filesize through the variable of the same name, but if it's not
> rounded, the write command may fail.
> I can save the filesize in another variable, but at next boot, when I
> need to read this file, I can't read the file, since I only know it's
> size in byte, I need to be able to round it again.

I wonder, do all SPI flashes need to do sector-aligned writes ?

Best regards,
Marek Vasut


More information about the U-Boot mailing list