From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Marek Vasut <marek.vasut@mailbox.org>,
Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>
Cc: Marek Vasut <marek.vasut+renesas@mailbox.org>,
u-boot@lists.denx.de, Aaron Kling <webgeek1234@gmail.com>,
Eddie Kovsky <ekovsky@redhat.com>,
George Chan <gchan9527@gmail.com>,
Julien Masson <jmasson@baylibre.com>,
Mattijs Korpershoek <mkorpershoek@kernel.org>,
Nicolas Belin <nbelin@baylibre.com>, Sam Day <me@samcday.com>
Subject: Re: [PATCH 1/2] boot: android: Always use 8-byte aligned DT with libfdt
Date: Mon, 17 Nov 2025 12:35:38 +0100 [thread overview]
Message-ID: <875xb828ol.fsf@kernel.org> (raw)
In-Reply-To: <385cdc16-cf73-443b-a0a1-440e233d4506@mailbox.org>
On Thu, Nov 13, 2025 at 22:42, Marek Vasut <marek.vasut@mailbox.org> wrote:
> On 11/13/25 9:36 PM, Tom Rini wrote:
>
> Hello everyone,
>
>>>> Which is different from disagreeing with your specific feedback about
>>>> how we get there, to be clear.
>>
>> And again, since your feedback to this patch was "Don't?", I'm saying we
>> need to. But the rest of your feedback was structural on moving towards
>> resolving it and so I assume Marek will respond.
>
> The "blast radius" are these patches, that's all that tripped the tests:
>
> - boot: android: Always use 8-byte aligned DT with libfdt
> - test/py: android: Point fdt command to aligned addresses
> - test/py: Use aligned address for overlays in 'extension' test
> - sandbox: Fix DT compiler address warnings in sandbox DTs
> - sandbox: Fix DT compiler pin warnings in sandbox DTs
> - boot: Assure FDT is always at 8-byte aligned address
> - arm: qemu: Eliminate fdt_high and initrd_high misuse
> - efi_loader: Assure fitImage from capsule is used from 8-byte aligned
> address
> - MIPS: Assure end of U-Boot is at 8-byte aligned offset
>
> Regarding last minute alignment, the problem with this android image
> seems to be in the android image itself, which packs in badly aligned
> FDT. We therefore have to copy it out and realign.
Yes, the Android tools do not handle alignment by default. This is
stated in the Android docs [1].
Also see [2] on how a boot.img is usually structured.
In any case, if DT spec mandates alignement, I think it's good to
enforce the spec in the code.
[1] https://source.android.com/docs/core/architecture/dto/partitions#cfg-create
[2] https://source.android.com/docs/core/architecture/dto
>
> --
> Best regards,
> Marek Vasut
prev parent reply other threads:[~2025-11-17 11:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-12 1:16 [PATCH 1/2] boot: android: Always use 8-byte aligned DT with libfdt Marek Vasut
2025-11-12 1:16 ` [PATCH 2/2] test/py: android: Point fdt command to aligned addresses Marek Vasut
2025-11-13 19:33 ` [PATCH 1/2] boot: android: Always use 8-byte aligned DT with libfdt Simon Glass
2025-11-13 19:38 ` Tom Rini
2025-11-13 19:57 ` Simon Glass
2025-11-13 20:05 ` Tom Rini
2025-11-13 20:28 ` Simon Glass
2025-11-13 20:36 ` Tom Rini
2025-11-13 21:42 ` Marek Vasut
2025-11-14 12:45 ` Simon Glass
2025-11-14 14:23 ` Tom Rini
2025-11-14 14:25 ` Simon Glass
2025-11-15 17:11 ` Marek Vasut
2025-11-16 16:07 ` Simon Glass
2025-11-17 14:21 ` Tom Rini
2025-11-17 17:04 ` Simon Glass
2025-11-17 18:02 ` Tom Rini
2025-11-17 18:15 ` Simon Glass
2025-11-17 11:35 ` Mattijs Korpershoek [this message]
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=875xb828ol.fsf@kernel.org \
--to=mkorpershoek@kernel.org \
--cc=ekovsky@redhat.com \
--cc=gchan9527@gmail.com \
--cc=jmasson@baylibre.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=marek.vasut@mailbox.org \
--cc=me@samcday.com \
--cc=nbelin@baylibre.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=webgeek1234@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox