Page 2 of 3

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Sat Sep 07, 2019 11:51 am
by Ernst
timg236 wrote:
Sat Sep 07, 2019 11:08 am
The rpi-eeprom package has been moved from untested to stable so it can be installed with just

apt update
apt get rpi-eeprom

Whilst the rescue image is still available for fixing corrupted EEPROMs the documentation (PR pending) will point users towards rpi-eeprom for feature upgrades / bug fixes.
I would love to get but "sudo apt install rpi-eeprom" works better.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Sat Sep 07, 2019 6:36 pm
by hdtodd
I've tried multiple times and in multiple ways to update the eeprom without success. I'm sure it's something dumb that I've missed, but perhaps someone can see what I'm doing wrong.

This seems to say that an update is available and that I can install it.

Code: Select all

# rpi-eeprom-update
*** UPDATE REQUIRED ***
CURRENT: Fri 10 May 2019 06:40:36 PM UTC (1557513636)
 LATEST: Mon 15 Jul 2019 12:59:55 PM UTC (1563195595)
Here are the files in the firmware directory:

Code: Select all

root@PiNAS:/lib/firmware/raspberrypi/bootloader/critical# ls
pieeprom-2019-05-10.bin  pieeprom-2019-07-15.bin
If I run the update it seems to work:

Code: Select all

root@PiNAS:/lib/firmware/raspberrypi/bootloader/critical# rpi-eeprom-update -f ./pieeprom-2019-07-15.bin 
*** INSTALLING ./pieeprom-2019-07-15.bin ***
Bootloader EEPROM update complete. Please reboot.
But after the reboot, rpi-eeprom-update gives the same message again:

Code: Select all

root@PiNAS:/lib/firmware/raspberrypi/bootloader/critical# rpi-eeprom-update
*** UPDATE REQUIRED ***
CURRENT: Fri 10 May 2019 06:40:36 PM UTC (1557513636)
 LATEST: Mon 15 Jul 2019 12:59:55 PM UTC (1563195595)
And checking with vcgencmd shows that the update wasn't done:
root@PiNAS:/home/hdtodd# vcgencmd bootloader_version
May 10 2019 19:40:36
version d2402c53cdeb0f072ff05d52987b1b6b6d474691 (release)
timestamp 0
I've run the update as "root" and as "pi". I've enabled automatic updates via systemctl and rebooted, with the same (non-) result -- update not done, despite the message. The config file doesn't seem to prohibit firmware updates:

Code: Select all

# cat bootconf.txt 
BOOT_UART=0
WAKE_ON_GPIO=0
The 15 July updates aren't critical to me, but when USB booting becomes available, I'll want to install it, so I'd like to figure out what I'm doing wrong.

Any advice would be welcome!

David

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Sun Sep 08, 2019 9:41 am
by timg236
The update package works by placing the updater (recovery.bin) and the image (pieeprom.upd) in the boot partition of the sd-card. Normally, this is /boot but on NOOBs it's something else and the script attempts to resolve that.

Please can you try running 'sudo rpi-eeprom-update -a' and verifying that the files are installed to /boot and that /boot really corresponds to the boot partition on the sd-card and not somewhere else ?

N.B. recovery.bin is loaded by the ROM in preference to the EEPROM but the ROM does not have any support for USB mass storage.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Sun Sep 08, 2019 10:13 am
by Gliderpilot
I used Ernst's nstructions. First I updated Buster today then ran Ernst's suggestion. Worked ok

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Sun Sep 08, 2019 12:44 pm
by hdtodd
Ernst, thanks for the further explanation. With that I was able to update the firmware successfully.

I was, indeed, booting from the µSD but redirecting to a USB drive, and fstab on that USB drive mounts /boot from the USB drive. "rpi-eeprom-update -a" did put the update files in /boot, but on the USB drive: recovery.bin and pieeprom.upd were on /boot, but /boot wasn't the µSD drive. So at boot time, the Pi-4 didn't see recovery.bin (it wasn't on the µSD real boot drive) and do the update.

Of course, this wouldn't have happened if my USB's /etc/fstab had mounted /boot from /dev/mmcblk0p1. I've always been ambiguous as to whether, on a redirected boot, the µSD boot drive or the USB boot drive should be mounted as /boot -- particularly since I boot directly from the USB on the Pi-3, and I want any updates to take effect on that partition. In this case, it came back to bite me.

And, in fact, my other Pi-4 on which I first tried the update might be a NOOBs µSD, so the forewarning about that will be helpful when I go back to try to update it again.

Thanks, again, for the explanation and help. I'm really enjoying the Pi-4 and appreciate your good work.

David

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Sun Sep 08, 2019 1:12 pm
by hippy
timg236 wrote:
Sun Sep 08, 2019 9:41 am
The update package works by placing the updater (recovery.bin) and the image (pieeprom.upd) in the boot partition of the sd-card.
I wasn't aware of that. I thought the update package procedure would update the actual Boot Eeprom just as flashrom was doing previously. That it doesn't hasn't been very well explained.

Be that as it may, if it only places a file on the boot partition then the "Bootloader EEPROM update complete" reported is not actually correct. It hasn't been updated at all at that point -

Code: Select all

root@PiNAS:/lib/firmware/raspberrypi/bootloader/critical# rpi-eeprom-update -f ./pieeprom-2019-07-15.bin 
*** INSTALLING ./pieeprom-2019-07-15.bin ***
Bootloader EEPROM update complete. Please reboot.
And that's going to be even more confusing when the software claims the Boot Eeprom has been updated but the physical Boot Eeprom is write protected, and cannot be updated.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Mon Sep 09, 2019 6:34 am
by timg236
hippy wrote:
Sun Sep 08, 2019 1:12 pm
timg236 wrote:
Sun Sep 08, 2019 9:41 am
The update package works by placing the updater (recovery.bin) and the image (pieeprom.upd) in the boot partition of the sd-card.
I wasn't aware of that. I thought the update package procedure would update the actual Boot Eeprom just as flashrom was doing previously. That it doesn't hasn't been very well explained.

Be that as it may, if it only places a file on the boot partition then the "Bootloader EEPROM update complete" reported is not actually correct. It hasn't been updated at all at that point -

Code: Select all

root@PiNAS:/lib/firmware/raspberrypi/bootloader/critical# rpi-eeprom-update -f ./pieeprom-2019-07-15.bin 
*** INSTALLING ./pieeprom-2019-07-15.bin ***
Bootloader EEPROM update complete. Please reboot.
And that's going to be even more confusing when the software claims the Boot Eeprom has been updated but the physical Boot Eeprom is write protected, and cannot be updated.
The -f message has been updated to match the normal -a string "Bootloader EEPROM update pending. Please reboot to apply the update."

Anyone who knows enough to modify the board to write protect the EEPROM should be able to read the scripts, understand it, then roll their own custom version. The vast majority of users will neither know nor care about the boot EEPROM or the update service and won't run it interactively.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Mon Sep 09, 2019 11:35 am
by hippy
timg236 wrote:
Mon Sep 09, 2019 6:34 am
Anyone who knows enough to modify the board to write protect the EEPROM should be able to read the scripts, understand it, then roll their own custom version.
I don't agree with that at all. Hardware skills do not create software skills.

And by hardware skills we are basically talking of being able to solder, being able to replace a single resistor.
timg236 wrote:
Mon Sep 09, 2019 6:34 am
The vast majority of users will neither know nor care about the boot EEPROM or the update service and won't run it interactively.
I can agree with that.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Mon Sep 09, 2019 1:34 pm
by jamesh
hippy wrote:
Mon Sep 09, 2019 11:35 am
timg236 wrote:
Mon Sep 09, 2019 6:34 am
Anyone who knows enough to modify the board to write protect the EEPROM should be able to read the scripts, understand it, then roll their own custom version.
I don't agree with that at all. Hardware skills do not create software skills.

And by hardware skills we are basically talking of being able to solder, being able to replace a single resistor.
timg236 wrote:
Mon Sep 09, 2019 6:34 am
The vast majority of users will neither know nor care about the boot EEPROM or the update service and won't run it interactively.
I can agree with that.
Disagree with first point. But hey ho, no need to continue the conversation.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Tue Sep 10, 2019 2:53 pm
by Jimblob64
Just dropping in to say thanks to everyone who made this package and/or the 7-15 bootloader.

Just used it to update my Pi last night- and the package was easy to use and understand, for anyone who might be wondering. I'd be comfortable trusting it with future updates.

The USB ports have been cooler to the touch overall since then, and it looks to be using marginally less power, which is everything I'd looked forward to.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Tue Sep 10, 2019 4:23 pm
by timg236
Jimblob64 wrote:
Tue Sep 10, 2019 2:53 pm
Just dropping in to say thanks to everyone who made this package and/or the 7-15 bootloader.

Just used it to update my Pi last night- and the package was easy to use and understand, for anyone who might be wondering. I'd be comfortable trusting it with future updates.

The USB ports have been cooler to the touch overall since then, and it looks to be using marginally less power, which is everything I'd looked forward to.
Great! Thanks for testing this, it's really useful for us to get feedback about whether updates work (or not!).

btw: We've push pushed an update with new beta EEPROM which has a tweak to the SDRAM which should reduce power consumption at idle.

https://github.com/raspberrypi/rpi-eepr ... e-notes.md

Instructions for tracking the beta bootloader firmware here. Usual warnings about beta bootloaders potentially not booting apply :)

https://github.com/raspberrypi/document ... teeprom.md

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 1:30 am
by figshta
I'm trying to update the eeeprom and set automatic updates according to the documentation.

https://www.raspberrypi.org/documentati ... teeprom.md

My Setup: Raspberry Pi4 running Raspbian Buster with desktop and recommended software no USB drives connected

I must be doing something wrong. Am I misreading it or overlooking something simple?

I did this:

Code: Select all

sudo apt update
sudo apt upgrade
sudo apt install rpi-eeprom
I rebooted and checked the update:

Code: Select all

rpi-eeprom-update
But I still see *** UPDATE REQUIRED ***

I have tried to install the service again, but it's already there.
I have shutdown and rebooted a few times.
Bootloader updates are performed by the rpi-eeprom package, which installs a service that runs at boot-time to check for critical updates

I expect the service to update the EEPROM at boot-time.Is this correct?

I also made sure the service was enabled (even though I hadn't disabled it)

Code: Select all

# Enable it again
sudo systemctl unmask rpi-eeprom-update
...but to no avail...

Any help would be greatly appreciated.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 7:11 am
by CypherOz
So... I changed /etc/default/rpi-eeprom-update
FIRMWARE_RELEASE_STATUS="critical" -> "beta"

and ran

Code: Select all

 sudo rpi-eeprom-update -a
Then changed /etc/default/rpi-eeprom-update back to "critical"

Rebooted and see:

Code: Select all

sudo rpi-eeprom-update
Bootloader EEPROM is up to date
CURRENT: Tue 10 Sep 10:41:50 UTC 2019 (1568112110)
 LATEST: Mon 15 Jul 12:59:55 UTC 2019 (1563195595)
All good!

Edit: I left rpi-eeprom-update masked

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 7:36 am
by figshta
So... I changed /etc/default/rpi-eeprom-update
FIRMWARE_RELEASE_STATUS="critical" -> "beta"

and ran
Code: Select all

sudo rpi-eeprom-update -a
It didn't work for me.
I got "Bootloader critical updates directory /lib/firmware/raspberrypi/bootloader/beta not found.

Thanks though.
Edit: I left rpi-eeprom-update masked
Now I tried that too. Same problem.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 7:46 am
by ShiftPlusOne
figshta wrote:
Wed Sep 11, 2019 7:36 am
So... I changed /etc/default/rpi-eeprom-update
FIRMWARE_RELEASE_STATUS="critical" -> "beta"

and ran
Code: Select all

sudo rpi-eeprom-update -a
It didn't work for me.
I got "Bootloader critical updates directory /lib/firmware/raspberrypi/bootloader/beta not found.

Thanks though.
Edit: I left rpi-eeprom-update masked
Now I tried that too. Same problem.
What's the output of `apt policy rpi-eeprom rpi-eeprom-images; dpkg -L rpi-eeprom-images` ?

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 7:47 am
by Kendek
figshta wrote:
Wed Sep 11, 2019 7:36 am
I got "Bootloader critical updates directory /lib/firmware/raspberrypi/bootloader/beta not found.
So, upgrade first the rpi-eeprom and rpi-eeprom-images packages.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 8:09 am
by figshta
I have succeeded to update the eeeprom.

I still don't know if the masking had anything to do with it or not, but here is what I did.

I had disabled the service

Code: Select all

sudo systemctl mask rpi-eeprom-update
by masking as CypherOz had done.(Thanks)

After trying CypherOz's method (which didn't work for me), I changed back /etc/default/rpi-eeprom-update
FIRMWARE_RELEASE_STATUS="beta" -> "critical"

and ran

Code: Select all

sudo rpi-eeprom-update -a
Then it worked and I got the massage the the update would happen upon reboot.
I rebooted.
I checked it.
All good!

I don't know if the -a option made the difference or if it was the masking.
What does the -a option do?

I have subsequently enabled the service again.

Code: Select all

sudo systemctl unmask rpi-eeprom-update

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 8:16 am
by figshta
What's the output of `apt policy rpi-eeprom rpi-eeprom-images; dpkg -L rpi-eeprom-images` ?
Thanks, but I didn't see this until after I succeeded.
Would it still be helpful to see that output?
So, upgrade first the rpi-eeprom and rpi-eeprom-images packages.
Thanks, it's moot now, however.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 8:20 am
by ShiftPlusOne
figshta wrote:Would it still be helpful to see that output?
Maybe. Depends on the output. It sounds like you have the old version of the package.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 2:00 pm
by figshta
ShiftPlusOne,

Here is the output of `apt policy rpi-eeprom rpi-eeprom-images dpkg -L rpi-eeprom-images` :

Code: Select all

rrpi-eeprom:
  Installed: 0.2-1
  Candidate: 0.2-1
  Version table:
 *** 0.2-1 500
        500 http://archive.raspberrypi.org/debian buster/main armhf Packages
        100 /var/lib/dpkg/status
rpi-eeprom-images:
  Installed: 0.2-1
  Candidate: 0.2-1
  Version table:
 *** 0.2-1 500
        500 http://archive.raspberrypi.org/debian buster/main armhf Packages
        100 /var/lib/dpkg/status
/.
/lib
/lib/firmware
/lib/firmware/raspberrypi
/lib/firmware/raspberrypi/bootloader
/lib/firmware/raspberrypi/bootloader/backup
/lib/firmware/raspberrypi/bootloader/critical
/lib/firmware/raspberrypi/bootloader/critical/pieeprom-2019-05-10.bin
/lib/firmware/raspberrypi/bootloader/critical/pieeprom-2019-07-15.bin
/lib/firmware/raspberrypi/bootloader/recovery.bin
/usr
/usr/share
/usr/share/doc
/usr/share/doc/rpi-eeprom-images
/usr/share/doc/rpi-eeprom-images/LICENCE.bootloader
/usr/share/doc/rpi-eeprom-images/changelog.Debian.gz
/usr/share/doc/rpi-eeprom-images/copyright

Also, would you explain the difference between

Code: Select all

sudo rpi-eepron-update
and

Code: Select all

sudo rpi-eeprom-update -a
?

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 2:07 pm
by ShiftPlusOne
Your rpi-eeprom package is old, the current one is 0.3-1, which is why you couldn't find any beta releases (what this thread is about).

If you're not sure about what -a does, you can run 'rpi-eeprom-update -h', which will explain everything much better than I can.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 2:14 pm
by figshta
Thanks.

I'll work on updating the old package.
Oh, I guess I'm in the wrong thread as I wasn't really trying to run a beta version. It just seemed to have the info I was looking for.

Thanks again.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Wed Sep 11, 2019 2:20 pm
by ShiftPlusOne
Looking back, I've got to correct myself. The 'beta' in the title is referring to the rpi-eeprom apt package, not the beta bootloader files. My mistake.

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Thu Sep 19, 2019 12:08 am
by CypherOz
The 2019-09-10 - Git f626c772 - pieeprom-2019-09-10.bin is now in the production 'critical' sudo apt update I did today (not beta)

Re: Raspberry Pi4 EEPROM update package - beta

Posted: Thu Sep 19, 2019 6:10 am
by graphicw
Working nice a smooth with a 3 to 4 C drop in even overclock to 1800 MHz.