linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* how to pass kernel command parameters?
@ 2004-01-20 20:27 Stefan Jeglinski
  2004-01-20 20:35 ` Gary Thomas
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Jeglinski @ 2004-01-20 20:27 UTC (permalink / raw)
  To: linuxppc-dev


I have a Brightstar box with an MPC823, booting under 2.4.21 at the
moment. But at the "Linux/PPC load:" line I have to enter a rather
long string of parameters (IP numbers etc), I guess due to the boot
ROM code that's part of this little Brightstar device.

What is the proper way to automate the passing of these parameters?
I'm gathering that all ppc kernel boots have this line to stop at,
but the passing of parameters to it is automated.

Should I be constructing a custom ram disk that contains the info? If
so, what's a good resource about making ram disks and how to do this?
If not, how is one supposed to do it? I don't suppose one should be
hard-coding misc-simple.c or misc-embedded.c... ?


Stefan Jeglinski

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: how to pass kernel command parameters?
  2004-01-20 20:27 how to pass kernel command parameters? Stefan Jeglinski
@ 2004-01-20 20:35 ` Gary Thomas
  2004-01-20 20:38 ` Wolfgang Denk
  2004-01-20 23:02 ` Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2004-01-20 20:35 UTC (permalink / raw)
  To: Stefan Jeglinski; +Cc: linuxppc-dev


On Tue, 2004-01-20 at 13:27, Stefan Jeglinski wrote:
> I have a Brightstar box with an MPC823, booting under 2.4.21 at the
> moment. But at the "Linux/PPC load:" line I have to enter a rather
> long string of parameters (IP numbers etc), I guess due to the boot
> ROM code that's part of this little Brightstar device.
>
> What is the proper way to automate the passing of these parameters?
> I'm gathering that all ppc kernel boots have this line to stop at,
> but the passing of parameters to it is automated.
>
> Should I be constructing a custom ram disk that contains the info? If
> so, what's a good resource about making ram disks and how to do this?
> If not, how is one supposed to do it? I don't suppose one should be
> hard-coding misc-simple.c or misc-embedded.c... ?

The default kernel command line can be easily configured using the
standard configuration tools (e.g. make xconfig)  This string gets
built into the kernel image and can later be overridden on the console.

--
Gary Thomas <gary@mlbassoc.com>
MLB Associates


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: how to pass kernel command parameters?
  2004-01-20 20:27 how to pass kernel command parameters? Stefan Jeglinski
  2004-01-20 20:35 ` Gary Thomas
@ 2004-01-20 20:38 ` Wolfgang Denk
  2004-01-20 23:02 ` Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2004-01-20 20:38 UTC (permalink / raw)
  To: Stefan Jeglinski; +Cc: linuxppc-dev


In message <p06010202bc333bc03e48@[192.168.9.5]> you wrote:
>
> I have a Brightstar box with an MPC823, booting under 2.4.21 at the
> moment. But at the "Linux/PPC load:" line I have to enter a rather
> long string of parameters (IP numbers etc), I guess due to the boot
> ROM code that's part of this little Brightstar device.
>
> What is the proper way to automate the passing of these parameters?

Install U-Boot.

> I'm gathering that all ppc kernel boots have this line to stop at,
> but the passing of parameters to it is automated.

This depends a bit on the boot loader you are using, and/or the Linux
kernel wrapper used with it. If you are looking for  convenience  and
powerful  features,  check  out  what  U-Boot can do for you. See for
example http://www.denx.de/twiki/bin/view/DULG/LinuxBootArgs

> Should I be constructing a custom ram disk that contains the info? If
> so, what's a good resource about making ram disks and how to do this?

Documentation/ramdisk.txt in your Linux kernel tree?

Best regards,

Wolfgang Denk

--
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Anything free is worth what you pay for it.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: how to pass kernel command parameters?
  2004-01-20 20:27 how to pass kernel command parameters? Stefan Jeglinski
  2004-01-20 20:35 ` Gary Thomas
  2004-01-20 20:38 ` Wolfgang Denk
@ 2004-01-20 23:02 ` Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2004-01-20 23:02 UTC (permalink / raw)
  To: Stefan Jeglinski; +Cc: linuxppc-dev


On Tue, Jan 20, 2004 at 03:27:38PM -0500, Stefan Jeglinski wrote:

>
> I have a Brightstar box with an MPC823, booting under 2.4.21 at the
> moment. But at the "Linux/PPC load:" line I have to enter a rather
> long string of parameters (IP numbers etc), I guess due to the boot
> ROM code that's part of this little Brightstar device.
>
> What is the proper way to automate the passing of these parameters?
> I'm gathering that all ppc kernel boots have this line to stop at,
> but the passing of parameters to it is automated.
>
> Should I be constructing a custom ram disk that contains the info? If
> so, what's a good resource about making ram disks and how to do this?
> If not, how is one supposed to do it? I don't suppose one should be
> hard-coding misc-simple.c or misc-embedded.c... ?

All that is needed, via your favorite config target is:
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="everything to pass in"

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2004-01-20 23:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-20 20:27 how to pass kernel command parameters? Stefan Jeglinski
2004-01-20 20:35 ` Gary Thomas
2004-01-20 20:38 ` Wolfgang Denk
2004-01-20 23:02 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).