[ipxe-devel] [PATCH] [prefix] Fix lost command line passed by grub

Valentine Barshak gvaxon at gmail.com
Sat Aug 6 19:43:17 UTC 2011


Command line passed to ipxe.lkrn by grub (GNU GRUB 0.97)
seems to be lost and not processed by the ipxe at all.

Looks like the cmdline_size should be set to the maximum value (2047)
instead of 0. BTW, this is how it's set in the Linux kernel.
This change seems to fix the lost command line issue.

Signed-off-by: Valentine Barshak <gvaxon at gmail.com>
---
 src/arch/i386/prefix/lkrnprefix.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/arch/i386/prefix/lkrnprefix.S b/src/arch/i386/prefix/lkrnprefix.S
index f87ef85..338ffa3 100644
--- a/src/arch/i386/prefix/lkrnprefix.S
+++ b/src/arch/i386/prefix/lkrnprefix.S
@@ -160,7 +160,7 @@ relocatable_kernel:
 pad2:
 	.byte	0, 0, 0
 cmdline_size:
-	.long	0
+	.long	0x7ff
 hardware_subarch:
 	.long	0
 hardware_subarch_data:
-- 
1.6.0.6




More information about the ipxe-devel mailing list