Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE source code - embedding.elf
2017-05-26, 13:25
Post: #5
RE: iPXE source code - embedding.elf
(2017-05-25 18:42)mcb30 Wrote:  
(2017-05-25 18:26)Abrams Wrote:  Thanks for the accept, yes I have an executable file .elf that at the moment does a simple check of the memory address. I am trying to achieve something but it is a private project so I can not tell you more.
By the way I found the solution about the .elf file.
I need to boot through an apache server and call it through the Webserver
for example :
boot http://ipaddress-webserver/file.elf
and it works perfect.

OK. Please be aware that ELFBoot executables are not allowed to return to iPXE (and iPXE will deliberately hang if an ELFBoot executable attempts to return), so there is no way for you to call your external ELFBoot executable and then return to iPXE in order to perform the iSCSI boot.

You may want to investigate the option of using a different executable format, such as a PXE NBP or an iPXE script (both of which are able to return back to iPXE).


Hi Michael,

Well, first I attach the iSCSI disk and then execute my ELF file and then I am booting through the iSCSI disk.

For example:

set initiator-iqn "IQN of the initiator"
sanhook iscsi:"IQN of the target"
boot http://<ip.address of the Webserver>/test.elf
sanboot iscsi:"IQN of the target"

Using this code, actually I can execute my .elf file and then booting through the iSCSI disk. But first you need to attach the disk.
This code works for me.

Many thanks!
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: iPXE source code - embedding.elf - Abrams - 2017-05-26 13:25

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