最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

uboot 的nand的ecc,oob的放置是否和kernel中同步?

工作和技术 crifan 1980浏览 0评论

static int nand_write (struct mtd_info *mtd, loff_t to, size_t len, size_t * retlen, const u_char * buf)
{
return (nand_write_ecc (mtd, to, len, retlen, buf, NULL, NULL));
}

static int nand_write_ecc (struct mtd_info *mtd, loff_t to, size_t len,
      size_t * retlen, const u_char * buf, u_char * eccbuf, struct nand_oobinfo *oobsel)
{
。。。

/* if oobsel is NULL, use chip defaults */
if (oobsel == NULL)
   oobsel = &mtd->oobinfo;

/* Autoplace of oob data ? Use the default placement scheme */
if (oobsel->useecc == MTD_NANDECC_AUTOPLACE) {
   oobsel = this->autooob;
   autoplace = 1;
}
if (oobsel->useecc == MTD_NANDECC_AUTOPL_USR)
   autoplace = 1;
。。。

}

貌似uboot中的oob都是autoplace的???

有待查证

转载请注明:在路上 » uboot 的nand的ecc,oob的放置是否和kernel中同步?

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
79 queries in 0.164 seconds, using 22.11MB memory