linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* limit to the length of args passed to kernel
@ 2002-10-05 10:23 Roberto De Leo
  2002-10-07  5:07 ` Randy.Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Roberto De Leo @ 2002-10-05 10:23 UTC (permalink / raw)
  To: linux-kernel

Hi,
I recently found out the you can't pass too many args to the kernel 
through the LILO "append"
option. Actually I passed the args through the similar "append" option 
of the SysLinux package
(http://syslinux.zytor.com/) but on their ML I have been told it is 
equivalent to LILO's one and
that there is a 256 characters limit for passing args at boot time to 
the kernel.

My question is: is this really a kernel limit or I misunderstood? if it 
is a kernel limit,
is there any way to bypass it?

It would be very useful for a package I am developing: it is a micro 
linux distro (the initrd.gz
is ~4MB) containing basically only a kernel and what you need to play a 
movie through the FB.
The kernel (2.4.19) has been compiled with support for all possible FB 
drivers, but for several
reasons it would be nice to have two booting options: one containing the 
initialization for all
possible FB and one turning all of them off except the vesa FB.
Unfortunately though there are so many FB driverd that to turn them all 
off it takes much more
than 256 chars!

Any help would be greatly appreciated.
Please CC me any answer to deleo@unica.it, I'm not subscrribed to the ML.
Thanks,
 Roberto De Leo



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

* Re: limit to the length of args passed to kernel
  2002-10-05 10:23 limit to the length of args passed to kernel Roberto De Leo
@ 2002-10-07  5:07 ` Randy.Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2002-10-07  5:07 UTC (permalink / raw)
  To: Roberto De Leo; +Cc: linux-kernel

I haven't seen any other replies to this on lkml, so...

On Sat, 5 Oct 2002, Roberto De Leo wrote:

| Hi,
| I recently found out the you can't pass too many args to the kernel
| through the LILO "append"
| option. Actually I passed the args through the similar "append" option
| of the SysLinux package
| (http://syslinux.zytor.com/) but on their ML I have been told it is
| equivalent to LILO's one and
| that there is a 256 characters limit for passing args at boot time to
| the kernel.

According to that mailing list, Peter Anvin has already confirmed
this.

| My question is: is this really a kernel limit or I misunderstood? if it
| is a kernel limit, is there any way to bypass it?

I didn't see any mention of what type of hardware you are using,
but COMMAND_LINE_SIZE is a #define in the Linux kernel.
You could change that, but that wouldn't "fix it."
The boot protocol interface (from LILO or SysLinux etc. to the
kernel) must also be changed for this to work.

See linux/Documentation/i386/boot.txt for that interface definition.

BTW, some other CPU architectures #define larger command line
sizes, but then they don't use this same boot interface (I
guess).

| It would be very useful for a package I am developing: it is a micro
| linux distro (the initrd.gz
| is ~4MB) containing basically only a kernel and what you need to play a
| movie through the FB.
| The kernel (2.4.19) has been compiled with support for all possible FB
| drivers, but for several
| reasons it would be nice to have two booting options: one containing the
| initialization for all
| possible FB and one turning all of them off except the vesa FB.
| Unfortunately though there are so many FB driverd that to turn them all
| off it takes much more than 256 chars!
|
| Any help would be greatly appreciated.
| Please CC me any answer to deleo@unica.it, I'm not subscrribed to the ML.

Good luck.

-- 
~Randy


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

end of thread, other threads:[~2002-10-07  5:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-05 10:23 limit to the length of args passed to kernel Roberto De Leo
2002-10-07  5:07 ` Randy.Dunlap

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).