Problems setting up the RPi5 with NVME SSD

Hello,

I have a problem setting up another RPi5. I want to boot from a NVME SSD and this time I have the adapter from Pineberry in use.
I know the necessary adjustments.
In contrast to the first installation, I wanted to use the new image of the RPi5. Booting from the SD also works, but when I make the necessary adjustments using

sudo rpi-eeprom-config --edit

I get the following error message after saving:

ERROR: EEPROM image ‘WARNING: flashrom not found. Setting RPI_EEPROM_USE_FLASHROM to 0 /lib/firmware/raspberrypi/bootloader-2712/default/pieeprom-2024-02-16.bin’ not found.

I also tried to update the kernel, but, sorry I don’t have the error message anymore, something with RPi4 would give out.
Now I wanted to run the first workaround, where first the system is booted on a RPi4, then a script or command had to be executed to then boot the SD in the RPi5. Then the necessary adjustments for the use of an NVME SSD were made and the system was copied to the NVME SSD using backup and restore. I think that’s what I did. In any case, the first RPi5 is still running wonderfully.

I just can’t find the thread about it in the forum.
Who can help?

You tried using lates RPi5 image and boot of SD card, however rpi-eeprom-config is not working?

That’s exactly how it was. The adjustments in this file are not saved.

which file you mean?

I meant, of course, what is saved when i enter
sudo rpi-eeprom-config --edit
A line is then edited there and another one added, which should then look like this in the best case:

[all]
BOOT_UART=1
POWER_OFF_ON_HALT=1
BOOT_ORDER=0xf416
PCIE_PROBE=1

EDIT:

I just entered the same command under PiOS and it worked.

Updating bootloader EEPROM
 image: /lib/firmware/raspberrypi/bootloader-2712/default/pieeprom-2023-11-20.bin
config_src: /boot/firmware/pieeprom.upd
config: /tmp/tmpjp_s8z7e/boot.conf
################################################################################
[all]
BOOT_UART=1
POWER_OFF_ON_HALT=0
BOOT_ORDER=0xf416
PCIE_PROBE=1

################################################################################

*** To cancel this update run 'sudo rpi-eeprom-update -r' ***

*** CREATED UPDATE /tmp/tmpjp_s8z7e/pieeprom.upd  ***

   WARNING: Installing an older bootloader version.
            Update the rpi-eeprom package to fetch the latest bootloader images.

   CURRENT: Fri 16 Feb 15:28:41 UTC 2024 (1708097321)
    UPDATE: Mon 20 Nov 19:40:17 UTC 2023 (1700509217)
    BOOTFS: /boot/firmware
'/tmp/tmp.Py1LJrAQEj' -> '/boot/firmware/pieeprom.upd'
Copying recovery.bin to /boot/firmware for EEPROM update

EEPROM updates pending. Please reboot to apply the update.
To cancel a pending update run "sudo rpi-eeprom-update -r".

can you check following on RPI OS

apt policy rpi-eeprom
rpi-eeprom:
  Installed: 20.2-1
  Candidate: 20.2-1
  Version table:
 *** 20.2-1 500
        500 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages
        500 http://archive.raspberrypi.com/debian bookworm/main armhf Packages
        100 /var/lib/dpkg/status

This is not the latest one available

root@DietPi5:~# apt policy rpi-eeprom
rpi-eeprom:
  Installed: 21.4-1
  Candidate: 21.4-1
  Version table:
 *** 21.4-1 500
        500 https://archive.raspberrypi.com/debian bookworm/main arm64 Packages
        100 /var/lib/dpkg/status
root@DietPi5:~#

can you try to update RPI OS to latest version

apt update && apt upgrade

And is the RPi OS 64bit or 32bit?

dpkg --print-architecture

Sorry, that is correct, in the meantime I have already tried a little with PiOS and downgraded the EEPROM version.

That’s better:

rpi-eeprom:
  Installed: 21.4-1
  Candidate: 21.4-1
  Version table:
 *** 21.4-1 500
        500 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages
        500 http://archive.raspberrypi.com/debian bookworm/main armhf Packages
        100 /var/lib/dpkg/status

It is arm64.

Edit: … and now…

sudo rpi-eeprom-config --edit


Updating bootloader EEPROM
 image: /lib/firmware/raspberrypi/bootloader-2712/critical/pieeprom-2024-02-16.bin
config_src: blconfig device
config: /tmp/tmpgpl6vpe2/boot.conf
################################################################################
[all]
BOOT_UART=1
POWER_OFF_ON_HALT=1
BOOT_ORDER=0xf416
PCIE_PROBE=1

################################################################################

*** To cancel this update run 'sudo rpi-eeprom-update -r' ***

*** CREATED UPDATE /tmp/tmpgpl6vpe2/pieeprom.upd  ***

   CURRENT: Mon 20 Nov 19:40:17 UTC 2023 (1700509217)
    UPDATE: Fri 16 Feb 15:28:41 UTC 2024 (1708097321)
    BOOTFS: /boot/firmware
'/tmp/tmp.WSiLEl8UlT' -> '/boot/firmware/pieeprom.upd'

UPDATING bootloader.

*** WARNING: Do not disconnect the power until the update is complete ***
If a problem occurs then the Raspberry Pi Imager may be used to create
a bootloader rescue SD card image which restores the default bootloader image.

flashrom -p linux_spi:dev=/dev/spidev10.0,spispeed=16000 -w /boot/firmware/pieeprom.upd
UPDATE SUCCESSFUL

and you are still able to use rpi-eeprom-config with version rpi-eeprom 21.4-1 on RPI OS?

yes

rpi-eeprom-config


[all]
BOOT_UART=1
POWER_OFF_ON_HALT=1
BOOT_ORDER=0xf416
PCIE_PROBE=1

what is the output of rpi-eeprom-update on RPi OS?

BOOTLOADER: up to date
   CURRENT: Fri 16 Feb 15:28:41 UTC 2024 (1708097321)
    LATEST: Fri 16 Feb 15:28:41 UTC 2024 (1708097321)
   RELEASE: critical (/lib/firmware/raspberrypi/bootloader-2712/critical)
            Use raspi-config to change the release.

Please let us continue tomorrow, unfortunately I have to leave now. 
Thank you very much for your support so far.

ok we found it. There is a dependency to a package required that is not installed by default on DietPi

apt install flashrom

working now

root@DietPi5:~# rpi-eeprom-config -edit
Updating bootloader EEPROM
 image: /lib/firmware/raspberrypi/bootloader-2712/latest/pieeprom-2024-02-16.bin
config_src: blconfig device
config: /tmp/tmp5429yxpq/boot.conf
################################################################################
[all]
BOOT_UART=1
POWER_OFF_ON_HALT=0
BOOT_ORDER=0xf41

################################################################################

*** To cancel this update run 'sudo rpi-eeprom-update -r' ***

*** CREATED UPDATE /tmp/tmp5429yxpq/pieeprom.upd  ***

   CURRENT: Fri Feb 16 15:28:41 UTC 2024 (1708097321)
    UPDATE: Fri Feb 16 15:28:41 UTC 2024 (1708097321)
    BOOTFS: /boot/firmware
'/tmp/tmp.yCvqrw5r0i' -> '/boot/firmware/pieeprom.upd'

UPDATING bootloader.

*** WARNING: Do not disconnect the power until the update is complete ***
If a problem occurs then the Raspberry Pi Imager may be used to create
a bootloader rescue SD card image which restores the default bootloader image.

flashrom -p linux_spi:dev=/dev/spidev10.0,spispeed=16000 -w /boot/firmware/pieeprom.upd
UPDATE SUCCESSFUL
root@DietPi5:~#

strange that RPI developer did not create a dependency between flashrom and rpi-eeprom.

2 Likes

It now works to my satisfaction.
I would like to thank you again and again for the great support here in the forum.
They also respond to my not always so qualified questions and try to find out what I might mean.
And that’s exactly what I find so good here, because if I knew everything, I wouldn’t ask any questions here. TOP, TOP, TOP!!! :+1:

1 Like

yes, we already submit a fix to RPi guys to change behavior of rpi-eeprom rpi-eeprom-config: strip flashrom warning from latest image path by MichaIng · Pull Request #547 · raspberrypi/rpi-eeprom · GitHub

Let’s see if they will accept or at least change behaviour rpi-eeprom.

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.