diff options
author | Marek Vasut <marex@denx.de> | 2014-06-26 11:01:28 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-07-09 14:54:04 +0200 |
commit | 76582f9dc0a09e40e9c9ae04bd8a28a15df0aa40 (patch) | |
tree | 32cce5f2faa8ff685389008964ff2e87cce3aa9d | |
parent | 31b57a52b26f6333e645b37a5a83a43589f269b8 (diff) | |
download | u-boot-imx-76582f9dc0a09e40e9c9ae04bd8a28a15df0aa40.zip u-boot-imx-76582f9dc0a09e40e9c9ae04bd8a28a15df0aa40.tar.gz u-boot-imx-76582f9dc0a09e40e9c9ae04bd8a28a15df0aa40.tar.bz2 |
ARM: m28evk: Adjust mtdparts
Adjust the mtdparts to also consider factory-programmed config block.
Signed-off-by: Marek Vasut <marex@denx.de>
-rw-r--r-- | include/configs/m28evk.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h index c3bdd4b..89f9785 100644 --- a/include/configs/m28evk.h +++ b/include/configs/m28evk.h @@ -64,8 +64,8 @@ #if defined(CONFIG_CMD_NAND) && defined(CONFIG_ENV_IS_IN_NAND) #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE #define CONFIG_ENV_SECT_SIZE (128 * 1024) -#define CONFIG_ENV_RANGE (512 * 1024) -#define CONFIG_ENV_OFFSET 0x300000 +#define CONFIG_ENV_RANGE (4 * CONFIG_ENV_SECT_SIZE) +#define CONFIG_ENV_OFFSET (24 * CONFIG_ENV_SECT_SIZE) /* 3 MiB */ #define CONFIG_ENV_OFFSET_REDUND \ (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE) @@ -79,13 +79,12 @@ #define MTDIDS_DEFAULT "nand0=gpmi-nand" #define MTDPARTS_DEFAULT \ "mtdparts=gpmi-nand:" \ - "3m(bootloader)ro," \ - "512k(environment)," \ - "512k(redundant-environment)," \ - "4m(kernel)," \ - "128k(fdt)," \ - "8m(ramdisk)," \ - "-(filesystem)" + "3m(u-boot)," \ + "512k(env1)," \ + "512k(env2)," \ + "14m(boot)," \ + "238m(data)," \ + "-@4096k(UBI)" #else #define CONFIG_ENV_IS_NOWHERE #endif |