Build instructions (EDITED):
[u-boot/doc/board/rockchip/rockchip.rst at master · u-boot/u-boot (github.com)](https://github.com/u-boot/u-boot/blob/master/doc/board/rockchip/rockchip.rst)
With this binairy:
And this elf:
https://github.com/rockchip-linux/rkbin/blob/master/bin/rk35/rk3588_bl31_v1.45.elf
Make sure you have the needed packages installed:
https://github.com/u-boot/u-boot/blob/master/doc/build/gcc.rst
Then build the u-boot-rockchip-spi.bin
git clone --depth 1 https://github.com/rockchip-linux/rkbin
git clone --depth 1 https://source.denx.de/u-boot/u-boot.git
cd u-boot
export BL31=../rkbin/bin/rk35//rk3588_bl31_v1.45.elf
export ROCKCHIP_TPL=../rkbin/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin
make rock5b-rk3588_defconfig
make CROSS_COMPILE=aarch64-linux-gnu-
If you have a /dev/mtdblock0 (not /dev/mtd0) (when running on the rock5b) then you can just use dd to write the file to it:
dd if=u-boot-rockchip-spi.bin of=/dev/mtdblock0
Edit:
I guess 2700/2400Mhz does not matter, as it is ddr4 on rock5b, so 2112Mhz. Just try this SPL anyway, as it has the newest binairy and elf.