malvcr
Posts: 50
Joined: Mon Apr 13, 2015 3:31 am

Re: USB boot now working on Pi3

Wed Aug 10, 2016 12:39 pm

Not only that.

For the test I took a brand new SD card and copied there the bin file, recently downloaded from the next branch. Could be possible that I am using the wrong file?

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1445
Joined: Sat Sep 10, 2011 11:43 am

Re: USB boot now working on Pi3

Wed Aug 10, 2016 1:50 pm

But that SD card was smaller ? If it was 128G then that would explain why it is failing to boot
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

malvcr
Posts: 50
Joined: Mon Apr 13, 2015 3:31 am

Re: USB boot now working on Pi3

Wed Aug 10, 2016 2:42 pm

No no no ... 16GB SD and 128GB SSD (with 100MB boot partition).

Let me do something, because I separated that RPI3 for this case. I will clean everything and to make a basic minimal installation, even re-partition the SSD (maybe to give 98MB for the partition table to be different), and a root partition smaller than 100GB, just in case, to check the details.

The parts to use will be:

1) 16GB RadioShack SD Class 10 for the initial Jessie Little installation.
2) 8GB Lexar SD Class 10 card to put there only the bin file. These are wonderful cards for RPI machines (rock solid).
3) SSD SanDisk 128GB as the test subject ( 90MB boot, 90GB root ... remaining without use in this moment )
4) The Seagate USB-SATA bridge card. It seems to be more "serious" than the other one.

The RPI3 machine already has the USB boot bit set.

malvcr
Posts: 50
Joined: Mon Apr 13, 2015 3:31 am

Re: USB boot now working on Pi3

Wed Aug 10, 2016 7:07 pm

I have been doing all sort of tests today.

First, I used a newer Jessie Little with kernel 4.4.11 ... that was upgraded to 4.4.15 with the rpi-update.

First, I had the same behaviour with all the combinations made before. Then, I made a copy from the SSD disk into a Lexar 32 GB USB Memory stick. For my surprise, I also had mixed results. Then I checked my total hardware configuration; the only possible extra problem could be the "keyboard".

When I made all the previous tests, I was using a very nice and "old" Mac mechanical keyboard having an integrated USB HUB, and in one of the HUB ports was located a Logitech M280 mouse dongle. So, I replaced the keyboard with a standard Microsoft Wired Keyboard 600 and the USB memory began to work as expected (almost). 6 boot cycles, only 1 coloured frozen screen. Although, I need to repeat the USB memory stick test to discard any human factor.

Then, I returned to my SSD configuration. One boot, ok ... two boots ok ... three ... coloured, coloured ... boots ok again.

There is really "something" with the SSD, but it is also important to check "what else" is connected on the RPI3 USB ports that could make the boot process to fail. You know, less variables involved, more chance for success.

I am not sure what type of tests others are making with this noSD boot feature. I will be happy when I be able to reboot 30 times (one after the other) without any problem.


Now I need to go out. Later I will check the bootcode.bin option.

Greetings

Marco

CaptManiac
Posts: 9
Joined: Tue Jun 12, 2012 10:24 pm

Re: USB boot now working on Pi3

Thu Aug 11, 2016 4:07 am

I'm using a SanDisk Ultra Fit USB 3.0 Flash Drive, 64 GB. USB boot works flawlessly...

UNTIL I do a 'sudo apt-get upgrade', and then it will not boot. I've repeated this three times with the same results. If the upgrade is done on the original SD card before creating the USB boot flash drive, the USB boot will not work. Without doing an upgrade I'm able to do multiple installs of different packages (i.e. mate-desktop-environment, libreoffice, xrdp) on the USB boot, rebooting between all the different installs (more than four times) with no problems. But as soon as I do an upgrade, it will not boot.

Jeff

malvcr
Posts: 50
Joined: Mon Apr 13, 2015 3:31 am

Re: USB boot now working on Pi3

Thu Aug 11, 2016 1:38 pm

Hi CaptManiac.

There is something you could try ... although I don't know if this will break some dependency.

1) Check what is your Kernel version (uname -a). If it is 4.4.16 or greater, then your /boot partition was updated with the apt-get upgrade command and probably you lost the special bootcode.bin file.

2) Go to the /boot directory and rename the .firmware_revision file to whatever.

3) Reinstall the "next" version of the /boot content.

sudo BRANCH=next rpi-update

4) Reboot

In any case, I am not testing this on production environments because it is still in beta and there are "issues" that need to be discovered, so I can do that type of things.

Marco

P.S. You need to be sure that the same /boot content is in your USB disk and in your SD card, in case you use the SD card again. If they are different you will have all sort of problems. You could try a rsync in case that they are different.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1445
Joined: Sat Sep 10, 2011 11:43 am

Re: USB boot now working on Pi3

Thu Aug 11, 2016 3:16 pm

apt-get upgrade will overwrite the firmware and switch you back to old firmware... You need to force the BRANCH=next rpi-update again to make sure it'll keep booting

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

User avatar
g7ruh
Posts: 67
Joined: Mon Apr 23, 2012 9:49 am
Location: Blackfield UK

Re: USB boot now working on Pi3

Fri Aug 12, 2016 1:00 pm

gsh wrote:apt-get upgrade will overwrite the firmware and switch you back to old firmware... You need to force the BRANCH=next rpi-update again to make sure it'll keep booting
Thanks Gordon, I updated my SSD after getting it all to work, then turned it off for the night.... this morning it would not boot <big sigh> and this thread saved a lot of head scratching. It is a (very old) 64GB Crucial SSD so the 128GB size was not an issue.

I also had an issue with a 32GB Corsair Voyager Mini 3.0: using the github instructions it would not boot at the end. For some reason the rsync did not copy the /boot directory (it was empty) so it would not boot. This occured several times on restarting the process. I have retried the whole process, having got the SSD to work, I can confirm that the device works fine and can be added to the list of working USB drives. Works fine with the default usb timeout value.

Roger

levelcrow
Posts: 47
Joined: Tue Aug 12, 2014 5:04 pm

Re: USB boot now working on Pi3

Fri Aug 12, 2016 11:02 pm

Any idea when the new bootcode will hit the master branch?

LeVuHoang
Posts: 1
Joined: Wed May 04, 2016 6:28 pm

Re: USB boot now working on Pi3

Sat Aug 13, 2016 3:11 am

I followed the instructions and can see 17:3020000a as the result but when I plugged out my sd card and turn my rpi3 on, nothing happened.

I tried with:
1. Touro usb hard disk
2. Shintaro SATA hard disk reader via usb
3. 16GB Sandisk USB

Same result, no hdmi signal or boot screen.
When I inserted my sd card, rpi booted as normal.

Edited:
I can make it works with #2 and #3 but not with a usb hard disk.
However, after few times rebooting my #2 device, it won't boot anymore. The result is the same with #1, no hdmi signal although it can boot before.

Riyaaz2016
Posts: 2
Joined: Sun Aug 14, 2016 10:24 am

Re: USB boot now working on Pi3

Sun Aug 14, 2016 12:02 pm

Hi,

I've read through the previous posts of the forum and I may have somewhat a similar issue on my RPI3 device.

RPI3
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
Firmware: 4.4.17-v7+

I have a Seagate BUP Fast HDD 4TB 2.5" external USB drive

Model Number: BUP Fast HDD
Serial Number: NA7F11MS
Firmware Revision: 9408
Capacity: 4.00TB / 3.64 TiB

When connecting the above HDD to RPI3 it makes a clicking noise and disconnects / reconnects constantly in a loop. I have tried using the Y cable too and still does the same as well. I've ran apt-get upgrade, apt-get update and rpi-update so everything is on the latest version too.

Below is a snapshot of the DMESG log file....

Code: Select all

[  207.440224] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[  207.581932] usb 1-1.2: not running at top speed; connect to a high speed hub
[  207.584481] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=ab2a
[  207.584497] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  207.584510] usb 1-1.2: Product: BUP Fast HDD
[  207.584523] usb 1-1.2: Manufacturer: Seagate
[  207.584535] usb 1-1.2: SerialNumber: NA7F11MS
[  207.586997] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  207.589305] scsi host0: usb-storage 1-1.2:1.0
[  208.581786] scsi 0:0:0:0: Direct-Access     Seagate  BUP Fast HDD     9408 PQ: 0 ANSI: 6
[  208.586728] sd 0:0:0:0: [sda] Spinning up disk...
[  208.599504] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  208.865961] usb 1-1-port2: over-current change
[  209.590223] .
[  209.611495] usb 1-1.2: USB disconnect, device number 4
[  209.630332] ready
[  209.630539] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[  209.630557] sd 0:0:0:0: [sda] Sense not available.
[  209.630626] sd 0:0:0:0: [sda] Write Protect is off
[  209.630643] sd 0:0:0:0: [sda] Mode Sense: 3c 00 00 00
[  209.630707] sd 0:0:0:0: [sda] No Caching mode page found
[  209.630722] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  209.631861] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[  209.631877] sd 0:0:0:0: [sda] Sense not available.
[  209.631990] sd 0:0:0:0: [sda] Attached SCSI disk
[  211.530254] usb 1-1.2: new full-speed USB device number 5 using dwc_otg
[  211.671941] usb 1-1.2: not running at top speed; connect to a high speed hub
[  211.674483] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=ab2a
[  211.674499] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  211.674512] usb 1-1.2: Product: BUP Fast HDD
[  211.674525] usb 1-1.2: Manufacturer: Seagate
[  211.674537] usb 1-1.2: SerialNumber: NA7F11MS
[  211.675680] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  211.676058] scsi host1: usb-storage 1-1.2:1.0
[  212.450012] usb 1-1-port2: over-current change
[  212.691509] usb 1-1.2: USB disconnect, device number 5
[  214.498026] usb 1-1-port2: over-current change
[  216.546057] usb 1-1-port2: over-current change
[  218.722040] usb 1-1-port2: over-current change
[  220.642056] usb 1-1-port2: over-current change
[  222.690151] usb 1-1-port2: over-current change
[  224.866196] usb 1-1-port2: over-current change
[  227.530304] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
[  227.671821] usb 1-1.2: not running at top speed; connect to a high speed hub
[  227.674343] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=ab2a
[  227.674355] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  227.674362] usb 1-1.2: Product: BUP Fast HDD
[  227.674368] usb 1-1.2: Manufacturer: Seagate
[  227.674374] usb 1-1.2: SerialNumber: NA7F11MS
[  227.675150] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  227.676744] scsi host2: usb-storage 1-1.2:1.0
[  228.578194] usb 1-1-port2: over-current change
[  228.811365] usb 1-1.2: USB disconnect, device number 6
[  230.498225] usb 1-1-port2: over-current change
[  232.418327] usb 1-1-port2: over-current change
[  235.090349] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
[  235.231870] usb 1-1.2: not running at top speed; connect to a high speed hub
[  235.234322] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=ab2a
[  235.234330] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  235.234337] usb 1-1.2: Product: BUP Fast HDD
[  235.234343] usb 1-1.2: Manufacturer: Seagate
[  235.234349] usb 1-1.2: SerialNumber: NA7F11MS
[  235.235092] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  235.236797] scsi host3: usb-storage 1-1.2:1.0
[  236.231614] scsi 3:0:0:0: Direct-Access     Seagate  BUP Fast HDD     9408 PQ: 0 ANSI: 6
[  236.232413] sd 3:0:0:0: Attached scsi generic sg0 type 0
[  236.235789] sd 3:0:0:0: [sda] Spinning up disk...
[  236.898370] usb 1-1-port2: over-current change
[  237.240362] .
[  237.261529] usb 1-1.2: USB disconnect, device number 7
[  237.280463] ready
[  237.280591] sd 3:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[  237.280600] sd 3:0:0:0: [sda] Sense not available.
[  237.280638] sd 3:0:0:0: [sda] Write Protect is on
[  237.280647] sd 3:0:0:0: [sda] Mode Sense: de d3 d6 00
[  237.280680] sd 3:0:0:0: [sda] No Caching mode page found
[  237.280688] sd 3:0:0:0: [sda] Assuming drive cache: write through
[  237.281765] sd 3:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[  237.281778] sd 3:0:0:0: [sda] Sense not available.
[  237.282061] sd 3:0:0:0: [sda] Attached SCSI disk
[  239.570413] usb 1-1.2: new full-speed USB device number 8 using dwc_otg
[  239.712002] usb 1-1.2: not running at top speed; connect to a high speed hub
[  239.714596] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=ab2a
[  239.714611] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  239.714617] usb 1-1.2: Product: BUP Fast HDD
[  239.714624] usb 1-1.2: Manufacturer: Seagate
[  239.714630] usb 1-1.2: SerialNumber: NA7F11MS
[  239.716362] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  239.716621] scsi host4: usb-storage 1-1.2:1.0
[  240.719283] scsi 4:0:0:0: Direct-Access     Seagate  BUP Fast HDD     9408 PQ: 0 ANSI: 6
[  240.720145] sd 4:0:0:0: Attached scsi generic sg0 type 0
[  240.721361] sd 4:0:0:0: [sda] 976757289 4096-byte logical blocks: (4.00 TB/3.64 TiB)
[  240.898577] sd 4:0:0:0: [sda] Write Protect is off
[  240.898599] sd 4:0:0:0: [sda] Mode Sense: 4f 00 00 00
[  240.899589] sd 4:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  240.920131]  sda: sda1
[  240.924089] sd 4:0:0:0: [sda] Attached SCSI disk
[  241.965645] sd 4:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  241.965668] sd 4:0:0:0: [sda] tag#0 Sense Key : 0xb [current]
[  241.965676] sd 4:0:0:0: [sda] tag#0 ASC=0x47 ASCQ=0x3
[  241.965688] sd 4:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 08 01 00 00 01 00
[  241.965697] blk_update_request: I/O error, dev sda, sector 16392
[  242.080533] sd 4:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  242.080555] sd 4:0:0:0: [sda] tag#0 Sense Key : 0xb [current]
[  242.080564] sd 4:0:0:0: [sda] tag#0 ASC=0x47 ASCQ=0x3
[  242.080574] sd 4:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 08 01 00 00 01 00
[  242.080582] blk_update_request: I/O error, dev sda, sector 16392
[  242.080593] Buffer I/O error on dev sda1, logical block 1, async page read
[  242.835584] sd 4:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  242.835604] sd 4:0:0:0: [sda] tag#0 Sense Key : 0xb [current]
[  242.835612] sd 4:0:0:0: [sda] tag#0 ASC=0x47 ASCQ=0x3
[  242.835623] sd 4:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 01 00
[  242.835630] blk_update_request: I/O error, dev sda, sector 0
[  244.446352] sd 4:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  244.446372] sd 4:0:0:0: [sda] tag#0 Sense Key : 0xb [current]
[  244.446381] sd 4:0:0:0: [sda] tag#0 ASC=0x47 ASCQ=0x3
[  244.446392] sd 4:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 01 00
[  244.446400] blk_update_request: I/O error, dev sda, sector 0
[  244.446412] Buffer I/O error on dev sda, logical block 0, async page read
[  244.592007] sd 4:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  244.592050] sd 4:0:0:0: [sda] tag#0 Sense Key : 0xb [current]
[  244.592062] sd 4:0:0:0: [sda] tag#0 ASC=0x47 ASCQ=0x3
[  244.592077] sd 4:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 01 00
[  244.592093] blk_update_request: I/O error, dev sda, sector 0
[  244.592106] Buffer I/O error on dev sda, logical block 0, async page read
[  247.125644] sd 4:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  247.125662] sd 4:0:0:0: [sda] tag#0 Sense Key : 0xb [current]
[  247.125671] sd 4:0:0:0: [sda] tag#0 ASC=0x47 ASCQ=0x3
[  247.125681] sd 4:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 3a 38 0f f0 00 00 01 00
[  247.125689] blk_update_request: I/O error, dev sda, sector 7814020992
[  247.235678] sd 4:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  247.235698] sd 4:0:0:0: [sda] tag#0 Sense Key : 0xb [current]
[  247.235706] sd 4:0:0:0: [sda] tag#0 ASC=0x47 ASCQ=0x3
[  247.235719] sd 4:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 3a 38 0f f0 00 00 01 00
[  247.235729] blk_update_request: I/O error, dev sda, sector 7814020992
[  247.235742] Buffer I/O error on dev sda1, logical block 976750576, async page read
[  259.555702] usb 1-1-port2: over-current change
[  261.987096] usb 1-1.2: USB disconnect, device number 8
[  261.988331] sd 4:0:0:0: [sda] Synchronizing SCSI cache
[  261.988850] sd 4:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[  262.320603] usb 1-1.2: new full-speed USB device number 9 using dwc_otg
[  262.462175] usb 1-1.2: not running at top speed; connect to a high speed hub
[  262.464768] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=ab2a
[  262.464781] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  262.464788] usb 1-1.2: Product: BUP Fast HDD
[  262.464794] usb 1-1.2: Manufacturer: Seagate
[  262.464800] usb 1-1.2: SerialNumber: NA7F11MS
[  262.465712] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  262.465899] scsi host5: usb-storage 1-1.2:1.0
[  263.461963] scsi 5:0:0:0: Direct-Access     Seagate  BUP Fast HDD     9408 PQ: 0 ANSI: 6
[  263.463979] sd 5:0:0:0: Attached scsi generic sg0 type 0
[  263.475068] sd 5:0:0:0: [sda] Spinning up disk...
[  264.480518] ..
[  265.826841] usb 1-1-port2: over-current change
[  266.500505] .
[  266.521600] usb 1-1.2: USB disconnect, device number 9
[  266.540576] ready
[  266.540694] sd 5:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[  266.540703] sd 5:0:0:0: [sda] Sense not available.
[  266.540738] sd 5:0:0:0: [sda] Write Protect is off
[  266.540747] sd 5:0:0:0: [sda] Mode Sense: 20 ec 77 ba
[  266.540779] sd 5:0:0:0: [sda] Incomplete mode parameter data
[  266.540787] sd 5:0:0:0: [sda] Assuming drive cache: write through
[  266.541477] sd 5:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[  266.541490] sd 5:0:0:0: [sda] Sense not available.
[  266.541565] sd 5:0:0:0: [sda] Attached SCSI disk
[  268.002932] usb 1-1-port2: over-current change
[  269.922907] usb 1-1-port2: over-current change
[  271.970918] usb 1-1-port2: over-current change
[  274.146967] usb 1-1-port2: over-current change
[  276.066980] usb 1-1-port2: over-current change
[  277.987085] usb 1-1-port2: over-current change
[  280.650626] usb 1-1.2: new full-speed USB device number 10 using dwc_otg
[  280.792440] usb 1-1.2: not running at top speed; connect to a high speed hub
[  280.794969] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=ab2a
[  280.794983] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  280.794990] usb 1-1.2: Product: BUP Fast HDD
[  280.794997] usb 1-1.2: Manufacturer: Seagate
[  280.795003] usb 1-1.2: SerialNumber: NA7F11MS
[  280.795927] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  280.798103] scsi host6: usb-storage 1-1.2:1.0
[  281.792096] scsi 6:0:0:0: Direct-Access     Seagate  BUP Fast HDD     9408 PQ: 0 ANSI: 6
[  281.792875] sd 6:0:0:0: Attached scsi generic sg0 type 0
[  281.797651] sd 6:0:0:0: [sda] Spinning up disk...
[  282.800642] ...
[  285.667163] usb 1-1-port2: over-current change
[  285.830620] .
[  285.901718] usb 1-1.2: USB disconnect, device number 10
[  285.920681] ready
[  285.920808] sd 6:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[  285.920817] sd 6:0:0:0: [sda] Sense not available.
[  285.920852] sd 6:0:0:0: [sda] Write Protect is off
[  285.920876] sd 6:0:0:0: [sda] Mode Sense: 3c 36 03 ba
[  285.920909] sd 6:0:0:0: [sda] No Caching mode page found
[  285.920917] sd 6:0:0:0: [sda] Assuming drive cache: write through
[  285.921598] sd 6:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[  285.921609] sd 6:0:0:0: [sda] Sense not available.
[  285.921672] sd 6:0:0:0: [sda] Attached SCSI disk
[  287.843267] usb 1-1-port2: over-current change
[  290.019224] usb 1-1-port2: over-current change
[  292.195339] usb 1-1-port2: over-current change
[  294.243299] usb 1-1-port2: over-current change
[  296.419320] usb 1-1-port2: over-current change
[  298.595399] usb 1-1-port2: over-current change

The HDD just does not connect / auto mount upon boot into the GUI?
I do not think its a voltage power issue as I tested a brand new ( latest ) version of the Seagate 4TB 2.5" drive on my RPI3 and that picks up and detects without any issues?

Newer Seagate 4TB 2.5" drive details are as per below:

Code: Select all

[ 2458.598972] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
[ 2458.740659] usb 1-1.2: not running at top speed; connect to a high speed hub
[ 2458.743223] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=2322
[ 2458.743240] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 2458.743253] usb 1-1.2: Product: Expansion
[ 2458.743265] usb 1-1.2: Manufacturer: Seagate
[ 2458.743277] usb 1-1.2: SerialNumber: NA83GYEV
[ 2458.744450] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 2458.747381] scsi host2: usb-storage 1-1.2:1.0
[ 2459.740388] scsi 2:0:0:0: Direct-Access     Seagate  Expansion        9300 PQ: 0
[ 2459.741720] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 2459.746009] sd 2:0:0:0: [sdb] Spinning up disk...
[ 2460.749001] ....ready
[ 2463.779866] sd 2:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[ 2463.780346] sd 2:0:0:0: [sdb] 7814037167 512-byte logical blocks: (4.00 TB/3.64 T
[ 2464.016883] sd 2:0:0:0: [sdb] Write Protect is off
[ 2464.016913] sd 2:0:0:0: [sdb] Mode Sense: 4f 00 00 00
[ 2464.017534] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
[ 2464.020601] sd 2:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[ 2464.145828]  sdb: sdb1 sdb2
[ 2464.148317] sd 2:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[ 2464.150408] sd 2:0:0:0: [sdb] Attached SCSI disk
Any idea why the first Seagate 4TB hdd doesnt work and why the second newer one does? Been mucking around with this for ages now and no luck yet?

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1445
Joined: Sat Sep 10, 2011 11:43 am

Re: USB boot now working on Pi3

Mon Aug 15, 2016 6:50 am

usb 1-1-port2: over-current change
This means it's a power issue...
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1445
Joined: Sat Sep 10, 2011 11:43 am

Re: USB boot now working on Pi3

Tue Aug 16, 2016 8:09 am

malvcr wrote: Now I need to go out. Later I will check the bootcode.bin option.
Marco,

Did you try it with the bootcode.bin option? This is really important to make sure that the bugs are all identified...

Thanks

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

User avatar
Taxicletter
Posts: 218
Joined: Sat Mar 05, 2016 4:25 pm
Location: Antwerp, Belgium
Contact: Website

Re: USB boot now working on Pi3

Tue Aug 16, 2016 8:43 am

Could I use this to run Ubuntu MATE from a USB-stick?

Would it be faster? I read different opinions on this...
--::--::- 3 x Raspberry Pi 3 - Raspbian Lite 9 - RuneAudio - one broke (wifi) - not in use -::--::--

Riyaaz2016
Posts: 2
Joined: Sun Aug 14, 2016 10:24 am

Re: USB boot now working on Pi3

Tue Aug 16, 2016 9:05 am

Thanks Gordon,

It's a bit frustrating I guess that its a " power " related issue seeing as the newer version of the same 4tb hdd from seagate works on the RPI3 without any issues....

Is there a command to check to what specific power consumption is required via the terminal to see the specific's otherwise will just have to get a usb powered hub....... problem is I have virtually a filled up 4TB with media content which I want to share off Plex running on the there, but hdd doesnt pickup..... which is such a pain

On various forums online I see there are other people too having power issues with some Seagate external drives as well...

malvcr
Posts: 50
Joined: Mon Apr 13, 2015 3:31 am

Re: USB boot now working on Pi3

Tue Aug 16, 2016 4:52 pm

Hi Gordon ...

Just made another test:

sudo BRANCH=next rpi-update moved the kernel to 4.4.17 (double checked that the boot is the same everywhere)

Without the SD card in the slot ...

Colored
ok
ok
ok
ok
ok
Colored
ok

With only the bootcode.bin (from my last rpi-update) in the slot ...

Three attempts and nothing

With the bootcode.bin and an empty TIMEOUT file in the slot ...

Doesn't work

On this last attempt, the green led in the raspberry make sequences with (three short and one long). The SSD led is always on.

When the boot process works (without any SD in the slot), the SSD led make some regular short, then waits with a long one and then boots.


Marco

timrowledge
Posts: 1289
Joined: Mon Oct 29, 2012 8:12 pm
Location: Vancouver Island
Contact: Website

Re: USB boot now working on Pi3

Tue Aug 16, 2016 5:48 pm

I've tried setting up USB booting three times now on two different HDs.

First observation - the doc on https://github.com/raspberrypi/document ... des/msd.md really ought to mention when to 'quit' the parted program.

Second - performance is *catastrophically* slowed. It just took over two minutes to open a terminal window and get the mouse pointer back to being movable. Clicking on another window thrashes the disk for over a minute.

Did something turn on virtual memory paging?
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2152
Joined: Thu Jul 11, 2013 2:37 pm

Re: USB boot now working on Pi3

Tue Aug 16, 2016 6:29 pm

Tim,

What model of Pi are you using?
What is the output of

Code: Select all

free -m
?
Rockets are loud.
https://astro-pi.org

timrowledge
Posts: 1289
Joined: Mon Oct 29, 2012 8:12 pm
Location: Vancouver Island
Contact: Website

Re: USB boot now working on Pi3

Tue Aug 16, 2016 8:30 pm

jdb wrote:What model of Pi are you using?
Well, a Pi3. I'm crazy, but I'm not daft!
jdb wrote:What is the output of

Code: Select all

free -m
?
Not as helpful as one might hope right now since I was in the midst or seeing what happens with the CONF_SWAPSIZE=0 setting in /etc/dphys-swapfile. That doesn't help a lot...
Fixe minutes after rebooting it still hasn't got a desktop.
10 minutes and counting ...ooh, I have sort of got an ssh connection open at last... running `free -m` from that shows swap of 0, unsurprisingly. It's clearly not a winning strategy though!
So, eventually get to sudo nano /etc/dphys-swapfile back and reboot.
10 minutes later... bare desktop background, massive thrashing of disk etc, I'd config to boot to cli if only I could get to configure anything!

15 minutes and I can ssh to try `free -m` again and see that swap is 99 total, 3 used. And a wastebasket appears! Took nearly two more minutes to open a terminal window.
Clicking on the Pi menu to try to open the configurator... thrashy-thrashy..click on preferences...wait...wait...finally, set to cli-boot.
After a boot to CLI, free -m shows 0 swap in use, so one last try, starts and nope, still like an early X demo machine from 1982.

Clearly, something ain't quite right here.
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2152
Joined: Thu Jul 11, 2013 2:37 pm

Re: USB boot now working on Pi3

Tue Aug 16, 2016 11:06 pm

timrowledge wrote:
jdb wrote:What model of Pi are you using?
Well, a Pi3. I'm crazy, but I'm not daft!
jdb wrote:What is the output of

Code: Select all

free -m
?
Not as helpful as one might hope right now since I was in the midst or seeing what happens with the CONF_SWAPSIZE=0 setting in /etc/dphys-swapfile. That doesn't help a lot...
Fixe minutes after rebooting it still hasn't got a desktop.
10 minutes and counting ...ooh, I have sort of got an ssh connection open at last... running `free -m` from that shows swap of 0, unsurprisingly. It's clearly not a winning strategy though!
So, eventually get to sudo nano /etc/dphys-swapfile back and reboot.
10 minutes later... bare desktop background, massive thrashing of disk etc, I'd config to boot to cli if only I could get to configure anything!

15 minutes and I can ssh to try `free -m` again and see that swap is 99 total, 3 used. And a wastebasket appears! Took nearly two more minutes to open a terminal window.
Clicking on the Pi menu to try to open the configurator... thrashy-thrashy..click on preferences...wait...wait...finally, set to cli-boot.
After a boot to CLI, free -m shows 0 swap in use, so one last try, starts and nope, still like an early X demo machine from 1982.

Clearly, something ain't quite right here.
What is the output of

Code: Select all

free -m
?
Rockets are loud.
https://astro-pi.org

malvcr
Posts: 50
Joined: Mon Apr 13, 2015 3:31 am

Re: USB boot now working on Pi3

Wed Aug 17, 2016 12:31 am

Interesting behaviour timrowledge.

In fact, this is not my first attempt to move everything to a hard disk; I have been doing this for a year already starting with RPI2 machines and later RPI3 ones (in plural with different types of hard disks [500GB, 1TB, 2TB], ssd [128G] and Flash memory [different sizes and types]). My current fight is just to boot from the USB disk without SD card.

In general, to have the swap in the hard disk always improves the machine behaviour, although to make the swap is a little tricky. And making all these new tests with the RPI3 I realised an old mistake I was making with my first attempts when I obtained my RPI3 machines, and with previous to 4.4.9 kernels.

It is extremely important to ensure that your effective boot partition really is using the files are supposed to be there. As there are files in the SD and other files in the Hard Disk or SSD, it is very easy to mix things. You know, to update one thing but to use the other when booting the machine. So, that "mix" is poison for the Raspbian installation. Then, check where the rpi-update is storing the files and then rsync them to the place really boot the computer (your SD?, your USB disk?).

Don't even try to run X without a good swap file. The swap is not just a file with some measure, it must be a real full file. What I do to guarantee that is this (1 GB swap):

sudo dd if=/dev/zero of=/path-to/swapfile count=1024 bs=1MiB

> 1024+0 records in
> 1024+0 records out
> 1073741824 bytes (1.1 GB) copied, 28.5437 s, 37.6 MB/s

mkswap /path-to/swapfile

> Setting up swapspace version 1, size = 1048572 KiB
> no label, UUID=835271e0-e0d5-47b0-81c4-ed0db1b5849a

edit /etc/dphys-swapfile

add: CONF_SWAPFILE = /path-to/swapfile
change: CONF_SWAPFILE=1024

sudo dphys-swapfile setup

> want /var/swapfile=1024MByte, checking existing: keeping it

and reboot ...

> top - 00:22:03 up 0 min, 1 user, load average: 0.21, 0.06, 0.02
> Tasks: 121 total, 1 running, 120 sleeping, 0 stopped, 0 zombie
> %Cpu(s): 2.8 us, 6.3 sy, 0.0 ni, 89.9 id, 0.8 wa, 0.0 hi, 0.2 si, 0.0 st
> KiB Mem: 120204 total, 76328 used, 43876 free, 6120 buffers
> KiB Swap: 1048572 total, 0 used, 1048572 free. 37952 cached Mem

But, of course, the RPI is not a PC, don't try to make these comparisons because the RPI will lost. However, it is good enough for a big quantity of tasks, even some on graphical interfaces. So, when you describe so many minutes to do whatever, clearly something is wrong there that must be fixed.


Marco

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2152
Joined: Thu Jul 11, 2013 2:37 pm

Re: USB boot now working on Pi3

Wed Aug 17, 2016 2:14 pm

Your Pi only has 128M available for the ARM to use. I suspect that the fixups for differing SDRAM sizes are not being applied.
Rockets are loud.
https://astro-pi.org

malvcr
Posts: 50
Joined: Mon Apr 13, 2015 3:31 am

Re: USB boot now working on Pi3

Wed Aug 17, 2016 5:05 pm

Good eye ... as I was checking the booting process I didn't notice that the kernel was reporting only 128M RAM.

Reboot ... and it still shows 128M RAM.

Then made a rpi-update without the "next" branch, then rsync (for not to mix different versions) and booting from the SD card with my root on the USB SSD:

top - 17:02:11 up 0 min, 1 user, load average: 0.13, 0.04, 0.01
Tasks: 121 total, 1 running, 120 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.0 us, 4.1 sy, 0.0 ni, 93.0 id, 0.6 wa, 0.0 hi, 0.3 si, 0.0 st
KiB Mem: 947744 total, 79492 used, 868252 free, 6020 buffers
KiB Swap: 1048572 total, 0 used, 1048572 free. 39812 cached Mem

This means, the next branch (4.4.17) has "something else" to check, not only the USB boot issue.

It is clear for me that 128M RAM is not enough to run graphical user interfaces and this could be a real problem.

timrowledge
Posts: 1289
Joined: Mon Oct 29, 2012 8:12 pm
Location: Vancouver Island
Contact: Website

Re: USB boot now working on Pi3

Wed Aug 17, 2016 5:48 pm

jdb wrote:Your Pi only has 128M available for the ARM to use. I suspect that the fixups for differing SDRAM sizes are not being applied.
Yup, you're right. I didn't look at the other line from `free -m`, just the vmem stuff. That would certainly explain quite a lot. For example, I noticed that during the process of making the msd card and before escaping over to the HD that things got really slow - I'm going to guess that this was after whatever setup that has restricted ram so badly.

So, of course, the question is how to fix this bit. A quick "I wonder if" test using `sudo rasp-config` to (re)set the cpu memory amount did not make any difference :-(
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

paulopais
Posts: 1
Joined: Fri Aug 19, 2016 7:04 pm

Re: USB boot now working on Pi3

Fri Aug 19, 2016 7:10 pm

after this commands
$ sudo apt-get update
$ sudo apt-get install rpi-update
$ sudo BRANCH=next rpi-update

my PI3 b+ become super slow .. i tried 3 times and its always the same thing. any solution?

the problem it´s the last firmware :|

Return to “General discussion”