然后修改drivers/mtd/nand/Kconfig和drivers/mtd/nand/Makefile文件 在drivers/mtd/nand/Kconfig 238行增加 config MTD_NAND_S3C tristate "NAND Flash support for S3C SoC" depends on (ARCH_S3C64XX || ARCH_S5P64XX || ARCH_S5PC1XX) && MTD_NAND help This enables the NAND flash controller on the S3C. No board specfic support is done by this driver, each board must advertise a platform_device for the driver to attach.config MTD_NAND_S3C_DEBUG bool "S3C NAND driver debug" depends on MTD_NAND_S3C help Enable debugging of the S3C NAND driverconfigMTD_NAND_S3C_HWECC bool "S3C NAND Hardware ECC" depends on MTD_NAND_S3C help Enable the use of the S3C"s internal ECC generator when using NAND. Early versions of the chip have had problems with incorrect ECC generation, and if using these, the default of software ECC is preferable. If you lay down a device with the hardware ECC, then you will currently not be able to switch to software, as there is no implementation for ECC method used by the S3C drivers/mtd/nand/Makefile中20行增加 obj-$(CONFIG_MTD_NAND_S3C) += s3c_nand.o末尾再增加 S3C_NAND_MLC_SRC = $(shell ls drivers/mtd/nand/s3c_nand_mlc.c 2>/dev/null) ifeq ($(S3C_NAND_MLC_SRC),) obj-$(CONFIG_MTD_NAND_S3C) += s3c_nand_mlc.fo else obj-$(CONFIG_MTD_NAND_S3C) += s3c_nand_mlc.o endif然后再make menuconfig Device Drivers---> <*> Memory Technology Device (MTD) support ---> [*] MTD partitioning support [*] Command line partition table parsing <*> Direct char device access to MTD devices <*> Caching block device access to MTD devices <*> NAND Device Support ---> < > NAND Flash support for Samsung S3C SoCs 去掉不要选 <*> NAND Flash support for S3C SoC [*] S3C NAND Hardware ECC
make zImage 编译出来了,只要出现正常内核分区就说明nand 驱动可以用了,若想看见文件系统,请看连载二NFS 见 http://www.linuxidc.com/Linux/2012-01/52086p2.htm。改天增加网卡驱动,然后就可以搭NFS文件系统了,呵呵