DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

rpi-eeprom package "have been kept back"

Open bede112 opened this issue 1 year ago • 15 comments

Required Information

  • DietPi version G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=7 G_DIETPI_VERSION_RC=1 G_GITBRANCH='master' G_GITOWNER='MichaIng'
  • Distro version bookworm 0
  • Kernel version Linux dietpi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • SBC model RPi 4 Model B (aarch64) Version: DietPi v9.7.1 ####

When i try to do an apt upgrade the rpi-eeprom package "have been kept back". Usually it gets upgraded that why i am opening this issue.

Logs:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  rpi-eeprom
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
apt list rpi-eeprom -a
Listing... Done
rpi-eeprom/stable 25.1-1 all [upgradable from: 24.0-1]
rpi-eeprom/now 24.0-1 all [installed,upgradable to: 25.1-1]

bede112 avatar Sep 12 '24 16:09 bede112

Hmm, what does it say when you do this?

apt install rpi-eeprom

Probably it depends on the raspi-utils package, which replaces the libraspberrypi-bin package, which is still used on the older kernel. Looks like another reason we need to push the kernel/firmware migration out to everyone.

MichaIng avatar Sep 12 '24 17:09 MichaIng

@MichaIng

Hmm, what does it say when you do this?

apt install rpi-eeprom

apt install rpi-eeprom
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  kms++-utils libdrm-common libdrm2 libfmt9 libkms++0 net-tools raspi-utils
  raspi-utils-core raspi-utils-dt raspi-utils-eeprom raspi-utils-otp raspinfo
Recommended packages:
  pastebinit flashrom
The following packages will be REMOVED:
  libraspberrypi-bin
The following NEW packages will be installed:
  kms++-utils libdrm-common libdrm2 libfmt9 libkms++0 net-tools raspi-utils
  raspi-utils-core raspi-utils-dt raspi-utils-eeprom raspi-utils-otp raspinfo
The following packages will be upgraded:
  rpi-eeprom
1 upgraded, 12 newly installed, 1 to remove and 0 not upgraded.
Need to get 38.1 MB of archives.
After this operation, 9862 kB of additional disk space will be used.
Do you want to continue? [Y/n]

Edit: I aborted the command cause i don't know if it will break my setup.

bede112 avatar Sep 12 '24 19:09 bede112

Okay as I expected, dependencies have been updated. Do you use any camera device on that RPi, or special video software?

I guess the dependency could be lowered to raspi-utils-eeprom only. They split raspi-utils into dedicated packages, which is great, but not all dependants have been updated for this change. I'll have a look into the tools, and in case report it at the RPi repo.

MichaIng avatar Sep 12 '24 20:09 MichaIng

Do you use any camera device on that RPi, or special video software?

No nothing special, terminal use only. Only special that comes to my mind is the I2C software for the FAN i use to cool the RPi off.

bede112 avatar Sep 12 '24 20:09 bede112

Okay, so in this case it is safe to confirm the upgrade. However, it currently nastily pulls a bunch of additional packages you do not really need. The old EEPROM bootloader will work just fine as well. So no real recommendation here, especially if disk space is no topic for you and you do not use a cheap SD card. In case of cheap or small SD card, wait with the upgrade until I sorted it with RPi devs.

MichaIng avatar Sep 12 '24 20:09 MichaIng

I ll wait mostly cause of i am always nervous when i upgrade the bootloader. But if anytime you need me to upgrade for testing purposes, just let me know.

bede112 avatar Sep 12 '24 20:09 bede112

+1 here

Identical hardware, software and logs.

Apps: (only) AdGuard Home, Unbound, MPD, ALSA

Execute apt install rpi-eeprom

Update went through cleanly, successful restart.

kw-sudo avatar Sep 16 '24 13:09 kw-sudo

+1 too same hardware, SW: Dashboard and Portainer (2 or 3 container)

Execute apt install rpi-eeprom

Update went through cleanly, successful restart.

peaceman1920 avatar Sep 24 '24 11:09 peaceman1920

Had the issue here too. I assumed it was being rolled out. On a Rpi4, I was in headless ssh and after doing a apt update/upgrade the eeprom got stuck on 78%. after about 30 min of 78% I lost connection. I waited another 20 min before trying to log back in but my device remained offline. Checking it physically I noticed it was very warm, much warmer than normal. I unplugged it and plugged it back in and after some diagnosis I can confirm it appears to be bricked. It will no longer power on or get warm. Unfortunately I don't have much info since it's dead. I'll try to pull some logs tomorrow off the SD card but I think it's just dead.

Very random on a pi only a few months old. I still have pi3's running 24/7. Given the time-frame it doesn't seems like hardware failure but instead an update error.

OpenLogicEFI avatar Sep 28 '24 07:09 OpenLogicEFI

Booting without any device or SD card connected, does it have any LED activity?

Joulinar avatar Sep 28 '24 07:09 Joulinar

I've had the phenomenon of unnormal heat too, but appearently only because of my unintentionally started update additionally inside Webmin. There it hung and one core was busy 100%. After reboot everything OK. (my rpi is running as headless server in my homenet, accessed via ssh)

peaceman1920 avatar Sep 28 '24 20:09 peaceman1920

Same shit happened to me right now after 38 days uptime, didn't even upgrade eeprom, cpu 69C and stupid throttling.

apt list --upgradable

rpi-eeprom/stable 26.0-1 all [upgradable from: 24.0-1]

So.. not related to eeprom then?

Dynamic5912 avatar Sep 30 '24 18:09 Dynamic5912

Do we have a solution or timeline for this yet? The eeprom update on my Pi 4 hasn't worked for ages. Backup of my flash card saved me from one crash during an update. Most times everything updates however, but never the eeprom.

internet-elder avatar Jan 11 '25 13:01 internet-elder

I had no problems with the last three or four automated eeprom updates.

kw-sudo avatar Jan 11 '25 13:01 kw-sudo

Usually it should be possible to update the package apt install rpi-eeprom without any issue.

Joulinar avatar Jan 11 '25 13:01 Joulinar

Thanks for that. I forget what borked my card a few months ago. Could have been an auto update, could have been trying to do the eeprom individually.

I'm not totally fluid with this stuff, but if there are any specific instructions or things to look out for, with the individual eeprom update, I can try that again now under this new DietPi version. Just ran a new backup, so now would be the time to give it another shot.

Auto most definitely still didn't work as I just tried it twice.

internet-elder avatar Jan 11 '25 14:01 internet-elder

Is there a particular reason one wants to upgrade this package? It pulls in parts of the new firmware stack, which might cause issues with the old kernel. So I would just ignore it, let it on hold. The EEPROM bootloader is not updated often anyway, and usually to support new boards or revisions only.

Solution will be the migration to the new kernel stack, which I plan to offer more officially with next DietPi release: #6676

MichaIng avatar Jan 12 '25 07:01 MichaIng

Oh nobody likes those nagging little notifications, especially when they go on for a year or more :)

apt install rpi-eeprom worked this time so thanks folks for the reminder to try again. I'm sure I had tried it in the past to no avail. Perhaps the latest 9.9.0 made a difference.

internet-elder avatar Jan 13 '25 17:01 internet-elder

Perhaps the latest 9.9.0 made a difference.

DietPi release or code has nothing to do with it

Joulinar avatar Jan 13 '25 18:01 Joulinar

That some may be annoyed by such warning is indeed true. As said, upcoming update will offer the firmware migration more prominently via DietPi update. It has been applied/tested by so many in the meantime, should be considered very safe to do. In the same turn, images with the new kernel/firmware will be available from our download page as well.

MichaIng avatar Jan 14 '25 01:01 MichaIng

Upgrading to the latest rpi-eeprom also got me some dpkg-warnings

apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  rpi-eeprom
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2550 kB of archives.
After this operation, 4196 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://archive.raspberrypi.com/debian bookworm/main arm64 rpi-eeprom all 26.9-1 [2550 kB]
Fetched 2550 kB in 1s (2639 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 25143 files and directories currently installed.)
Preparing to unpack .../rpi-eeprom_26.9-1_all.deb ...
Unpacking rpi-eeprom (26.9-1) over (26.8-1) ...
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2712/latest': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2712/default': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2712': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2711/latest': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2711/default': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2711': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi': Directory not empty
Setting up rpi-eeprom (26.9-1) ...

bede112 avatar Jan 19 '25 09:01 bede112

Upgrading to the latest rpi-eeprom also got me some dpkg-warnings

apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  rpi-eeprom
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2550 kB of archives.
After this operation, 4196 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://archive.raspberrypi.com/debian bookworm/main arm64 rpi-eeprom all 26.9-1 [2550 kB]
Fetched 2550 kB in 1s (2639 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 25143 files and directories currently installed.)
Preparing to unpack .../rpi-eeprom_26.9-1_all.deb ...
Unpacking rpi-eeprom (26.9-1) over (26.8-1) ...
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2712/latest': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2712/default': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2712': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2711/latest': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2711/default': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi/bootloader-2711': Directory not empty
dpkg: warning: unable to delete old directory '/lib/firmware/raspberrypi': Directory not empty
Setting up rpi-eeprom (26.9-1) ...

Same. But it still upgraded OK

Dynamic5912 avatar Jan 19 '25 10:01 Dynamic5912

Content of package is out of our control, it's unrelated to our code

https://forums.raspberrypi.com/viewtopic.php?t=382649 https://github.com/raspberrypi/rpi-eeprom/issues/655

Joulinar avatar Jan 19 '25 10:01 Joulinar

Content of package is out of our control, it's unrelated to our code

https://forums.raspberrypi.com/viewtopic.php?t=382649 https://github.com/raspberrypi/rpi-eeprom/issues/655

No one said it was.

We were merely advising of the error message in case others experience the same...

Dynamic5912 avatar Jan 19 '25 10:01 Dynamic5912

Migration to the new kernel/firmware stack is now offered via next DietPi update and dietpi-config > Advanced Options > RPi firmware migration, to apply any time later. We will make the migration mandatory next release, if there were no serious issues reported. I'll mark this issue hence as closed.

MichaIng avatar Feb 09 '25 22:02 MichaIng