[Yaffs] Re: yaffs ECC check error! Need help ?????????

Wookey wookey@aleph1.co.uk
Fri, 12 Nov 2004 12:08:41 +0000


+++ zheng wei [04-11-12 10:25 +0800]:
> Hi???sir???
> I don't use the MTD ECC, I use the yaffs itself ECC, and there are some errors:
> 
> Mounted devfs on /dev
> Freeing init memory: 76K
> zw: mount /etc as ramfs
> zw: re-create the /etc/mtab entries
> zw: /bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/3 /
> zw: /sbin/insmod -f /lib/yaffs.o
> zw: /bin/mount -t yaffs /dev/mtdblock/4 /usr
> yaffs: dev is 7940 name is "1f:04"
> ecc_code : c3 ff 33 30 f3 3f   //////////////////////////  a little
> similar !!!! c3 ff and ff c3 ???
> ecc_calc : ff c3 33 f3 30 3f

Hmm, yes -I'm nt sure exactly what's going on there but it does look like
bytes 1&2 and 4&5 of the ecc are swapped in every case. Looks like you might
have an endianess or byte-laning problem somewhere. In the driver?

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/     play: http://www.chaos.org.uk/~wookey/