Linux_SPINAND_DevelopmentGuide-03
4 模块配置
4.1 uboot 模块配置
Device Drivers-->Sunxi flash support-->
[*]Support sunxi nand devices
[*]Support sunxi nand ubifs devices
[*]Support COMM NAND V1 interface
如下图:

图 4-1: u-boot-spinand-menuconfig
4.2 kernel 模块配置
Device Drivers->Memory Technology Device(MTD) support-->sunxi-nand

图 4-2: UBI

图 4-3: ker_nand-cfg

图 4-4: ker_spinand
Device Drivers->SPI support

图 4-5: spi-1

图 4-6: spi-2
Device Drivers->DMA Engine support

图 4-7: DMA-1

图 4-8: DMA-2
Device Drivers->SOC(System On Chip)

图 4-9: SID
File systems-->Miscellaneous filesystems-->

图 4-10: menuconfig_spinand_ubifs
4.3 env.cfg
在 env.cfg 中添加修改下值,setargs_nand_ubi 先 copy 一份 setargs_nand 再添加对应变量

图 4-11: build-mkcmd