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/[email protected]/
> 

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/[email protected]/

Best regards,
Vitor Soares



Reply via email to