On August 13, 2026 thus sayeth Patryk Biel:
> J721E/J7200 decodes the ROM-selected boot media in j721e_init.c,
> which is built only for xPL. This keeps spl_boot_device() working, but
> leaves U-Boot proper without the get_boot_device() implementation
> declared by the common K3 hardware header. Board code that uses the
> helper to select the environment or boot targets therefore cannot link.
> 
> Move the existing primary and backup boot-media decoding into a new
> boot.c and build it unconditionally for J721E and J7200. Keep
> spl_boot_device() as a wrapper around get_boot_device(), preserving the
> existing xPL result while making the same decode available outside xPL.
> 
> Tested on: J7200X-PM2-SOM rev E8
> 
> Signed-off-by: Patryk Biel <[email protected]>
> ---
> This follows the existing J721S2 layout and only moves the existing
> J721E/J7200 boot-media decoding out of the xPL-only init file.
> ---
>  arch/arm/mach-k3/j7200/Makefile     |  1 +
>  arch/arm/mach-k3/j721e/Makefile     |  1 +
>  arch/arm/mach-k3/j721e/boot.c       | 76 
> +++++++++++++++++++++++++++++++++++++
>  arch/arm/mach-k3/j721e/j721e_init.c | 69 +--------------------------------
>  4 files changed, 79 insertions(+), 68 deletions(-)


Thanks Patryk.

Looks like we have a few SoCs like this left. I'll send a patch to 
convert those in a few days :)

Reviewed-by: Bryan Brattlof <[email protected]>

~Bryan

Reply via email to