Broken EFI Support in the Raspberry Pi Kernel
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- c, linux
- Domain
- embedded-iot, operating-systems
Research direction
Reproduce the problem from the rpi-6.2.y source with the supplied .config, booting arch/arm64/boot/Image through the EFI shell. Compare the EFI boot with the stock Debian kernel while collecting logs for the reported audio, WiFi, power-off, Bluetooth, and overclocking failures. Done means identifying the EFI-specific regressions and preserving the required Raspberry Pi device nodes.
Written by the indexing model from the issue text.
Description
Describe the bug
For some reason, compiling the Raspberry Pi kernel with EFI boot support breaks many features of Raspberry Pi OS. For example, I lose the following features when booting with EFI:
• The ability for audio output
• WiFi support
• The ability to power off (I get [23634.13552] Rebooting system but it never turns off)
• Bluetooth support
• Crashes with overclocking
• etc
However, when booting with the stock Debian kernel, have none of the above issues (except bluetooth), but I don't have /dev/gpiomem, /dev/vcio, nor /dev/vc-mem. This is why I wish to enable the EFI stub in the Raspberry Pi kernel.
Steps to reproduce the behaviour
- Download the latest kernel source
git clone --depth=1 --branch=rpi-6.2.y https://github.com/raspberrypi/linux - Download my configuration
cd ./linux && make -j distclean && wget https://pastebin.com/raw/AVmn0AgF -O ./.config - Update configuration in case anything has changed
make -j oldconfig - Compile the kernel
make -j6 dtbs Image modules - Install devicetree and modules
make -j6 dtbs_install modules_install - Paste the kernel in
/bootsudo cp ./arch/arm64/boot/Image /boot - Download EFI Firmware and unzip its contents in
/boot. - Reboot
- Press
F1when you see the Raspberry Pi Logo to enter the EFI Shell. - Type
fs0:in the EFI shell. - Type
Image root=/dev/mmcblk0p2 rootwait ro(replacing/dev/mmcblk0p2with whatever device you boot from)
All of the above steps have been performed on a Raspberry Pi, I have not cross-compiled anything
Device (s)
Raspberry Pi 4 Mod. B
System
cat /etc/rpi-issueNot foundvcgencmd version
Dec 12 2022 11:56:56 Copyright (c) 2021 Broadcom version ed6f6b8fcdc6476410b9cf75d141633461d34bdd (clean) (release) (start)uname -aLinux raspberrypi 6.2.16-v8+ #5 SMP PREEMT Sun Jul 16 18:48:02 CDT 2023 aarch64 GNU/Linux
Logs
No response
Additional context
No response
- Dominant language
- C
- Stars
- 13.2k
- Forks
- 5.5k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 21
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from raspberrypi/linux
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
raspberrypi/linux#7415 · 2 comments · 1 reaction ·
-
rp1-cfe doesn't forward V4L2_EVENT_SOURCE_CHANGE event from csi-2 sensor driver to userspace app Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
raspberrypi/linux#7399 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
raspberrypi/linux#7357 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
raspberrypi/linux#7054 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
raspberrypi/linux#7634 · 8 comments · 1 reaction ·
All issues in raspberrypi/linux
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·