
This series offers an optimization of the Android image loading procedure.
The first patch introduces a new 'abootimg load' command, which loads partitions from storage into memory. It uses malloc() to find a free memory region, whereas previously, the developer had to find a free memory region by himself.
The remaining patches reduce boot time by avoiding extra disk activity.
The second patch implements get_preloaded_partition(), which picks a partition from memory previously loaded by the 'abootimg load' command.
The third patch optimizes the 'abootimg load' command by skipping zeros loading at the partition's end.
Roman Stratiienko (3): abootcmd: Add load subcommand avb: Implement get_preloaded_partition callback abootimg: Implement smart image load feature
boot/image-android.c | 70 ++++++++++++++++++++++++++ cmd/abootimg.c | 116 ++++++++++++++++++++++++++++++++++++++++++- common/avb_verify.c | 53 ++++++++++++++++++++ include/image.h | 12 +++++ 4 files changed, 250 insertions(+), 1 deletion(-)