Skip to content

bootstd: android: boot|vendor_boot: read only image size

Julien Masson requested to merge jmasson/android into mtk-v2024.10

The previous implementation was reading the whole partition for boot and vendor_boot image which can be long following the size of the partition or the time to read blocks (driver/SoC specific).

All the necessary informations concerning the size of the components in boot|vendor_boot image are present in the header.

We can extract|use these informations and read only the necessary.

For more infos about how the size is calculated: include/android_image.h

On i700 the time to read/load boot image from MMC was ~8-9 secs.

Now with this change it's around ~4-5 secs.

Cc @vsatoes @eblanc @mkorpershoek @glaroque

Edited by Julien Masson

Merge request reports

Loading