Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE source code - embedding.elf
2017-05-26, 13:43
Post: #6
RE: iPXE source code - embedding.elf
(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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


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



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