Skip to contentSkip to conversation

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

PATCH New Bradley Morgan 1 participant 1 message Jul 11 Arm Samsung Exynos

lore
Share & tools
lore
#0 lore raw

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.

---
 board/samsung/exynos-mobile/exynos-mobile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/samsung/exynos-mobile/exynos-mobile.c +1 -1
index d91e2e7d3f2..67f46831df2 100644
@@ -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