Lxw2015
Posts: 84
Joined: Fri Feb 12, 2016 4:05 am

RPi3 boot from usb

Fri Sep 18, 2020 2:05 am

according to this link
https://www.raspberrypi.org/documentati ... des/msd.md
once I set RPi3 boot from USB, then it won't boot from SD card any more. is my understanding wrong or it is designed that way?
I can't believe this. Why not like other system if USB boot failed then try SD card?

thanks
LXW

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

Re: RPi3 boot from usb

Fri Sep 18, 2020 2:55 am

Lxw2015 wrote:
Fri Sep 18, 2020 2:05 am
according to this link
https://www.raspberrypi.org/documentati ... des/msd.md
once I set RPi3 boot from USB, then it won't boot from SD card any more. is my understanding wrong or it is designed that way?
I can't believe this. Why not like other system if USB boot failed then try SD card?

thanks
LXW

https://www.raspberrypi.org/documentati ... ootflow.md
Thinking outside the box is better than burying your head in the sand...

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

Re: RPi3 boot from usb

Fri Sep 18, 2020 2:58 am

Lxw2015 wrote:
Fri Sep 18, 2020 2:05 am
according to this link
https://www.raspberrypi.org/documentati ... des/msd.md
once I set RPi3 boot from USB, then it won't boot from SD card any more. is my understanding wrong or it is designed that way?
I can't believe this. Why not like other system if USB boot failed then try SD card?
Your understanding is incorrect. Once you enable boot from USB, it will try to boot from an SD card, and if that isn't present or doesn't contain the files to boot, *then* it will look for an attached, bootable, USB device.

On the Pi4B you can set the boot order, but that's because the Pi4B has additional EEPROM storage to hold the extended boot code.

User avatar
kerry_s
Posts: 1580
Joined: Thu Jan 30, 2020 7:14 pm

Re: RPi3 boot from usb

Fri Sep 18, 2020 3:03 am

Lxw2015 wrote:
Fri Sep 18, 2020 2:05 am
according to this link
https://www.raspberrypi.org/documentati ... des/msd.md
once I set RPi3 boot from USB, then it won't boot from SD card any more. is my understanding wrong or it is designed that way?
I can't believe this. Why not like other system if USB boot failed then try SD card?

thanks
LXW
if you remove the usb & insert a sd card it will boot from the sd card.

DirkS
Posts: 10449
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: RPi3 boot from usb

Fri Sep 18, 2020 3:50 am

kerry_s wrote:
Fri Sep 18, 2020 3:03 am
if you remove the usb & insert a sd card it will boot from the sd card.
As said by @W.H.Heydt it will try to boot from SD first

Lxw2015
Posts: 84
Joined: Fri Feb 12, 2016 4:05 am

Re: RPi3 boot from usb

Fri Sep 18, 2020 5:35 pm

thank you all. read the link again. I did found it's my miss understanding. it says OPT can't undo. that's why I doubt my self.

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

Re: RPi3 boot from usb

Fri Sep 18, 2020 6:46 pm

Lxw2015 wrote:
Fri Sep 18, 2020 5:35 pm
thank you all. read the link again. I did found it's my miss understanding. it says OPT can't undo. that's why I doubt my self.
Correct. Once a "One Time Programmable" (OTP) bit is set, you can't unset it. Hence, it's a good idea that it doesn't prevent booting from an SD card. The Pi4B is more complex. The code that governs boot order is in an EEPROM and can--therefore--be changed. The preferred setting of boot order is still SD card first, though.

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

Re: RPi3 boot from usb

Sat Sep 19, 2020 1:24 am

@Lxw2015,

If you don't want to set the OTP bit or find you still cannot boot from USB after doing so: Running Raspbian from USB Devices : Made Easy

Lxw2015
Posts: 84
Joined: Fri Feb 12, 2016 4:05 am

Re: RPi3 boot from usb

Sat Sep 26, 2020 7:25 pm

thanks for you all.
I think boot from USB OTP should be set by default. it's no harm. and made life easier.
if there is SD card inserted, then boot from DS card. if no SD card present then boot from USB. I did not see any disadvantage about this.
any opinion about this?
thanks
LXW

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

Re: RPi3 boot from usb

Sat Sep 26, 2020 7:35 pm

Lxw2015 wrote:
Sat Sep 26, 2020 7:25 pm
I think boot from USB OTP should be set by default. it's no harm. and made life easier.
if there is SD card inserted, then boot from DS card. if no SD card present then boot from USB. I did not see any disadvantage about this.

That's the case on the Raspberry Pi 3B+.

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

Re: RPi3 boot from usb

Sat Sep 26, 2020 7:36 pm

Lxw2015 wrote:
Sat Sep 26, 2020 7:25 pm
thanks for you all.
I think boot from USB OTP should be set by default. it's no harm. and made life easier.
It is...on the Pi3B+.

Bear in mind that the Pi2Bv1.2 uses the same SoC as the Pi3B/Pi3B+ (I believe that both the Pi3B and Pi2Bv1.2 have migrated to the BCM2837B0, which started out on just the Pi3B+) so the bit can be set on those boards, as well. It's just that nobody seems to expect to boot any version of Pi2B directly from a USB MSD.

Lxw2015
Posts: 84
Joined: Fri Feb 12, 2016 4:05 am

Re: RPi3 boot from usb

Sun Sep 27, 2020 6:32 pm

W. H. Heydt wrote:
Sat Sep 26, 2020 7:36 pm
Lxw2015 wrote:
Sat Sep 26, 2020 7:25 pm
thanks for you all.
I think boot from USB OTP should be set by default. it's no harm. and made life easier.
It is...on the Pi3B+.

Bear in mind that the Pi2Bv1.2 uses the same SoC as the Pi3B/Pi3B+ (I believe that both the Pi3B and Pi2Bv1.2 have migrated to the BCM2837B0, which started out on just the Pi3B+) so the bit can be set on those boards, as well. It's just that nobody seems to expect to boot any version of Pi2B directly from a USB MSD.
I'm not quite understand what you mean. for Pi2B, if you don't expect boot from USB MSD, then just insert SD card into Pi2B. then it boot from SD card.

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

Re: RPi3 boot from usb

Sun Sep 27, 2020 9:49 pm

Lxw2015 wrote:
Sun Sep 27, 2020 6:32 pm
W. H. Heydt wrote:
Sat Sep 26, 2020 7:36 pm
Lxw2015 wrote:
Sat Sep 26, 2020 7:25 pm
thanks for you all.
I think boot from USB OTP should be set by default. it's no harm. and made life easier.
It is...on the Pi3B+.

Bear in mind that the Pi2Bv1.2 uses the same SoC as the Pi3B/Pi3B+ (I believe that both the Pi3B and Pi2Bv1.2 have migrated to the BCM2837B0, which started out on just the Pi3B+) so the bit can be set on those boards, as well. It's just that nobody seems to expect to boot any version of Pi2B directly from a USB MSD.
I'm not quite understand what you mean. for Pi2B, if you don't expect boot from USB MSD, then just insert SD card into Pi2B. then it boot from SD card.
When the Pi2B was released--now known as the Pi2Bv1.1--it used the BCM2836 SoC. That SoC does not contain boot from USB MSD code at all. It can do "hybrid" booting, where part of what is need is on an SD card and the rest on on a USB MSD. As a cost saving issue, the Pi2B was updated to use the BCM2837 SoC--the one used on the Pi3B--and the newer version is the Pi2Bv1.2. Because the Pi2Bv1.2 uses the same SoC as the Pi3B, it contains the ROM code to boot from a USB attached MSD and once you set the OTP bit, it will do so. This is a part of why knowing *which* Pi2B you're looking at matters.

What it amounts to is that the Pi2Bv1.2 is a slower (900MHz, default) version of the Pi3B, without on-board WiFi. This is not something that appeals to everybody, but there are some good uses for it. At least, I think there are some good uses for it.

I've never heard of anyone actually do USB MSD booting on a Pi2Bv1.2, but I feel that it is important to remember that it *can* be done.

Perhaps some day, I'll do it...just so I can say that it's been done....

Return to “General discussion”