Thread (10 messages) 10 messages, 4 authors, 2006-06-09

Re: [PATCH] Provide mechanism for editing builtin command-line in zImage binary.

From: Mark A. Greer <hidden>
Date: 2006-05-30 20:39:37

On Mon, May 29, 2006 at 10:01:03PM -0400, mostrows@watson.ibm.com wrote:
zImage will store the builtin command-line in a dedicated section, allowing
it to be easily identified and edited with user-space tools.

zImage will set /chosen/bootargs to the stored builtin command-line setting,
if /chosen/bootargs is empty (emulating the behavior in prom_init.c).

Use of this mechanism avoids the need to modify firmware or rely on a
bootloader to customize kernel arguments (and overall system
behavior).  The command line can be edited as needed when a zImage is
copied to a TFTP staging area for download by firmware.
Why do this?  Why not get rid of storing the cmdline in the zImage altogether?  

We already have equivalent functionality by storing it in the dt's
/chosen/bootargs so why this unnecessary complexity?

Add some code to edit the /chosen/bootargs at zImage runtime (just like
arch/ppc used to) and we're covered.  AFAICT, we're already adding a tool
to tack on flat dt's to an already existing zImage so you're not doing
anything we can't--or won't--do already.

Agree?

Mark
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help