Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel not recognized as bootable UEFI binary #130

Open
Juesto opened this issue Dec 20, 2023 · 3 comments
Open

Kernel not recognized as bootable UEFI binary #130

Juesto opened this issue Dec 20, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Juesto
Copy link

Juesto commented Dec 20, 2023

Luet version:

--
CPU architecture, OS, and Version:

x86_64
Describe the bug

Unable to boot live iso in uefi due to firmware being unable to recognize the kernel as a uefi executable
To Reproduce

  1. put iso in usb
  2. boot into uefi shell
  3. try to let it boot via startup.nsh

Expected behavior

being able to boot in uefi mode
Logs

Additional context

trying with MocaccinoOS-XFCE-0.20230707.iso.tar.xz from 1.3 github release
the only uefi related file is startup.nsh containing commands to launch the kernel
I've attempted to run the kernel manually from the shell without success either
the use of startup.nsh is usually reserved for efi shells and such, most systems recognize bootable .efi files
Rufus only offers mbr/bios for the partition table meaning it does not detect uefi in the iso

@Juesto Juesto added the bug Something isn't working label Dec 20, 2023
@joostruis
Copy link
Member

As we talked about on the telegram chan. This happens with older firmware that is unable to handle EFI stub.

@mudler
Copy link
Contributor

mudler commented Feb 16, 2024

To me it looks like we have CONFIG_EFI_STUB enabled: https://github.com/mocaccinoOS/desktop/blob/62ad7c54bec8b01ed86d93d34d3cc44498fd9744/packages/kernels/kernels/mocaccino/kernel/mocaccino-x86_64.config#L466, @Juesto can you provide a bit more context? what is the hw specs here? can you reproduce with modern HW?

@Juesto
Copy link
Author

Juesto commented Feb 16, 2024

not all systems support direct kernel uefi boot, and most systems dont support startup.nsh at all @mudler

just efi stub does not make the iso efi compliant, providing efi shims will make this more compatible and compliant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants