Install spi flash and use it

Hopefully this topic is not too redundant of one I recently posted on boot order. I understand the boot order post, but am having some trouble with all of the concepts involved with the SPI Nor Flash. So here is the instructions for installing/flashing the RK3588 loader [https://wiki.radxa.com/Rock5/install/spi] . That makes sense. Once the bootloader is flashed then what is the next step, is it to build the u-boot on Rock 5b as here: [https://wiki.radxa.com/Rock5/guide/build-u-boot-on-5b] , correct? Once this is done then is there a way to access it to control boot order via ssh? I will be accessing the rock 5b via putty ssh, so don’t need the hdmi monitor.

To be seriously you can’t control the boot progress directly with ssh because you can’t access the uboot with ssh. You can use a serial cable to access uboot and control the boot option or you can just modify the extlinux.conf when the linux is running.

The boot flow is maskrom -> idbloader -> uboot -> linux.
The idbloader in rock5b is a image which is consisted with uboot-spl and a ddr initialization program, and this image is located in the 64th sector of the flash, the maskrom will load and execute it, then the uboot-spl will jump to the uboot, if there is a uboot in your sd card the spl will jump to the uboot in your card, the priority of the uboots is defined in the dts
u-boot,spl-boot-order = &sdmmc, &sdhci, &spi_nand, &spi_nor;

4 Likes