iPXE discussion forum
how to embed simple script to ipxe.efi - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: how to embed simple script to ipxe.efi (/showthread.php?tid=10083)



how to embed simple script to ipxe.efi - chainloadee - 2017-06-26 22:28

Hello,
My setup is chainboot with legacy undionly.kpxe with an embedded script with legacy bios settings.
Script:
#!ipxe
dhcp
chain http://chainboot.mydomain.com

lt works fine, but now I need uefi. It boots ok, but loops, so I tried to embedd this bootscript with

make /bin/ipxe.efi EMBED=script.ipxe

but it only says nothing to do. I found a second Makefile.efi, but I don't know how to use it.

Am I doing right or is there another way with UEFI boot to embed a script.

all the best


RE: how to embed simple script to ipxe.efi - NiKiZe - 2017-06-27 16:04

make bin/ipxe.efi

is the same as

make bin-i386-pcbios/ipxe.efi

(you can see this described at http://ipxe.org/appnote/buildtargets )

What you want is make bin-x86_64-efi/ipxe.efi


RE: how to embed simple script to ipxe.efi - yanshuo1990 - 2017-07-24 05:24

(2017-06-26 22:28)chainloadee Wrote:  Hello,
My setup is chainboot with legacy undionly.kpxe with an embedded script with legacy bios settings.
Script:
#!ipxe
dhcp
chain http://chainboot.mydomain.com

lt works fine, but now I need uefi. It boots ok, but loops, so I tried to embedd this bootscript with

make /bin/ipxe.efi EMBED=script.ipxe

but it only says nothing to do. I found a second Makefile.efi, but I don't know how to use it.

Am I doing right or is there another way with UEFI boot to embed a script.

all the best

Maybe you can try this website, I find it quite useful.
https://rom-o-matic.eu/


RE: how to embed simple script to ipxe.efi - NiKiZe - 2017-07-24 09:22

(2017-07-24 05:24)yanshuo1990 Wrote:  Maybe you can try this website, I find it quite useful.
https://rom-o-matic.eu/

If you can build yourself do that instead. rom-o-matic is good to have if you can't build locally, but it has some issues, one being that the version is not correct due to missing git.