Update Readme license link
[mfgtools.git] / uuu / fat_write.lst
blob5949afffb72159860d4e5057508e874d20e97b30
1 uuu_version 1.1.4
3 # @_image                | image, which cp to fat partition
4 # @_device               | storage device, mmc\sata
5 # @_partition            | fat partition number, like 1:1
6 # @_filename [_image]    | file name in target fat partition, only support rootdir now
8 FB: ucmd setenv fastboot_buffer ${loadaddr}
9 FB: download -f _image
10 FB: ucmd if test ! -n "$fastboot_bytes"; then setenv fastboot_bytes $filesize; else true; fi
11 FB[-t 20000]: ucmd fatwrite _device _partition ${fastboot_buffer} _filename  ${fastboot_bytes}
12 FB: done