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}
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}