Kernel panic DiskOnChip /Newbie question
Is there somebody who could help me with following jffs problem?
kernel 2.4.2, mtd cvs snapshot of 02nd March 2001(same problem with original mtd modules from kernel 2.4.2), DOC2000 8MB with firmware 1.21
DOC2000 is detected OK
when I try to do "mount -t jffs /dev/mtdblock0 /test" after "erase /dev/mtd0" (as described in the mtd/jffs HOWTO from the CVS snapshot) I get a Kernel panic:
" Didn´t read all bytes in flash_safe_read(). Returned 0 "
but NFTL workes fine, I can do nftl_format - create a partition - put a minix fs on it and mount it.
Also writing to the nftl partition works fine.
What am I doing wrong?
Best regards
Michael Gibson
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 1 line · [email protected] said:
" DidnŽt read all bytes in
flash_safe_read(). Returned 0 "
The read/write/erase routines for the DiskOnChip hardware don't currently support reads/writes greater than one page, or erases greater than one eraseblock. You need to put a simple loop in to read/write multiple pages and erase multiple blocks when it's asked to do so.
The reason NFTL works OK is because it doesn't ask the hardware driver to do that.
Using JFFS on NAND flash isn't tested very aggressively yet.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]