S3C2410之NAND Flash MTD配置
2022-10-19 来源:csdn
1 ./drivers/mtd/nand/s3c2410.c
static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info,
struct s3c2410_nand_mtd *nmtd,
struct s3c2410_nand_set *set)
将NAND_ECC_SOFT改为NAND_ECC_NONE
2 ./arch/arm/plat-s3c24xx/common-smdk.c
static struct mtd_partition smdk_default_nand_part[] = {
[0] = {
.name = 'vivi',
.offset = 0x00000000,
.size = 0x00020000,
},
[1] = {
.name = 'param',
.offset = 0x00020000,
.size = 0x00010000,
},
[2] = {
.name = 'kernel',
.offset = 0x00030000,
.size = 0x002c0000,
},
[3] = {
.name = 'rootfs',
.offset = 0x00300000,
.size = 0x00200000,
},
[4] = {
.name = 'usr',
.offset = 0x00500000,
.size = 0x03a00000,
}
};