]> git.ipfire.org Git - thirdparty/u-boot.git/commit
tools: sunxi-spl-image-builder: support H6/H616 NAND boot
authorRichard Genoud <richard.genoud@bootlin.com>
Fri, 23 Jan 2026 11:45:01 +0000 (12:45 +0100)
committerMichael Trimarchi <michael@amarulasolutions.com>
Tue, 3 Feb 2026 20:45:27 +0000 (21:45 +0100)
commit800ebf7e94e3a7e375cf915ae21e14514fd81450
tree667345988728cc2aaa48fdb8a6fe357283995cb5
parentbd22b7e5d1b0b08de873ce55a2237e22049ddd53
tools: sunxi-spl-image-builder: support H6/H616 NAND boot

The H6/H616 boot ROM doesn't expect a SPL scrambled the same way as
older SoCs.
It doesn't use a specific seeds table, it expects a maximized ECC
(BCH-80), a specific BBM (FF000301) and doesn't work if empty pages are
skipped (it needs its specific BBM, even in the padding).

So, add a --soc=h6 option to support H6/616 with:
- more ECC strengths
- specific BBM
- default_scrambler_seeds[] with all values
- no empty pages skip

In Kconfig, select BCH-80 by default for SUNXI_SPL_ECC_STRENGTH to make
BROM happy.

And in scripts/Makefile.xpl, use --soc=h6 option when building for a
SUN50I_GEN_H6 SoC.

Tested on Whatsminer H616 board, booting from NAND.

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Co-developed-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/mtd/nand/raw/Kconfig
scripts/Makefile.xpl
tools/sunxi-spl-image-builder.c