Problem chainloading syslinux.efi from iPXE
|
2016-04-28, 09:57
Post: #1
|
|||
|
|||
Problem chainloading syslinux.efi from iPXE
I have compiled iPXE from the Github repository and I'm trying to use it on a UEFI system to chainload into our SysLinux-based PXE system.
As it is, iPXE does not like the syslinux.efi it is grabbing: I've blanked out our public IP address. The above is a VM, on a physical box it reboots before I can grab the output. The ultimate purpose of this is to have a UEFI bootable memory stick that can bypass DHCP and boot to a specific PXE server using a static IP number. For now it gets an IP from DHCP and then overrides the values. Here is the embedded script content: Code: #!ipxe I have tried various 64-bit versions of syslinux.efi, including 6.03 binaries provided on the website and compiling my own from the source. None of them work, so I suspect my iPXE build is not configured correctly. In config/general.h I have set: #define IMAGE_EFI Are there any other configuration changes I need to make to get this working? Or additional debugging I can add to 'DEBUG=dhcp:2,tftp:2,http:2,image:7,efi_init:7,efi_image:7' that would provide useful output? Thanks. |
|||
2016-04-28, 12:21
Post: #2
|
|||
|
|||
RE: Problem chainloading syslinux.efi from iPXE
(2016-04-28 09:57)mattross Wrote: I have tried various 64-bit versions of syslinux.efi, including 6.03 binaries provided on the website and compiling my own from the source. None of them work, so I suspect my iPXE build is not configured correctly. Some minor side points first; The "format not recognised" error is entirely misleading, and has now been fixed in http://git.ipxe.org/ipxe.git/commitdiff/b696a50. You don't need to explicitly add IMAGE_EFI in config/general.h; it's already enabled by default for EFI builds (via config/defaults/efi.h). Using ":2" as a debug level is generally incorrect, since the debug level is a bitmask. You probably want ":3" instead. See http://ipxe.org/download#debug_builds. As for your actual problem: You can try using DEBUG=efi_wrap to see what system calls are being issued by the loaded syslinux.efi. It's similar to running strace on a userspace binary. One question I have is why are you trying to use iPXE to load syslinux.efi, instead of just using iPXE to load your OS directly? You're already creating a custom iPXE script, so why not just extend that script to boot your OS? That would definitely simplify your setup, which is always a good thing. Michael |
|||
2016-04-28, 12:47
Post: #3
|
|||
|
|||
RE: Problem chainloading syslinux.efi from iPXE
Thanks for the tips, have updated accordingly and rebuilt. This is not for booting an OS, we use our PXE for Clonezilla, utility ISOs and various other things. It's all working via BIOS, and now I would like to get it working via EFI before our PC supplier removes BIOS from the firmware altogether.
Here is the final output before it crashes: |
|||
2017-01-19, 18:36
Post: #4
|
|||
|
|||
RE: Problem chainloading syslinux.efi from iPXE
(2016-04-28 12:47)mattross Wrote: Thanks for the tips, have updated accordingly and rebuilt. This is not for booting an OS, we use our PXE for Clonezilla, utility ISOs and various other things. It's all working via BIOS, and now I would like to get it working via EFI before our PC supplier removes BIOS from the firmware altogether. Did you get this working? |
|||
2019-01-10, 21:15
(This post was last modified: 2019-01-10 21:53 by rahuls551.)
Post: #5
|
|||
|
|||
RE: Problem chainloading syslinux.efi from iPXE
I am running into the same problem? Is there a solution to this?
I was running the system in legacy mode but when i switched to uefi mode then the system is giving me another error core_udp_sendto: stalling with no mapping. Any help appreciated. |
|||
2019-01-10, 22:03
Post: #6
|
|||
|
|||
RE: Problem chainloading syslinux.efi from iPXE
I will repeat this question.
(2016-04-28 12:21)mcb30 Wrote: One question I have is why are you trying to use iPXE to load syslinux.efi, instead of just using iPXE to load your OS directly? You're already creating a custom iPXE script, so why not just extend that script to boot your OS? That would definitely simplify your setup, which is always a good thing. If the answer is "I already have a syslinux menu", then: 1. Just rewrite it in iPXE script - you will thank yourself later (many years back I did, and today I'm really happy that I didn't try to stay in syslinux) 2. If syslinux is working, why are you trying to use iPXE? Use GitHub Discussions VRAM bin |
|||
2019-01-11, 18:46
Post: #7
|
|||
|
|||
RE: Problem chainloading syslinux.efi from iPXE
(2019-01-10 22:03)NiKiZe Wrote: I will repeat this question. The reason is I am testing chain loading with ipxe. When I load syslinux through ipxe and try to boot I am getting this error CloseProtocol (UKNOWN<0x64582c18, Udp4>, Udp4Sb......syslinux.efi, UNKNOWN = INVALID_PARAMETER. This error keeps on repeating. Any ideas> |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)