public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Rethinking MicroBlaze commandline precedence
@ 2009-08-10  6:28 John Williams
  2009-08-10  7:29 ` [microblaze-uclinux] " Michal Simek
  0 siblings, 1 reply; 8+ messages in thread
From: John Williams @ 2009-08-10  6:28 UTC (permalink / raw)
  To: Michal Simek, John Linn, David DeBonis
  Cc: microblaze-uclinux, Linux Kernel list

Hi,

Currently, MicroBlaze commandline handling in order of lowest to
highest priority, looks like this:

1. pointer in r5 from bootloader
2. CONFIG_CMDLINE=...
3. "chosen" section in DTS/DT
4. CONFIG_CMDLINE=... && CONFIG_CMDLINE_FORCE

I'm wondering if a cmdline in r5 should override the DTS.  My thinking
is based on two observations:

(a) not everyone will use a bootloader like u-boot that can manipulate
DTBs easily before kernel boot
(b) a custom cmdline string in r5 allows the latest possible binding
(runtime), where as the DTB is typically created at compile time.

So, how about this order instead:

1. CONFIG_CMDLINE=...
2. "chosen" section in DTS/DT
3. pointer in r5 from bootloader
4. CONFIG_CMDLINE=... and CONFIG_CMDLINE_FORCE

Then, apart from CMDLINE_FORCE, the precedence goes from earliest
binding (kernel build) to latest (runtime via bootloader/r5).

Thoughts?

John
-- 
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-08-11 16:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-10  6:28 Rethinking MicroBlaze commandline precedence John Williams
2009-08-10  7:29 ` [microblaze-uclinux] " Michal Simek
2009-08-10  8:56   ` John Williams
2009-08-10  9:25     ` Michal Simek
2009-08-10 16:42       ` Stephen Neuendorffer
2009-08-11  7:06         ` Michal Simek
2009-08-11 16:18           ` Stephen Neuendorffer
2009-08-11 16:59             ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox