DOC2000 corruption problem when reverting to old driver

Kevin Carruthers kevin.carruthers at
Fri Dec 5 14:59:59 EST 2003


I am in the process of migrating our distribution over to use the mtd
drivers from the M-systems drivers.  I have the driver built and working and
can migrate from the old world (2.2.20 + M-systems driver) to the new world
(2.4.21 + mtd).  Once upgraded the mtd drivers work fine.

However, if I downgrade the kernel (and revert to using the M-systems
driver) the flash is corrupted.  First off, should this work?  Everything I
have read in the archives suggests that it should, but since I am new to the
mtd drivers I could have easily over looked something.  I realize this isn't
a support site for the M-systems driver but I am wondering if the mtd driver
should be keeping a compatible flash filesystem.

I see this problem on DOC2000, MD2200-D24 running version 4.2 of M-systems
firmware (should this be replaced when using mtd?).

The only error message I do get when I am back under 2.2.20+M-sys is that
filesystems cannot be mounted due to "wrong fs type, bad option, bad
superblock or too many filesystems mounted".

Reading and writing files using mtd under 2.4.21 never has such issues (that
I have come across).  Attempting to write files to the DOC after the
downgrade usually fails or corrupts the DOC leading to a boot disk failure
or kernel panic (no rootfs).

I have tried 2.4.21, 2.4.23 as well as 2.4.21 patched with the latest mtd
"nightly" as of last week.

Any suggestions for a fix, or further debugging would be greatly
appreciated.  As I am new to the project I am not sure of the best way to
track down a bug of this type (if one even exists).


Kevin Carruthers
NeoLinux Project Manager
Voice: 610-277-8300 x180
Email: kevin.carruthers at

More information about the linux-mtd mailing list