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

embedded: Use blconfig alias to find bootloader config #976

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

tdewey-rpi
Copy link
Collaborator

Use the blconfig alias to find the correct nvmem device to read the bootloader configuration, the practical effect being that IMAGER_REPO_URL should work on Raspberry Pi 5.

Fixes #894

@lurch
Copy link
Contributor

lurch commented Dec 6, 2024

@tdewey-rpi Comparing this to the https://github.com/raspberrypi/rpi-eeprom/blob/master/rpi-eeprom-update#L117 that @timg236 linked to in #894 , it looks like your're doing the

local blconfig_alias="/sys/firmware/devicetree/base/aliases/blconfig"

and

local blconfig_ofnode_link=$(find -L /sys/bus/nvmem -maxdepth 3 -samefile "${blconfig_ofnode_path}" 2>/dev/null)

parts, but you seem to be missing out the

local blconfig_ofnode_path="/sys/firmware/devicetree/base"$(strings "${blconfig_alias}")""

part in the middle? 🤔

@tdewey-rpi tdewey-rpi merged commit b01593a into qml Jan 6, 2025
@tdewey-rpi tdewey-rpi deleted the dev/tdewey/bugs/894 branch January 6, 2025 11:14
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

Successfully merging this pull request may close these issues.

[BUG]: Not reading EEPROM content in Bootable Imager Image
2 participants