From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] bootm: Add sub commands
Date: Thu, 18 Sep 2008 07:25:36 -0400 [thread overview]
Message-ID: <48D23AB0.9050301@ge.com> (raw)
In-Reply-To: <20080918065428.1E84C248C6@gemini.denx.de>
Wolfgang Denk wrote:
> Dear Kumar Gala,
>
> In message <1221688841-3197-1-git-send-email-galak@kernel.crashing.org> you wrote:
>> Having bootm sub-commands allows both of these as we can break up
>> the sequeunce of steps that are part of the bootm process.
>
> OK.
>
>> +int do_bootm_subcommand (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
>> +{
>> + int ret = 0;
>> +
>> + /* start */
>> + if (argv[1][0] == 's') {
>
> I think just matching on the first letter is to restrictive; we'll end
> up with artificical command "names" that nobody can remember.
That is what the all the other command subcommands do: match on the
minimum unique sequence, preferably one letter.
>> + else if (argv[1][0] == 'i') {
>
> And we need comments what all this means. WTF is 'i' ?
Ich in German :-D (That is a bad cross-lingual pun: "ick" is what you
say in English when you step in dog poo.)
You snipped the preceding comment line. Granted, it was pretty terse:
> + /* initrd relocate */
The "help" string helps:
> @@ -782,6 +883,17 @@ U_BOOT_CMD(
> "\tUse iminfo command to get the list of existing component\n"
> "\timages and configurations.\n"
> #endif
> + "\t\nSub-commands to do part of the bootm sequence:\n"
> + "\tstart [addr [arg ...]]\n"
> + "\tloados - load OS image\n"
> + "\tprepos - OS specific prep before relocation or go\n"
> +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SPARC)
> + "\tinitrd - relocate initrd, set env initrd_start/initrd_end\n"
> +#endif
> +#if defined(CONFIG_OF_LIBFDT)
> + "\tfdt - relocate initrd\n"
> +#endif
> + "\tgo - start os\n"
> );
[snip]
> Best regards,
>
> Wolfgang Denk
Ditto,
gvb
next prev parent reply other threads:[~2008-09-18 11:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-17 22:00 [U-Boot] [RFC] bootm: Add sub commands Kumar Gala
2008-09-17 23:57 ` Jerry Van Baren
2008-09-18 16:27 ` Kumar Gala
2008-09-18 6:54 ` Wolfgang Denk
2008-09-18 11:25 ` Jerry Van Baren [this message]
2008-09-18 16:32 ` Kumar Gala
2008-09-22 21:06 ` Wolfgang Denk
2008-09-18 20:17 ` Kumar Gala
2008-09-22 21:09 ` Wolfgang Denk
2008-09-22 23:32 ` Kumar Gala
2008-09-22 23:49 ` Wolfgang Denk
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=48D23AB0.9050301@ge.com \
--to=gerald.vanbaren@ge.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 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.