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

From: Georg Lippold
Date: Mon Oct 10 2005 - 07:44:46 EST


Hello Peter,

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

hpa@xxxxxxxxx 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@xxxxxxxxxxxxx>

--- 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/