stuartiannaylor
Posts: 167
Joined: Sun Nov 20, 2016 2:55 pm

Pi3A+ Doesn't USB boot

Wed May 15, 2019 7:07 pm

In a Pi3b same usb disk and sata adapter 2 tried AS2105 & JMS579 work fine no problem.

Pi3A+ its not even trying on power from the looks of it, did put in the config.txt boot stuff as a straw pull, but no difference.
Is the Pi3A+ capable of USB boot?

Andyroo
Posts: 2415
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 2:21 am

If you run

Code: Select all

vcgencmd otp_dump | grep 17:
on the 3A+ do you get 17:3020000a ?

What are you using as a power supply?

What OS do you have on the disk esp the firmware? If I remember correctly, a new version was required for the 3B+ and the 3A+
Need Pi spray - these things are breeding in my house...

k-pi
Posts: 791
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 8:42 am

Mine USB boots perfectly using Raspbian - (13-11-18 or later) - & the official power supply.

User avatar
HawaiianPi
Posts: 3747
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 10:24 am

stuartiannaylor wrote:
Wed May 15, 2019 7:07 pm
In a Pi3b same usb disk and sata adapter 2 tried AS2105 & JMS579 work fine no problem.

Pi3A+ its not even trying on power from the looks of it,
The newer models require newer firmware.

If it's an early version of Raspbian Stretch, boot it on the old 3B and update it.

Code: Select all

sudo apt update && sudo apt full-upgrade -y
If it's older than Stretch, it won't work (start over with the latest Raspbian).

stuartiannaylor wrote:
Wed May 15, 2019 7:07 pm
...did put in the config.txt boot stuff as a straw pull, but no difference.
If you put that on the USB drive it won't help (can't read config.txt from a non-booting drive).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

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

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 10:43 am

Latest 3A+'s don't have booting from USB enabled by default like the 3B+ does. This is a change from earlier 3A+'s which did have USB booting enabled by default.

This ought to be officially documented somewhere but I am not sure it is.

See Andyroo's post earlier for how to check if USB boot is enabled or not.

stuartiannaylor
Posts: 167
Joined: Sun Nov 20, 2016 2:55 pm

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 11:47 am

I did it the other way round this time clean image onto the pi3A+ and boots first time.
Still get the green light twitter though, which if it wasn't so fast I would tell you a pulse count maybe 4 or 5.

Its strange only only if you transfer to another Pi as now the SSD after 1st boot on the Pi3A+ transferred to the Pi3B does not boot.

Code: Select all

Clock speeds: CPU: 1400 - Core: 400 - RAM: 450
System drive has been detected as /dev/sda1
Drive information: Manufacturer: SATA - Model: SSD - Vendor: SATA SSD - Product:                                                              JMS579 - HW Version: 2.10 - FW Version: SBFM61.3 - Date Manufactured:
Running HDParm tests ...
/dev/sda1:
 Timing O_DIRECT cached reads:    72 MB in  2.05 seconds =  35.07 MB/sec
 Timing O_DIRECT disk reads:  42 MB in  1.18 seconds =  35.59 MB/sec
HDParm: 35.59 MB/s - HDParmCached: 35.07 MB/s
Running dd tests ...
81920+0 records in
81920+0 records out
335544320 bytes (336 MB, 320 MiB) copied, 8.00849 s, 41.9 MB/s
DD Write Speed: 41.9 MB/s
Running fio write test ...
Running fio read test ...
FIO results - 4k RandWrite: 5972 IOPS (23891 KB/s) - 4k RandRead: 3228 IOPS (129                                                             15 KB/s)

        Command line used: iozone -a -e -I -i 0 -i 1 -i 2 -s 80M -r 4k
        Output is in kBytes/sec
        Time Resolution = 0.000001 seconds.
        Processor cache size set to 1024 kBytes.
        Processor cache line size set to 32 bytes.
        File stride size set to 17 * record size.
                                                              random    random                                                                  bkwd    record    stride
              kB  reclen    write  rewrite    read    reread    read     write                                                                  read   rewrite      read   fwrite frewrite    fread  freread
           81920       4    19086    20984    21181    21187    11634    20928                                                               

iozone test complete.
RandRead: 11634 - RandWrite: 20928 - Read: 21181 - Write: 19086


     Category                  Test                      Result
HDParm                    Disk Read                 35.59 MB/s
HDParm                    Cached Disk Read          35.07 MB/s
DD                        Disk Write                41.9 MB/s
FIO                       4k random read            3228 IOPS (12915 KB/s)
FIO                       4k random write           5972 IOPS (23891 KB/s)
IOZone                    4k read                   21181 KB/s
IOZone                    4k write                  19086 KB/s
IOZone                    4k random read            11634 KB/s
IOZone                    4k random write           20928 KB/s

                          Score: 4116
So from my score I am the champion :) https://jamesachambers.com/raspberry-pi ... ng-script/ which aint bad for a £16.95 delivery inclusive cheap and cheerful SSD.

Unfortunately the only thing holding the SSD back is USB2.0 as its right up there with the very max with the JMS579 adapter (cheap china clone)
You just don't seem to be able to boot in other Pi models or at least 3b to 3A+ and vice versa. (without config and cmdline mangling)
Flashing strech lite is ace though as about 12 secs to flash and 6 secs to verify :)
Last edited by stuartiannaylor on Thu May 16, 2019 12:30 pm, edited 4 times in total.

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

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 12:06 pm

If the green LED is flashing too fast to count easily it means that the Pi is booting or running. The error codes are made up of slow pulses.
Signature is on holiday.

stuartiannaylor
Posts: 167
Joined: Sun Nov 20, 2016 2:55 pm

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 12:17 pm

rpdom wrote:
Thu May 16, 2019 12:06 pm
If the green LED is flashing too fast to count easily it means that the Pi is booting or running. The error codes are made up of slow pulses.
Not sure what it is as when static with SD the green light is off. With USB there is the constant same pattern maybe on for 2 secs 4 pulses off for 1sec that continues ad infinitum.

Andyroo
Posts: 2415
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 1:05 pm

If I remember correctly - four flashes are a problem with start.elf

Did you update as HPs post above?
Need Pi spray - these things are breeding in my house...

stuartiannaylor
Posts: 167
Joined: Sun Nov 20, 2016 2:55 pm

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 1:24 pm

Andyroo wrote:
Thu May 16, 2019 1:05 pm
If I remember correctly - four flashes are a problem with start.elf

Did you update as HPs post above?
Yeah always do andy even rpi update but actually agree with you that its prob too fast for error, but actually not sure as its a constant pattern that never differs and can let it sit there forever and it will not stop.
I can just about count the pulse code but I am aged, maybe its the MS and me being a spaccer but prob too quick to be an intentional fault code.
When it doesn't boot via transferring to a different Pi and haven't got another 'same model' to try it just sits with red only and nothing via HDMI and if I could find my serial cable still have a hunch there would be little there but prob would tell me what is at play.

After a while the led on the sata adapter becomes totally static but pi green led continues its pulse pattern which is very different to SD card.
Things work correctly but thinking that maybe something isn't quite right.

Code: Select all

[email protected]:~ $ cat /proc/loadavg
0.30 0.20 0.09 1/110 661
Just don't know what or why that is all.

stuartiannaylor
Posts: 167
Joined: Sun Nov 20, 2016 2:55 pm

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 2:59 pm

@HawaiianPi

Your a SSD type are you the same with 3b & 3A+?

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

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 3:40 pm

stuartiannaylor wrote:
Thu May 16, 2019 12:17 pm
rpdom wrote:
Thu May 16, 2019 12:06 pm
If the green LED is flashing too fast to count easily it means that the Pi is booting or running. The error codes are made up of slow pulses.
Not sure what it is as when static with SD the green light is off. With USB there is the constant same pattern maybe on for 2 secs 4 pulses off for 1sec that continues ad infinitum.
When booted from USB, the Pi will poll the SD card slot every few seconds to see if a card is present. That will show as a brief series of flashes of the ACT LED each time.

It can be disabled by putting

Code: Select all

dtoverlay=sdtweak,poll_once
in /boot/config.txt
Signature is on holiday.

stuartiannaylor
Posts: 167
Joined: Sun Nov 20, 2016 2:55 pm

Re: Pi3A+ Doesn't USB boot

Thu May 16, 2019 4:01 pm

That actually turns off the green LED perm on a Pi3A+ but hey if that was it, no bother as wondering what was going on with that flashing was more of an annoyance.

Many Thanks

Apart from that the Pi3a+ and cheap cheerful SSD seems to of set a new record on https://jamesachambers.com/raspberry-pi ... ng-script/

Its just a shame https://github.com/andreiw/RaspberryPiPkg is only 64bit as that would be my next port of call.

I have used Pinn which actually is better than noobs but does anyone know if there is something less bloated that is more like the above uefi boot.
A boot menu and gparted is all I need anyone got any suggestions?

Also anyone know why it will not swap other to my other pi?

User avatar
HawaiianPi
Posts: 3747
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Pi3A+ Doesn't USB boot

Fri May 17, 2019 3:22 am

stuartiannaylor wrote:
Thu May 16, 2019 1:24 pm
Yeah always do [update] andy even rpi update
Don't use rpi-update unless instructed to do so by one of the RPF engineers or Raspbian developers. That command installs the testing branch firmware which can be buggy and unstable.

stuartiannaylor wrote:
Thu May 16, 2019 2:59 pm
@HawaiianPi

Your a SSD type are you the same with 3b & 3A+?
I have tested many different SSD and HDD brands and models on my 3B and 3B+ (don't have a 3A+ yet).

stuartiannaylor wrote:
Thu May 16, 2019 4:01 pm
That actually turns off the green LED perm on a Pi3A+ but hey if that was it, no bother as wondering what was going on with that flashing was more of an annoyance.
The dtoverlay=sdtweak,poll_once line in config.txt checks the card slot once, if there is a card in the slot it mounts it as non-removable storage, if there is no card it disables the slot. The change is not permanent (only until you reboot).

Also anyone know why it will not swap other to my other pi?
It should work. Raspbian is backwards compatible with older models, so whatever the problem is, it's probably a power, configuration or compatibility issue.

  1. Is it the same 3B you have previously booted from USB?
  2. Is it the same SSD and USB-SATA adapter you used before?
  3. Are you using the same power supply on both?

The Raspberry Pi boot-loader is not 100% compatible with all USB mass storage devices. Some work fine (boot and reboot), some partially work (cold boot okay, but reboot is unreliable), and some don't work at all. The boot-loader in the newer 3A+ and 3B+ models has been improved, but they're still not 100% compatible.

USB boot problems are usually the fault of the USB-SATA adapter, but I have experienced test cases where an adapter will work with some drives and not others. I have one adapter that won't boot a Samsung brand SSD, but works fine with several other brands, while another adapter works fine with Samsung. ¯\_(ツ)_/¯

The other most common problem is power. There are a lot of crappy power supplies being sold for Pi computers. Most are just repurposed phone chargers with poor voltage regulation (a phone charger is not a power supply). The official Raspberry Pi Universal Power Supply is a proven performer and is very affordable.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

rolyantrauts
Posts: 1
Joined: Fri May 17, 2019 7:23 am

Re: Pi3A+ Doesn't USB boot

Fri May 17, 2019 8:02 am

Flash a new image of stretch lite on the Pi3a+ on the SSD it works. Transfer to P3B and no boot.
Reflash a new image of stretch lite on a Pi3B on the SSD it works. Transfer to P3A+ and no boot.

Its not config or power its just when you transfer to another for some reason.
But hey.

Return to “Troubleshooting”