Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chainloading iPXE (HTTP), does not work
2014-11-09, 18:30
Post: #1
Information Chainloading iPXE (HTTP), does not work
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?
Dodgy

P.S. Thanks for such a great piece of software, I've been looking for a long time for such a solution! Smile
Find all posts by this user
Quote this message in a reply
2014-11-10, 16:41
Post: #2
RE: Chainloading iPXE (HTTP), does not work
(2014-11-09 18:30)stamster Wrote:  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?

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
Visit this user's website Find all posts by this user
Quote this message in a reply
2014-11-11, 19:19
Post: #3
RE: Chainloading iPXE (HTTP), does not work
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
  
  dhcp
  chain http://boot.ipxe.org/demo/boot.php

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

Rolleyes
Find all posts by this user
Quote this message in a reply
2014-11-11, 20:36
Post: #4
RE: Chainloading iPXE (HTTP), does not work
I've managed to make it work! Smile
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!
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)