public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Thomas Lange <thomas@corelatus.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Field upgrade
Date: Tue, 02 Dec 2003 22:25:42 +0100	[thread overview]
Message-ID: <3FCD0356.30502@corelatus.com> (raw)
In-Reply-To: <20031202151548.0D6C4C5F5F@atlas.denx.de>

Sure there is a sw solution! We have been using it for
2 years now. Check out board "gth".

We use a pre loader called miniboot, which boots the first
image with correct crc it finds in flash.

See http://www.opensource.se/

This allows us to upgrade u-boot in field. Even if we loose
power during upgrade, we will always have a valid u-boot
image to boot.

/Thomas

Wolfgang Denk wrote:
> In message <3FCCA417.9020500@2net.co.uk> you wrote:
> 
>>One of my requirements is that the firmware be field upgradeable. The 
>>problem at the moment is that if something goes wrong while erasing and 
>>programming a new u-boot there is no recovery without a jtag/bdm 
>>debugger. Does anyone have a solution, or is it not a problem in 
> 
> 
> There is no solution in software alone. If you have hardware  support
> which for example detects a failing boot (by waiting with timeout for
> a signal to be set by a successfully booting system) and then toggles
> for example boot devices you can do something like that.
> 
> But there is no simple way to do this in software alone.
> 
> 
>>practice? I was playing with the idea of having a backup u-boot and some 
>>method of falling back to it if the primary copy is corrupt.
> 
> 
> You can create a backup copy of U-Boot - but how will  you  boot  it?
> U-Boot  is  linked for a fix address so you cannot easily shift it in
> memory. And even if you could - your board will still  start  from  a
> fix reset vector - if it does not find valifd code there you may have
> a working image somewhere else but it will not help you.
> 
> Best regards,
> 
> Wolfgang Denk
> 

  reply	other threads:[~2003-12-02 21:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-02 14:39 [U-Boot-Users] Field upgrade Chris Simmonds
2003-12-02 15:15 ` Wolfgang Denk
2003-12-02 21:25   ` Thomas Lange [this message]
2003-12-02 22:01     ` Wolfgang Denk
2003-12-02 22:44       ` Thomas Lange
2003-12-02 22:59         ` Wolfgang Denk
2003-12-02 23:53           ` Thomas Lange
2003-12-03  0:29             ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-12-02 16:10 Callebaut, Benoit

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=3FCD0356.30502@corelatus.com \
    --to=thomas@corelatus.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox