Question about ubiformat

Brian Norris computersforpeace at gmail.com
Fri Aug 8 09:27:04 PDT 2014


On Fri, Aug 08, 2014 at 09:10:44AM -0600, Daniel Bowen wrote:
> Great, thanks for the response!  So, if the mtd partition were say 500 erase
> blocks large, and the image was 300 erase blocks large, would "ubiformat
> /dev/mtd4 -f /mnt/source/ubi.img" 
> 1. only touch the first 300 blocks of the partition, and leave the other 200
> unmodified?  Or 
> 2. would it write the image into the first 300 blocks, and erase the
> remaining 200 blocks?

It erases every block, writes the image to the first 300, and programs
EC headers to the last 200.

The source for ubiformat is actually pretty simple and easy to read.
Check it out yourself!

  http://git.infradead.org/mtd-utils.git

Brian



More information about the linux-mtd mailing list