Bug 15898

Summary: Unable to boot syslinux.efi produced by buildroot (EFI 64-bit), the one provided by the tarball works fine though
Product: buildroot Reporter: Meliodas <meliodasren01>
Component: OtherAssignee: unassigned
Status: RESOLVED DUPLICATE    
Severity: normal CC: buildroot
Priority: P5    
Version: 2023.08.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Meliodas 2023-12-22 18:56:33 UTC
Hello,

Hopefully I am just missing something in my buildroot's menuconfig settings but I can't figure out what it could be. If this is the case then it might be a bug since I suspect the menuconfig should auto-select whatever I'm missing based on the settings I chose.

Some of the settings currently set include:
BR2_TARGET_SYSLINUX=y
BR2_TARGET_SYSLINUX_EFI=y

The rest with "SYSLINUX" are =n.

Everything compiles fine. I end up with the following syslinux file after the build finishes:
output/images/syslinux/syslinux.efi

It is 129717 bytes. 

I this should be the 64-bit version since I also have the following set:
BR2_ARCH=x86_64

However, this file does not boot.

I know that this file is to blame and nothing else because I can simply do the following to boot successfully:
- extract the original syslinux compressed file (dl/syslinux/syslinux-6.03.tar.xz), which contains a copy of the syslinux.efi file that they build (and buildroot deletes during the build process)
- replace the syslinux.efi built by buildroot with the one extracted from the compressed archive (i.e. syslinux-6.03/efi64/efi/syslinux.efi)
- this syslinux.efi boots fine, with no other changes made

Note: The one provided from the original compressed archive is 199952 bytes.

This leads me to believe that the syslinux.efi built by buildroot is missing something, since it fails to boot and it's about 35% smaller than the original provided by the compressed archive.

Thanks
Comment 1 Meliodas 2023-12-23 18:49:17 UTC
This can be closed as a duplicate of 11861. I tried building syslinux 6.0.3 myself outside of buildroot and had the same problem. Applying the patch from 11861 fixed it. I don't know how to apply the patch when building from within buildroot though.

*** This bug has been marked as a duplicate of bug 11861 ***