来源:内核源码
在mtd的nand驱动代码drivers/mtd/nand/s3c2410.c中,对于nand的platform_driver,其probe函数s3c24xx_nand_probe()最终能够对nand进行分区,其中的分区信息来自于arch/arm/plat-s3c24xx/common-smdk.c中定义的smdk_default_nand_part[],因为NAND的默认分区在smdk_mach_init()时就作为该machine的nand初始化就确定了。
那么,实际中的分区到底用哪个?
--
Regards,
Luke
_______________________________________________
Linux 内核开发中文邮件列表
Linux-...@zh-kernel.org
http://zh-kernel.org/mailman/listinfo/linux-kernel
Linux 内核开发中文社区: http://zh-kernel.org
Seriously speaking, it shoud be according to 'y' of add_mtd_partitions(x,y,z);
Of course, you can parse the args to 'y' from uboot and kernel.
This function report your partitions in Nand driver, so check the second arg 'y'
, its value will be your correct partition info, no matter uboot or kernel.
> _______________________________________________
> Linux 内核开发中文邮件列表
> Linux-...@zh-kernel.org
> http://zh-kernel.org/mailman/listinfo/linux-kernel
> Linux 内核开发中文社区: http://zh-kernel.org
--
*linux-arm-kernel mailing list
mail addr:linux-ar...@lists.infradead.org
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
* linux-arm-NUC900 mailing list
mail addr:NUC...@googlegroups.com
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuo...@gmail.com