Hi!
I have a problem when trying to read newly created files from dataflash.
My jffs2 filesystem divided into partitions and mounts whithout any error.
I can read any existing file from mounted filesystem without problems.
But when I try to write a file to dataflash, I get this error:
Code:
cp /bin/busybox /mnt/jffs/busybox
Node totlen on flash (0xffffffff)! = Totlen from node ref (0x00000044)
Node totlen on flash (0xffffffff)! = Totlen from node ref (0x0000000c)
Node totlen on flash (0xffffffff)! = Totlen from node ref (0x0000000c)
Node CRC ffffffff! = Calculated CRC f09e7845 for node at 004d0dfc
Then when I try to read this (created by me) file, I get IO error:
Code:
cat / mnt / jffs / busybox> / dev / null
Node CRC ffffffff! = Calculated CRC f09e7845 for node at 004d1334
Node CRC ffffffff! = Calculated CRC f09e7845 for node at 004d1334
cat: read error: Input / output error
So, I could read existing files from jffs, but I could't create and read new files.
I look for a solution of this problem in this forum and in the Internet, but did not find it.
I tried to use another dataflash, but it does not help.
My system configuration:
AT91RM9200,
linux 2.6.23
Code:
cat /proc/mtd
dev: size erasesize name
mtd0: 00260000 00010000 "images"
mtd1: 005a0000 00010000 "jffs"
Code:
mount |grep jffs
/dev/mtdblock1 on /mnt/jffs type jffs2 (rw)
Thanks in advance