[PATCH] Re: THE LINUX/I386 BOOT PROTOCOL - Breaking the 256 limit

Georg Lippold
2005-10-10T12:44:25Z

Hello Peter,

my first post didn't get any attention, maybe it was too short.
Here's a longer version:

hpa@zytor.com wrote on Sept. 6th, 2005:

[ wrt. COMMAND_LINE_SIZE=256 in linux/include/asm-i386/setup.h and
linux/include/asm-i386/param.h ]

>> I would like to push forward the idea to extend the command-line size...
> [...]
> Already pushed to Andrew. I will follow it up with a patch to extend
> the command line, at least to 512.

I would like to know the status of this. In linux-2.6.14-rc3 the
COMMAND_LINE_SIZE is still 256 chars long.

Here's a patch to fix that to 1024.

Signed-off-by: Georg Lippold <lippold@uni-bremen.de>

--- linux/include/asm-i386/param.h~ 2005-09-21 23:32:23.000000000 +0200
+++ linux/include/asm-i386/param.h 2005-10-10 14:39:34.000000000 +0200
@@ -18,6 +18,6 @@
#endif

#define MAXHOSTNAMELEN 64 /* max length of hostname */
-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE 1024

#endif
--- linux/include/asm-i386/setup.h~ 2005-10-10 14:39:18.000000000 +0200
+++ linux/include/asm-i386/setup.h 2005-10-10 14:39:45.000000000 +0200
@@ -17,7 +17,7 @@
#define MAX_NONPAE_PFN (1 << 20)

#define PARAM_SIZE 4096
-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE 1024

#define OLD_CL_MAGIC_ADDR 0x90020
#define OLD_CL_MAGIC 0xA33F