User avatar
cormack
Posts: 54
Joined: Fri Jul 12, 2019 7:39 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 12:35 am

RonR wrote:
Sun May 31, 2020 12:22 am
Raspberry Pi 4 VL805 firmware release 0138a1
Thanks, Ron. Yeah, I missed that somewhere. Walking through it now.

User avatar
cormack
Posts: 54
Joined: Fri Jul 12, 2019 7:39 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 12:47 am

Looks like I wound up with the wrong recovery.bin in my beta directory now.

Seeing this now...

Code: Select all

sudo rpi-eeprom-update -u ./vl805-000138a1.bin
BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTFS /boot
*** INSTALLING  ./vl805-000138a1.bin ***
lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-04-16.bin: OK
lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-15.bin: OK
lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-26.bin: OK
lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-27.bin: OK
lib/firmware/raspberrypi/bootloader/beta/recovery.bin: FAILED
lib/firmware/raspberrypi/bootloader/beta/vl805-000137ad.bin: OK
lib/firmware/raspberrypi/bootloader/critical/pieeprom-2020-04-16.bin: OK
lib/firmware/raspberrypi/bootloader/critical/recovery.bin: OK
lib/firmware/raspberrypi/bootloader/critical/vl805-000137ad.bin: OK
lib/firmware/raspberrypi/bootloader/release-notes.md: OK
lib/firmware/raspberrypi/bootloader/stable/pieeprom-2020-04-16.bin: OK
lib/firmware/raspberrypi/bootloader/stable/recovery.bin: OK
lib/firmware/raspberrypi/bootloader/stable/vl805-000137ad.bin: OK
usr/share/doc/rpi-eeprom-images/LICENCE.bootloader: OK
usr/share/doc/rpi-eeprom-images/changelog.Debian.gz: OK
usr/share/doc/rpi-eeprom-images/copyright: OK
usr/share/doc/rpi-eeprom-images/release-notes.md.gz: OK
md5sum: WARNING: 1 computed checksum did NOT match
And I can't get the CURRENT to show the new version. :/

Code: Select all

sudo rpi-eeprom-update
BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Thu 28 May 2020 07:22:33 AM UTC (1590650553)
 LATEST: Thu 28 May 2020 07:22:33 AM UTC (1590650553)
 FW DIR: /lib/firmware/raspberrypi/bootloader/beta
VL805: update required
CURRENT: 000137ad
 LATEST: 000138a1

RonR
Posts: 2014
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 12:56 am

cormack wrote:
Sun May 31, 2020 12:47 am
Looks like I wound up with the wrong recovery.bin in my beta directory now.

I haven't figured out the recovery.bin either. I've gotten to not replacing it (I do use the new supplied one if making up a standalone SD card for flashing something new). You can also use '-i' to ignore the checksum error. If the details of all this were posted somewhere, I missed it.

trejan
Posts: 3064
Joined: Tue Jul 02, 2019 2:28 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 1:01 am

cormack wrote:
Sun May 31, 2020 12:47 am
Looks like I wound up with the wrong recovery.bin in my beta directory now.
Reinstall it by doing "sudo apt --reinstall install rpi-eeprom-images"

User avatar
cormack
Posts: 54
Joined: Fri Jul 12, 2019 7:39 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 1:07 am

RonR wrote:
Sun May 31, 2020 12:56 am
cormack wrote:
Sun May 31, 2020 12:47 am
Looks like I wound up with the wrong recovery.bin in my beta directory now.

I haven't figured out the recovery.bin either. I've gotten to not replacing it (I do use the new supplied one if making up a standalone SD card for flashing something new). You can also use '-i' to ignore the checksum error. If the details of all this were posted somewhere, I missed it.
I was thinking I was missing things, too, which is why I asked for a sanity check.

Thanks for the tip on using the "-i"... That seems to have done the trick.

Code: Select all

BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Thu 28 May 2020 07:22:33 AM UTC (1590650553)
 LATEST: Thu 28 May 2020 07:22:33 AM UTC (1590650553)
 FW DIR: /lib/firmware/raspberrypi/bootloader/beta
VL805: up-to-date
CURRENT: 000138a1
 LATEST: 000138a1
I'd still like to find out where I went wrong with the recovery.bin file, though. :/ Threads like this become spaghetti pretty quickly, as pieces break off in different directions. Perhaps it's time to package a new bundle that ensure all files are at the latest versions, and any junk can be thinned out or discarded.

User avatar
cormack
Posts: 54
Joined: Fri Jul 12, 2019 7:39 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 1:14 am

trejan wrote:
Sun May 31, 2020 1:01 am
cormack wrote:
Sun May 31, 2020 12:47 am
Looks like I wound up with the wrong recovery.bin in my beta directory now.
Reinstall it by doing "sudo apt --reinstall install rpi-eeprom-images"
Done. Thanks, Trejan.

trejan
Posts: 3064
Joined: Tue Jul 02, 2019 2:28 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 1:25 am

cormack wrote:
Sun May 31, 2020 1:07 am
I'd still like to find out where I went wrong with the recovery.bin file, though. :/
Did you extract the 2020-05-28 zip into /lib/firmware/raspberrypi/bootloader/beta? If so then you overwrote recovery.bin as well and that would have made the file hash different. recovery.bin was updated because of a VL805 flash issue.

User avatar
cormack
Posts: 54
Joined: Fri Jul 12, 2019 7:39 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 1:40 am

trejan wrote:
Sun May 31, 2020 1:25 am
cormack wrote:
Sun May 31, 2020 1:07 am
I'd still like to find out where I went wrong with the recovery.bin file, though. :/
Did you extract the 2020-05-28 zip into /lib/firmware/raspberrypi/bootloader/beta? If so then you overwrote recovery.bin as well and that would have made the file hash different. recovery.bin was updated because of a VL805 flash issue.
That's probably what happened. Go to this zip file for one thing... go here for that thing... go to someone's google drive for some other piece...
I'm happy this was my only glitch. Time to consolidate things a tad, I think.

kevinthefixer
Posts: 101
Joined: Sun Jun 02, 2013 10:36 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 3:25 am

Time to consolidate things a tad, I think.
Here is the Reader's Digest version of what I did, successfully:
1) create a bootloader update rescue card with files from https://github.com/raspberrypi/rpi-eepr ... d-BETA.zip using rpi-imager; insert in your Pi and power it up, it only takes a few seconds. If you have a screen attached it shows green for success. Power off when that happens, or after 10 seconds or so.
2) download and flash the latest Raspberry Pi OS image from https://downloads.raspberrypi.org/raspi ... mhf_latest, also using rpi-imager, to your mass storage USB device.
3) Unzip this: https://github.com/raspberrypi/rpi-eepr ... rmware.zip to the /boot partition of your newly-flashed USB-MSD. Don't forget to unmount!
4) Remove the rescue uSD (or any other) from the Pi, connect your USB-MSD and keyboard, mouse, monitor as needed, power up. The Pi boots partially, resizes the filesystem and reboots. At least that's what happened to me.
5) I also need the updated firmware for the USB chip (VL805), so I followed this: viewtopic.php?f=29&t=273027#p1654842 and now have the beta firmware for that also. I hope to test some of my not-so-common hardware in the next couple days, I'll try to keep you all posted. I did see a strange error when trying to open the file manager the first two times but it seems to have disappeared now so I think I'll sleep pretty well tonight!

JumpZero
Posts: 1220
Joined: Thu Mar 28, 2013 7:35 pm
Location: Arcachon, France

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 11:39 am

Hi!
Successfull USB boot, using method of 1st post of this thread :
- eeprom updated with rescue image flashed with Raspberry Pi imager
- firmware updated by unzipping https://github.com/raspberrypi/rpi-eepr ... rmware.zip in /boot

updated /etc/fstab and /boot/cmdline.txt accordingly of my SSD

Ugrren enclosure with ASM1051E chipset :

Code: Select all

ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
SSD Crucial 120GB : Crucial CT120BX500SSD1

Thanks to the dev ;)

Edited: corrected typo in link

knute
Posts: 665
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Help? was: Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 7:12 pm

A little help please, as I am stuck.

I tried several (read that a lot) times to update my eeprom and I am stuck in some sort of limbo. I ran rpi-update. I copied the files from git to my /boot directory. I tried to copy everything over the a USB stick that had a fresh version of ROS on it. That didn't work so I tried using the existing SD card in a reader and that didn't work either. Any help to get me going again would be greatly appreciated.

Code: Select all

pi@raspberrypi:~ $ sudo rpi-eeprom-update
BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Thu 28 May 2020 07:22:33 AM UTC (1590650553)
 LATEST: Wed 27 May 2020 05:47:29 PM UTC (1590601649)
 FW DIR: /lib/firmware/raspberrypi/bootloader/beta
VL805: up-to-date
CURRENT: 000138a1
 LATEST: 000137ad
pi@raspberrypi:~ $ sudo rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Your firmware is already up to date
pi@raspberrypi:~ $ vcgencmd bootloader_version
May 28 2020 08:22:33
version 7b40bda408e631812ad00ea210b149e7141d68ec (release)
timestamp 1590650553

raspipat
Posts: 17
Joined: Sun Jul 28, 2019 12:17 pm

Re: Help? was: Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 8:54 pm

knute wrote:
Sun May 31, 2020 7:12 pm
A little help please, as I am stuck.

I tried several (read that a lot) times to update my eeprom and I am stuck in some sort of limbo. I ran rpi-update. I copied the files from git to my /boot directory. I tried to copy everything over the a USB stick that had a fresh version of ROS on it. That didn't work so I tried using the existing SD card in a reader and that didn't work either. Any help to get me going again would be greatly appreciated.
Don't forget to visit the cmdline.txt file in the boot partition, and the /etc/fstab file in the root partition.
You'll most likely need to tidy up the PARTUUID in those files.
To find out what the PARTUUID should be, you can run 'sudo blkid'

kevinthefixer
Posts: 101
Joined: Sun Jun 02, 2013 10:36 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 9:00 pm

@knute:

None of the things you did are going to update your eeprom. In my post just prior to yours, do step 1 to update the eeprom to the 05/28 beta.

RonR
Posts: 2014
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 9:04 pm

@timg236,

I'm using the latest bootloader and vl805:

BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Thu 28 May 07:22:33 UTC 2020 (1590650553)
LATEST: Thu 16 Apr 17:11:26 UTC 2020 (1587057086)
FW DIR: /lib/firmware/raspberrypi/bootloader/critical
VL805: up-to-date
CURRENT: 000138a1
LATEST: 000137ad

and the latest RaspOS (Lite) (4.19.118) + usb-msd-boot-firmware.

With an empty /boot/config.txt, the green activity LED flashes at one second intervals polling an empty SD card slot as expected.

With only 'enable_uart=1' in /boot/config.txt, the green activity LED is solid on 99.9% of the time with an empty SD card slot.

Is this expected behavior?
Last edited by RonR on Sun May 31, 2020 10:55 pm, edited 1 time in total.

RonR
Posts: 2014
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 9:09 pm

kevinthefixer wrote:
Sun May 31, 2020 9:00 pm
@knute:

None of the things you did are going to update your eeprom. In my post just prior to yours, do step 1 to update the eeprom to the 05/28 beta.

It appears knute already has the latest beta bootloader installed (1590650553):
knute wrote:
Sun May 31, 2020 7:12 pm

Code: Select all

BOOTLOADER: up-to-date
CURRENT: Thu 28 May 2020 07:22:33 AM UTC (1590650553)
 LATEST: Wed 27 May 2020 05:47:29 PM UTC (1590601649)

hans_ar
Posts: 21
Joined: Wed Jul 17, 2019 8:24 am

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 9:43 pm

Hello, everything worked normal for me and after few days i got this message:
1AC87FB5-EC20-452D-BB3F-8667EA52C27C.jpeg
1AC87FB5-EC20-452D-BB3F-8667EA52C27C.jpeg (83.68 KiB) Viewed 2504 times
Any ideas?
Tnx

RonR
Posts: 2014
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 9:51 pm

hans_ar wrote:
Sun May 31, 2020 9:43 pm
Hello, everything worked normal for me and after few days i got this message:

You probably did an 'apt upgrade' and received RaspOS 4.19.118, which overwrote your updated firmware files in the BOOT partition.

If so, you'll need to unzip the usb-msd-boot-firmware files to your BOOT partition again.

hans_ar
Posts: 21
Joined: Wed Jul 17, 2019 8:24 am

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 10:27 pm

Yes, probably that is an answer. Thank you very much!

kevinthefixer
Posts: 101
Joined: Sun Jun 02, 2013 10:36 pm

Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 10:48 pm

It appears knute already has the latest beta bootloader installed (1590650553):
Yup, apparently I missed that. So the question is, what is knute actually trying to fix? Is his Pi not booting from usb?

RonR
Posts: 2014
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Help? was: Re: USB-MSD boot EEPROM update - 2020-05-28

Sun May 31, 2020 11:35 pm

knute wrote:
Sun May 31, 2020 7:12 pm
A little help please, as I am stuck.

I tried several (read that a lot) times to update my eeprom and I am stuck in some sort of limbo. I ran rpi-update. I copied the files from git to my /boot directory. I tried to copy everything over the a USB stick that had a fresh version of ROS on it. That didn't work so I tried using the existing SD card in a reader and that didn't work either. Any help to get me going again would be greatly appreciated.

Code: Select all

pi@raspberrypi:~ $ sudo rpi-eeprom-update
BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Thu 28 May 2020 07:22:33 AM UTC (1590650553)
 LATEST: Wed 27 May 2020 05:47:29 PM UTC (1590601649)
 FW DIR: /lib/firmware/raspberrypi/bootloader/beta
VL805: up-to-date
CURRENT: 000138a1
 LATEST: 000137ad
pi@raspberrypi:~ $ sudo rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Your firmware is already up to date
pi@raspberrypi:~ $ vcgencmd bootloader_version
May 28 2020 08:22:33
version 7b40bda408e631812ad00ea210b149e7141d68ec (release)
timestamp 1590650553

You have the latest bootloader [Thu 28 May 2020 07:22:33 AM UTC (1590650553)] installed.

Assuming what you posted is from an SD card that boots and runs properly, the easiest way to migrate it to a USB device is to use: usb-boot

Answer 'No' to 'Use SD card to boot the USB device?'. No changes will be made to the SD card. When usb-boot completes, you should be able to shutdown and boot the USB device with no SD card.

knute
Posts: 665
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Help? was: Re: USB-MSD boot EEPROM update - 2020-05-28

Mon Jun 01, 2020 1:40 am

raspipat wrote:
Sun May 31, 2020 8:54 pm
Don't forget to visit the cmdline.txt file in the boot partition, and the /etc/fstab file in the root partition.
You'll most likely need to tidy up the PARTUUID in those files.
To find out what the PARTUUID should be, you can run 'sudo blkid'
Visit is a euphemism that I don't understand. What do I need to do to cmdline.txt and /etc/fstab and on which disk, the SD card or the USB disk.

knute
Posts: 665
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: USB-MSD boot EEPROM update - 2020-05-28

Mon Jun 01, 2020 1:42 am

kevinthefixer wrote:
Sun May 31, 2020 10:48 pm
It appears knute already has the latest beta bootloader installed (1590650553):
Yup, apparently I missed that. So the question is, what is knute actually trying to fix? Is his Pi not booting from usb?
No it's not. Clearly I am missing some steps but I can't find a complete set of instructions anywhere.

knute
Posts: 665
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Help? was: Re: USB-MSD boot EEPROM update - 2020-05-28

Mon Jun 01, 2020 1:44 am

RonR wrote:
Sun May 31, 2020 11:35 pm
Assuming what you posted is from an SD card that boots and runs properly, the easiest way to migrate it to a USB device is to use: usb-boot

Answer 'No' to 'Use SD card to boot the USB device?'. No changes will be made to the SD card. When usb-boot completes, you should be able to shutdown and boot the USB device with no SD card.
So where do I get this usb-boot. It is not at the link you kindly provided?

RonR
Posts: 2014
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Help? was: Re: USB-MSD boot EEPROM update - 2020-05-28

Mon Jun 01, 2020 1:48 am

knute wrote:
Mon Jun 01, 2020 1:44 am
So where do I get this usb-boot. It is not at the link you kindly provided?

usb-boot

Link ---^

File is attached to bottom of first post.

User avatar
Gavinmc42
Posts: 5178
Joined: Wed Aug 28, 2013 3:31 am

Re: USB-MSD boot EEPROM update - 2020-05-28

Mon Jun 01, 2020 2:52 am

Bus 001 Device 003: ID 174c:1153 ASMedia Technology Inc. ASM1153 SATA 3Gb/s bridge
This works in the USB2 ports but not the USB3.

Is there a list of known working USB3 to SATA chips?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “General discussion”