On Thu, 13 Aug 2026 14:36:31 +0200, Patryk Biel wrote:
> 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.
>
> [...]
Applied to u-boot/next, thanks!
[1/1] arm: mach-k3: j721e: make get_boot_device() available outside xPL
commit: 97626d3f0ae6e7d470ee4048be58ee180b29fca5
--
Tom