]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
give userfs a fixed size excluding the BBT blocks and add a r/o 'bbt' partition
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 13 Jun 2013 13:23:39 +0000 (15:23 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 13 Jun 2013 13:23:39 +0000 (15:23 +0200)
include/configs/tx6q.h

index e63437384cefc02f048bf1810bb5e7d9454faaae..50b5971e14bdc191dbd36b143f70d88520e62deb 100644 (file)
        "(env),"                                                        \
        xstr(CONFIG_ENV_RANGE)                                          \
        "(env2),"
+#define CONFIG_SYS_USERFS_PART_STR     "91520k(userfs)"
 #else
 #define CONFIG_SYS_ENV_PART_STR                xstr(CONFIG_ENV_RANGE)          \
        "(env),"
+#define CONFIG_SYS_USERFS_PART_STR     "91904k(userfs)"
 #endif /* CONFIG_ENV_OFFSET_REDUND */
 #else
 #define CONFIG_SYS_ENV_PART_STR                /* no env partition in NAND */
+#define CONFIG_SYS_USERFS_PART_STR     "92288k(userfs)"
 #endif /* CONFIG_ENV_IS_IN_NAND */
 
 /*
 #define MTDPARTS_DEFAULT               "mtdparts=" MTD_NAME ":"        \
        "1m@" xstr(CONFIG_SYS_NAND_U_BOOT_OFFS) "(u-boot),"             \
        CONFIG_SYS_ENV_PART_STR                                         \
-       "4m(linux),16m(rootfs),256k(dtb),-(userfs)"
+       "4m(linux),32m(rootfs),256k(dtb),"                              \
+       CONFIG_SYS_USERFS_PART_STR ",512k(bbt)ro"
 
 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_SDRAM_BASE + 0x1000 - /* Fix this */ \