Chainloading iPXE (HTTP), does not work - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Chainloading iPXE (HTTP), does not work (/showthread.php?tid=7528) |
Chainloading iPXE (HTTP), does not work - stamster - 2014-11-09 18:30 Hello, I compiled an embed script as follows in order to chainload my initrd and kernel image: [undefined=undefined] #!ipxe kernel linux bootfile=http://192.168.222.177/n/ fastboot initrd=initrd.gz initrd initrd.gz boot[/undefined] Using binary "undionly.kpxe". [undefined=undefined]make bin/undionly.kpxe EMBED=myscript.ipxe[/undefined] Boot process starts (iPXE), but it loops endlessly until I press Ctrl +B. If I type in manually dhcp followed by chain http://myURL everything WORKING FINE! Where am I going wrong on this? P.S. Thanks for such a great piece of software, I've been looking for a long time for such a solution! RE: Chainloading iPXE (HTTP), does not work - mcb30 - 2014-11-10 16:41 (2014-11-09 18:30)stamster Wrote: Boot process starts (iPXE), but it loops endlessly until I press Ctrl +B. Somehow you are using a binary which does not include your embedded script. If there is an embedded script then iPXE will not display the "Press Ctrl-B" prompts; the presence of the prompts proves that this binary does not have any embedded script. Recheck your build command line for typos, and check that your TFTP server is providing the binary that you think it is providing. Michael RE: Chainloading iPXE (HTTP), does not work - stamster - 2014-11-11 19:19 Hello Michael, Thanks for the reply. I'll try to re-combile the whole package again. I'm using the simple build syntax found on official iPXE documentation: Code: make bin/undionly.kpxe EMBED=demo.ipxe Where demo.ipxe is a plain text file such as Code: #!ipxe The odd thing is I don't get any any errors in compile time. Perhaps I should use an apsolute paths i.e.: Code: make /full/path/to/bin/undionly.kpxe EMBED=/full/path/to/my/custom/demo.ipxe RE: Chainloading iPXE (HTTP), does not work - stamster - 2014-11-11 20:36 I've managed to make it work! My TFTP server was stupid enough to offer wrong image due to a similar file name! ipxe --> old undionly.kpxe (without my embed script) ipxe-new --> undionly.kpxe with my embed script The latter TFTP file did not get any hits since the first one was taking it all (why it didn't take the whole req. file name, when it found matching part it offered that file, odd?!). Thank you for support! |