[U-Boot] [PATCH v2] FAT: Add FAT write feature

Wolfgang Denk wd at denx.de
Wed Oct 26 21:41:51 CEST 2011


Dear Donggeun Kim,

In message <1319526928-7927-1-git-send-email-dg77.kim at samsung.com> you wrote:
> In some cases, saving data in RAM as a file with FAT format is required.
> This patch allows the file to be written in FAT formatted partition.
> 
> The usage is similar with reading a file.
> First, fat_register_device function is called before file_fat_write function
> in order to set target partition.
> Then, file_fat_write function is invoked with desired file name,
> start ram address for writing data, and file size.
> 
> Signed-off-by: Donggeun Kim <dg77.kim at samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> ---
> Changes for v2:
>    - update README file
> 
>  README             |    5 +
>  fs/fat/Makefile    |    1 +
>  fs/fat/fat.c       |    2 +
>  fs/fat/fat_write.c | 1091 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/fat.h      |    3 +
>  5 files changed, 1102 insertions(+), 0 deletions(-)
>  create mode 100644 fs/fat/fat_write.c

Applied, thanks.

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
Celestial navigation is based on the premise that the  Earth  is  the
center  of  the  universe.  The  premise is wrong, but the navigation
works. An incorrect model can be a useful tool.   - Kelvin Throop III


More information about the U-Boot mailing list