[PATCH v2 0/3] rockchip: more templating for binman and switch SPI image to rksd by default
Quentin Schulz
foss+uboot at 0leil.net
Tue Dec 16 12:26:28 CET 2025
The images to flash on SPI and MMC boot media are very similar and
binman templating engine allows to override properties after inserting
the template, so let's do that to template the idbloader.img part for
MMC and SPI images.
While at it, swap the default format for the SPI image from rkspi to
rksd. This patch should not change any behavior, just that the new SoCs
are expected to use rksd if unspecified instead of rkspi which is
assumed required only on some SoCs (like RK3399) due to some BootROM
bug/quirk.
Finally, a small cleanup of rk3288-tinker-s including twice the same
file.
Note that I'm planning on adding support for image signature to
rockchip-u-boot.dtsi in the next few days/weeks, which is the reason why
I'm doing this now as I've had to duplicate the work for the inclusion
of the pubkey in the SPL for the SPI and MMC images for no real reason.
Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
Changes in v2:
- rebased on top of master,
- moved changes from arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi to
arch/arm/dts/rk3326-u-boot.dtsi following commit bf6c7cce09fd
("rockchip: odroid-go2: Move SoC common overrides into a SoC u-boot.dtsi")
- rk3576 supports rksd images for SPI according to commit 7f4192d99098
("rockchip: rk3576: Add SPI Flash boot support"), so updated the patch
to reflect that change,
- simplified templating by *not* templating the whole
u-boot-rockchip*.bin, but only the idbloader*.img part as the fit
template is now required for usb471 and usb472 binaries, since commit
e22335a221f8 ("rockchip: Add support for RAM boot from maskrom mode"),
- Link to v1: https://patch.msgid.link/20251027-rockchip-more-template-v1-0-430672840303@cherry.de
---
Quentin Schulz (3):
rockchip: binman: template idbloader.img for MMC and SPI images
rockchip: make rksd the default format for SPI images
rockchip: rk3288-tinker-s: remove duplicate include
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-tinker-s-u-boot.dtsi | 1 -
arch/arm/dts/rk3288-u-boot.dtsi | 12 ++++++++++++
arch/arm/dts/rk3308-u-boot.dtsi | 12 ++++++++++++
arch/arm/dts/rk3326-u-boot.dtsi | 1 -
arch/arm/dts/rk3328-u-boot.dtsi | 1 -
arch/arm/dts/rk3368-u-boot.dtsi | 12 ++++++++++++
arch/arm/dts/rk3399-u-boot.dtsi | 12 ++++++++++++
arch/arm/dts/rk3528-u-boot.dtsi | 12 ++++++++++++
arch/arm/dts/rk356x-u-boot.dtsi | 1 -
arch/arm/dts/rk3576-u-boot.dtsi | 1 -
arch/arm/dts/rk3588s-u-boot.dtsi | 1 -
arch/arm/dts/rockchip-u-boot.dtsi | 27 +++++++++++----------------
arch/arm/dts/rv1108-u-boot.dtsi | 12 ++++++++++++
arch/arm/dts/rv1126-u-boot.dtsi | 12 ++++++++++++
20 files changed, 168 insertions(+), 22 deletions(-)
---
base-commit: 41eddd89235303309ea4e8f2d1f5a076605ee8ce
change-id: 20251027-rockchip-more-template-86af536f7e86
Best regards,
--
Quentin Schulz <quentin.schulz at cherry.de>
More information about the U-Boot
mailing list