board: samsung: exynos-mobile: select largest userdata partition by size
PATCH 1/1 board: samsung: exynos-mobile: select largest userdata partition by size
The blkmap heuristic picks a partition to map for booting combined images, which live in the userdata partition as it is the largest. Compare info.size against largest_part_size rather than info.start, which previously selected the partition with the highest start LBA.
Signed-off-by Bradley Morgan <[email protected]>
--- board/samsung/exynos-mobile/exynos-mobile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/samsung/exynos-mobile/exynos-mobile.c +1 -1
@@ -228,7 +228,7 @@ static int exynos_blk_env_setup(void) update_info.dfu_string = dfu_string; } -if (info.start > largest_part_size) { +if (info.size > largest_part_size) { largest_part_start = info.start; largest_part_size = info.size; }
Signature · 1 line
2.53.0