iPXE discussion forum
Chain UEFI linux with ipxe.efi or ipxe-snponly - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Chain UEFI linux with ipxe.efi or ipxe-snponly (/showthread.php?tid=8381)



Chain UEFI linux with ipxe.efi or ipxe-snponly - Lester - 2017-03-01 06:31

Hi!

I'm trying to make uefi linux happen with ipxe.efi !
Tryied dozen different version of *.efi, it just can't. Everytime the same error message:
kernel /vmlinuz initrd=initrd.img
initrd intrd.img
“Could not select : Exec format error”

I want to know , IS THERE any way to help me finish this?
It would be great thankful!


Next link tell me howto do that, but it actually doesn't help.
http://ipxe.org/appnote/uefihttp
https://doc.rogerwhittaker.org.uk/ipxe-installation-and-EFI/


RE: Chain UEFI linux with ipxe.efi or ipxe-snponly - NiKiZe - 2017-03-01 06:42

(2017-03-01 06:31)Lester Wrote:  Hi!

I'm trying to make uefi linux happen with ipxe.efi !
Tryied dozen different version of *.efi, it just can't. Everytime the same error message:
kernel /vmlinuz initrd=initrd.img
initrd intrd.img
“Could not select : Exec format error”

I want to know , IS THERE any way to help me finish this?
It would be great thankful!


Next link tell me howto do that, but it actually doesn't help.
http://ipxe.org/appnote/uefihttp
https://doc.rogerwhittaker.org.uk/ipxe-installation-and-EFI/

If you read the full error message that you get and follow that url you will see a explanation about the issue. Mainly that in EFI mode the file you are trying to boot must be a EFI binary (linux kernel needs CONFIG_EFI_STUB enabled to be EFI compatible) there is several other posts about this already, here is one of my previous replies to same/similar question: http://forum.ipxe.org/showthread.php?tid=7726&pid=11650#pid11650


RE: Chain UEFI linux with ipxe.efi or ipxe-snponly - Lester - 2017-03-01 07:07

(2017-03-01 06:42)NiKiZe Wrote:  
(2017-03-01 06:31)Lester Wrote:  Hi!

I'm trying to make uefi linux happen with ipxe.efi !
Tryied dozen different version of *.efi, it just can't. Everytime the same error message:
kernel /vmlinuz initrd=initrd.img
initrd intrd.img
“Could not select : Exec format error”

I want to know , IS THERE any way to help me finish this?
It would be great thankful!


Next link tell me howto do that, but it actually doesn't help.
http://ipxe.org/appnote/uefihttp
https://doc.rogerwhittaker.org.uk/ipxe-installation-and-EFI/

If you read the full error message that you get and follow that url you will see a explanation about the issue. Mainly that in EFI mode the file you are trying to boot must be a EFI binary (linux kernel needs CONFIG_EFI_STUB enabled to be EFI compatible) there is several other posts about this already, here is one of my previous replies to same/similar question: http://forum.ipxe.org/showthread.php?tid=7726&pid=11650#pid11650

I almost understand what you mean.
So i have to recompile the kernel file(vmlinuz), and set CONFIF_EFI_STUB enabled. if that's true, is there some kernel file already done with uefi that i can test before i do.Tongue
I just find normal kernel file with 3.3 version or newer it could boot with ipxe.efi. In this page, it says kernel 3.3, you don't have to do anything to uefi boot.
https://wiki.archlinux.org/index.php/EFISTUB


RE: Chain UEFI linux with ipxe.efi or ipxe-snponly - NiKiZe - 2017-03-01 07:39

(2017-03-01 07:07)Lester Wrote:  I almost understand what you mean.
So i have to recompile the kernel file(vmlinuz), and set CONFIF_EFI_STUB enabled. if that's true, is there some kernel file already done with uefi that i can test before i do.Tongue
I just find normal kernel file with 3.3 version or newer it could boot with ipxe.efi. In this page, it says kernel 3.3, you don't have to do anything to uefi boot.
https://wiki.archlinux.org/index.php/EFISTUB

Haha, yes feel free to just
Code:
chain http://boot.ipxe.org/demo/
(should work with efi)
or if you want a more full environment you can test:
chain http://b800.org/sysr/sysrcd.ipxe