From c3e1d444f95061294e16743f35404230f05606b5 Mon Sep 17 00:00:00 2001
From: Pratyush Yadav
Date: Wed, 14 Apr 2021 23:53:45 +0530
Subject: [PATCH] configs: j7200_evm_a72: Update default mtdparts for
47040000.spi.0
The MTD partitions listed are not what should be. Changes made are:
- Move ospi.env.backup to 0x6C0000 so it does not lie in the middle of
an erase block.
- Make ospi.env and ospi.env.backup 256k so they span a full erase
block.
- Drop the sysfw partition. It is bundled with R5 SPL now.
- Add the PHY calibration pattern partition.
NOTE: The code in the OSPI driver is very naive so it won't actually
read this variable to find the PHY pattern location as of now, and needs
the partition to also be present in device tree. But this change will
make sure Linux does not over-write the pattern thinking it is part of
the rootfs.
Signed-off-by: Pratyush Yadav
---
configs/j7200_evm_a72_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/j7200_evm_a72_defconfig b/configs/j7200_evm_a72_defconfig
index d020e64b5f..116f533080 100644
--- a/configs/j7200_evm_a72_defconfig
+++ b/configs/j7200_evm_a72_defconfig
@@ -73,7 +73,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y
CONFIG_CMD_TIME=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_MTDIDS_DEFAULT="nor0=47040000.spi.0,nor0=47034000.hyperbus"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),-@8m(ospi.rootfs);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs)"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),-@8m(hbmc.rootfs)"
CONFIG_CMD_UBI=y
# CONFIG_ISO_PARTITION is not set
# CONFIG_SPL_EFI_PARTITION is not set