|
2# shufexiu
谢谢斑竹。。。额 突然发现E文还是很烂。貌似是说ysffs是以0作为block的开头,而0被一直定义为一个非法的标记。。
Rather than go through the whole of yaffs changing these numbers, I introduced the idea of an internal block number (that most of yaffs uses) and an
external one (that is aligned to the hardware) with an offset. If someone
uses dev->startBlock of zero then an offset of 1 block is used. This is
reasonably clean if you understand where it is applied, but is likely a bit
confusing if you don't understand the rationale.
解决办法:与其通篇改变yaffs的这些数字,我介绍一个思想:一个内部的编号(yaffs用常用)和一个有相应位移外部的编号(来联系硬件)。如果有些人用dev—>startblock of 0,那么使用位移1block被用了。这是理想的清理方法,如果你理解哪里需要,但是如果不理解基本原理则会有一些混乱。(我绝对属于后者,很混乱)。。
貌似看懂他的英文了,但是不知道他在说什么。他的说法这是yaffs很平常的bug?为什么没修复啊。我怎么感觉每次开机都会增多,难道发布的产品都没这个bug? 或者说这个bug,只有我很幸运的遇到了?有没有简单的方法啊。谢谢了 |
|