[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to increase commandline size
From: |
Jeff Chua |
Subject: |
Re: how to increase commandline size |
Date: |
Thu, 21 Sep 2006 11:50:53 +0800 (SGT) |
On Thu, 21 Sep 2006, Yoshinori K. Okuji wrote:
The kernel command line is a null-terminated string currently up to
255 characters long, plus the final null. A string that is too long
will be automatically truncated by the kernel, a boot loader may allow
a longer command line to be passed to permit future kernels to extend
this limit.
I've been using the patch below to extend the command line to 2k, but
grub2 can't handle it. "loadlin" works.
http://www.x86-64.org/lists/discuss/msg06192.html
Enlarge i386/x86-64 kernel command line to 2k
This is useful when the kernel command line is used to pass other
information to initrds or installers.
On i386 it was duplicated for unknown reasons.
Signed-off-by: Andi Kleen <address@hidden>
Index: linux/include/asm-i386/setup.h
===================================================================
--- linux.orig/include/asm-i386/setup.h 2005-01-04 12:13:21.%N +0100
+++ linux/include/asm-i386/setup.h 2005-01-10 17:37:54.%N +0100
@@ -17,5 +17,5 @@
#define PARAM_SIZE 4096
-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE 2048
#define OLD_CL_MAGIC_ADDR 0x90020
#define OLD_CL_MAGIC 0xA33F
Index: linux/include/asm-i386/param.h
===================================================================
--- linux.orig/include/asm-i386/param.h 2004-08-15 19:45:46.%N +0200
+++ linux/include/asm-i386/param.h 2005-01-10 17:38:16.%N +0100
@@ -18,6 +18,6 @@
#endif
#define MAXHOSTNAMELEN 64 /* max length of hostname */
-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE 2048
#endif