pieeprom-2025-06-29: 2712: Check for SD card overcurrent on Pi5 and Pi500 (latest) #721
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