From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] outline of bootm script
Date: Wed, 06 Aug 2008 22:21:51 +0200 [thread overview]
Message-ID: <20080806202151.DFB8724885@gemini.denx.de> (raw)
In-Reply-To: Your message of "Wed, 06 Aug 2008 15:55:15 EDT." <489A01A3.6000800@ge.com>
In message <489A01A3.6000800@ge.com> you wrote:
>
> > bootm restore (undo anything prep did, reset state tracking)
>
> Ooo, that sounds hard. If we are only re-enabling interrupts/usb/caches
> it probably is manageable, but my hackles.
ACK. And if we really restore anything, than just interrupts and
caches, but not any interfaces.
> > We could also have some "bootm query <foo>" to expose the internal
> > state if that's useful. We could completely get rid of the various
> > "env" vars that impact bootm and just make them state variables
> > ("verify", "autostart", "bootm_size", "bootm_low", ...)
>
> State is bad.
ACK.
> Aside: verify should be an image verify command, not a env variable flag
> (see below). This is probably true of most of the current env
We alreay have a verify command. It's called "imls".
> variables: the reason we need them is because we kept throwing stuff
> into "bootm" and then controlling it with env variables rather than
> having a sequence and controlling it with what commands are in the
> sequence. (Part of my simplification argument...)
Hint: keep it backwards compatible, please.
> I also was thinking we should invent a new major/minor command as you
> outlined, but it didn't occur to me that "bootm" would be a good major
> command. This is a good idea: a bare "bootm <addr> (<addr>|-) <addr>"
> could be used for backward compatibility and "bootm <subcmd>" for New
> Improved[tm] functionality.
How do your differentiate beween <addr> and <subcmd> then?
> Having said that, I was thinking and would advocate pushing
> functionality out of bootm and into other commands, as appropriate. As
> an example, bootm doesn't need to do *any* fdt stuff, the "fdt" built-in
> has all the capability we need (or should). The same may be also true
> about load_os and load_initrd - they are copy-with-(optional)-
> decompression operations (we may need additional commands for these).
ACK.
> Philosophy: bootm should do only bootm stuff. It (probably) should not
> do any image stuff (find/copy/decompress/verify). It (probably) should
> not do any fdt stuff (board fixup, other?). Etc...
ACK.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
To live is always desirable.
-- Eleen the Capellan, "Friday's Child", stardate 3498.9
next prev parent reply other threads:[~2008-08-06 20:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-05 14:35 [U-Boot-Users] outline of bootm script Kumar Gala
2008-08-06 2:33 ` Jerry Van Baren
2008-08-06 19:15 ` Kumar Gala
2008-08-06 19:41 ` Wolfgang Denk
2008-08-06 20:05 ` Kumar Gala
2008-08-06 20:26 ` Wolfgang Denk
2008-08-06 20:33 ` Kumar Gala
2008-08-06 19:55 ` Jerry Van Baren
2008-08-06 20:19 ` Kumar Gala
2008-08-06 20:36 ` Wolfgang Denk
2008-08-06 20:45 ` Kumar Gala
2008-08-06 21:15 ` Wolfgang Denk
2008-08-06 21:37 ` Kumar Gala
2008-08-06 22:00 ` Wolfgang Denk
2008-08-06 22:09 ` [U-Boot-Users] bootm -- load_os inputs/outputs Kumar Gala
2008-08-06 20:39 ` [U-Boot-Users] outline of bootm script Jerry Van Baren
2008-08-06 20:21 ` Wolfgang Denk [this message]
2008-08-06 20:29 ` Jerry Van Baren
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=20080806202151.DFB8724885@gemini.denx.de \
--to=wd@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