[PATCH] board: samsung: exynos-mobile: select largest userdata partition by size

Bradley Morgan include at grrlz.net
Sat Jul 11 17:15:01 CEST 2026


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 <include at grrlz.net>
---
 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



More information about the U-Boot mailing list