Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE source code - embedding.elf
2017-06-02, 13:14
Post: #7
RE: iPXE source code - embedding.elf
(2017-05-26 13:43)mcb30 Wrote:  
(2017-05-26 13:25)Abrams Wrote:  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.

No you can't. Take a look at https://git.ipxe.org/ipxe.git/blob/HEAD:...boot.c#l65. You can see that iPXE will refuse to continue after invoking an ELFBoot executable. If your "test.elf" file is successfully returning to iPXE and continuing to the "sanboot", then it is not an ELFBoot executable.

The file extension ".elf" doesn't actually mean anything to iPXE; it will detect the image type based on the contents of the image rather than the filename. You can use "imgstat" to see what type of executable you really have.

Michael

Hi Michael,

Can I ask you something if you know to help me please,

Is there any way to write the command:

boot test.elf #where test.elf lets say that it is an executable file that is located in the same TFTP directory with the undionly.kpxe file which pointed by the DHCP in the network with the filename "undionly.kpxe" option? I mean, how the system can be informed and look at the TFTP directory to execute this test.elf file ?
Do I need to add an option into my DHCP server?
Is there any directory by default that an iPXE looks inside for the file?

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-06-02 13:14



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