iPXE discussion forum
iPXE EFI with F12 prompt does not work - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: iPXE EFI with F12 prompt does not work (/showthread.php?tid=7956)



iPXE EFI with F12 prompt does not work - power270 - 2016-02-11 04:24

iPXE EFI with F12 prompt does not work with custom built boot loader. It does work with bios boot loader.

Here is my script
#!ipxe
prompt --key 0x197e --timeout 4000 Press F12 for network boot... || goto no_shell
dhcp
login
chain http://${username:uristring}:${password:uristring}@pxe.its.ca/menu.ipxe
exit

:no_shell
exit


RE: iPXE EFI with F12 prompt does not work - mcb30 - 2016-02-11 16:06

(2016-02-11 04:24)power270 Wrote:  iPXE EFI with F12 prompt does not work with custom built boot loader. It does work with bios boot loader.

What do you mean by "does not work"?

Michael


RE: iPXE EFI with F12 prompt does not work - power270 - 2016-02-11 17:06

When I hit the F12 key it just exits the script.


RE: iPXE EFI with F12 prompt does not work - mcb30 - 2016-02-11 17:11

(2016-02-11 17:06)power270 Wrote:  When I hit the F12 key it just exits the script.

It looks as though the function key definitions are missing from the ansi_sequences[] table in interface/efi/efi_console.c. You could try adding the relevant definitions there.

If you get it working, please send a patch to ipxe-devel@lists.ipxe.org.

Thanks,

Michael


RE: iPXE EFI with F12 prompt does not work - power270 - 2016-02-12 02:44

I'm a ipxe newbie, but if you point me in the right direction I'll have try at it.


RE: iPXE EFI with F12 prompt does not work - mcb30 - 2016-02-12 14:23

(2016-02-12 02:44)power270 Wrote:  I'm a ipxe newbie, but if you point me in the right direction I'll have try at it.

It's a small change. Already done!

Michael


RE: iPXE EFI with F12 prompt does not work - power270 - 2016-02-14 20:26

Thanks Michael

Rebuilt ipxe.efi and it works perfectly.