From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: Add Prep subcommand support to bootm
Date: Mon, 05 Sep 2011 17:25:19 +0200 [thread overview]
Message-ID: <4E64E9DF.1090101@gmail.com> (raw)
In-Reply-To: <4E64D76D.6000705@gmail.com>
Dear Simon,
Am 05.09.2011 16:06, schrieb Simon Schwarz:
> Dear Andreas,
>
> On 09/05/2011 12:58 PM, Andreas Bie?mann wrote:
>> Dear Simon,
>>
>> Am Mo 29 Aug 2011 18:08:13 CEST, Simon Schwarz schrieb:
<snip>
>>
>>> +}
>>> +
>>> +/* Main Entry point for arm bootm implementation
>>> + *
>>> + * Modeled after the powerpc implementation
>>> + * DIFFERENCE: Instead of calling prep and go at the end
>>> + * they are called if subommand is equal 0.
>>
>> s/subommand/subcommand/
> done
>>
>>> + */
>>> +int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t
>>> *images)
>>> +{
>>> + if (flag& BOOTM_STATE_OS_CMDLINE)
>>> + boot_cmdline_linux(images);
>>> +
>>> + if (flag& BOOTM_STATE_OS_BD_T)
>>> + boot_bd_t_linux(images);
>>
>> NAK, remove these two functions. Since the ARM linux boot requirements
>> are different to powerpc we do not need these two states of bootm at all.
>>
>> The powerpc entry_32.S (in linux) show they need commandline pointer
>> apart from 'residual board info' pointer. The arm implementation in
>> head.S (also linux source) says:
>>
>> ---8<---
>> * This is normally called from the decompressor code. The requirements
>> * are: MMU = off, D-cache = off, I-cache = dont care, r0 = 0,
>> * r1 = machine nr, r2 = atags or dtb pointer.
>> --->8---
>>
>> For arm we do not need to prepare the cmdline apart from 'bd_t', we just
>> need to setup the ATAGS (ord FDT) which contains all information we
>> need. This could all be done in the prep state.
>>
>
> changed.
>
> But they are shown in bootm help message regardles of the architecture.
> Shouldn't we add #ifdefs in the help message then? (or, and I really
> hate to bring this up, change the way the helpmessage is created if the
> function is arch dependent)
No, I don't think we should change the bootm command. We could either
return 'not implemented' or 'everything is ok' here for these two flags.
But we do not need extra empty functions for that.
How about:
/* OS_CMDLINE is not needed by ARM cause of ... the bootargs (==cmdline)
is set in ATAGS/FDT ... */
if (flag& BOOTM_STATE_OS_CMDLINE)
return 0; /* pretend everything is ok */
/* OS_BD_T is not needed by ARM casue of ... */
if (flag& BOOTM_STATE_OS_BD_T)
return 0; /* pretend everything is ok */
...
best regards
Andreas Bie?mann
next prev parent reply other threads:[~2011-09-05 15:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-29 16:08 [U-Boot] [PATCH] arm: Add Prep subcommand support to bootm Simon Schwarz
2011-09-05 10:58 ` Andreas Bießmann
2011-09-05 14:06 ` Simon Schwarz
2011-09-05 15:25 ` Andreas Bießmann [this message]
2011-09-05 14:53 ` [U-Boot] [PATCH V2] " Simon Schwarz
2011-09-19 13:43 ` [U-Boot] [PATCH V3] " Simon Schwarz
2011-12-06 17:26 ` [U-Boot] [PATCH V4] " Simon Schwarz
2012-01-16 8:12 ` [U-Boot] [PATCH] " Simon Schwarz
2012-01-17 10:26 ` Stefano Babic
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=4E64E9DF.1090101@gmail.com \
--to=andreas.devel@googlemail.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