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(-) diff --git a/board/samsung/exynos-mobile/exynos-mobile.c b/board/samsung/exynos-mobile/exynos-mobile.c index d91e2e7d3f2..67f46831df2 100644 --- a/board/samsung/exynos-mobile/exynos-mobile.c +++ b/board/samsung/exynos-mobile/exynos-mobile.c @@ -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; } -- 2.53.0

