Skip to content

rpi-eeprom-update: Guard updates on boards with RAM mismatches - #924

Closed
jameshilliard wants to merge 1 commit into
raspberrypi:masterfrom
jameshilliard:fix/eeprom-ram-mismatch
Closed

jameshilliard wants to merge 1 commit into
raspberrypi:masterfrom
jameshilliard:fix/eeprom-ram-mismatch

Conversation

@jameshilliard

Copy link
Copy Markdown

Compare BCM2712's effective RAM capacity with the factory capacity from device tree or OTP before staging or flashing an update.

For mismatched boards, permit builds before 2024-09-23 or matching the running build. Check every bootable partition using rpi-bootloader-version because compatibility does not follow firmware date order. Keep normal latest-image selection and require a compatible image to be selected manually when an update is rejected.

Warn about possible RAM replacement and advise contacting the seller for undisclosed modifications. Document the policy and add isolated updater tests to CI.

Refs: #797

Without a RAM mismatch guard users risk bricking their devices, this creates a number of potentially undesirable situations:

  • Users may avoid eeprom updates entirely because they don't want to risk bricking a device due to not knowing if their board has legit RAM or not. If updating risks bricking devices users will avoid updating, especially for cases where the hardware is difficult to replace if it were to fail.
  • Users may not know that their hardware had unauthorized modifications and will blame raspberry pi rather than the seller for the hardware failure after updating eeprom.
  • Users may not know their supply chain is contaminated with tampered hardware.
  • Users may think raspberry pi is maliciously bricking working hardware.(i.e. like what happened with FTDIgate)

Compare BCM2712's effective RAM capacity with the factory capacity from
device tree or OTP before staging or flashing an update.

For mismatched boards, permit builds before 2024-09-23 or matching the
running build. Check every bootable partition using rpi-bootloader-version
because compatibility does not follow firmware date order. Keep normal
latest-image selection and require a compatible image to be selected
manually when an update is rejected.

Warn about possible RAM replacement and advise contacting the seller for
undisclosed modifications. Document the policy and add isolated updater
tests to CI.

Refs: raspberrypi#797
@timg236

timg236 commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

We aren’t going to carry patches for this.

@timg236 timg236 closed this Nov 9, 2026
@jameshilliard

Copy link
Copy Markdown
Author

We aren’t going to carry patches for this.

How do you recommend distro's ensure that eeprom updates don't brick end user devices?

@raspberrypi raspberrypi locked as resolved and limited conversation to collaborators Nov 9, 2026
@timg236

timg236 commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

We aren't going to put time or effort into devices which have been miss-sold.

@raspberrypi raspberrypi unlocked this conversation Nov 9, 2026
@raspberrypi raspberrypi locked as resolved and limited conversation to collaborators Nov 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants