All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Cooper <ecc@cmu.edu>
To: u-boot@lists.denx.de
Subject: [U-Boot] understanding mkimage a bit more
Date: Fri, 6 May 2011 14:33:59 -0400	[thread overview]
Message-ID: <20110506183359.GC20845@localhost> (raw)
In-Reply-To: <BANLkTik6dw-iUNJmPcbm56=qU-rnNcEF+g@mail.gmail.com>

On Fri, May 06, 2011 at 11:13:39AM -0700, Charles Krinke wrote:
> The next issue is the flash file system. Normally, I like to use JFFS2
> for reliability as embedded devices frequently have their power switch
> turned off at any time. I do understand that UBIFS is getting more
> prevalent lately and I wonder if you or anyone else has a comment on
> the suitability of UBIFS in an environment where the power will be
> turned off and on exexpectdly and frequently.
> 
> In googling UBIFS problems, I do see posts across the internet of
> UBIFS devices that will not boot after power is turned off and on. My
> experience with JFFS2 is that it has always recovered during boot with
> all the designs I have participated in over the last several years.
> Admiteddly, the act of doing something like "scandisk" on boot slows
> the boot down, but does seem to add reliability.

It has been very resilient to power failures in my experience -- the
Linux ubifs code has always managed to recover, and very quickly.

The main pitfall is that U-Boot's support for ubifs is only the
read-only subset of Linux's.  That means it can read from a consistent
ubifs partition, but not from one that needs repair (because that
requires writing).  So you can't rely on booting your Linux kernel
*from a ubifs partition*.  But if you have your kernel in a separate,
read-only uImage partition you should be fine (it's just more annoying
to update kernels).

-- 
Eric Cooper             e c c @ c m u . e d u

  reply	other threads:[~2011-05-06 18:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-06 16:24 [U-Boot] understanding mkimage a bit more Charles Krinke
2011-05-06 17:33 ` Gerhard Pircher
2011-05-06 18:13   ` Charles Krinke
2011-05-06 18:33     ` Eric Cooper [this message]
2011-05-06 18:45       ` Charles Krinke
2011-05-06 20:30         ` Eric Cooper
2011-05-06 20:38           ` Charles Krinke
2011-05-09  5:33             ` Wolfgang Denk

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=20110506183359.GC20845@localhost \
    --to=ecc@cmu.edu \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.