Ah, ok, my source has been saying <a href="http://ipxe.org/2e008001">http://ipxe.org/2e008001</a> - the text on the real error page is quite helpful - yes I was missing the she-bang line.  The fetched script now registers as a script.<div>
<br></div><div>What was surprising tho is that all fetches in the fetched script are relative to base directory of the script!  Is this the expected behavior?</div><div><br></div><div>Ex:</div><div><br></div><div>----- script 1 (embedded in ipxe)</div>
<div>#!ipxe</div><div><div>dhcp net0</div><div>route</div><div>imgfetch ipxe.cfg/boot1.ipxe</div><div>imgload boot1.ipxe</div><div>imgexec boot1.ipxe</div><div><br></div><div>----- script 2 (boot1.ipxe)</div><div>#!ipxe</div>
<div>imgfetch shellx64.efi</div><div><br></div><div>The tftp server (with verbose msgs) shows that the imgfetch in boot1.ipxe asks for "ipxe.cfg/shellx64.efi".</div><div><br></div><div><br></div><div>Duane</div>
<div><br></div><br><div class="gmail_quote">On Wed, Dec 8, 2010 at 6:04 AM, Michael Brown <span dir="ltr"><<a href="mailto:mbrown@fensystems.co.uk">mbrown@fensystems.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wednesday 08 Dec 2010 00:05:06 Shao Miller wrote:<br>
> On 12/7/2010 18:31, Duane Voth wrote:<br>
> > I've been trying to run a remote script from ipxe (snponly version)<br>
> > but imgload complains with a 2e008001<br>
><br>
> If you use a recent version of iPXE, you might notice that those error<br>
> codes are given as URIs.<br>
><br>
>    <a href="http://ipxe.org/err/2e008001" target="_blank">http://ipxe.org/err/2e008001</a><br>
><br>
> "Exec format error"<br>
><br>
> Do you perhaps have "#!gpxe" in the script's she-bang, rather than<br>
> "#!ipxe" ?<br>
<br>
</div>"#!gpxe" should also be recognised; gPXE scripts are currently a subset of<br>
iPXE scripts (with the single exception of the command "dhcp any" in gPXE,<br>
which is just "dhcp" in iPXE, for consistency with "ifopen" et al).<br>
<br>
It does sound as though the shebang line is not being recognised.  Could you<br>
possibly attach a copy of your script?<br>
<font color="#888888"><br>
Michael<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
ipxe-devel mailing list<br>
<a href="mailto:ipxe-devel@lists.ipxe.org">ipxe-devel@lists.ipxe.org</a><br>
<a href="https://lists.ipxe.org/mailman/listinfo/ipxe-devel" target="_blank">https://lists.ipxe.org/mailman/listinfo/ipxe-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>
</div>