]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: m28evk: Adjust mtdparts
authorMarek Vasut <marex@denx.de>
Thu, 26 Jun 2014 09:01:28 +0000 (11:01 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jul 2014 12:54:04 +0000 (14:54 +0200)
Adjust the mtdparts to also consider factory-programmed config block.

Signed-off-by: Marek Vasut <marex@denx.de>
include/configs/m28evk.h

index c3bdd4b597820491f89a36e3c4380a281cc87bf9..89f9785cabc8c6730d2d1f2c4f5789353152a5e8 100644 (file)
@@ -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)
 
 #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