summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMattijs Korpershoek <mkorpershoek@baylibre.com>2023-08-30 10:04:44 +0200
committerPraneeth Bajjuri <praneeth@ti.com>2023-09-13 09:21:35 -0500
commit8a4d0b598bacf372782e35e75cce81b66586e862 (patch)
tree67ec4a8601463a3e9a3e92acf0920a8cd94d11b7 /include
parent5c68ae40137ed66c85ddb1e90798dca26ef3898b (diff)
environment: ti: mmc_android: relocate U-Boot environment
The U-Boot environment is stored at offset 0x680000 (6.5MB) While this is fine for AM62x SK EVM (because its mmc0boot0 partition is 31.5MB), this does won't work on the Beagle Play, which only has 4MB. Booting Beagle Play shows: Loading Environment from MMC... MMC: block number 0x3500 exceeds max(0x2000) *** Warning - !read failed, using default environment Move the U-boot environment at lba 0x800 on mmc0boot0. This reserves 1MB so that tiboot3 to be on mmc0boot0 as well, which is the case for BeaglePlay. Also add a raw_partition label so that we can erase it with: fastboot erase bootenv The boot0 partition now looks as: blk boot0 partition (31.5 MB) 0x0+----------------------------------+ | empty (1 MB) | 0x800+----------------------------------+ | environment (128 KB) | | padding (384 KB) | 0xc00+----------------------------------+ | | | Remaining space (30.0 MB) | 0xfc00+----------------------------------+ pick Note: CONFIG_ENV_OFFSET is in bytes and fastboot_raw_* is in lba number. CONFIG_ENV_OFFSET=0x100000 -> lba 0x800 env size + padding = 512KB -> length of 0x400 lbas Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'include')
-rw-r--r--include/environment/ti/mmc_android.env2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/environment/ti/mmc_android.env b/include/environment/ti/mmc_android.env
index c584e84d44..7981d54396 100644
--- a/include/environment/ti/mmc_android.env
+++ b/include/environment/ti/mmc_android.env
@@ -23,3 +23,5 @@ fastboot.partition-type:metadata=ext4
mmcdev=0
force_avb=0
envboot=run distro_bootcmd
+
+fastboot_raw_partition_bootenv="0x800 0x400 mmcpart 1"