]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: fatwrite: use map_sysmem before use file_fat_write
authorWu, Josh <Josh.wu@atmel.com>
Wed, 4 Jun 2014 03:01:24 +0000 (11:01 +0800)
committerTom Rini <trini@ti.com>
Thu, 5 Jun 2014 21:01:59 +0000 (17:01 -0400)
commit31e997f9212be04e7bbe9c05785d72c4931dcfd4
tree57ef21bbed0214ef73d6c37d2938e1573bc3088d
parent97cb4e5450074ec82adeed98af68aede4a30a590
fs: fatwrite: use map_sysmem before use file_fat_write

When the map_sysmem, then the fatwrite command can support sandbox.
Following command will show how to use it:
  => sb bind 0 sd.img
  => fatls host 0
  => fatwrite host 0 $memaddr filename $filesize

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/cmd_fat.c