re-zero246
Posts: 12
Joined: Tue Jun 16, 2020 12:02 pm

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Tue Jun 16, 2020 8:36 pm

timg236 wrote:
Tue Jun 16, 2020 8:24 pm
re-zero246 wrote:
Tue Jun 16, 2020 7:56 pm
timg236 wrote:
Tue Jun 16, 2020 7:49 pm


The diagnostics screen displays the the first part of the sha256 hash of the firmware binary files so it’s possible to verify the files against know good files eg rpi firmware repo
I will try that, I have even tried the files from https://github.com/raspberrypi/firmware/boot initially as well with no luck.
The one on the screenshot shows recover4.elf which implies that this is a NOOBS image. NOOBS is not upgradable and since this is beta firmware its not available in the NOOBS image.
The though crossed my mind and I wondered if this is happening before I am copying a NOOBS microSD card. I will look into removing the recovery partition and any other that may cause the problem.
A question to you guys, if I extract the image or copy the ubuntu server image to a USB drive and replace just the *.elf and *.dat files in the boot partition, should that work?

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 778
Joined: Thu Jun 21, 2018 4:30 pm

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Tue Jun 16, 2020 8:40 pm

re-zero246 wrote:
Tue Jun 16, 2020 8:36 pm
timg236 wrote:
Tue Jun 16, 2020 8:24 pm
re-zero246 wrote:
Tue Jun 16, 2020 7:56 pm


I will try that, I have even tried the files from https://github.com/raspberrypi/firmware/boot initially as well with no luck.
The one on the screenshot shows recover4.elf which implies that this is a NOOBS image. NOOBS is not upgradable and since this is beta firmware its not available in the NOOBS image.
The though crossed my mind and I wondered if this is happening before I am copying a NOOBS microSD card. I will look into removing the recovery partition and any other that may cause the problem.
A question to you guys, if I extract the image or copy the ubuntu server image to a USB drive and replace just the *.elf and *.dat files in the boot partition, should that work?
That's really something for the Ubuntu forums. Please try to keep this thread specific to the bootloader and firmware. The reference test image is Raspberry Pi OS.

re-zero246
Posts: 12
Joined: Tue Jun 16, 2020 12:02 pm

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Tue Jun 16, 2020 8:49 pm

timg236 wrote:
Tue Jun 16, 2020 8:40 pm
re-zero246 wrote:
Tue Jun 16, 2020 8:36 pm
timg236 wrote:
Tue Jun 16, 2020 8:24 pm

The one on the screenshot shows recover4.elf which implies that this is a NOOBS image. NOOBS is not upgradable and since this is beta firmware its not available in the NOOBS image.
The though crossed my mind and I wondered if this is happening before I am copying a NOOBS microSD card. I will look into removing the recovery partition and any other that may cause the problem.
A question to you guys, if I extract the image or copy the ubuntu server image to a USB drive and replace just the *.elf and *.dat files in the boot partition, should that work?
That's really something for the Ubuntu forums. Please try to keep this thread specific to the bootloader and firmware. The reference test image is Raspberry Pi OS.
Right ok, I only mentioned it because it revolved around the bootloader and the USB boot function.
I'll try continue to try with the Pi OS USB booting.

Edit:

All green and clear:
So what I did was download the Pi OS from the official website.
Extract the .zip file
and then in the working directory, dd bs=4M if=2020-05-27-raspios-buster-full-armhf.img of=/dev/sdX conv=fsync
copied all of the *.dat and *.elf files from /boot to /media/.../boot
sudo reboot when it finished and powered down completely.
Removed the microSD card and powered on.
It resized a partition and prepared some stuff.
Voila, it boots on the 2020.06.15 bootloader

Thanks a lot for the input while I was troubleshooting.
That blank screen with the flashing cursor though, I'll have to monitor and see.
Last edited by re-zero246 on Tue Jun 16, 2020 10:05 pm, edited 1 time in total.

fruitoftheloom
Posts: 25725
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Tue Jun 16, 2020 9:21 pm

re-zero246 wrote:
Tue Jun 16, 2020 8:49 pm
timg236 wrote:
Tue Jun 16, 2020 8:40 pm
re-zero246 wrote:
Tue Jun 16, 2020 8:36 pm


The though crossed my mind and I wondered if this is happening before I am copying a NOOBS microSD card. I will look into removing the recovery partition and any other that may cause the problem.
A question to you guys, if I extract the image or copy the ubuntu server image to a USB drive and replace just the *.elf and *.dat files in the boot partition, should that work?
That's really something for the Ubuntu forums. Please try to keep this thread specific to the bootloader and firmware. The reference test image is Raspberry Pi OS.
Right ok, I only mentioned it because it revolved around the bootloader and the USB boot function.
I'll try continue to try with the Pi OS USB booting.

I ran into a few issues when I attempted to update the firmware.

So I download the BETA firmware, and created a Recovery SD Card:

Raspberry Pi 4 EEPROM bootloader rescue image
********************************************

The Raspberry Pi4 contains a small EEPROM used to contain the bootloader.
Normally, this is completely invisible but it it were to become corrupted
(e.g. due to a failed EEPROM upgrade or a broken image or incorrect usage
of flashrom) then the Pi4 will fail to boot.

This rescue image reverts the EEPROM to factory default settings.

This rescue image also updates the USB 3.0 (VL805) EEPROM to the latest
version (137ad) which reduces power consumption and fixes some issues
with USB webcams.

To re-flash the EEPROM

1. Unzip the contents of this zip file to a blank FAT formatted SD-SDCARD.
2. Power off the Raspberry Pi
3. Insert the sd-card.
4. Power on Raspberry Pi
5. Wait at least 10 seconds.

This easiest method for creating and formatting the SD-CARD is to use the
Raspberry Pi Imager from https://raspberrypi.org/downloads

If successful, the green LED light will blink rapidly (forever), otherwise
an error pattern will be displayed.

If a HDMI display is attached then screen will display green for success
or red if failure a failure occurs.

N.B. This image is not a bootloader it simply replaces the on-board bootloader.
The information is out there....you just have to let it in.

My other Linux machines are a ChromeBox & Intel CoreDuo Desktop

re-zero246
Posts: 12
Joined: Tue Jun 16, 2020 12:02 pm

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Tue Jun 16, 2020 9:56 pm

fruitoftheloom wrote:
Tue Jun 16, 2020 9:21 pm
re-zero246 wrote:
Tue Jun 16, 2020 8:49 pm
timg236 wrote:
Tue Jun 16, 2020 8:40 pm

That's really something for the Ubuntu forums. Please try to keep this thread specific to the bootloader and firmware. The reference test image is Raspberry Pi OS.
Right ok, I only mentioned it because it revolved around the bootloader and the USB boot function.
I'll try continue to try with the Pi OS USB booting.

I ran into a few issues when I attempted to update the firmware.

So I download the BETA firmware, and created a Recovery SD Card:

Raspberry Pi 4 EEPROM bootloader rescue image
********************************************

The Raspberry Pi4 contains a small EEPROM used to contain the bootloader.
Normally, this is completely invisible but it it were to become corrupted
(e.g. due to a failed EEPROM upgrade or a broken image or incorrect usage
of flashrom) then the Pi4 will fail to boot.

This rescue image reverts the EEPROM to factory default settings.

This rescue image also updates the USB 3.0 (VL805) EEPROM to the latest
version (137ad) which reduces power consumption and fixes some issues
with USB webcams.

To re-flash the EEPROM

1. Unzip the contents of this zip file to a blank FAT formatted SD-SDCARD.
2. Power off the Raspberry Pi
3. Insert the sd-card.
4. Power on Raspberry Pi
5. Wait at least 10 seconds.

This easiest method for creating and formatting the SD-CARD is to use the
Raspberry Pi Imager from https://raspberrypi.org/downloads

If successful, the green LED light will blink rapidly (forever), otherwise
an error pattern will be displayed.

If a HDMI display is attached then screen will display green for success
or red if failure a failure occurs.

N.B. This image is not a bootloader it simply replaces the on-board bootloader.
Very nice.

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 778
Joined: Thu Jun 21, 2018 4:30 pm

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 8:43 am

I've promoted this to stable in the Github repository, an APT update will follow shortly.

Based on forum comments and internal test interoperability tests there are no known regressions in SD/network boot modes and USB MSD boot works for the majority of USB devices. Therefore, it's better to make this enabled by default than extend the beta and require people who are happy with this feature to manually update firmware etc.

Stable will only be updated for bugs which block it being promoted to production.

Beta reverts back to being more experimental, but nothing major planned right now.

Of course, promoting something to stable means a major bug will be discovered :)

Kendek
Posts: 272
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 8:59 am

timg236 wrote:
Wed Jun 17, 2020 8:43 am
Beta reverts back to being more experimental, but nothing major planned right now.
Please consider the VL805 beta firmware, there is a new version, the 0138a1. Maybe if it could be integrated manually... :)

fruitoftheloom
Posts: 25725
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 9:00 am

timg236 wrote:
Wed Jun 17, 2020 8:43 am
I've promoted this to stable in the Github repository, an APT update will follow shortly.

Based on forum comments and internal test interoperability tests there are no known regressions in SD/network boot modes and USB MSD boot works for the majority of USB devices. Therefore, it's better to make this enabled by default than extend the beta and require people who are happy with this feature to manually update firmware etc.

Stable will only be updated for bugs which block it being promoted to production.

Beta reverts back to being more experimental, but nothing major planned right now.

Of course, promoting something to stable means a major bug will be discovered :)

Good news, maybe it is now time for trying ARM64 release and 5.4 Kernel, as USB Boot has been AOK..
The information is out there....you just have to let it in.

My other Linux machines are a ChromeBox & Intel CoreDuo Desktop

User avatar
HawaiianPi
Posts: 6213
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 9:02 am

timg236 wrote:
Wed Jun 17, 2020 8:43 am
Of course, promoting something to stable means a major bug will be discovered :)
And fixing that will reveal 2 more. This is the way...

(sorry, watched some Mandalorian this evening).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 778
Joined: Thu Jun 21, 2018 4:30 pm

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 9:07 am

Kendek wrote:
Wed Jun 17, 2020 8:59 am
timg236 wrote:
Wed Jun 17, 2020 8:43 am
Beta reverts back to being more experimental, but nothing major planned right now.
Please consider the VL805 beta firmware, there is a new version, the 0138a1. Maybe if it could be integrated manually... :)
From next week the VLI in the beta branch is likely to be 0138a1 with an update to the 8GB embedded version. There's a few ideas so simplify this but we are holding off for now because there's already a lot of churn due to the USB MSD update. It's possible that the production release will bump VLI update as well but VLI updates take a while to verify.

User avatar
HawaiianPi
Posts: 6213
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 9:19 am

Kendek wrote:
Wed Jun 17, 2020 8:59 am
Please consider the VL805 beta firmware, there is a new version, the 0138a1. Maybe if it could be integrated manually... :)
Not sure what you are asking here. You can already install that manually if you want (I have it on my system).

Code: Select all

$ sudo rpi-eeprom-update
BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Mon 15 Jun 2020 01:36:19 PM UTC (1592228179)
 LATEST: Thu 16 Apr 2020 05:11:26 PM UTC (1587057086)
 FW DIR: /lib/firmware/raspberrypi/bootloader/stable
VL805: up-to-date
CURRENT: 000138a1
 LATEST: 000137ad
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Kendek
Posts: 272
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 9:23 am

HawaiianPi wrote:
Wed Jun 17, 2020 9:19 am
Kendek wrote:
Wed Jun 17, 2020 8:59 am
Please consider the VL805 beta firmware, there is a new version, the 0138a1. Maybe if it could be integrated manually... :)
Not sure what you are asking here. You can already install that manually if you want (I have it on my system).
Yes, but no with 8GB Pi4 without dedicated VLI EEPROM.

User avatar
HawaiianPi
Posts: 6213
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 10:23 am

Kendek wrote:
Wed Jun 17, 2020 9:23 am
Yes, but no with 8GB Pi4 without dedicated VLI EEPROM.
Ah yes, the 8GB. Wish I could afford one. :(
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

webdev
Posts: 17
Joined: Sun Jun 14, 2020 5:14 pm

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 1:40 pm

SD + SSD usb 3.0 will trigger undervoltage, SD + HDD usb 2.0 works fine,
after change to USB boot, I can plug in both SSD & HDD without tigger undervoltage, is that normal?

Desnee
Posts: 13
Joined: Sun Jun 16, 2019 7:28 pm

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Wed Jun 17, 2020 2:12 pm

Typo in title: This is the 4th update.

W. H. Heydt
Posts: 14396
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 1:03 am

Both of my systems that are Pi4Bs using current USB MSD beta software are behaving correctly.

One has an HP S600 120GB SSD connected through an Eluteng USB to SATA adapter. The other has a WD 314GB PiDrive directly connected with a USB 3.0 to microUSB-3B cable. Neither system is using additional power for the drives beyond what the Pi4Bs can supply through USB ports.

agzorig
Posts: 8
Joined: Sun Jun 14, 2020 5:07 am
Location: UPLB

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 1:14 am

Good to see that this got promoted to "stable." So far so good... SSD and 250GB 2.5" SATA HDD behaving without a hitch.
Raspberry Pi 4B 4GB overclocked to 2 GHz | USB/SSD Boot
Raspberry Pi OS (64-bit)
Gigabyte 120 GB SSD
Innomaker HiFi DAC Hat

BOOTLOADER: Fri Jul 31 13:43:39 UTC 2020 (1596203019)
If you can read this, you have 20/20 vision.

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

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 1:25 am

Of course, promoting something to stable means a major bug will be discovered
It is called progress, time to break a few eggs.
Is it harder to support both beta and mainline than just fix mainline bugs?
I have had less trouble with the new OS and latest bootloaders than with any previous versions.

Nothing may happen and maybe nobody will notice anything except a new feature now works
Does not matter anyway, someone will complain, someone will always complain.
"It is full of bugs" - "Let me show you it's features" ;)
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

smith.intania
Posts: 2
Joined: Thu Jun 18, 2020 6:12 am

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 6:27 am

I have updated EEPROM to version 2020-06-15 on SD card and USB HDD, and modified bootloader_config to let the RPi4B(4G) boot from USB HDD first; BOOT_ORDER=0xf14 (config in both SD card and USB HDD).

Code: Select all

$ sudo vcgencmd bootloader_version
Jun 15 2020 14:36:19
version c302dea096cc79f102cec12aeeb51abf392bd781 (release)
timestamp 1592228179

$ sudo vcgencmd bootloader_config
[all]
BOOT_UART=0
WAKE_ON_GPIO=1
POWER_OFF_ON_HALT=0
DHCP_TIMEOUT=45000
DHCP_REQ_TIMEOUT=4000
TFTP_FILE_TIMEOUT=30000
ENABLE_SELF_UPDATE=1
DISABLE_HDMI=0
BOOT_ORDER=0xf14
Now I insert SD card and USB HDD together. My Pi boots from USB HDD, but still mount /dev/root from SD card. I do not know it is usual or not.

Code: Select all

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       117G  5.2G  109G   5% / 	<------ SD card
devtmpfs        1.8G     0  1.8G   0% /dev
tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs           2.0G   25M  1.9G   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/sda1       253M   52M  201M  21% /boot		<------- USB HDD
tmpfs           391M     0  391M   0% /run/user/1000
How can I start booting and mounting USB HDD when I also inserted bootable SD card?

Kendek
Posts: 272
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 7:35 am

smith.intania wrote:
Thu Jun 18, 2020 6:27 am
Now I insert SD card and USB HDD together. My Pi boots from USB HDD, but still mount /dev/root from SD card. I do not know it is usual or not.
Nothing unusual, just check and update the contents of the following files on the USB HDD:
/boot/cmdline.txt
/etc/fstab

User avatar
davidcoton
Posts: 5850
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 9:39 am

Gavinmc42 wrote:
Thu Jun 18, 2020 1:25 am
Of course, promoting something to stable means a major bug will be discovered
It is called progress, time to break a few eggs.
The codename for the release process is "Omelette" :lol:
"It is full of bugs"
In Omelettes, usually Salmonella. :twisted:
Location: 345th cell on the right of the 210th row of L2 cache

smith.intania
Posts: 2
Joined: Thu Jun 18, 2020 6:12 am

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 11:04 am

Kendek wrote:
Thu Jun 18, 2020 7:35 am
smith.intania wrote:
Thu Jun 18, 2020 6:27 am
Now I insert SD card and USB HDD together. My Pi boots from USB HDD, but still mount /dev/root from SD card. I do not know it is usual or not.
Nothing unusual, just check and update the contents of the following files on the USB HDD:
/boot/cmdline.txt
/etc/fstab

I have changed /boot/cmdline.txt on USB HDD to be:

Code: Select all

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/sda2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
and /etc/fstab on USB HDD to be:

Code: Select all

proc            /proc           proc    defaults          0       0
PARTUUID=/dev/sda1  /boot           vfat    defaults          0       2
PARTUUID=/dev/sda2  /               ext4    defaults,noatime  0       1

then my RPi is unable to boot. Without monitor, I cannot see any log. Please suggest how should I fix this.

Kendek
Posts: 272
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 12:04 pm

smith.intania wrote:
Thu Jun 18, 2020 11:04 am
...
then my RPi is unable to boot. Without monitor, I cannot see any log. Please suggest how should I fix this.
cmdline.txt

Code: Select all

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=<PARTUUID> rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
PARTUUID:

Code: Select all

sudo blkid -s PARTUUID -o value /dev/sdX1
fstab

Code: Select all

UUID=<UUID>  /boot           vfat    defaults          0       2
UUID=<UUID>  /               ext4    defaults,noatime  0       1
UUID:

Code: Select all

sudo blkid -s UUID -o value /dev/sdXN

jj_0
Posts: 124
Joined: Wed Jul 11, 2012 7:07 am

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 12:58 pm

smith.intania wrote:
Thu Jun 18, 2020 11:04 am

and /etc/fstab on USB HDD to be:

Code: Select all

proc            /proc           proc    defaults          0       0
PARTUUID=/dev/sda1  /boot           vfat    defaults          0       2
PARTUUID=/dev/sda2  /               ext4    defaults,noatime  0       1

then my RPi is unable to boot. Without monitor, I cannot see any log. Please suggest how should I fix this.
As per the post above PARTUUID in fstab should use the blkid of the partitions, not the device path. A quick fix should be to put in fstab:

Code: Select all

proc            /proc           proc    defaults          0       0
/dev/sda1  /boot           vfat    defaults          0       2
/dev/sda2  /               ext4    defaults,noatime  0       1
And then change it to the blkid's as per the previous post.

jfabernathy
Posts: 129
Joined: Thu Oct 11, 2018 10:52 am
Location: Central North Carolina

Re: STICKY: USB-MSD boot EEPROM third update - 2020-06-15

Thu Jun 18, 2020 2:35 pm

I have updated to the 6-15-2020 bootloader that was in the Stable directory and have my RPI4 4GB booting from USB3.

It has a console message that says it failed to find the SD card and after a few seconds resets and boots from USB3 directly.

I find some dated information about changing the default boot device, but not sure if its appropriate for 6-15-2020.

What I want to do is try USB3 boot first then try SD if USB fails.

Return to “General discussion”