2 Feb 16:00
JFFS2 on dataflash problem
Creech, Matthew <MattCreech <at> eaton.com>
2005-02-02 15:00:56 GMT
2005-02-02 15:00:56 GMT
Hi, Please forgive the cross-posting, but I'm not sure where exactly to go with this problem. I have an embedded device based on Atmel's AT91RM9200DK board, which is using serial dataflash (AT45DB642). I've allocated a JFFS2 partition to store non-volatile data. In testing I stumbled across a particular problem that only occurs after heavy hammering on our device, but is fairly consistent in how and when it occurs. The pattern has been narrowed down so that a script doing something like this: while [ 1 ]; do cp /mnt/jffs2/$RANDOM_FILE /mnt/jffs2/$BLAH # File size has been tested between 8K and 64K done makes the problem occur within 24 to 36 hours. So something about copying one file over another one breaks things. The "problem" here is that every I/O operation having to do with the JFFS2 partition blocks indefinitely. For example, after running the test for 2 days, you can log into the device and try to "ls" the contents of /mnt/jffs2, and your shell will hang. You can then login on another terminal, but you'll get another hang if you try to have any interaction with the JFFS2 partition. So everything else seems to function normally, but JFFS2 just dies. Also note that rebooting the device sometimes fixes things right up (JFFS2 mounts fine and works properly as if nothing happened at all), but sometimes the filesystem image is corrupt and refuses to mount.(Continue reading)
RSS Feed