Skip to content

Commit 63a2bdb

Browse files
alvaroputzig
authored andcommitted
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 <[email protected]>
1 parent f99a4c7 commit 63a2bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,7 @@ split_go(int loader_slot, int split_slot, void **entry)
18491849

18501850
loader_flash_id = flash_area_id_from_image_slot(loader_slot);
18511851
rc = flash_area_open(loader_flash_id,
1852-
&BOOT_IMG_AREA(&boot_data, split_slot));
1852+
&BOOT_IMG_AREA(&boot_data, loader_slot));
18531853
assert(rc == 0);
18541854
split_flash_id = flash_area_id_from_image_slot(split_slot);
18551855
rc = flash_area_open(split_flash_id,

0 commit comments

Comments
 (0)