public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] altbootcmd and failbootcmd
Date: Tue, 27 Sep 2011 16:49:19 +0200	[thread overview]
Message-ID: <m2vcserqfk.fsf@ohwell.denx.de> (raw)
In-Reply-To: <02296E583CC11C4D9365985B761F1DDE01010AE4@www.fyldemicro.co.uk> (Thomas Johnson's message of "Fri, 16 Sep 2011 16:08:45 +0100")

Hi Thomas,

> I already have configured and built and have running u-boot and booting
> Linux on my custom MPC8313 based board, all ok so far.

Excellent.

> I am now trying to enable the altbootcmd and failbootcmd features so in
> the event of a image failure or non linux boot I can reboot to a known
> working image set.

The easy way is to put multiple boot commands in sequence - if one
returns because of a failure, the next one will run ;)

> I have tried setting CONFIG_POST and get "__POST_WORD_ADDR currently not
> implemented for this platform". How do I implement/set this ?

What U-Boot version do you use?  I cannot find a reference to this in
current code.

Apart from that: You first have to find a storage space to store the
post word.  This storage needs to survive a reset of the system.
Depending if that is reachable through regular memory access, you only
have to define __POST_WORD_ADDR.  In any other case you would need to
implement a setter/getter for that word yourself.

> I have tried setting CONFIG_BOOTCOUNT_LIMIT and get message error
> QE_MURAM_SIZE undeclared. Any ideas on this one ?

The code seems to have bugs - now go and find them.  Or rather try a
more recent version of U-Boot ;)  

Cheers
  Detlev

-- 
debian is a prototype for a future version of emacs.
                         -- Thien-Thi Nguyen in <7eekubiffq.fsf@ada2.unipv.it>
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

  reply	other threads:[~2011-09-27 14:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-16 15:08 [U-Boot] altbootcmd and failbootcmd Thomas Johnson
2011-09-27 14:49 ` Detlev Zundel [this message]
2011-09-27 20:40   ` Kim Phillips
2011-09-28 21:00     ` Wolfgang Denk
2011-09-29 14:56       ` Thomas Johnson

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=m2vcserqfk.fsf@ohwell.denx.de \
    --to=dzu@denx.de \
    --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