torak666
Posts: 8
Joined: Tue Feb 06, 2018 4:58 pm

Re: Raspberry Pi 4 usb boot?

Wed Oct 30, 2019 5:36 pm

Just tell me what i did wrong on this?

Initial cmdline.txt

Code: Select all

console=tty1 root=PARTUUID=5e3da3da-02 rootfstype=ext4
5e3da3da-02 my SD CARD right?

modified for SSD:

Code: Select all

console=tty1 root=PARTUUID=9ec0e712-02 rootfstype=ext4
9ec0e712-02 my SSD partition ROOT is ok?

Then:
/etc/fstab the PARTUUID of the rootfs = 9ec0e712-02

Then reboot and os should be start right?

For me the Os is not starting, i have only display of the 3 Raspberries

Regards

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

Re: Raspberry Pi 4 usb boot?

Wed Oct 30, 2019 5:49 pm

torak666 wrote:
Wed Oct 30, 2019 5:36 pm
Then reboot and os should be start right?

For me the Os is not starting, i have only display of the 3 Raspberries

What is on the SSD and how did you put it there?

dickon
Posts: 563
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: Raspberry Pi 4 usb boot?

Wed Oct 30, 2019 5:50 pm

If that's the entirety of your cmdline.txt, you should see a lot more than just three(!) raspberries. I'd expect four raspberries, and a few screenfuls of text showing the boot process.

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

Re: Raspberry Pi 4 usb boot?

Wed Oct 30, 2019 5:50 pm

torak666 wrote:
Wed Oct 30, 2019 5:36 pm
For me the Os is not starting, i have only display of the 3 Raspberries
If only three processors are online, you may have hardware problems.

Could you please check whether three or four Raspberries are displaying?

torak666
Posts: 8
Joined: Tue Feb 06, 2018 4:58 pm

Re: Raspberry Pi 4 usb boot?

Wed Oct 30, 2019 6:30 pm

hum sorry, since i have modified the file /etc/fstab the boot is not working i start in shell but i cannot modify the /etc/fstab file it is in read only, certainly forced read only because the pi boot with this file. I have no linux on my main computer to modify the file in SD card

i have to reinstall again raspbian buster i will make screenshoot. And my try to install raspbian buster with NOOBS on the SSD fails, the OS doesn't want starting.

dickon
Posts: 563
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: Raspberry Pi 4 usb boot?

Wed Oct 30, 2019 6:48 pm

You should be able to edit cmdline.txt in any random PC text editor, line endings notwithstanding. Add 'init=/bin/bash' to the end of it and boot, and you should end up at a root prompt. If you have 'quiet' in there anywhere, remove it. That should get you a lot of boot log output, which should help identify the problem.

'quiet' is another abomination that shouldn't be anywhere near working operating systems, if you ask me[0]. Fine for the likes of LibreELEC and OpenWRT, but for general use, it hasn't any business being on a commandline, as it hides far, far too much useful information without which debugging issues like this becomes impossible.


[0] You didn't. I appreciate that. Tough.

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

Re: Raspberry Pi 4 usb boot?

Wed Oct 30, 2019 7:06 pm

torak666 wrote:
Wed Oct 30, 2019 6:30 pm
i have to reinstall again raspbian buster i will make screenshoot.

After you get Raspbian running on an SD card, simply run usb-boot, selecting copy the SD card to the USB device. When you reboot, you will be up and running on the SSD. No manual configuration necessary.

torak666
Posts: 8
Joined: Tue Feb 06, 2018 4:58 pm

Re: Raspberry Pi 4 usb boot?

Wed Oct 30, 2019 7:23 pm

Image
I have to copy PARTUUID = 4ea876e6-02 and replace in /etc/fstab and in cmdline.txt then reboot and that's all no?

The SSD content is copy of rasbian buster by software SD Card Copier, i said that few replies before page 15.

Ok finally it works fine with the script boot.
I see all PARTUUID are the same modification i done my self in fstab and cmdline.

The problem should be on SD CARD Copier or there is an other modification i had not done and the script do this.

I thinks i won't sleep less stupid tonight.

RossDv8
Posts: 243
Joined: Thu Jan 21, 2016 12:35 pm

Re: Raspberry Pi 4 usb boot?

Wed Oct 30, 2019 10:56 pm

It sounds like the updated usb-boot script would have saved me some editing.
And it should prevent the 'I edited stuff but it still won't boot' problems :D
Remember, nobody is listening to you
until you fart ...

LTolledo
Posts: 2150
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Raspberry Pi 4 usb boot?

Thu Oct 31, 2019 10:17 am

Hey!

Glad you two finally achieved your "interim goal" without further "pain" and "frustrations"... :D

our thanks to RonR for lovingly maintaining and updating the script....

....and of course ..... lets be a little more patient until the procedure for the "ultimate goal" is available....in due time..... ;)
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24149
Joined: Sat Jul 30, 2011 7:41 pm

Re: Raspberry Pi 4 usb boot?

Thu Oct 31, 2019 10:57 am

LTolledo wrote:
Thu Oct 31, 2019 10:17 am
Hey!

Glad you two finally achieved your "interim goal" without further "pain" and "frustrations"... :D

our thanks to RonR for lovingly maintaining and updating the script....

....and of course ..... lets be a little more patient until the procedure for the "ultimate goal" is available....in due time..... ;)
Bootloader guy is now working fully on USB boot. No timescales as yet.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

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

Re: Raspberry Pi 4 usb boot?

Thu Oct 31, 2019 11:21 am

jamesh wrote:
Thu Oct 31, 2019 10:57 am
Bootloader guy is now working fully on USB boot. No timescales as yet.
Good to hear. I'll be glad when I can get my Pi 4B4 booting from its SSD :)

But I'm prepared to wait.

LTolledo
Posts: 2150
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Raspberry Pi 4 usb boot?

Thu Oct 31, 2019 11:52 am

jamesh wrote: Bootloader guy is now working fully on USB boot. No timescales as yet.
Great news! :o
Thanks! (and most specially to the Bootloader guy/team) :D
me in no rush too.... :mrgreen:

all systems running fine at the moment.... ;)
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

RossDv8
Posts: 243
Joined: Thu Jan 21, 2016 12:35 pm

Re: Raspberry Pi 4 usb boot?

Wed Nov 06, 2019 1:17 am

After my experience when I changed to the bootable SSD on my Pi 3B+, I think the only real advantage I will have when this facility is added to the Pi 4, is that loading pictures from my digital camera will not tie up a USB 3 port :-)
It is great that the Raspberry Pi is so flexible and the team so dedicated.
I haven't turned on another of my computers for two weeks now other than to print something, or simply to boot one of the computers, any of which performs an auto clean of my inkjet printers on boot.

On the odd occasions when I had another computer running, I am surprised by how sluggish the more powerful computers are compared with the Pi 4, when doing the mundane tasks like browsing or word processing now that the Pi 4 is running on SSD.

I understand that the boot system differs from that in the Pi 3B+.
Is it likely that the behaviour will end up being similar to that of the Pi 3B+? Once SSD boot is enabled, if the Pi detects a bootable microSD, it will default to booting from that, but of there is a non-bootable microSD, it will just mount it as storage?
Remember, nobody is listening to you
until you fart ...

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

Re: Raspberry Pi 4 usb boot?

Wed Nov 06, 2019 9:37 am

RossDv8 wrote:
Wed Nov 06, 2019 1:17 am
Is it likely that the behaviour will end up being similar to that of the Pi 3B+? Once SSD boot is enabled, if the Pi detects a bootable microSD, it will default to booting from that, but of there is a non-bootable microSD, it will just mount it as storage?
As the Pi 4B has an eeprom with the initial bootcode in, I suspect at some point the boot order will be configurable.

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

Re: Raspberry Pi 4 usb boot?

Thu Nov 07, 2019 2:09 am

As the Pi 4B has an eeprom with the initial bootcode in, I suspect at some point the boot order will be configurable.
That would be nice, the uSD timeout adds seconds when booting from USB.
Is that also going to be an option for netbooting?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

andrum99
Posts: 927
Joined: Fri Jul 20, 2012 2:41 pm

Re: Raspberry Pi 4 usb boot?

Thu Nov 07, 2019 2:37 am

Gavinmc42 wrote:
Thu Nov 07, 2019 2:09 am
As the Pi 4B has an eeprom with the initial bootcode in, I suspect at some point the boot order will be configurable.
That would be nice, the uSD timeout adds seconds when booting from USB.
Is that also going to be an option for netbooting?
The boot order is already configurable, for the beta bootloader with netboot built in:

Code: Select all

BOOT_ORDER=0x21
will try SD card first, then netboot. Whereas:

Code: Select all

BOOT_ORDER=0x12
Will try netboot, then SD card. Alternatively:

Code: Select all

BOOT_ORDER=0x1
will try SD card only. And:

Code: Select all

BOOT_ORDER=0x2
will try netboot only.

There's also SD_BOOT_MAX_RETRIES and NET_BOOT_MAX_RETRIES to configure things.

See https://github.com/raspberrypi/rpi-eepr ... ot_beta.md

Presumably when USB boot arrives it will be 0x4, but that's just a guess.

andrum99
Posts: 927
Joined: Fri Jul 20, 2012 2:41 pm

Re: Raspberry Pi 4 usb boot?

Thu Nov 07, 2019 2:43 am

jamesh wrote:
Thu Oct 31, 2019 10:57 am
Bootloader guy is now working fully on USB boot. No timescales as yet.
I'm now picturing someone with "bootloader guy" on their T-shirt :D
I may have taken that too far.

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

Re: Raspberry Pi 4 usb boot?

Thu Nov 07, 2019 2:59 am

I'm now picturing someone with "bootloader guy" on their T-shirt
Depends on how long he takes ;)
Could be free beers or boos if he shows up wearing that T shirt :lol:

Sounds like netbooting is now worth playing around with, had not been paying enough attention.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

andrum99
Posts: 927
Joined: Fri Jul 20, 2012 2:41 pm

Re: Raspberry Pi 4 usb boot?

Fri Nov 08, 2019 11:37 am

Gavinmc42 wrote:
Thu Nov 07, 2019 2:59 am
Sounds like netbooting is now worth playing around with, had not been paying enough attention.
It's only available on the beta firmware - see the above linked github repo for details.

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

Re: Raspberry Pi 4 usb boot?

Sat Nov 09, 2019 1:32 am

It's only available on the beta firmware - see the above linked github repo for details.
Yep, understood, rpi-eeprom-update.
Now if only I had a USB booting PI4 I could use as a server to test the net booting ones ;)

Not sure who wrote the code for the Pi3 USB boot but it works well with my USB3/SSD dock.
Give them a few beers.
Same dock will halt my Pi4 when it boots from an uSD, it continues when I unplug.

Anyway, looks like my netboot testing will need to use a Pi3 with SSD at the moment.

USB3/SATA dock details, is it a quirky one?

Code: Select all

[ 2433.589953] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 2433.611671] usb 2-1: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 1.00
[ 2433.611682] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2433.611687] usb 2-1: Product: USB3.0 HDD DOCK
[ 2433.611691] usb 2-1: Manufacturer: JMicron
[ 2433.611696] usb 2-1: SerialNumber: 0000AB123519
[ 2433.635627] scsi host0: uas
[ 2433.636911] scsi 0:0:0:0: Direct-Access     Crucial_ CT240M500SSD1    8101 PQ: 0 ANSI: 6
[ 2433.639059] sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB)
[ 2433.639068] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 2433.639339] sd 0:0:0:0: [sda] Write Protect is off
[ 2433.639345] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
[ 2433.639869] sd 0:0:0:0: [sda] Disabling FUA
[ 2433.639876] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2433.640728] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

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

Re: Raspberry Pi 4 usb boot?

Sun Nov 10, 2019 10:07 am

Gavinmc42 wrote:
Sat Nov 09, 2019 1:32 am
It's only available on the beta firmware - see the above linked github repo for details.
Yep, understood, rpi-eeprom-update.
Now if only I had a USB booting PI4 I could use as a server to test the net booting ones ;)

Not sure who wrote the code for the Pi3 USB boot but it works well with my USB3/SSD dock.
Give them a few beers.
Same dock will halt my Pi4 when it boots from an uSD, it continues when I unplug.

Anyway, looks like my netboot testing will need to use a Pi3 with SSD at the moment.

USB3/SATA dock details, is it a quirky one?

Code: Select all

[ 2433.589953] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 2433.611671] usb 2-1: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 1.00
[ 2433.611682] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2433.611687] usb 2-1: Product: USB3.0 HDD DOCK
[ 2433.611691] usb 2-1: Manufacturer: JMicron
[ 2433.611696] usb 2-1: SerialNumber: 0000AB123519
[ 2433.635627] scsi host0: uas
[ 2433.636911] scsi 0:0:0:0: Direct-Access     Crucial_ CT240M500SSD1    8101 PQ: 0 ANSI: 6
[ 2433.639059] sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB)
[ 2433.639068] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 2433.639339] sd 0:0:0:0: [sda] Write Protect is off
[ 2433.639345] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
[ 2433.639869] sd 0:0:0:0: [sda] Disabling FUA
[ 2433.639876] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2433.640728] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
The reboot problem is likely due to power backfeed from your USB3/SSD dock to the Pi's USB3 port - assuming you power it externally of course. The easiest way to fix that is to connect it via an USB3 hub that does not backfeed power to the USB3 port. The hard part is finding such a USB3 hub. The TP-Link UH400 and UH700 USB3 hubs work for me. Another way to fix it is to use an USB3 cable with the 5V wire cut.

As to needing quirks, the best way to find out is to do some tests, if you get 'uas' error messages in the log when copying large files to the SSD then you need to disable uas or maybe upgrade the firmware (at your own risk).

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12410
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Raspberry Pi 4 usb boot?

Sun Nov 10, 2019 2:21 pm

If the boot-loader will be revised, will it be able to boot from an exFAT partition? All previous RPI boot system were only capable of booting from a FAT32 partition, but with larger than 32GB SD-Cards getting cheaper all the time more and more cards will be formatted exFAT. I know that many people no longer use NOOBS, but wouldn't it be nice if exFAT booting could be implemented?

if booting from exFAT means we need to pay MS licences, then forget that I asked.

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

Re: Raspberry Pi 4 usb boot?

Sun Nov 10, 2019 2:26 pm

mahjongg wrote:
Sun Nov 10, 2019 2:21 pm
if booting from exFAT means we need to pay MS licences, then forget that I asked.
Microsoft have open source'd FAT and exFAT. No fees required.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

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

Re: Raspberry Pi 4 usb boot?

Sun Nov 10, 2019 3:34 pm

It'll be the cost of writing an exFAT module for the VPU from scratch. The one in the Linux kernel can't be used as it is GPL. The initial patch for it was nearly 11,000 lines so it is a lot more complicated than FAT.

Return to “General discussion”