public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* Toradex Verdin AM62 boot failure on recent master
@ 2026-01-22 23:58 Vitor Soares
  2026-01-23 13:08 ` Fabio Estevam
  2026-01-23 15:01 ` Tom Rini
  0 siblings, 2 replies; 5+ messages in thread
From: Vitor Soares @ 2026-01-22 23:58 UTC (permalink / raw)
  To: u-boot; +Cc: vitor.soares, trini, n-francis, b-padhi, afd, anshuld


Hi,

I'm experiencing a boot failure on Toradex Verdin AM62 with the latest master.
The last known good commit is a4dc1c3b7d56 and it fails to boot at 64662b99c0eb
(current HEAD).

Looking at the 35 commits in this range, I noticed that the first commit after
my last known good is 85f586035d75 ("ARM: OMAP2+: Pad SPL binary to 8-byte
alignment before DTB"), which directly modifies the K3/AM62 SPL linker script.

Related commits:
  85f586035d75 ARM: OMAP2+: Pad SPL binary to 8-byte alignment before DTB
  8b0ebe054bb3 arm: Update linker scripts to ensure appended device tree is
aligned

Could these changes be related to the boot failure? Any insights would
be appreciated.

Thanks,
Vitor Soares


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Toradex Verdin AM62 boot failure on recent master
  2026-01-22 23:58 Toradex Verdin AM62 boot failure on recent master Vitor Soares
@ 2026-01-23 13:08 ` Fabio Estevam
  2026-01-23 15:01 ` Tom Rini
  1 sibling, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2026-01-23 13:08 UTC (permalink / raw)
  To: Vitor Soares
  Cc: u-boot, vitor.soares, trini, n-francis, b-padhi, afd, anshuld

Hi Vitor,

On Fri, Jan 23, 2026 at 1:54 AM Vitor Soares <ivitro@gmail.com> wrote:
>
>
> Hi,
>
> I'm experiencing a boot failure on Toradex Verdin AM62 with the latest master.
> The last known good commit is a4dc1c3b7d56 and it fails to boot at 64662b99c0eb
> (current HEAD).
>
> Looking at the 35 commits in this range, I noticed that the first commit after
> my last known good is 85f586035d75 ("ARM: OMAP2+: Pad SPL binary to 8-byte
> alignment before DTB"), which directly modifies the K3/AM62 SPL linker script.
>
> Related commits:
>   85f586035d75 ARM: OMAP2+: Pad SPL binary to 8-byte alignment before DTB
>   8b0ebe054bb3 arm: Update linker scripts to ensure appended device tree is
> aligned
>
> Could these changes be related to the boot failure? Any insights would
> be appreciated.

Does reverting 8b0ebe054bb3 ("arm: Update linker scripts to ensure
appended device tree is aligned") make the board boot again?

I noticed that this commit broke the boot of a Rockchip board:

https://lore.kernel.org/u-boot/CAOMZO5CLQZ3i+Eit5csv6E+az-_g2eOHfCr-whQTPeg06WtqEg@mail.gmail.com/

In the failing boot case, do you get any SPL message at all?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Toradex Verdin AM62 boot failure on recent master
  2026-01-22 23:58 Toradex Verdin AM62 boot failure on recent master Vitor Soares
  2026-01-23 13:08 ` Fabio Estevam
@ 2026-01-23 15:01 ` Tom Rini
  2026-01-24 16:36   ` Vitor Soares
  1 sibling, 1 reply; 5+ messages in thread
From: Tom Rini @ 2026-01-23 15:01 UTC (permalink / raw)
  To: Vitor Soares; +Cc: u-boot, vitor.soares, n-francis, b-padhi, afd, anshuld

[-- Attachment #1: Type: text/plain, Size: 920 bytes --]

On Thu, Jan 22, 2026 at 11:58:54PM +0000, Vitor Soares wrote:

> 
> Hi,
> 
> I'm experiencing a boot failure on Toradex Verdin AM62 with the latest master.
> The last known good commit is a4dc1c3b7d56 and it fails to boot at 64662b99c0eb
> (current HEAD).
> 
> Looking at the 35 commits in this range, I noticed that the first commit after
> my last known good is 85f586035d75 ("ARM: OMAP2+: Pad SPL binary to 8-byte
> alignment before DTB"), which directly modifies the K3/AM62 SPL linker script.
> 
> Related commits:
>   85f586035d75 ARM: OMAP2+: Pad SPL binary to 8-byte alignment before DTB
>   8b0ebe054bb3 arm: Update linker scripts to ensure appended device tree is
> aligned
> 
> Could these changes be related to the boot failure? Any insights would
> be appreciated.

You likely need
https://patchwork.ozlabs.org/project/uboot/patch/20260122172247.2995437-1-b-padhi@ti.com/

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Toradex Verdin AM62 boot failure on recent master
  2026-01-23 15:01 ` Tom Rini
@ 2026-01-24 16:36   ` Vitor Soares
  2026-01-24 18:35     ` Fabio Estevam
  0 siblings, 1 reply; 5+ messages in thread
From: Vitor Soares @ 2026-01-24 16:36 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, vitor.soares, n-francis, b-padhi, afd, anshuld, festevam

On Fri, 2026-01-23 at 09:01 -0600, Tom Rini wrote:
> On Thu, Jan 22, 2026 at 11:58:54PM +0000, Vitor Soares wrote:
> 
> > 
> > Hi,
> > 
> > I'm experiencing a boot failure on Toradex Verdin AM62 with the latest
> > master.
> > The last known good commit is a4dc1c3b7d56 and it fails to boot at
> > 64662b99c0eb
> > (current HEAD).
> > 
> > Looking at the 35 commits in this range, I noticed that the first commit
> > after
> > my last known good is 85f586035d75 ("ARM: OMAP2+: Pad SPL binary to 8-byte
> > alignment before DTB"), which directly modifies the K3/AM62 SPL linker
> > script.
> > 
> > Related commits:
> >    85f586035d75 ARM: OMAP2+: Pad SPL binary to 8-byte alignment before DTB
> >    8b0ebe054bb3 arm: Update linker scripts to ensure appended device tree is
> > aligned
> > 
> > Could these changes be related to the boot failure? Any insights would
> > be appreciated.
> 
> You likely need
> https://patchwork.ozlabs.org/project/uboot/patch/20260122172247.2995437-1-b-padhi@ti.com/
> 

The v3 patch alone didn't fix the boot issue on Verdin AM62.

However, Marek's suggested approach [1] that only aligns flat_dt type
images to 8 bytes does fix it:

diff --git a/tools/fit_image.c b/tools/fit_image.c
--- a/tools/fit_image.c
+++ b/tools/fit_image.c
@@ -685,6 +685,13 @@ static int fit_extract_data(...)
              const char *data, *type;
              int len;

+             /* Ensure flat_dt images are 8-byte aligned per DT spec */
+             if (align_size < 8) {
+                     type = fdt_getprop(fdt, node, FIT_TYPE_PROP, &len);
+                     if (type && len > 0 && !strncmp(type, "flat_dt", len < 8 ?
len : 7))
+                             align_size = 8;
+             }
+
              data = fdt_getprop(fdt, node, FIT_DATA_PROP, &len);

+Cc Fabio - this should resolve your boot failure as well.

[1]
https://lore.kernel.org/u-boot/1e1f2e09-bfb7-4c7d-abd6-25a79271f256@mailbox.org/

Best regards,
Vitor Soares




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Toradex Verdin AM62 boot failure on recent master
  2026-01-24 16:36   ` Vitor Soares
@ 2026-01-24 18:35     ` Fabio Estevam
  0 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2026-01-24 18:35 UTC (permalink / raw)
  To: Vitor Soares
  Cc: Tom Rini, u-boot, vitor.soares, n-francis, b-padhi, afd, anshuld,
	festevam

Hi Vitor,

On Saturday, January 24, 2026 13:36 -03, Vitor Soares <ivitro@gmail.com> wrote:
 
> +Cc Fabio - this should resolve your boot failure as well.
> 
> [1]
> https://lore.kernel.org/u-boot/1e1f2e09-bfb7-4c7d-abd6-25a79271f256@mailbox.org/

Thanks for the suggestion, but this does not fix the boot failure on RV1103.

Tom's proposal fixes it:

https://lore.kernel.org/u-boot/CAOMZO5DVFO=A6g1CWOrRbqy4VNgL+VcUw0Q5pgELXm30puGz4w@mail.gmail.com/

Thanks,

Fabio Estevam
-- 
Nabla Software Engineering GmbH	Managing Director: Stefano Babic
Phone: +49 821 45592596 	E-Mail: festevam@nabladev.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-25  1:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-22 23:58 Toradex Verdin AM62 boot failure on recent master Vitor Soares
2026-01-23 13:08 ` Fabio Estevam
2026-01-23 15:01 ` Tom Rini
2026-01-24 16:36   ` Vitor Soares
2026-01-24 18:35     ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox