]> git.baikalelectronics.ru Git - uboot.git/commit
image: android: Add routine to get dtbo params
authorSam Protsenko <joe.skb7@gmail.com>
Fri, 24 Jan 2020 15:53:41 +0000 (17:53 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 4 Feb 2020 03:37:24 +0000 (09:07 +0530)
commit76a8ac3c18bbb71980a987e97134a2dd0534ba85
treee34bea21107005eb3beedd8d8196b5c6ae0243ea
parentdb793fbc0192cd2dc6477a8fdd497d578d0940e3
image: android: Add routine to get dtbo params

Android Boot Image v1 adds "Recovery DTB" field in image header and
associate payload in boot image itself [1]. Payload should be in
Android DTB/DTBO format [2]. That "Recovery DTB" area should be only
populated for non-A/B devices, and only in recovery image.

Add function to get an address and size of that payload. That function
can be further used e.g. in 'abootimg' command to provide the user a way
to get the address of recovery dtbo from U-Boot shell, which can be
further parsed using 'adtimg' command.

[1] https://source.android.com/devices/bootloader/boot-image-header
[2] https://source.android.com/devices/architecture/dto/partitions

Signed-off-by: Sam Protsenko <joe.skb7@gmail.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
common/image-android.c
include/image.h