diff --git a/target/linux/xburst/config-2.6.28 b/target/linux/xburst/config-2.6.28 index f0fe33f53..ede232208 100644 --- a/target/linux/xburst/config-2.6.28 +++ b/target/linux/xburst/config-2.6.28 @@ -251,7 +251,21 @@ CONFIG_MMC_JZ=y CONFIG_MODULE_SRCVERSION_ALL=y CONFIG_MODVERSIONS=y CONFIG_MSDOS_FS=y -# CONFIG_MTD is not set +CONFIG_MTD_BADBLOCK_FLAG_PAGE=127 +# CONFIG_MTD_HW_BCH_ECC is not set +CONFIG_MTD_HW_HM_ECC=y +# CONFIG_MTD_HW_RS_ECC is not set +# CONFIG_MTD_MTDBLOCK_WRITE_VERIFY_ENABLE is not set +CONFIG_MTD_NAND=y +# CONFIG_MTD_NAND_CS2 is not set +# CONFIG_MTD_NAND_CS3 is not set +# CONFIG_MTD_NAND_CS4 is not set +CONFIG_MTD_NAND_JZ4740=y +CONFIG_MTD_NAND_MULTI_PLANE=y +CONFIG_MTD_OOB_COPIES=3 +# CONFIG_MTD_ROOTFS_ROOT_DEV is not set +# CONFIG_MTD_ROOTFS_SPLIT is not set +# CONFIG_MTD_SW_HM_ECC is not set # CONFIG_NETFILTER is not set # CONFIG_NET_SCHED is not set # CONFIG_NEW_LEDS is not set diff --git a/target/linux/xburst/patches-2.6.28/670-fix-compile-jz-nand-error.patch.patch b/target/linux/xburst/patches-2.6.28/670-fix-compile-jz-nand-error.patch.patch new file mode 100644 index 000000000..e87a77ea4 --- /dev/null +++ b/target/linux/xburst/patches-2.6.28/670-fix-compile-jz-nand-error.patch.patch @@ -0,0 +1,27 @@ +From c813c2fcb76ffae92f2728d11f44169a3c3d6834 Mon Sep 17 00:00:00 2001 +From: Xiangfu Liu +Date: Sun, 26 Jul 2009 13:00:34 +0800 +Subject: [PATCH] fix-compile-jz-nand-error.patch + +Signed-off-by: Xiangfu Liu +--- + include/linux/mtd/partitions.h | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h +index c92b4d4..6090f0e 100644 +--- a/include/linux/mtd/partitions.h ++++ b/include/linux/mtd/partitions.h +@@ -38,6 +38,9 @@ struct mtd_partition { + char *name; /* identifier string */ + u_int32_t size; /* partition size */ + u_int32_t offset; /* offset within the master MTD space */ ++ char use_planes; /* flag to specify whether multiple planes of ++ * NAND is used in the partition ++ */ + u_int32_t mask_flags; /* master MTD flags to mask out for this partition */ + struct nand_ecclayout *ecclayout; /* out of band layout for this partition (NAND only)*/ + struct mtd_info **mtdp; /* pointer to store the MTD object */ +-- +1.6.0.4 +