summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoteen Shah <[email protected]>2026-05-20 16:30:32 +0530
committerTom Rini <[email protected]>2026-05-25 09:29:30 -0600
commit7e11adf05488c64195c8031299ff65c1a4fd660a (patch)
tree1f9563f2b2a14191b8da74bd26074472e6786939
parent987c93fc68a641cc735c9828872511a947e54191 (diff)
am57xx: restore bootm_size for ARMv7 HighMem constraint
babae80169d removed bootm_size from ti_common.env to allow K3 boards to process images larger than 256MB, but preserved it in ti_armv7_keystone2.env for ARMv7 Keystone2 boards. AM57xx (also ARMv7) was not covered by that preservation. Without bootm_size, env_get_bootm_size() falls back to gd->ram_size, causing initrd_high to be computed as the top of all RAM. On ARM32 boards with more RAM than the DMA zone (e.g. AM572x IDK with 2GiB), this places the ramdisk above 0xafe00000 (HighMem), which is not directly accessible by the kernel after MMU setup, causing a silent crash. With bootm_size=0x10000000, initrd_high is constrained to 0x80000000 + 0x10000000 = 0x90000000, keeping the ramdisk in the DMA zone and allowing the kernel to access it correctly. Fixes: babae80169dd ("include: env: ti_common: remove bootm_size") Reviewed-by: Neha Malcom Francis <[email protected]> Signed-off-by: Moteen Shah <[email protected]>
-rw-r--r--board/ti/am57xx/am57xx.env1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/ti/am57xx/am57xx.env b/board/ti/am57xx/am57xx.env
index a7cbbced099..4f712c5575a 100644
--- a/board/ti/am57xx/am57xx.env
+++ b/board/ti/am57xx/am57xx.env
@@ -2,6 +2,7 @@
#include <env/ti/mmc.env>
#include <env/ti/dfu.env>
+bootm_size=0x10000000
bootpart=0:2
bootdir=/boot
get_name_kern=