public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Brian Norris <computersforpeace@gmail.com>
To: Daniel Bowen <dbowen@logitech.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Question about ubiformat
Date: Fri, 8 Aug 2014 09:27:04 -0700	[thread overview]
Message-ID: <20140808162704.GR3711@ld-irv-0074> (raw)
In-Reply-To: <1b4901cfb31a$ee57b240$cb0716c0$@com>

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

  reply	other threads:[~2014-08-08 16:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-08  0:06 Question about ubiformat Daniel Bowen
2014-08-08  6:19 ` Brian Norris
2014-08-08 15:10   ` Daniel Bowen
2014-08-08 16:27     ` Brian Norris [this message]
2014-08-08 16:34       ` Artem Bityutskiy
2014-08-08 16:55         ` Daniel Bowen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140808162704.GR3711@ld-irv-0074 \
    --to=computersforpeace@gmail.com \
    --cc=dbowen@logitech.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox