boot priority - has precedence changed?
How to install and boot ROCK64 from eMMC? -
boot priority:
eMMC--> SPI flash-->  SD card

But, with both eMMC and microSD installed, I am seeing my Rock64 boot to microSD. How can this be?

1. Has the priority of the devices changed generally for the Rock64, or is it just my unit?
2. Does one of the devices boot directly, i.e. not use/require the SPI flash?
3. I found the following.
    Flashing and Erasing the SPI -
Traditionally, booting Linux on the ROCK64 required an eMMC or microSD card, however it is now possible to boot without those, assuming the SPI memory has been flashed. The ROCK64 contains an onboard 128Mbit SPI flash memory, which can be flashed with U-Boot in order to provide additional boot options:
    USB2 / USB3 drive
Boot order:
  1. SPI flash
  2. eMMC (disable with jumper)
  3. microSD
  4. USB drive
  5. PXE
This suggests that SPI must come first.
Can anyone comfirm the functioning of this u-boot?
Could someone point me to a pertinent thread for this u-boot?

4. How may I restore the original SPI flash?
You are mixing many "boot" phases.

  1. Bootrom phase booting order is "eMMC, SPI Nor Flash, SDMMC card, USB OTG". See RK3328TRM page 14 and can be "changed" only by killing device (like installing jumper that force GND to eMMCCLK signal).
    Bootrom phase search valid "ID magic" and load/run sequentially DDR.bin,TPL.bin, SPL.bin and U-Boot.bin binaries.
  2. U-Boot phase order is determined by "bootcmd" script that uses "boot_targets" variable with "mmc0 mmc1 usb0 pxe dhcp" (mmc# can be SDCARD or eMMC it depends on dts for u-boot). eMMC can still be killed by jumper.
  3. Kernel phase chooses kernel from extlinux.conf (now on root ext4 /boot/extlinux/extlinux.conf and NOT on efi partition /extlinux/extlinux.conf).

So check, change and save U-Boot variable "boot_targets" to change order for U-Boot phase in your U-Boot variables from chosen from Bootrom phase (eMMC in your case).
Default SPI flash is empty.
I left this community in Aug 2019 due to PINE64 refusal to produce/deliver ROCK64-1G version 3 after more than one year of changing statuses to "planning", "evaluating", "releasing", "availability", "estimated availability" and finally "no schedule" Angry. ROCK64 is dead platform without any advantage. Buy Raspberry PI 4 !

Possibly Related Threads…
Thread Author Replies Views Last Post
  boot hdd usb3 philipe 1 660 01-27-2021, 02:12 PM
Last Post: tllim
  Libreelec Rock64 - 4GB no boot spiker15 3 1,540 11-02-2020, 12:36 AM
Last Post: wilsonYan
  Rock64 - boot helpmerock 2 1,271 10-08-2020, 01:29 PM
Last Post: helpmerock
  No boot up after power on Whoopsadaisy 4 2,269 09-26-2020, 05:14 PM
Last Post: simonsouth
Bug u-boot (forks) status mcerveny 14 7,471 08-27-2020, 01:44 PM
Last Post: globaltree
Sad No boot, garbage console text and blinking red light ... jean_bruder 2 1,508 07-19-2020, 08:37 AM
Last Post: jean_bruder
  Graphical boot manager john3voltas 0 742 03-25-2020, 02:27 PM
Last Post: john3voltas
  doesn't boot, no video cjyar 7 2,903 11-15-2019, 03:45 PM
Last Post: ab1jx
  Unable to boot from SPI stevefan1999 4 2,583 05-01-2019, 04:47 PM
Last Post: rhens1
  No Boot, Red Green and White flash at 1 sec intervals wesleykonrad 2 1,726 01-28-2019, 11:54 PM
Last Post: wesleykonrad

Forum Jump:

Users browsing this thread: 1 Guest(s)