[PATCH] cmd: abootimg: Accept a DTB in second for index 0

Simon Glass sjg at chromium.org
Sat Feb 26 19:37:21 CET 2022

Hi Linus,

On Wed, 16 Feb 2022 at 16:18, Linus Walleij <linus.walleij at linaro.org> wrote:
> If the user is using an old Android image (version < 2)
> there are no special DTB pointers. What systems do in this
> case is to use the "second" area for a DTB, and this is
> what bootm is falling back to when booting and abootimg,
> see image-fdt.c function boot_get_fdt().
> So since I need this on some PostmarkeOS systems to modify
> DTBs on-the-fly, make the abootimg also recognize and fall
> back to using "second" if the Android image header is < 2.
> Cc: Markuss Broks <markuss.broks at gmail.com>
> Cc: Stephan Gerhold <stephan at gerhold.net>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Sam Protsenko <joe.skb7 at gmail.com>
> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
> ---
>  cmd/abootimg.c | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)

Please update test/py/tests/test_android/test_avb.py


More information about the U-Boot mailing list