PINE64
Boot from SPI first - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: General Discussion on ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=86)
+--- Thread: Boot from SPI first (/showthread.php?tid=15649)



Boot from SPI first - mjnck - 12-31-2021

Hi, is it possible to boot from SPI when emmc is inserted?
When i want to boot armbian buster (NextCloudPi) from sdcard/emmc without spi u-boot (installed from https://github.com/ayufan-rock64/linux-u-boot/releases/download/2017.09-rockchip-ayufan-1065-g95f6152134/u-boot-flash-spi-rock64.img.xz) i've got kernel panic during boot. When using spi u-boot from ayufan it boots NexCloudPi from sdcard properly. Sadly it doesn't work for emmc. Propably it ignores SPI and goes straight to emmc boot Huh

Maybe I can somehow "broke" u-boot on emmc so it will think it is not bootable and next SPI u-boot will look for u-boot on emmc and load it?


RE: Boot from SPI first - reukiodo - 02-29-2024

Does each storage need its own uboot?

I was hoping to install uboot onto the SPI along with OpenWrt, and setting a boot order preference within uboot to:
1. USB
2. uSD card
3. eMMC
4. SPI
5. network

This way I could have my primary OS on eMMC, and a test OS on either uSD or USB, and if all else fails, it would boot OpenWrt from the SPI (if present) or attempt from the network.