当前位置:  技术问答>linux和unix

关于nandflash驱动S3C_nand.c的疑问

    来源: 互联网  发布时间:2017-03-30

    本文导语:  // samsung  K9GAG08U0D  MLC nand flash  oob size =218 Byte /* static struct nand_ecclayout s3c_nand_oob_mlc_218_8bit = {         .eccbytes = 104,         .eccpos = {                    114,115,116,117,118,119,120,121,122,123,  ...

// samsung  K9GAG08U0D  MLC nand flash  oob size =218 Byte
/*
static struct nand_ecclayout s3c_nand_oob_mlc_218_8bit = {
        .eccbytes = 104,
        .eccpos = {
                   114,115,116,117,118,119,120,121,122,123,
                   124,125,126,127,128,129,130,131,132,133,
                   134,135,136,137,138,139,140,141,142,143,
                   144,145,146,147,148,149,150,151,152,153,
                   154,155,156,157,158,159,160,161,162,163,
                   164,165,166,167,168,169,170,171,172,173,
                   174,175,176,177,178,179,180,181,182,183,
                   184,185,186,187,188,189,190,191,192,193,
                   194,195,196,197,198,199,200,201,202,203,
                   204,205,206,207,208,209,210,211,212,213,
                   214,215,216,217 },
        .oobfree = {
                {.offset = 2,
                 .length = 110}}
};
*/
// samsung  K9GAG08U0E  MLC nand flash  oob size =436 Byte
static struct nand_ecclayout s3c_nand_oob_mlc_232_8bit = {
        .eccbytes = 208,
        .eccpos = {
                   24,25,26,27,28,29,30,31,32,33,
                   34,35,36,37,38,39,40,41,42,43,
                   44,45,46,47,48,49,50,51,52,53,
                   54,55,56,57,58,59,60,61,62,63,
                   64,65,66,67,68,69,70,71,72,73,
                   74,75,76,77,78,79,80,81,82,83,
                   84,85,86,87,88,89,90,91,92,93,
                   94,95,96,97,98,99,100,101,102,103,
                   104,105,106,107,108,109,110,111,112,113,
                   114,115,116,117,118,119,120,121,122,123,
                   124,125,126,127,


                   128,129,130,131,132,133,134,135,136,137,
                   138,139,140,141,142,143,144,145,146,147,
                   148,149,150,151,152,153,154,155,156,157,
                   158,159,160,161,162,163,164,165,166,167,
                   168,169,170,171,172,173,174,175,176,177,
                   178,179,180,181,182,183,184,185,186,187,
                   188,189,190,191,192,193,194,195,196,197,
                   198,199,200,201,202,203,204,205,206,207,
                   208,209,210,211,212,213,214,215,216,217,
                   218,219,220,221,222,223,224,225,226,227,
                   228,229,230,231
                   },
        .oobfree = {
                {.offset = 2,
                 .length = 22}}
};


求解为什么这段218obb的代码要注释掉?还有开发板是2Gnandflash 型号K9GA08U0D,为什么要用下面那个型号的obb?这是OK6410开发板nandflash的源码上的
1!!!!!!!!!!!!!!!!!!!!!这是为什么啊,郁闷

|
这个是两个版本的看你是用的什么板子了,像这样的源代码里面都写了适合好多板子的源代码的,在需要哪个的适合就调用哪个,你去看u-boot里面很多都是这样写的

    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • nandflash 驱动出了问题还是内核配置出了问题?
  • MLC nandflash驱动
  • 移植uboot时,加入nandflash的不解
  • NandFlash移植问题:Failed ECC read...
  • 求助:如何访问nandflash分区?
  • 如何修改linux系统自带mtd驱动的情况下支持2G nandflash


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,