diff options
author | Paul Burton <paul.burton@imgtec.com> | 2013-09-04 15:16:59 +0100 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2013-10-09 12:52:22 -0500 |
commit | cc734f5ab26134e5e8d57c34edc257c89ac5b1d2 (patch) | |
tree | b93b84751b3164934db82f76c5d33df366277dee /doc | |
parent | dd7185f1764fb8ed93940c2ac44cd6c400ebae7e (diff) | |
download | u-boot-cc734f5ab26134e5e8d57c34edc257c89ac5b1d2.tar.gz |
cmd_ubi: add write.part command, to write a volume in multiple parts
This allows you to write data to an UBI volume when the amount of memory
available to write that data from is less than the total size of the
data. For example, you may split a root filesystem UBIFS image into
parts, provide the total size of the image to the first write.part
command and then use multiple write.part commands to write the
subsequent parts of the volume. This results in a sequence of commands
akin to:
ext4load mmc 0:1 0x80000000 rootfs.ubifs.0
ubi write.part 0x80000000 root 0x08000000 0x18000000
ext4load mmc 0:1 0x80000000 rootfs.ubifs.1
ubi write.part 0x80000000 root 0x08000000
ext4load mmc 0:1 0x80000000 rootfs.ubifs.2
ubi write.part 0x80000000 root 0x08000000
This would write 384MiB of data to the UBI volume 'root' whilst only
requiring 128MiB of said data to be held in memory at a time.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/README.ubi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/README.ubi b/doc/README.ubi index 3cf4ef232d..d82c75c848 100644 --- a/doc/README.ubi +++ b/doc/README.ubi @@ -14,6 +14,8 @@ ubi part [part] [offset] ubi info [l[ayout]] - Display volume and ubi layout information ubi create[vol] volume [size] [type] - create volume name with size ubi write[vol] address volume size - Write volume from address with size +ubi write.part address volume size [fullsize] + - Write part of a volume from address ubi read[vol] address volume [size] - Read volume to address with size ubi remove[vol] volume - Remove volume [Legends] @@ -77,6 +79,7 @@ ubi createvol Create UBI volume on UBI device ubi removevol Remove UBI volume from UBI device ubi read Read data from UBI volume to memory ubi write Write data from memory to UBI volume +ubi write.part Write data from memory to UBI volume, in parts Here a few examples on the usage: |