pieeprom-2025-06-29: 2712: Check for SD card overcurrent on Pi5 and Pi500 (latest)#721
Merged
timg236 merged 1 commit intoraspberrypi:masterfrom Jun 30, 2025
Merged
Conversation
…i500 (latest) * board_info: Use the Ethernet PHY address probed by the bootloader Use the Ethernet PHY address supplied by the bootloader in preference to the static configurations defined in start4.elf * pi5: Fix overwrite of cache EEPROM config in secure-boot mode See: raspberrypi#719 * Check for SD card overcurrent on Pi5, Pi500 and Pi4 Before booting, the bootloader now checks the SD power switch overcurrent signal. The overcurrent signal occurs if the SD card is damaged and has a short circuit which will cause it to get hot. If an over-current condition is detected the bootloader switches off power to the SD card and waits five seconds before probing the SD card again. This error is displayed on the diagnostic screen, the UART and the activity LED (1 long, 2 short) flashes. The check can be switched to a non-blocking warning by setting SD_OVERCURRENT_CHECK=0 in the bootloader config. * Add a new error code pattern for SD overcurrent Add a new error pattern (1 long, 2 short) to signal SD card overcurrent. * Enable RTC wakeup from POWER_OFF_ON_HALT=0 * Improve HAT+ current handling In shipping firmware, the current_supply value is only being used in the case of a normal (non-stacked) HAT+, but that is unnecessarily restrictive. Also, the presence of MODE0 and MODE1 power HATs is not reflected in the value of max_current. See: raspberrypi/linux#6678
lurch
added a commit
to raspberrypi/documentation
that referenced
this pull request
Jul 1, 2025
JamesH65
pushed a commit
to raspberrypi/documentation
that referenced
this pull request
Jul 1, 2025
clowder
pushed a commit
to raspberrypi/documentation
that referenced
this pull request
Jul 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the Ethernet PHY address supplied by the bootloader in preference to the static configurations defined in start4.elf
See: Pasbberry Pi 5 OVERLAP DETECTED! after "program_pubkey=1" #719
Before booting, the bootloader now checks the SD power switch overcurrent signal. The overcurrent signal occurs if the SD card is damaged and has a short circuit which will cause it to get hot. If an over-current condition is detected, the bootloader switches off power to the SD card and waits five seconds before probing the SD card again.
This error is displayed on the diagnostic screen, the UART and the activity LED (1 long, 2 short) flashes.
The check can be switched to a non-blocking warning by setting SD_OVERCURRENT_CHECK=0 in the bootloader config.
Add a new error pattern (1 long, 2 short) to signal SD card overcurrent.
In shipping firmware, the current_supply value is only being used in the case of a normal (non-stacked) HAT+, but that is unnecessarily restrictive. Also, the presence of MODE0 and MODE1 power HATs is not reflected in the value of max_current.
See: Overlays: Adding generic overlay for Cytron standard HAT+ boards that also supply power to the Raspberry Pi. linux#6678