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

Involuntary support for legacy kernels? #247

Open
alsldlflglhljlk opened this issue Oct 26, 2023 · 0 comments
Open

Involuntary support for legacy kernels? #247

alsldlflglhljlk opened this issue Oct 26, 2023 · 0 comments

Comments

@alsldlflglhljlk
Copy link

alsldlflglhljlk commented Oct 26, 2023

I managed to boot the Raspberry Pi official kernel with v1.35 firmware and have complete access to all of the Raspberry Pi's peripherals! However, I did not recompile the kernel with UEFI support and am confused how this happened. Here's how I did it (these steps were performed on a USB stick):

  1. Download the Raspberry Pi kernel and save it as /boot/kernel8.img.efi. Make sure it ends with .efi.
  2. Change the boot order USB -> SD Card -> Network Boot with raspi-config.
  3. Insert an SD card (with a valid Raspberry Pi OS image) into the SD card slot.
  4. Reboot.
  5. Upon seeing the Raspberry Pi logo, press F1 to enter the UEFI shell.
  6. Type fs0: to switch to the boot partition of the USB stick.
  7. Type ls -b and make sure that kernel8.img.efi exists. If not, try fs1:, fs2: etc and find it.
  8. Once you find kernel8.img.efi, type kernel8.img root=/dev/sda2 rootwait ro. This is NOT a typo, do not include the .efi.

Somehow, this only works for me when there is an SD card in the SD card slot. I have no idea whatsoever how this works at all. This opens up a new opportunity for a "legacy boot" mode for kernels that don't support UEFI. This also makes full Debian support a real possibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant