Nand flash ecc校验
linux ecc校验
uboot和kernel的ecc计算方法有点不一样的,但是计算结果是一样的,但是至于为什么默认的kernel跑步起来,现在我没有看,将来有机会再研究: 1076 * func ecc.read_subpage is have some error. 1077 * check ecc fail. 1078 */ 1079 /* Now read the page into the buffer */ 1080 if (unlikely(ops->mode == MTD_OOB_RAW)) 1081 ret = chip->ecc.read_page_raw(mtd,chip,bufpoi); 1082 // else if (!aligned && NAND_SUBPAGE_READ(chip) &&?!oob) 1083 // ret = chip->ecc.read_subpage(mtd,col,bytes,bufpoi);//nand_read_subpage? 1084 else 1085 ret = chip->ecc.read_page(mtd,Arial;font-size:16px;line-height:26px;">1086 if (ret < 0) 1087 break; 1082和1083行注释掉, 使用read_page读取flash。 在linux2.6.29内核以后nand_read_subpage也没有什么问题了。。 因nand_read_subpage引起的问题: uncorrectable error : <3>end_request: I/O error,dev mtdblock2,sector 0 是调用nand_read_subpage接口读取OOB时,读取时只读取六个字节,即aligned_len=6, 通过printk打印发现这六个字节后面的两三个有问题,不知是不是因为硬件的不稳定引起的,如果将aligned_len+=3,就没有问题了,不知道哪个高手,可以给我指点指点这个是问什么? http://blog.chinaunix.net/uid-14833587-id-76514.html(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- React高阶组件
- c# – 从DataGrid中选择DataGridCell
- ruby-on-rails – 用户如何通过rails app在Twitter上发帖?
- flash 游戏 算24点,扫雷开发备忘。
- Ruby:Paperclip,S3和Deep-cloning
- 南沙政府应急系统之GIS一张图(arcgis api for flex)讲解(
- postgresql无法远程登录
- c# – .net core websockets获取DbContext
- ruby-on-rails – Enumerator.new如何使用块传递?
- Swift - 使用NSNotificationCenter发送通知,接收通知