boot priority - has precedence changed?
#1
How to install and boot ROCK64 from eMMC? - https://forum.pine64.org/showthread.php?tid=4713
    shows
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 - https://github.com/ayufan-rock64/linux-b...ash-spi.md
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
    PXE
    microSD
    eMMC
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?
#2
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 !
Away


Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 won't boot luminosity7 10 6,148 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 765 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  Boot from SPI first mjnck 1 1,961 02-29-2024, 02:12 PM
Last Post: reukiodo
  ROCK64 v3 can it boot from USB? Tsagualsa 4 3,023 11-29-2022, 11:31 AM
Last Post: Macgyver
  Rock64 u-boot for eMMC Build Error mexicanflyer 0 1,418 09-18-2022, 02:29 PM
Last Post: mexicanflyer
  boot hdd usb3 philipe 1 3,070 01-27-2021, 02:12 PM
Last Post: tllim
  Libreelec Rock64 - 4GB no boot spiker15 3 5,312 11-02-2020, 12:36 AM
Last Post: wilsonYan
  Rock64 - boot helpmerock 2 4,038 10-08-2020, 01:29 PM
Last Post: helpmerock
  No boot up after power on Whoopsadaisy 4 6,412 09-26-2020, 05:14 PM
Last Post: simonsouth
Bug u-boot (forks) status mcerveny 14 17,558 08-27-2020, 01:44 PM
Last Post: globaltree

Forum Jump:


Users browsing this thread: 1 Guest(s)