Fix bug that prevents split images from working.
There is a bug in split_go that never opens the loader image flash area, but opens the app/split image flash arta twice. This prevents split_image_check from passing and the app from ever loading. Signed-off-by: Alvaro Prieto <source@alvaroprieto.com>
This commit is contained in:
parent
f99a4c790a
commit
63a2bdbda9
|
@ -1849,7 +1849,7 @@ split_go(int loader_slot, int split_slot, void **entry)
|
||||||
|
|
||||||
loader_flash_id = flash_area_id_from_image_slot(loader_slot);
|
loader_flash_id = flash_area_id_from_image_slot(loader_slot);
|
||||||
rc = flash_area_open(loader_flash_id,
|
rc = flash_area_open(loader_flash_id,
|
||||||
&BOOT_IMG_AREA(&boot_data, split_slot));
|
&BOOT_IMG_AREA(&boot_data, loader_slot));
|
||||||
assert(rc == 0);
|
assert(rc == 0);
|
||||||
split_flash_id = flash_area_id_from_image_slot(split_slot);
|
split_flash_id = flash_area_id_from_image_slot(split_slot);
|
||||||
rc = flash_area_open(split_flash_id,
|
rc = flash_area_open(split_flash_id,
|
||||||
|
|
Loading…
Reference in New Issue