etop-wesley / hac

1 stars 0 forks source link

u-boot write.yaffs cause bad blocks #7

Closed etop-wesley closed 14 years ago

etop-wesley commented 14 years ago
  1. porting the write.yaffs utils from http://blog.chinaunix.net/u3/101649/showart_2134240.html
  2. create yaffs image from FEILING's mkyaffs2image
  3. write.yaffs to nand
  4. rebooting, then uboot nand bad, there are bad blocks in yaffs partitions

*after testing, if seems the oob data in yaffs2 image(created by FEILING mkyaffs2image) are wrong! the oob[0] , oob[1] is 0x00, so u-boot thing it is a bad block

*download a mkyaffs2image from 100ask u-boot sounds good, but the linux can not mount the yaffs,

etop-wesley commented 14 years ago

wrong mkyaffs2image tools for ok2440v3 use the mkyaffs2image from ok2440v3 release, usage: ./mkyaffs2image

do not appent a "0" at the end of this command! otherwise, it would cause lots of "bad block", I don't know why!

/WX