public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Ricard Wanderlof <ricard.wanderlof@axis.com>
Cc: Linux mtd <linux-mtd@lists.infradead.org>
Subject: Re: UBI partitioning in embedded device?
Date: Mon, 18 Apr 2011 10:09:15 +0300	[thread overview]
Message-ID: <1303110555.2815.25.camel@localhost> (raw)
In-Reply-To: <Pine.LNX.4.64.1104180839510.30071@lnxricardw.se.axis.com>

On Mon, 2011-04-18 at 08:44 +0200, Ricard Wanderlof wrote:
> Are there any opinions here on the partitioning of a flash memory in an 
> embedded device when using UBI?
> 
> Principially, one could let UBI manage the whole flash as one mtd 
> partition, except possibly some boot area due to restriction in the boot 
> ROM of the system in question.

FYI, IBM people were able to implement boot initial boot loader with the
limit of 4KiB for the whole initial boot loader, and it supported R/O
UBI (but not UBIFS of course).

>  But is it wise to do so, assuming for 
> instance there is data in part of the flash that you really want to avoid 
> loosing, such as calibration data?

The best way to not lose it is to have several copy of it, IMO.

>  Of course, theoretically, once the 
> kernel has access to one part of the flash it could clobber anything, 
> still, the mtd code has been proven for years whereas UBI is relatively 
> young, so one idea would be to partition that flash into several mtd 
> partitions (e.g. boot, running system, and calibration data), and let UBI 
> handle these separately. That could minimize the risk of UBI clobbering 
> the calibration data when operating on the running system, for instance.
> 
> Any thoughts?

You can let UBI manage your calibration data in a static UBI volume. But
additionally, you can have a separate calibration data back-up
partition, just in case.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

  reply	other threads:[~2011-04-18  7:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-18  6:44 UBI partitioning in embedded device? Ricard Wanderlof
2011-04-18  7:09 ` Artem Bityutskiy [this message]
2011-04-18 11:45 ` Atlant Schmidt
2011-04-18 12:53   ` Ricard Wanderlof
2011-04-18 13:01     ` Artem Bityutskiy
2011-04-18 13:33       ` Ricard Wanderlof
2011-04-18 13:35         ` Artem Bityutskiy

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=1303110555.2815.25.camel@localhost \
    --to=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=ricard.wanderlof@axis.com \
    /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