All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Richard Genoud <richard.genoud@bootlin.com>
Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	 Michael Trimarchi <michael@amarulasolutions.com>,
	 Tom Rini <trini@konsulko.com>,
	 Jagan Teki <jagan@amarulasolutions.com>,
	 Andre Przywara <andre.przywara@arm.com>,
	 Dinesh Maniyam <dinesh.maniyam@intel.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	 Anand Gore <anand.gore@broadcom.com>,
	 david regan <dregan@broadcom.com>,
	 Greg Malysa <malysagreg@gmail.com>,
	 Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	 Marek Vasut <marek.vasut+renesas@mailbox.org>,
	 Philip Molloy <philip.molloy@analog.com>,
	 Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	 u-boot@lists.denx.de,
	 James Hilliard <james.hilliard1@gmail.com>
Subject: Re: [PATCH v3] tools: sunxi-spl-image-builder: support H6/H616 NAND boot
Date: Tue, 28 Oct 2025 10:40:43 +0100	[thread overview]
Message-ID: <87bjlruzxg.fsf@bootlin.com> (raw)
In-Reply-To: <20251028083733.574757-1-richard.genoud@bootlin.com> (Richard Genoud's message of "Tue, 28 Oct 2025 09:37:33 +0100")

Hi Richard,

On 28/10/2025 at 09:37:33 +01, Richard Genoud <richard.genoud@bootlin.com> wrote:

> 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.
>
> 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>
> ---

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>

Thanks,
Miquèl

  reply	other threads:[~2025-10-28 10:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-28  8:37 [PATCH v3] tools: sunxi-spl-image-builder: support H6/H616 NAND boot Richard Genoud
2025-10-28  9:40 ` Miquel Raynal [this message]
2026-01-19 11:14   ` Richard GENOUD
2026-01-19 11:18     ` Michael Nazzareno Trimarchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bjlruzxg.fsf@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=anand.gore@broadcom.com \
    --cc=andre.przywara@arm.com \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=dinesh.maniyam@intel.com \
    --cc=dregan@broadcom.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jagan@amarulasolutions.com \
    --cc=james.hilliard1@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=malysagreg@gmail.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=michael@amarulasolutions.com \
    --cc=philip.molloy@analog.com \
    --cc=richard.genoud@bootlin.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.