U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] board: samsung: exynos-mobile: select largest userdata partition by size
@ 2026-07-11 15:15 Bradley Morgan
  0 siblings, 0 replies; only message in thread
From: Bradley Morgan @ 2026-07-11 15:15 UTC (permalink / raw)
  To: kauschluss; +Cc: mk7.kang, trini, u-boot, Bradley Morgan

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@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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-11 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-11 15:15 [PATCH] board: samsung: exynos-mobile: select largest userdata partition by size Bradley Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox