Skip to content
Snippets Groups Projects
  1. Feb 04, 2020
    • Sam Protsenko's avatar
      image: android: Add routine to get dtbo params · 7f253150
      Sam Protsenko authored
      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: default avatarSam Protsenko <joe.skb7@gmail.com>
      Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
      7f253150
    • Sam Protsenko's avatar
      image: android: Add functions for handling dtb field · c3bfad82
      Sam Protsenko authored
      
      Android Boot Image v2 adds "DTB" payload (and corresponding field in the
      image header). Provide functions for its handling:
      
        - android_image_get_dtb_by_index(): Obtain DTB blob from "DTB" part of
          boot image, by blob's index
        - android_image_print_dtb_contents(): Iterate over all DTB blobs in
          "DTB" part of boot image and print those blobs info
      
      "DTB" payload might be in one of the following formats:
        1. concatenated DTB blobs
        2. Android DTBO format
      
      The latter requires "android-image-dt.c" functionality, so this commit
      selects that file for building for CONFIG_ANDROID_BOOT_IMAGE option.
      
      Right now this new functionality isn't used, but it can be used further.
      As it's required to apply some specific dtbo blob(s) from "dtbo"
      partition, we can't automate this process inside of "bootm" command. But
      we can do next:
        - come up with some new command like "abootimg" to extract dtb blob
          from boot image (using functions from this patch)
        - extract desired dtbo blobs from "dtbo" partition using "adtimg"
          command
        - merge dtbo blobs into dtb blob using "fdt apply" command
        - pass resulting dtb blob into bootm command in order to boot the
          Android kernel with Android ramdisk from boot image
      
      Signed-off-by: default avatarSam Protsenko <joe.skb7@gmail.com>
      Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
      c3bfad82
  2. Feb 02, 2020
  3. Feb 01, 2020
  4. Jan 31, 2020
  5. Jan 30, 2020
Loading