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

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

Open
1 task
FiSh3rWoLf opened this issue Jul 16, 2024 · 3 comments · May be fixed by #976
Open
1 task

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

FiSh3rWoLf opened this issue Jul 16, 2024 · 3 comments · May be fixed by #976
Labels
bug Something isn't working

Comments

@FiSh3rWoLf
Copy link

FiSh3rWoLf commented Jul 16, 2024

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

  • Yes, I was using OS Customisation when the bug occurred.

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
#
@FiSh3rWoLf FiSh3rWoLf added the bug Something isn't working label Jul 16, 2024
@FiSh3rWoLf FiSh3rWoLf changed the title [BUG]: [BUG]: Not reading EEPROM content in HTTP Boot Image Jul 16, 2024
@FiSh3rWoLf FiSh3rWoLf changed the title [BUG]: Not reading EEPROM content in HTTP Boot Image [BUG]: Not reading EEPROM content in Bootable Imager Image Jul 16, 2024
@tdewey-rpi
Copy link
Collaborator

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
Copy link

timg236 commented Jul 17, 2024

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

@thePhil
Copy link

thePhil commented Oct 5, 2024

I can confirm that I'm hitting the same issue.

  1. Original RPI Imager downloaded from the official location and served locally in my network
  2. IMAGER_REPO_URL configured and no GET request can be recorded for the specified file

Would be glad to hear about a projected timeline for a resolution.
As a workaround, I will experiment, patching the URL I need into rpi-imager and serve that to my Raspberry Pi 5.

Please see the following context:
boot.conf file of the bootloader:

[all]
ENABLE_SELF_UPDATE=1
BOOT_UART=1
POWER_OFF_ON_HALT=0
BOOT_ORDER=0xf271

HTTP_HOST=192.168.178.19
HTTP_PORT=18080
HTTP_PATH=/
IMAGER_REPO_URL=http://192.168.178.19:18080/os_list_imagingutility_v3.json

Boot UART Trace:

91.68 HTTP: GET request for http://192.168.178.19:18080/boot.img
191.72 HTTP: got 98% at 183 kB/s
192.43 HTTP: got 98% at 183 kB/s
193.71 HTTP: got 98% at 182 kB/s
194.35 HTTP: got 99% at 183 kB/s
196.27 HTTP: got 99% at 181 kB/s
196.72 HTTP: got 100% at 181 kB/s
196.73 Verifying
200.61 RSA verify
200.73 rsa-verify pass (0x0)
200.17 MBR: 0x00000000,       0 type: 0x00
200.18 MBR: 0x00000000,       0 type: 0x00
200.22 MBR: 0x00000000,       0 type: 0x00
200.26 MBR: 0x00000000,       0 type: 0x00
200.29 Trying partition: 0
200.32 type: 16 lba: 0 'mkfs.fat' '  V       ^ ' clusters 15851 (4)
200.38 rsc 4 fat-sectors 64 root dir cluster 1 sectors 16 entries 256
200.44 FAT16 clusters 15851
200.48 Read config.txt bytes      207 hnd 0xb70
200.51 [ramdisk] pieeprom.upd not found
200.55 usb_max_current_enable default 0 max-current 5000
200.61 Read bcm2712-rpi-5-b.dtb bytes    80218 hnd 0xace
200.65 dt-match: compatible: raspberrypi,5-model-b match: brcm,bcm2712
200.71 dt-match: compatible: brcm,bcm2712 match: brcm,bcm2712

NOTICE:  BL31: v2.6(release):v2.6-239-g2a9ede0bd
NOTICE:  BL31: Built : 14:26:57, Jun 22 2023
Starting rpi-imager

Welcome to Buildroot
buildroot login: 

Respective network flow observed via Wireshark:

No.	Time	Source	Destination	Protocol	Length	Info
630181	8737.626322	192.168.178.183	192.168.178.19	HTTP	194	GET /boot.sig HTTP/1.1 
630184	8737.628228	192.168.178.19	192.168.178.183	HTTP	144	HTTP/1.1 200 OK  (application/pgp-signature)
630209	8738.827228	192.168.178.183	192.168.178.19	HTTP	194	GET /boot.img HTTP/1.1 
631234	8739.827270	192.168.178.183	192.168.178.19	HTTP	254	GET /boot.img HTTP/1.1 
634098	8747.327258	192.168.178.183	192.168.178.19	HTTP	255	GET /boot.img HTTP/1.1 
637960	8765.827341	192.168.178.183	192.168.178.19	HTTP	255	GET /boot.img HTTP/1.1 
642869	8772.827284	192.168.178.183	192.168.178.19	HTTP	255	GET /boot.img HTTP/1.1 
646519	8788.327386	192.168.178.183	192.168.178.19	HTTP	255	GET /boot.img HTTP/1.1 
651163	8805.881819	192.168.178.183	192.168.178.19	HTTP	254	GET /boot.img HTTP/1.1 
653685	8806.827512	192.168.178.183	192.168.178.19	HTTP	254	GET /boot.img HTTP/1.1 
655597	8824.565430	192.168.178.1	255.255.255.255	DHCP	342	DHCP ACK      - Transaction ID 0x5c59d54a
664389	8847.327670	192.168.178.183	192.168.178.19	HTTP	255	GET /boot.img HTTP/1.1 
668009	8877.367097	192.168.178.183	192.168.178.19	HTTP	254	GET /boot.img HTTP/1.1 
668604	8878.327985	192.168.178.183	192.168.178.19	HTTP	255	GET /boot.img HTTP/1.1 
674494	8888.327771	192.168.178.183	192.168.178.19	HTTP	254	GET /boot.img HTTP/1.1 
677947	8894.327689	192.168.178.183	192.168.178.19	HTTP	255	GET /boot.img HTTP/1.1 
686558	8908.327763	192.168.178.183	192.168.178.19	HTTP	254	GET /boot.img HTTP/1.1 
687499	8910.233172	192.168.178.19	192.168.178.183	HTTP	619	HTTP/1.1 206 Partial Content  (application/octet-stream)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants