From: Jon Medhurst (Tixy) <jon.medhurst@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] ARM: vexpress: Extend default boot sequence to load script from MMC
Date: Wed, 30 Nov 2011 08:32:22 +0000 [thread overview]
Message-ID: <1322641942.2321.13.camel@linaro1> (raw)
In-Reply-To: <CA+M6bX=gshj+0NDxbnvefcyc_Zgneh2xu7QFCv6N7hF565CjmQ@mail.gmail.com>
On Tue, 2011-11-29 at 13:46 -0700, Tom Rini wrote:
> On Tue, Nov 29, 2011 at 6:46 AM, Jon Medhurst (Tixy)
> <jon.medhurst@linaro.org> wrote:
> > Extend the default boot sequence on Versatile Express to load a boot
> > script from MMC.
> >
> > Signed-off-by: Jon Medhurst <jon.medhurst@linaro.org>
>
> Is there any interest in defining a common 'fancy' boot command? Over
> on beagleboard (and a few other eval boards) we are (or will be)
> doing, roughly:
> Is there mmc? {
> Can we load a bootscript? {
> load it, do it
> }
> Can we load uEnv.txt? {
> Did it set 'uenvcmd'? {
> Run it
> }
> }
> Did we load the kernel? {
> bootm it
> }
> }
> Try nand.
>
> And it's not hard to replace NAND with "whatever flash the board sets"
It could make sense. However, the combinations of boot methods could get
quite big, e.g. do we include pxeboot, tftp?
If everything was included in the common 'fancy boot' then some boards
would have to define boot methods (or stubs) for things they weren't
interested in. And, conversely, if fancy boot didn't include everything,
then other people would need to extend it.
I came across this issue with my patch. I wanted to look for a common
pattern to copy for my boot command. I was tempted by those which
included other options but then realised we didn't currently have a use
for them, and if I added them there would be more testing and
maintenance required.
So perhaps the number of boards interested in the common function would
be very small?
--
Tixy
next prev parent reply other threads:[~2011-11-30 8:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-29 13:46 [U-Boot] ARM: vexpress: Extend default boot sequence to load script from MMC Jon Medhurst
2011-11-29 16:04 ` Ryan Harkin
2011-11-29 20:46 ` Tom Rini
2011-11-30 8:32 ` Jon Medhurst [this message]
2011-11-30 14:51 ` Tom Rini
2011-11-30 15:19 ` Jon Medhurst
2011-11-30 15:46 ` Tom Rini
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=1322641942.2321.13.camel@linaro1 \
--to=jon.medhurst@linaro.org \
--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.