Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Using NOR dataflash with jffs2 [SOLVED]
PostPosted: Tue Dec 25, 2007 4:56 pm 
Offline

Joined: Tue Nov 27, 2007 10:30 pm
Posts: 3
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


Last edited by kolotsey on Thu Jan 03, 2008 4:45 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 25, 2007 6:32 pm 
Offline

Joined: Tue Nov 27, 2007 10:30 pm
Posts: 3
And I discover that this error always occurs when I tries to create files larger than 4096 bytes. Smaller files are reads and writes without errors.
Code:
#ret=`cat /mnt/jffs/1`; echo -n $ret>>/mnt/jffs/1; ls -l /mnt/jffs/1; cat /mnt/jffs/1>/dev/null
-rw-r--r--    1 root     root            4 Jan  1 00:14 /mnt/jffs/1

...

# ret=`cat /mnt/jffs/1`; echo -n $ret>>/mnt/jffs/1; ls -l /mnt/jffs/1; cat /mnt/jffs/1>/dev/null
-rw-r--r--    1 root     root         2048 Jan  1 00:15 /mnt/jffs/1
# ret=`cat /mnt/jffs/1`; echo -n $ret>>/mnt/jffs/1; ls -l /mnt/jffs/1; cat /mnt/jffs/1>/dev/null
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000048)
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000048)
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000048)
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000048)
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000058)
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000058)
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000058)
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000058)
Node totlen on flash (0xffffffff) != totlen from node ref (0x0000005c)
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000060)
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000060)
-rw-r--r--    1 root     root         4096 Jan  1 00:15 /mnt/jffs/1
Node CRC ffffffff != calculated CRC f09e7845 for node at 0026122c
Node CRC ffffffff != calculated CRC f09e7845 for node at 0026122c
cat: read error: Input/output error


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 03, 2008 4:45 pm 
Offline

Joined: Tue Nov 27, 2007 10:30 pm
Posts: 3
Solution is here:
http://lists.infradead.org/pipermail/li ... 18195.html
http://lists.infradead.org/pipermail/li ... 18196.html

Thanks for your replies


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: