public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Patrick Huesmann <patrick.huesmann@gmail•com>
To: "Robert P. J. Day" <rpjday@mindspring•com>
Cc: linuxppc-embedded@ozlabs•org
Subject: Re: looking for a model for building CRAMFS(?)-based system
Date: Thu, 17 Mar 2005 16:42:38 +0100	[thread overview]
Message-ID: <93579fec05031707422039934e@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0503171011220.20335@localhost.localdomain>

Hi,

On Thu, 17 Mar 2005 10:14:41 -0500 (EST), Robert P. J. Day
<rpjday@mindspring•com> wrote:
> On Thu, 17 Mar 2005, Patrick Huesmann wrote:
> > When updating the initrd, the only thing necessary is a
> > eraseall /dev/mtdX
> > cat initrd.gz > /dev/mtdX
> 
> now this is the sticky part.  imagine this system out in the field,
> where you need to make an update to something in the initrd in the
> root filesystem.

If you know in advance what small parts you will want to change
(perhaps your main application, /var/www or whatever), you can use an
additional small partition, that holds only these files, mount it
somewhere in your rootfs, and you won't have to upload the whole
initrd when updating.

> one technique would be to, of couse, download an entirely new
> initrd.gz and reflash (hoping no one pulls the plug as you're doing
> it), as you describe above.

Power failure is not the only scenario when field updates go wrong.
We once had a stressed-out customer who uploaded the "readme" file to
the zImage partition. (Of course, you can prevent that with sanity
checks),
When something like this happens, it's always good to have a fallback
option, like a small bootloader that is NEVER updated, and can still
be used to flash the rest of the system over slow RS232 or whatever.

Regards,
Patrick

  reply	other threads:[~2005-03-17 15:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-16 16:33 looking for a model for building CRAMFS(?)-based system Robert P. J. Day
2005-03-17 14:12 ` Pantelis Antoniou
2005-03-17 14:59 ` Patrick Huesmann
2005-03-17 15:14   ` Robert P. J. Day
2005-03-17 15:42     ` Patrick Huesmann [this message]
2005-03-17 16:32     ` Wolfgang Denk
2005-03-17 16:35       ` Robert P. J. Day
2005-03-17 22:52         ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2005-03-17 16:17 Fillod Stephane

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=93579fec05031707422039934e@mail.gmail.com \
    --to=patrick.huesmann@gmail$(echo .)com \
    --cc=linuxppc-embedded@ozlabs$(echo .)org \
    --cc=rpjday@mindspring$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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