jffs2 with sync burst mode
steve.wahl at qlogic.com
Thu Mar 10 14:25:19 EST 2005
Just a suggestion: Copying, DD, mkfs.jffs2 all will write large
buffers to your flash, probably aligned on nice address boundaries,
too. The filesystem *may* be writing small buffers of wierd lengths
and perhaps not well aligned; and this may be what causes your
problems to surface.
[ I don't actually know what kind of writes and reads the filesystem
does. I subscribe to this list for the MTD half, not the JFFS
part. :-) ]
Look real closely at bursting with odd lengths and/or alignment; see
if JFFS2 is doing any of these, and then see if that causes your
hardware to react badly.
Since your raw dumps of the flash after the fact appear good(?), I'd
concentrate on the read operations. (If the dumps were bad, I'd look
at the writes.)
If your hardware screws up with unusual alignment, well, it's not all
that rare of a bug to find.
On Thu, Mar 10, 2005 at 05:40:24PM +0100, Konstantin Kletschke wrote:
> Am 2005-03-10 15:54 +0000 schrieb Artem B. Bityuckiy:
> > OK, why does this mean JFFS2 is guilty of this? Why don't you suspect your
> > drivers? Why don't you suspect that you flashed your (say, correct) image
> > incorrectly?
> The image is created in different ways, copied, dd'ed, mkfs.jffs2. Same
> error picture.
> All other constellations in software on this Hardware are working
> Kernel XIP out of this Flash device with this settings runs perfect.
> No matter if partitions are cat'ed or dd'ed or files copied and such:
> identical md5sums read back.
> I tested cramfs as rootfilesystem which works ok also.
> > Just configure your kernel properly: switch on the "Test driver using RAM"
> > (MTD_MTDRAM) option in your kernel configuration. Type "modprobe mtdram"
> > if you have configured it as the kernel module.
> > If you do this your JFFS2 will work over emulated 4MiB in-RAM flash and
> > this will help you to exclude driver problems.
> No clue until now. On Host-PC or on the embedded system?
> GPG KeyID EF62FCEF
> Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF
> Linux MTD discussion mailing list
More information about the linux-mtd