raspberrypi / rpi-imager

The home of Raspberry Pi Imager, a user-friendly tool for creating bootable media for Raspberry Pi devices.
https://www.raspberrypi.com/software
Other
1.61k stars 240 forks source link

[BUG]: Not reading EEPROM content in Bootable Imager Image #894

Open FiSh3rWoLf opened 1 month ago

FiSh3rWoLf commented 1 month ago

What happened?

The embedded Raspberry Pi Imager doesn't read IMAGER_REPO_URL in bootloader EEPROM. Imager look for rmem0 but has rmem4 instead.

Version

1.8.5 (Default)

What host operating system were you using?

Windows

Host OS Version

23H2

Selected OS

Raspberry Pi Imager from HTTP Boot (downloaded https://fw-download-alias1.raspberrypi.com/net_install/boot.img on local server)

Which Raspberry Pi Device are you using?

Raspberry Pi 5

What kind of storage device are you using?

NVMe SSD via Third-party PCIe attachment

OS Customisation

Relevant log output

Welcome to Buildroot
buildroot login: root
Password:
login[130]: root login on 'console'
# ls /sys/bus/nvmem/devices/
nvmem_cust0  nvmem_mac0   nvmem_otp0   nvmem_priv0  rmem4
# cat /sys/bus/nvmem/devices/rmem4/nvmem
[all]
PSU_MAX_CURRENT=5000
BOOT_UART=1
BOOT_ORDER=0xf7146
PCIE_PROBE=1
POWER_OFF_ON_HALT=0
NET_INSTALL_ENABLED=1
NET_INSTALL_KEYBOARD_WAIT=5000
HTTP_HOST=172.27.0.254
IMAGER_REPO_URL=http://172.27.0.254/oslist.json

[gpio22=1]
BOOT_ORDER=0xf7
#
tdewey-rpi commented 1 month ago

Thanks for the report, @FiSh3rWoLf, and for the pre-submission sleuthing.

Curious we've not seen this one before. I'll need to check if this is specific to Raspberry Pi 5, or if it also affects the Raspberry Pi 4 family.

timg236 commented 1 month ago

Applications need to use the blconfig alias and not hardcoded the rmem node https://github.com/raspberrypi/rpi-eeprom/blob/master/rpi-eeprom-update#L117