[PATCH 11/12] configs: chip pro: fix the offsets

Maxime Ripard maxime at cerno.tech
Fri Jun 25 15:05:46 CEST 2021


The CHIP Pro MTD partition table sets the U-Boot offset at
512kB (0x80000), and its backup at 2.5MB (0x280000).

However, the default value for both of these on sunxi is 8MB (0x800000),
which doesn't work in our case.

Fix this.

Signed-off-by: Maxime Ripard <maxime at cerno.tech>
---
 configs/CHIP_pro_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/CHIP_pro_defconfig b/configs/CHIP_pro_defconfig
index c8e2e2ae2ca3..d8b8f477772d 100644
--- a/configs/CHIP_pro_defconfig
+++ b/configs/CHIP_pro_defconfig
@@ -20,6 +20,8 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_SYS_NAND_BLOCK_SIZE=0x40000
 CONFIG_SYS_NAND_PAGE_SIZE=0x1000
 CONFIG_SYS_NAND_OOBSIZE=0x100
+CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000
+CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND=0x280000
 CONFIG_AXP_ALDO3_VOLT=3300
 CONFIG_AXP_ALDO4_VOLT=3300
 CONFIG_CONS_INDEX=2
-- 
2.31.1



More information about the U-Boot mailing list