bootloader_utility_load_boot_image() function
Load the selected partition and start application. Start from partition 'start_index', if not bootable then work backwards to FACTORY_INDEX (ie try any OTA slots in descending order and then the factory partition). If still nothing, start from 'start_index + 1' and work up to highest numbered OTA partition. If still nothing, try TEST_APP_INDEX. Everything this function calls must be located in the iram_loader_seg segment.
Arguments
bs
Bootloader state structure.
start_index
The index from which the search for images begins.