Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UEFI Network Boot: loop and exec format error
2016-01-07, 17:43 (This post was last modified: 2016-01-07 17:45 by altsysrq.)
Post: #6
SOLVED: UEFI Network Boot: loop and exec format error
Thank you for the responses.

Here is one example of my script.ipxe:
Code:
#!ipxe

chain ipxe/menu.ipxe

## provide a prompt in the event that the menu is not accessible or there are other issues.
prompt --key 0x02 --timeout 10000 Press Ctrl-B for the iPXE command line... && shell ||

As a test I have also tried simply:
Code:
#!ipxe
shell

Quote:The problem is CentOS 6 (As well as Scientific Linux 6 and RHEL6) do not have the "EFI_STUB" option compiled into their kernels... i.e. they are not valid EFI Binaries.
You need to boot (on the ISO) EFI/BOOT/BOOTX64.efi
You can use iPXE to do it... but it's hardly worth it.

It seems I have 2 issues here. Lets bypass the CentOS 6.5 issue in this thread. I will look at the other threads recommended to fix that and if I run into further issues I can create a new thread.

Quote:Note that make command will create an legacy file, that won't work in efi mode. Do you see the iPXE version header printed on screen with this file at all? (or atleast "iPXE initialising

I did not get any of that.

Quote:There is also script debugging that can be enabled with a command like:
make bin-x86_64-efi/ipxe.efi EMBED=../../script.ipxe DEBUG=script

No change with the ixpe.efi compile. I get as far as Downloading the NBP successfully but nothing else shows up.

Quote:script in this case refers to that scripts is handled by the script.c source file.
Thank you for the clarification.

Quote:There is also script debugging that can be enabled with a command like:
make bin-x86_64-efi/ipxe.efi EMBED=../../script.ipxe DEBUG=script

The above suggestions plus installing (for reference to others):
Code:
apt-get install binutils-dev lib32z1-dev libiberty-dev

This is the kicker for me. I was not doing this. When I tried it it worked. Consider this thread solved.

I have other issues, but I will need to research those and find out what I am doing wrong.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
SOLVED: UEFI Network Boot: loop and exec format error - altsysrq - 2016-01-07 17:43
initrd - MultimediaMan - 2016-01-07, 23:53
RE: initrd - altsysrq - 2016-01-08, 01:39



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