<div class="gmail_quote">On Tue, Aug 2, 2011 at 5:21 PM, Shao Miller <span dir="ltr"><<a href="mailto:Shao.Miller@yrdsb.edu.on.ca">Shao.Miller@yrdsb.edu.on.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 8/2/2011 20:02, Andrew Stuart wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
On 8/2/2011 2:13 PM, Larry Brigman wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have a grub line for ipxe but it's not processing the cmdline as it<br>
thinks there is nothing there (see attached screen shot).<br>
I'm using the main git repo with the last commit of:<br>
commit 149b502306f7b5f7cc9d90cf2095f8<u></u>dc6576375f<br>
Author: Michael Brown <<a href="mailto:mcb30@ipxe.org" target="_blank">mcb30@ipxe.org</a> <mailto:<a href="mailto:mcb30@ipxe.org" target="_blank">mcb30@ipxe.org</a>>><br>
Date: Sat Jul 16 01:29:20 2011 +0100<br>
<br>
Some clues on how to troubleshoot this issue?<br>
</blockquote>
<br></div><div class="im">
While I don't have any sound troubleshooting advise for you, I am curious if the following commit may have broke something (for you).<br>
My git-fu is non existent, but I am curious if you were to roll back<br>
previous to that commit, if it would change anything.<br>
<br>
Also, since it appears relevant to your use, it might indicate where you can add some extra debug information to see what's going on.<br></div></blockquote></blockquote><div>I've added a little but it doesn't seem to tell me anything since it just says zero length. <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">
<br>
Mind you, I am a lurker/tinkerer. Doing as I suggest may very well kill<br>
your [cat|dog|fish|child|<u></u>significant other].<br>
<br></div>
...<div class="im"><br>
<br>
commit be600ed9967d93f5012d5277d7ce8c<u></u>e89d135918<br>
Author: Michael Brown <<a href="mailto:mcb30@ipxe.org" target="_blank">mcb30@ipxe.org</a>><br>
Date: Tue Jun 28 11:29:28 2011 +0100<br>
<br>
[prefix] Cope with BOOT_IMAGE= anywhere within command line<br>
<br>
Some bootloaders seem to add "BOOT_IMAGE=..." at the end of the<br>
command line; some at the start. Cope with either variation.<br></div>
...<br>
</blockquote>
<br>
Woo-hoo! What a nice feature. :)<br>
<br>
One of the files involved is ipxe/src/arch/i386/core/<u></u>cmdline.c. Your screen-shot, Larry, shows:<br>
<br>
CMDLINE found ""<br>
<br>
which is a message that comes before the "BOOT_IMAGE=..." stripping.<br>
<br>
It might be interesting to add some temporary debugging code to show the 'len':<br>
<br>
static void cmdline_init ( void ) {<br>
...<br>
size_t len;<br>
<br>
/* Do nothing if no command line was specified */<br>
if ( ! cmdline_phys ) {<br>
DBGC ( image, "CMDLINE found no command line\n" );<br>
return;<br>
}<br>
cmdline_user = phys_to_user ( cmdline_phys );<br>
len = ( strlen_user ( cmdline_user, 0 ) + 1 /* NUL */ );<br>
DBGC ( image, "CMDLINE is %zd bytes\n", len );<br>
<br>
/* Allocate and copy command line */<br>
...<br>
<br>
However I would guess that it'd show 0.<br>
<br>
What version of GRUB and does a simple commandline work?:<br>
<br>
kernel /ipxe.lkrn config<br></blockquote><div><br></div></div>Tried it with:<br><br>kernel /ipxe.lkrn shell<br><br>still not joy.<br><br>Grub version 0.97-13.5 from Centos 5.<br>