Re: boot command line length 256 ? 1024 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Raseel Bhagat wrote:


Jim Cromie wrote:


Im looking to try kgdb, but in my situation, the boot command line
is being truncated at 256 chars, so it wont take
the additional params (kgdbwait ..)

I gather from syslinux list that the boot command line length
has long been limited to 256 chars, but that in release 3.08 (which Im using) it was raised to 1023. So its apparently the kernel thats truncating the boot-line.


However, Ive googled for combos of ' boot line length 256 1024 command '
and gotten nowhere, and also tried lkml.org search.

Also, theres nothing in Documentation/kernel-parameters.txt,
it seems appropriate place for a 1-liner


Hi Jim,
 Have you tried grepping in <linux-src>/init/main.c
That is the place, AFAIKwhere the command-line options are parsed in the kernel.



ACK. Im not sure why I didnt think to do that.

[jimc@harpo lxbuild]$ grep COMMAND linux-2.6.12-rc5-mm2/include/asm-i386/*
linux-2.6.12-rc5-mm2/include/asm-i386/param.h:#define COMMAND_LINE_SIZE 256
linux-2.6.12-rc5-mm2/include/asm-i386/setup.h:#define COMMAND_LINE_SIZE 256

note- it changes based on platform, many others are 1024.
now to hack it larger, see what blows up..

thx

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux