[U-Boot] [PATCH v2 8/8] FAT: Make it possible to read from any file position

Wolfgang Denk wd at denx.de
Sun Sep 2 17:28:09 CEST 2012


Dear Benoît Thébaudeau,

In message <1285759492.332736.1342790529256.JavaMail.root at advansee.com> you wrote:
> When storage devices contain files larger than the embedded RAM, it is usef> ul to
> be able to read these files by chunks, e.g. for a software update to the
> embedded NAND Flash from an external storage device (USB stick, SD card, et> c.).
>
> Hence, this patch makes it possible by adding a new FAT API to read files f> rom a
> given position.
>
> Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau at advansee.com>
> Cc: Wolfgang Denk <wd at denx.de>
> ---
> Changes for v2:
>  - Patch renumbering because of the new v2 1/8.
>  - Possible code style changes due to the new v2 1/8.
>  - Add missing vairable renaming to fat_write.c.
>
>  .../fs/fat/fat.c                                   |   88 ++++++++++++++++> ----
>  .../fs/fat/fat_write.c                             |   18 ++--
>  2 files changed, 80 insertions(+), 26 deletions(-)

I don't see any command line interface to actually use this code.

How would I put this to use?


Skipped for now.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Obviously, a major malfunction has occurred."
              -- Steve Nesbitt, voice of Mission Control, January 28,
                 1986, as the shuttle Challenger exploded within view
                 of the grandstands.


More information about the U-Boot mailing list