I was very encouraged by a recent post about enabling the mtdblock device spi flash.
I followed the instructions, and mtdblock0 is now readily accessible in armbian.
However, I cannot figure out how use a third party u-boot image with the spi flash memory. I have tried mainline, armbian and joshua riek’s images and they all give pretty much the same set of error messages (see below). My hunch is that the spi-flash image is not properly enabled and therefore not recognised by u-boot? Perhaps u-boot is expecting the emmc and not spi flash module in the socket?
So, let’s assume we use mainline u-boot, are my errors due to a configuration issue when building u-boot, or are some additional device tree configurations required?
(Would be great if the default rock 5c configuration in mainline u-boot could be set to produce a fully functional ‘u-boot-rockchip-spi.bin’ file, as for many of the other boards.)
DDR 9fa84341ce typ 24/09/06-09:51:11,fwver: v1.18
ch0 ttot10
ch1 ttot10
ch2 ttot10
ch3 ttot10
ch0 ttot18
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
ch1 ttot18
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
ch2 ttot18
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
ch3 ttot18
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
Manufacturer ID:0xff
DQS rds:h1,h2
CH0 RX Vref:28.5%, TX Vref:20.8%,0.0%
DQ rds:h5 h1 h1 l0 h4 h1 h1 h1, h4 h2 h5 l0 h3 h3 h1 h7
DQS rds:h1,h2
CH1 RX Vref:29.7%, TX Vref:20.8%,0.0%
DQ rds:h3 h3 h6 h3 h4 l0 h2 h4, h3 h3 h1 h4 h6 h4 h2 h3
DQS rds:h1,h1
CH2 RX Vref:30.1%, TX Vref:19.8%,0.0%
DQ rds:l0 h4 h1 h4 h2 h1 h7 h3, h2 h1 h1 h1 h1 h3 h3 h1
DQS rds:h1,l0
CH3 RX Vref:29.7%, TX Vref:19.8%,0.0%
DQ rds:h4 h1 h1 l0 h3 h5 h1 h4, h6 h1 h1 h1 h4 h1 h1 h2
stride=0x2, ddr_config=0x0
hash ch_mask0-1 0x20 0x40, bank_mask0-3 0xa00 0x1400 0x2800 0x0, rank_mask0 0x0
change to F1: 528MHz
ch0 ttot10
ch1 ttot10
ch2 ttot10
ch3 ttot10
change to F2: 1068MHz
ch0 ttot14
ch1 ttot14
ch2 ttot12
ch3 ttot14
change to F3: 1560MHz
ch0 ttot16
ch1 ttot16
ch2 ttot14
ch3 ttot16
change to F0: 2112MHz
ch0 ttot18
ch1 ttot18
ch2 ttot18
ch3 ttot18
out
U-Boot SPL 2025.04-rc2 (Feb 27 2025 - 10:57:24 +0000)
Trying to boot from MMC2
Card did not respond to voltage select! : -110
spl: mmc init failed with error: -95
Error: -95
Trying to boot from MMC1
Card did not respond to voltage select! : -110
spl: mmc init failed with error: -95
Error: -95
SPL: failed to boot from all boot devices