* Kernel panic DiskOnChip /Newbie question
@ 2001-03-05 12:03 Michael Gibson
2001-03-05 12:39 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Michael Gibson @ 2001-03-05 12:03 UTC (permalink / raw)
To: mtd
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 majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Kernel panic DiskOnChip /Newbie question
2001-03-05 12:03 Kernel panic DiskOnChip /Newbie question Michael Gibson
@ 2001-03-05 12:39 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-03-05 12:39 UTC (permalink / raw)
To: m.gibson; +Cc: mtd
m.gibson@esesixtech.com 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 majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-05 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-05 12:03 Kernel panic DiskOnChip /Newbie question Michael Gibson
2001-03-05 12:39 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox