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

Open
wants to merge 2 commits into
base: qml
Choose a base branch
from

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? 🤔

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