[PATCH 2/3] rockchip: make rksd the default format for SPI images

Quentin Schulz quentin.schulz at cherry.de
Tue Oct 28 11:34:58 CET 2025


Hi all,

Collected some feedback on IRC on #linux-rockchip, so putting it here 
for future reference.

On 10/27/25 4:51 PM, Quentin Schulz wrote:
> From: Quentin Schulz <quentin.schulz at cherry.de>
> 
> I believe (hope) that the new SoCs should now have this fixed and not
> require the "hack" implemented in rkspi format which almost doubles the
> size of TPL+SPL (idbloader.img).
> 
> It's known to be fixed on RK3566/RK3568 and RK3588(S) (according to the
> DTS setting the mkimage format for the SPI's idbloader.img to rksd
> explicitly).
> 
> Since I do not have any board with a bootable SPI flash except on RK3399
> where this work-around is required, I simply invert the logic by having
> rkspi explicitly set for all SoCs that didn't and remove rksd from SoCs
> that did. It doesn't mean that the SoC actually requires rkspi format,
> just that it's been the case until now (maybe because nobody tested).
> 
> Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
> ---
>   arch/arm/dts/px30-u-boot.dtsi              | 12 ++++++++++++
>   arch/arm/dts/rk3036-u-boot.dtsi            | 13 +++++++++++++
>   arch/arm/dts/rk3066a-u-boot.dtsi           | 12 ++++++++++++
>   arch/arm/dts/rk3128-u-boot.dtsi            | 12 ++++++++++++
>   arch/arm/dts/rk3188-u-boot.dtsi            | 12 ++++++++++++
>   arch/arm/dts/rk322x-u-boot.dtsi            | 12 ++++++++++++
>   arch/arm/dts/rk3288-u-boot.dtsi            | 12 ++++++++++++

RK3288 is confirmed to need rkspi work-around to boot from SPI as the 
Chromebooks Jerry and Speedy had build instructions to use rkspi.

>   arch/arm/dts/rk3308-u-boot.dtsi            | 12 ++++++++++++
>   arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 12 ++++++++++++

RK3326 is confirmed to *not* need rkspi work-around to boot from SPI.
Considering it's a lite version of PX30, I'm assuming the same can be 
said for PX30 but since I cannot test it, I won't modify it.

I'll send a further patch once this gets merged (or if there's a v2 for 
this series) to make rksd the default format for SPI booting on RK3326.

Don't hesitate to provide feedback for other Rockchip SoCs.

Cheers,
Quentin


More information about the U-Boot mailing list