
Hi Linus,
On Wed, 16 Feb 2022 at 16:18, Linus Walleij linus.walleij@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@gmail.com Cc: Stephan Gerhold stephan@gerhold.net Cc: Simon Glass sjg@chromium.org Cc: Sam Protsenko joe.skb7@gmail.com Signed-off-by: Linus Walleij linus.walleij@linaro.org
cmd/abootimg.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
Please update test/py/tests/test_android/test_avb.py
Regards, Simo n