thinkr
Posts: 6
Joined: Mon Sep 19, 2016 2:10 am

Not able to BOOT From USB ON Pi3 B

Mon Sep 19, 2016 2:28 am

Thanks for any help in advance.

hardware:
Raspberry Pi 3 B
32GB Sandisk USB Stick

Followed instructions here: https://www.raspberrypi.org/documentati ... des/msd.md

Followed instructions to a "T" tried it 3x times even coping and pasting the code so there were no errors..

Boots only to black screen...:(

Yes my vcgencmd otp_dump | grep 17
Gives back 3020000a

I don't understand why...all commands were executed no errors...
I think it could have to do with the last line about the FSTAB is incorrect...?

$ sudo sed -i "s,/dev/mmcblk0p,/dev/sda," /mnt/target/etc/fstab

could this be my problem?
shouldnt this line read "mmcblk0p2,/dev/sda2 "" not sda I'm probably wrong.... but I don't know

2 things... could also be added to the guide although I don't know where I should post it...

after connecting the fresh USB Stick to the raspberry jessie install
one needs to unmount the disk before parting it.
my example was:
$ sudo umount 9C270-00A7

from /media/pi/9C270-00A7
Otherwise you will get error disk in use Cancel/Retry:

2nd thing to add would be after parting the partition on the drive with:

sudo parted /dev/sda

(parted) mktable msdos
Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? Yes
(parted) mkpart primary fat32 0% 100M
(parted) mkpart primary ext4 100M 100%
(parted) print
==================
Need to add "quit" for noobs

than continue with sudo mkfs.vfat -n BOOT -F 32 /dev/sda1

thank you for your time reading my post.

thinkr
Posts: 6
Joined: Mon Sep 19, 2016 2:10 am

Re: Not able to BOOT From USB ON Pi3 B

Mon Sep 19, 2016 4:28 am

pi@raspberrypi:~ $ cat /etc/fstab
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that

pi@raspberrypi:~ $ cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Not able to BOOT From USB ON Pi3 B

Mon Sep 19, 2016 9:59 am

Your cmdline needs to look like this:

Code: Select all

dwc_otg.lpm_enable=0 console=tty1 root=/dev/sda2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Your fstab needs to look like this:

Code: Select all

proc            /proc           proc    defaults          0       0
/dev/sda1  /boot           vfat    defaults          0       2
/dev/sda2  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
That's what those two sed commands should do.

You also need the BRANCH=next rpi-update firmware / bootcode / kernel on that USB device. It's still not out of beta testing so don't use this on anything other than a throw-away test system.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

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

Re: Not able to BOOT From USB ON Pi3 B

Mon Sep 19, 2016 10:20 am

I have a ready made image of jessie lite configured for usb boot:
viewtopic.php?f=63&t=155167&start=175
Android app - Raspi Card Imager - download and image SD cards - No PC required !

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Not able to BOOT From USB ON Pi3 B

Mon Sep 19, 2016 10:46 am

mikerr wrote:I have a ready made image of jessie lite configured for usb boot:
viewtopic.php?f=63&t=155167&start=175
Thanks, that saves me the effort,
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: Not able to BOOT From USB ON Pi3 B

Mon Sep 19, 2016 10:57 am

thinkr wrote: $ sudo sed -i "s,/dev/mmcblk0p,/dev/sda," /mnt/target/etc/fstab

could this be my problem?
shouldnt this line read "mmcblk0p2,/dev/sda2 "" not sda I'm probably wrong.... but I don't know
That sed line should do that. the 's' command in sed is a search and replace. So it looks for '/dev/mmcblk0p' and replaces with '/dev/sda'

With your fstab entrys

Code: Select all

/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
Running that sed command will give you

Code: Select all

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

thinkr
Posts: 6
Joined: Mon Sep 19, 2016 2:10 am

Re: Not able to BOOT From USB ON Pi3 B

Mon Sep 19, 2016 8:46 pm

Wonderful! Thank you for your advice I will work on it tonight and see what happens...

Thank you DougieLawson you mentioned:
You also need the BRANCH=next rpi-update firmware / bootcode / kernel on that USB device. It's still not out of beta testing so don't use this on anything other than a throw-away test system.
ok so I started up the pi again..

pi@raspberrypi:/media/pi $ sudo umount /dev/sda1
pi@raspberrypi:/media/pi $ sudo umount /dev/sda2
pi@raspberrypi:/media/pi $ sudo mount /dev/sda1 /mnt/target/boot/
pi@raspberrypi:/media/pi $ sudo mount /dev/sda2 /mnt/target/
========
pi@raspberrypi:/media/pi $ cat /mnt/target/boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/sda2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
========
pi@raspberrypi:/media/pi $ cat /mnt/target/etc/fstab
proc /proc proc defaults 0 0
/dev/sda1 /boot vfat defaults 0 2
/dev/sda2 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that

Looks like it fixed it... I shutdown the pi... took out the microSD card and still no luck black screen....
what could I have done incorrectly...

How to I target the key with BRANCH=next rpi-update /firmware /bootcode /kernel
Do i have to do that to my main microSD card an than rsync again?

Thank you mikerr
Glad there is already an Image I'll try that out too on my other key...
Last edited by thinkr on Mon Sep 19, 2016 9:28 pm, edited 3 times in total.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Not able to BOOT From USB ON Pi3 B

Mon Sep 19, 2016 9:15 pm

You need to do that before your copy the SDCard to the USB MSD (the rsync step).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

thinkr
Posts: 6
Joined: Mon Sep 19, 2016 2:10 am

Re: Not able to BOOT From USB ON Pi3 B

Tue Sep 20, 2016 2:21 pm

Ok so will not give up... after trying the other methods, I decided to wipe my keys and start fresh with USB boot image from mikerr. downloaded the image and used win32diskimager to Flash both drives successfully I shut down the pi...took out the microSD card plugged them in and restarted ....no luck... :ugeek:
I have 2 raspberry pi3 model B
I can confirm both have
vcgencmd otp_dump | grep 17 that dump value 3020000a
program_usb_boot_mode=1 is removed from the /boot/config.txt
Thanks for your patience...

New development this is what I get when i try:

pi@raspberrypi:~ $ sudo BRANCH=next rpi-update firmware
*** 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
Invalid git hash specified <-----problematic~childhood?~~~~~

Still trying... any hints or log files you want to see?
I do get weird usb status report upon booting before it is finished booting...

These are brand new Sandisk Usb keys I bought so there should be no problem there...
Mean while I'm seaching here... but nothing yet.
viewtopic.php?f=28&t=58151
I have new power-supplies 2.5amp and they have no trouble booting raspbian with MicroSD
Last edited by thinkr on Wed Sep 21, 2016 12:42 am, edited 1 time in total.

thinkr
Posts: 6
Joined: Mon Sep 19, 2016 2:10 am

Re: Not able to BOOT From USB ON Pi3 B

Wed Sep 21, 2016 12:39 am

pi@raspberrypi:/var/log $ cat syslog | grep fail

Sep 20 13:30:18 raspberrypi bluetoothd[769]: Sap driver initialization failed.
Sep 20 13:30:19 raspberrypi pulseaudio[814]: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist
Sep 20 13:59:18 raspberrypi systemd-udevd[198]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2 1 4': No such file or directory
Sep 20 13:59:18 raspberrypi systemd-udevd[234]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1 1 3': No such file or directory
Sep 20 13:59:18 raspberrypi systemd-udevd[233]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5 1 6': No such file or directory
Sep 20 13:59:18 raspberrypi systemd-udevd[235]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2 1 4': No such file or directory
Sep 20 13:59:18 raspberrypi systemd-udevd[238]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.2 1 7': No such file or directory
Sep 20 13:59:22 raspberrypi bluetoothd[793]: Sap driver initialization failed.
Sep 20 13:59:23 raspberrypi pulseaudio[808]: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist
Sep 20 14:00:53 raspberrypi systemd-udevd[238]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2 1 4': No such file or directory
Sep 20 14:00:53 raspberrypi systemd-udevd[239]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1 1 3': No such file or directory
Sep 20 14:00:53 raspberrypi systemd-udevd[265]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.2 1 9': No such file or directory
Sep 20 14:00:53 raspberrypi kernel: [ 4.289978] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.290084] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.290189] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.290444] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.290545] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.290652] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.290872] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.290969] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.291061] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.291264] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.291356] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.291452] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.291654] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.291746] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.291844] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.292050] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.292142] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.292240] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.292442] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.292536] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.292638] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.292842] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.292938] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.293031] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.293241] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.293333] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.293425] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.293635] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.293838] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:53 raspberrypi kernel: [ 4.294042] hub 1-1.3:1.0: hub_port_status failed (err = -71)
Sep 20 14:00:57 raspberrypi bluetoothd[754]: Sap driver initialization failed.
Sep 20 14:00:58 raspberrypi pulseaudio[760]: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist

That hub port status failed list is a mile long too...
also I made sure to match my fstab to yours by removing the "console=serial0,115200"

thinkr
Posts: 6
Joined: Mon Sep 19, 2016 2:10 am

Re: Not able to BOOT From USB ON Pi3 B

Wed Sep 21, 2016 1:00 am

Drumroll PLEASE!!
We have a winner!
Unplugged the Pi... Removed MicroSD card
Unplugged slim apple usb keyboard/hub :roll:
Plugged in raspberry!
Booted from USB image straight into Raspbian Lite! :shock:

So confirmed Raspberry will fail to boot with Apple keyboard/hub connected!
I know what your thinking... Why does my trash can smell like apples :lol:

Please update Documentation to include Apple keyboard with built-in hub = raspberry booting from usb fail

Return to “Advanced users”