User avatar
rpdom
Posts: 12265
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: STICKY: USB boot now working on Pi3

Wed Dec 13, 2017 6:15 pm

fluffysheap wrote:
Wed Dec 13, 2017 10:52 am
"just don't do that" isn't an option for a security vulnerability.
Yes, it is.

That bit would have to explicitly be set. If someone is able to get into your system and do that then they already have full access to it.

ejolson
Posts: 1288
Joined: Tue Mar 18, 2014 11:47 am

Re: STICKY: USB boot now working on Pi3

Thu Dec 14, 2017 5:18 pm

rpdom wrote:
Wed Dec 13, 2017 6:15 pm
fluffysheap wrote:
Wed Dec 13, 2017 10:52 am
"just don't do that" isn't an option for a security vulnerability.
Yes, it is.

That bit would have to explicitly be set. If someone is able to get into your system and do that then they already have full access to it.
Good security is not just about having a hard eggshell which is difficult to break, but about limiting the consequences once inside. There is, in fact, an unfortunate amount of hardware that can be permanently damaged or disabled by criminals using malware. Setting the USB boot bit is less troublesome than most other things that could happen. As rightly pointed out, the consequences of a security breach need to be considered when designing the hardware.

esingolo
Posts: 2
Joined: Sat Jul 29, 2017 5:33 pm

Re: STICKY: USB boot now working on Pi3

Sat Jan 13, 2018 3:46 am

Will it hurt my pi 3 if it is able to boot from SD card and usb. Mine is capable of doing both.

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

Re: STICKY: USB boot now working on Pi3

Sat Jan 13, 2018 5:42 am

esingolo wrote:
Sat Jan 13, 2018 3:46 am
Will it hurt my pi 3 if it is able to boot from SD card and usb. Mine is capable of doing both.
Nope. No harm at all. It will try the SD card, if not present or not bootable, it will "look" for a bootable USB device.

lachiepostma
Posts: 1
Joined: Tue Feb 06, 2018 6:58 am

Re: STICKY: USB boot now working on Pi3

Tue Feb 06, 2018 7:02 am

if i use this feature, will i still be able to boot of a micro sd card?

User avatar
fruitoftheloom
Posts: 16174
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: STICKY: USB boot now working on Pi3

Tue Feb 06, 2018 8:15 am

lachiepostma wrote:
Tue Feb 06, 2018 7:02 am
if i use this feature, will i still be able to boot of a micro sd card?
YES !!
""understanding the theoretical, but not always the end goal""

My other Devices are the ChromeBit CS10, ChromeCast & Huawei Mate 10 Pro SmartPhone

p1_p1_p1
Posts: 6
Joined: Sun Mar 04, 2018 5:34 pm

Re: STICKY: USB boot now working on Pi3

Sun Mar 04, 2018 10:34 pm

usb boot is working but when i downloaded curr. version with desktop and install it on 8gb flash it fails verifing ?!?
it runs in rasp 3 b but LSB failed -resize the roodt filesystem failed
failed to start hostname service and i have command prompt only,
after day of playing with shitberry i have finally command prompt - awesome crap.

after another day i still doesnt have running atleast ssh and i tried everything in thread
viewtopic.php?t=86950
ssh file, sudo raspi-config ... nothing ... port 22 silencio ... :P

im guessing what elevation shoud i use to throw this crapberry into local pond.
i have checked and reformated sd card, tried another one, same crap.

tanghao
Posts: 2
Joined: Thu Oct 12, 2017 8:51 am
Contact: Website

Re: STICKY: USB boot now working on Pi3

Thu Mar 08, 2018 7:09 am

Woah. That is the most awesome thing ive seen all day. Would this work with a pi 2

ghale
Posts: 4
Joined: Thu Mar 08, 2018 8:26 am
Location: Italy

Re: STICKY: USB boot now working on Pi3

Thu Mar 08, 2018 8:47 am

Hello people,
I'm a real newbie and I'm sorry to bother you.

I read here https://www.raspberrypi.org/documentati ... des/msd.md how to boot Raspberry Pi 3 from HDD, but I'm not sure about these:

1) Is mandatory to modify OTP adding program_usb_boot_mode=1 to the end of /boot/config.txt? Or with latest version of Raspbian I can boot from external device without touching OTP?
2) Can you confirm me that I can boot from SD if HDD is not present or bootable?

I've tried (without modifying OTP) to boot from 2 different HDDs and two USB (3.0) pendrives, without success.

Someone can help me, please?
I'm afraid to touch my Raspberry because I'm not sure of what to do.

User avatar
DougieLawson
Posts: 32045
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: STICKY: USB boot now working on Pi3

Thu Mar 08, 2018 9:56 am

tanghao wrote:
Thu Mar 08, 2018 7:09 am
Woah. That is the most awesome thing ive seen all day. Would this work with a pi 2
NO. PI3 only.

You can boot a PI2 with just bootcode.bin on an SDCard.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3B*3, 3B+

Please post ALL technical questions on the forum. Do not send private messages.

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

Re: STICKY: USB boot now working on Pi3

Thu Mar 08, 2018 9:59 am

DougieLawson wrote:
Thu Mar 08, 2018 9:56 am
tanghao wrote:
Thu Mar 08, 2018 7:09 am
Woah. That is the most awesome thing ive seen all day. Would this work with a pi 2
NO. PI3 only.

You can boot a PI2 with just bootcode.bin on an SDCard.
Err, Dougie, does USB boot without SDCard not work on the new Pi2B? I know it will NOT work on the original version. (Sorry I can't remember the board revisions and don't have time to research now.)
"If it ain't broke, fix it until it is."
“Raspberry Pi is a trademark of the Raspberry Pi Foundation”
The Pink Unicorn is a symbol of commitment to sensible discussion of future versions of the Raspberry Pi ™

User avatar
DougieLawson
Posts: 32045
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: STICKY: USB boot now working on Pi3

Thu Mar 08, 2018 10:06 am

davidcoton wrote:
Thu Mar 08, 2018 9:59 am

Err, Dougie, does USB boot without SDCard not work on the new Pi2B? I know it will NOT work on the original version. (Sorry I can't remember the board revisions and don't have time to research now.)
I don't know. Nobody has ever positively said it worked. I don't have a PI2B2 to test it.

All of my RPI3s boot from USB devices.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3B*3, 3B+

Please post ALL technical questions on the forum. Do not send private messages.

User avatar
fos
Posts: 104
Joined: Wed Nov 16, 2011 1:48 am
Location: Texas & Kansas, United States
Contact: Website

Re: STICKY: USB boot now working on Pi3

Sun Mar 18, 2018 4:46 pm

Has the USB Boot via hard disk drive been enhanced in the new RPi 3 B+ ?

Thank you,
v/r
fos
https://faroutscience.com

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

Re: STICKY: USB boot now working on Pi3

Sun Mar 18, 2018 4:54 pm

fos wrote:
Sun Mar 18, 2018 4:46 pm
Has the USB Boot via hard disk drive been enhanced in the new RPi 3 B+ ?
Define "enhanced". The only change I know about is that the Pi3B+ is set up to boot from USB (or PxE) by default. I got a Pi3B+ yesterday and within 5 minutes of opening the package, I had it booted from a PiDrive by swapping it in to replace a Pi3B. No muss, no fuss.

(And is response to some non-current, but still moderately recent posts...the Pi2Bv1.2 should be able to have the OTP bit set and boot from USB. The ability is a feature of the '2837 SoC and is therefore, board independent. I even have a CM3L--same SoC--that boots directly from an MSD, but nobody asked about that. At least not recently.)

User avatar
fos
Posts: 104
Joined: Wed Nov 16, 2011 1:48 am
Location: Texas & Kansas, United States
Contact: Website

Re: STICKY: USB boot now working on Pi3

Sun Mar 18, 2018 6:00 pm

Thank you for the info. I have a 3 B+ on the way.
https://faroutscience.com

mikerr
Posts: 2638
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: STICKY: USB boot now working on Pi3

Sun Mar 18, 2018 9:24 pm

W. H. Heydt wrote:
Sun Mar 18, 2018 4:54 pm
fos wrote:
Sun Mar 18, 2018 4:46 pm
Has the USB Boot via hard disk drive been enhanced in the new RPi 3 B+ ?
Define "enhanced". The only change I know about is that the Pi3B+ is set up to boot from USB (or PxE) by default.
The new bootrom code has various compatibility fixes in it to support a larger variety of USB devices and PXE network environments,
as Eben mentions here: https://youtu.be/tncUe8QYLoQ?t=7m4s
Android app - Raspi Card Imager - download and image SD cards - No PC required !

User avatar
fos
Posts: 104
Joined: Wed Nov 16, 2011 1:48 am
Location: Texas & Kansas, United States
Contact: Website

Re: STICKY: USB boot now working on Pi3

Sun Mar 18, 2018 10:20 pm

I thought I heard something about changes to the bootrom in the video.

Thank you for the link.
v/r
fos
https://faroutscience.com

User avatar
QBall1977
Posts: 72
Joined: Thu Aug 09, 2012 10:06 am
Location: Hull, East Yorkshire
Contact: Website

Re: STICKY: USB boot now working on Pi3

Sun Mar 18, 2018 11:31 pm

Doesn’t work for me. Had a Pi 3 running Stretch as a desktop PC from a large USB Pendrive Sandisk, without MicroSD on the 3B+ (straight swap out) this seems to do nothing...

Maybe a setting? will try fiddling with config.txt on the microSD. The program_usb_boot_mode=1 didn’t seem to do much.

Anyone have any suggestions?
____________________________________________
Looking for where to start - try Kernel Panic - http://goo.gl/EEQ5J

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

Re: STICKY: USB boot now working on Pi3

Sun Mar 18, 2018 11:33 pm

Did you update the USB installation of Stretch beforee moving to the Pi3B+?

Code: Select all

sudo apt update
sudo apt full-upgrade
"If it ain't broke, fix it until it is."
“Raspberry Pi is a trademark of the Raspberry Pi Foundation”
The Pink Unicorn is a symbol of commitment to sensible discussion of future versions of the Raspberry Pi ™

cspan
Posts: 56
Joined: Sat Jun 10, 2017 1:03 pm

Re: STICKY: USB boot now working on Pi3

Sat Mar 24, 2018 3:28 pm

With respect to USB boot (I'm mainly interested in the 3B+ at this point), there seem to be a number of possible ways to do it:
  • flash/thumb drive
  • SSD
  • external hard drive powered via USB (e.g., Seagate Slim, WD My Passport]
  • external hard drive with its own power supply (e.g., via a powered USB hub, its own power supply/wall wart, or even an internal hard drive set into a powered SATA dock
Which of these would be most suitable for use of the Pi as a desktop replacement (email, Libreoffice, browsing, some basic picture editing but no video editing)?

And is it the case that people have found booting from a mechanical hard drive does not work well unless the drive has its own power? I have been able to read/write to an external USB hard drive without its own power supply, but I never tried to boot from one. There seems to be some belief here that the spin-up of the drive upon booting draws too much power, and therefore the only hard drives for booting should be powered ones. Is that accurate? And I think I read that they should be spun up prior to starting the Pi - is that right?

Another question: I have seen mentioned separating out the boot partition from the root partition, making the boot read-only on an SD card. I am curious how this is done, but I suspect it might make update/upgrade even more complicated than my attempt to move my dual-boot NOOBS card from my 3B to the 3B+ (failed).

Thanks!

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

Re: STICKY: USB boot now working on Pi3

Sat Mar 24, 2018 4:19 pm

cspan wrote:
Sat Mar 24, 2018 3:28 pm
With respect to USB boot (I'm mainly interested in the 3B+ at this point), there seem to be a number of possible ways to do it:
  • flash/thumb drive
  • SSD
  • external hard drive powered via USB (e.g., Seagate Slim, WD My Passport]
  • external hard drive with its own power supply (e.g., via a powered USB hub, its own power supply/wall wart, or even an internal hard drive set into a powered SATA dock
Which of these would be most suitable for use of the Pi as a desktop replacement (email, Libreoffice, browsing, some basic picture editing but no video editing)?

And is it the case that people have found booting from a mechanical hard drive does not work well unless the drive has its own power? I have been able to read/write to an external USB hard drive without its own power supply, but I never tried to boot from one. There seems to be some belief here that the spin-up of the drive upon booting draws too much power, and therefore the only hard drives for booting should be powered ones. Is that accurate? And I think I read that they should be spun up prior to starting the Pi - is that right?

Another question: I have seen mentioned separating out the boot partition from the root partition, making the boot read-only on an SD card. I am curious how this is done, but I suspect it might make update/upgrade even more complicated than my attempt to move my dual-boot NOOBS card from my 3B to the 3B+ (failed).
Most of that you're going to have to answer for yourself. The most compact way to do it a USB stick. Second most compact is SSD. SSD also makes it easier to have a lot more storage (if you need it). Your typical SSD can be powered from a single USB port. When you get to HDDs, it gets more complicated. You can keep the cost down and get a *lot* more space with an HDD. If you can get a PiDrive (not sure if they're still avaiable from WD), you can power it from a single USB port because WD tuned it for minimal power. People have reported on direct power from other 2.5" form factor HDDs as well. If you go to a 3.5" form factor, you'll definitely need additional power (3.5" drive need 12v as well as 5v).

hippy
Posts: 2712
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: STICKY: USB boot now working on Pi3

Sun Mar 25, 2018 5:43 am

rpdom wrote:
Wed Dec 13, 2017 9:40 am
If you're talking about 39-43, they don't matter. They are not exposed and will have the default pull enabled (down, I believe), so won't interfere with the boot process.
The page does say "selecting the high bank is likely to produce a non-bootable Pi, unless you're using a Compute Module (any version)" so it does seem there is some real danger.

I don't know how easy it is to programmatically set the OTP bits and render the Pi unbootable but if someone hacked some commonly used repository, package or application and embedded a time bomb quite a few could be at risk without their knowing it.

This is why there's growing interest in GitHub hacking and hacking up-stream libraries. Get the bomb planted then just sit back and watch others let it trickle down. That's how we in the UK ended up with horse meat in Lasagne without anyone realising what they were eating.

User avatar
rpdom
Posts: 12265
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: STICKY: USB boot now working on Pi3

Sun Mar 25, 2018 6:04 am

hippy wrote:
Sun Mar 25, 2018 5:43 am
This is why there's growing interest in GitHub hacking and hacking up-stream libraries. Get the bomb planted then just sit back and watch others let it trickle down. That's how we in the UK ended up with horse meat in Lasagne without anyone realising what they were eating.
That's not quite the same thing. Setting a software bomb can do some actual damage. While the meat thing meant that people were eating something that they didn't expect to be eating, and maybe would have preferred not to, it is unlikely to have caused them any physical damage. TBH when I first heard about the meat thing my first thought was "mmm, tasty", although I prefer to make my own lasagne so I know what goes in it* :-)

*The last one I made was kangaroo. The next one may be 100% horse meat, possibly.

cspan
Posts: 56
Joined: Sat Jun 10, 2017 1:03 pm

Re: STICKY: USB boot now working on Pi3

Tue Mar 27, 2018 12:35 am

W. H. Heydt wrote:
Sat Mar 24, 2018 4:19 pm
Most of that you're going to have to answer for yourself. The most compact way to do it a USB stick. Second most compact is SSD. SSD also makes it easier to have a lot more storage (if you need it). Your typical SSD can be powered from a single USB port. When you get to HDDs, it gets more complicated. You can keep the cost down and get a *lot* more space with an HDD. If you can get a PiDrive (not sure if they're still avaiable from WD), you can power it from a single USB port because WD tuned it for minimal power. People have reported on direct power from other 2.5" form factor HDDs as well. If you go to a 3.5" form factor, you'll definitely need additional power (3.5" drive need 12v as well as 5v).
There's a chance SanDisk will replace the card under warranty. I'm in that process now. If they come through with a new one, I may well use it - and that would be the most compact way of all! Of course, it's not a USB boot that way. But I could have a USB stick (or two) and that old class 6 card as backups. I could keep my data on an external hard drive that I already use for backup, and just use the flash stuff for the OS.

I have verified that my Pi3B+ will boot from external powered HDD (turned on before the Pi) and from USB stick as well (already inserted in Pi upon starting). Both also had no trouble with shutdown or reboot. The only other kind of boot I could do (and might have at hand, which is an easy/natural way to accessorize the Pi) is a non-powered external HDD, but I think I've already read on the forums that such things can be problematic, perhaps because of the timing of power-up?

Anyway, I don't know how long a microSD card ... or flash stick ... might last if one uses the Pi as an everyday computer. 6, 9, 12 months? I might find out someday. Fortunately those things aren't that expensive - and could be considered a consumable item. If I don't move the machine much, an external powered HDD might make the most sense. But I do like the small form factor of the Pi.

techblogger911
Posts: 4
Joined: Fri Apr 06, 2018 2:31 am

Re: STICKY: USB boot now working on Pi3

Fri Apr 06, 2018 2:43 am

+1 the RPi 3B is 1200mA by default
i still need a cable to have it play

Return to “General discussion”

Who is online

Users browsing this forum: davidcoton, gagz and 43 guests