How to boot from USB?
#1
Hi,
I'm trying to troubleshoot an unusable PPB I've just received.  I've read here:
Quote:The Pinebook Pro is capable of booting from eMMC, USB 2.0, USB 3.0, or an SD card. It cannot boot from USB-C. The boot order of the hard-coded ROM of its RK3399 SoC is: SPI NOR, eMMC, SD, USB OTG.
But I can't find any info about how to boot from USB 2.0.  Does anyone know about this?  I'd like to boot a PBP Arch or Fedora image to see if my problems persist.


Thanks
Kendew
#2
The booting is a bit complex, compared to x86/x64, as the x86/x64 BIOS hides a lot of the CPU booting issues. ARM & ARM64 don't have a standard BIOS, yet. We use U-Boot which is pretty primitive still, (though progressing).

So, the chip used in the Pinebook Pro is a Rockchip RK3399 SoC and only boots from specific devices, starting with the first. If that device does not have software loaded, then the CPU moves on to the next device. Here are the devices: SPI NOR, eMMC, SD & USB OTG. That USB OTG is NOT a normal boot. I don't understand it, but my understanding is that it won't boot a USB flash drive.

That leaves a Micro SD card as your best bet. If you don't have one, then you basically NEED one for any recovery.

However, the software in the SPI NOR or eMMC "may" allow booting to a normal USB flash drive. BUT, and be very clear it's a MAYBE, it's up to the software version loaded on SPI NOR or eMMC. (And then the distro on the USB flash drive needs to support USB too.) Booting off normal USB flash drives was a highly desired feature, and has been added to the U-Boot used on many Pinebook Pro Linux distros.

Eventually we will see better initial booting support. I have tested a version of U-Boot with more features, including NVMe support and boot time display menu, but it's not stable.
--
Arwen Evenstar
Princess of Rivendale
#3
mmm i thought usb boot worked with mrfixit v2.0 uboot, but i have not tried it myself.
#4
>mmm i thought usb boot worked with mrfixit v2.0 uboot
Hit and miss, sometimes, (I think) depends on usb stick,,
and not in usb2 port, at least one test
(armbian5.7, boots ok in usb3 port, nothing in usb2, a usb2 key!!, not that slow)
Nothing boots uSD in carrier/dongle
#5
Quote:Booting off normal USB flash drives was a highly desired feature, and has been added to the U-Boot used on many Pinebook Pro Linux distros.


Thanks to all who contributed.  I will try some other PBP distros.  If anyone has a suggestion on which and a link to download the image, that could save me time.  Otherwise, I'll mark it as solved, with the humble wish that the wiki was a little more clear on this point.
I've coughed up enough to get a MicroSD, and I'm having an issue I'm trying to understand, but decided to open a new thread for it here in this same category, if anyone is interested in helping me with it.
Kendew
#6
Hello,
I have also another doubt on Usb boot: is it available for 3.0 port?

On Wiki is reported:
- that is possible on bootable storage chapter (https://wiki.pine64.org/index.php/Pineb
ook_Pro#Bootable_Storage)
- that is not possible on expansion port chapter ( https://wiki.pine64.org/index.php/Pinebo...sion_Ports).
#7
What is said in the wiki is only partly right
I just did some experiments, it was a bit variable, armbian I think
My setup is perhaps unique, emmc uboot blank, for this mrfixit uboot on blank SD
So, I can't say anything about other uboot versions
Somewhat reliable booting from usb3,, no boots at all from usb2
Both usb3 and usb2 sticks
And, never a boot from uSD in a carrier/dongle
--edit--
If you really want to know, uboot order is called "target",, so...
strings u*boot*|grep _target
And, you can always "yank" uboot out of media, starts 8M, about (or<) than 2M long,, so..
dd (appropriate if,of) bs=1M skip=8 count=2
#8
The SoC can not boot to USB flash drives directly, like it can SPI, eMMC or SD card.

Booting to USB flash drives, (USB 2 or 3), is U-Boot dependent. If the U-Boot code supports booting off USB 3 ports, then it will work.

We do need to update the Wiki on that subject.
--
Arwen Evenstar
Princess of Rivendale


Possibly Related Threads…
Thread Author Replies Views Last Post
  Minimum daughter boards/peripherals required for main board to boot cmicallef 5 1,198 03-12-2021, 10:10 PM
Last Post: cmicallef
  Pinebook Pro Boot Issues - Booting needs multiple attempts mtndew 13 5,545 10-04-2020, 08:55 AM
Last Post: wdt
  Upgrade eMMC card - boot problems alpopa 0 921 09-16-2020, 12:31 PM
Last Post: alpopa
  Reboot, and halt and boot, are not the same regivanx 0 766 09-14-2020, 02:20 PM
Last Post: regivanx
  PBP not booting screen blank after SD card boot Jakobp 10 4,975 08-18-2020, 08:56 PM
Last Post: trinapicot
  Boot problems with new 128GB eMMC module Kareema 1 1,344 05-31-2020, 10:36 AM
Last Post: Kareema
  Changing Boot Order on the PineBook Pro bb1netusaf2004 1 1,847 05-17-2020, 02:17 PM
Last Post: Arwen
  Adding the NVME causes boot loop? swulff 7 3,996 12-20-2019, 08:11 PM
Last Post: Arwen
  "Pinebook Serial Console" unreliable, inhibits boot, kills WiFi and SD Solra Bizna 9 5,844 12-06-2019, 09:53 PM
Last Post: Solra Bizna
  Mask ROM boot crashoverride 2 1,702 07-27-2019, 05:17 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)