2010-06-08 04:30:44     CRC-Problems with jffs2 Filesystems

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-06-08 04:30:44     CRC-Problems with jffs2 Filesystems

Patrick Hotz (GERMANY)

Message: 90191   

 

Hello,

 

we have currently big problems with some devices using the uClinux on a jffs2 filesystem.

There are three partitions on a 8Meg-Flash (PF48F2000P0ZBQ0S)...

 

root:~> cat /proc/mtd

dev:    size   erasesize  name

mtd0: 00040000 00020000 "u-boot (256k)"

mtd1: 00140000 00020000 "uClinux-kernel (1280k)"

mtd2: 00680000 00020000 "filesystem (6656k)"

 

There is running uClinux 2008R1 (i know that this is very old but we can´t use a newer because we working with a special software which is only running on this version...)

 

The problem we have is following..

 

The devices are running all the time (24 hours/day) and recently we can´t connect to some of the devices using telnet.

If i ping the devices it looks that this is working fine

     root:~> ping 192.168.10.226

     PING 192.168.10.226 (192.168.10.226): 56 data bytes

     64 bytes from 192.168.10.226: icmp_seq=0 ttl=64 time=0.5 ms

     64 bytes from 192.168.10.226: icmp_seq=1 ttl=64 time=0.3 ms

     64 bytes from 192.168.10.226: icmp_seq=2 ttl=64 time=0.3 ms

     ...

 

Also there are some other programs running which i can also use (there is a tcp socket listening)...

 

 

 

That all shows me (but i am not a expert) that there is something wrong with the filesystem.. (programs are running on the RAM but a new telnet-session can´t be established because the program "telnetd" is not running jet and must be first loaded from flash)

 

Is there a possibility to check the jffs2-filesystem ? Maybe there are some CRC-Errors ?

 

 

 

For future i have planned a "read-only" fjjs2-filesystem which is only changed to read/write if there is some new files to write... how i can do this on the fly?

 

 

 

Best regards,

Patrick

TranslateQuoteReplyEditDelete

 

 

2010-06-08 15:03:28     Re: CRC-Problems with jffs2 Filesystems

Mike Frysinger (UNITED STATES)

Message: 90196   

 

i'm not sure your limited research can draw the conclusion that there is a CRC problem with your jffs2 system.  i think you need to debug it a bit more to find out what's going wrong.

QuoteReplyEditDelete

 

 

2010-06-11 02:10:32     Re: CRC-Problems with jffs2 Filesystems

Patrick Hotz (GERMANY)

Message: 90253   

 

Hi,

 

sorry for the long delay but it is very tricky to reconstruct this problem.

 

Now i have found out that there is a problem with "libcrypt.so.0" ==> means this lib can´t be loaded...

 

So, i can´t run any new prog. which uses this lib and therefore i can´t connect with telnet or ftp.

 

 

 

I am very confused because i thought the uClinux is a relative save operating system....

 

 

 

 

 

Patrick

TranslateQuoteReplyEditDelete

 

 

2010-06-11 02:58:27     Re: CRC-Problems with jffs2 Filesystems

Patrick Hotz (GERMANY)

Message: 90254   

 

by the way,

 

is there a way to set the filesystem to "read-only" and "read-write" on the fly?

TranslateQuoteReplyEditDelete

 

 

2010-06-11 03:08:24     Re: CRC-Problems with jffs2 Filesystems

Mike Sinkovsky (RUSSIAN FEDERATION)

Message: 90255   

 

> is there a way to set the filesystem to "read-only" and "read-write" on the fly?

 

mount -o remount,rw,sync / 

 

At least on UBIFS it works.

QuoteReplyEditDelete

 

 

2010-06-12 12:12:30     Re: CRC-Problems with jffs2 Filesystems

Mike Frysinger (UNITED STATES)

Message: 90283   

 

that should work regardless of fs type.  might have to specify the source device too if mount cant figure out /etc/fstab and/or /etc/mtab.

QuoteReplyEditDelete

 

 

2010-06-12 12:13:20     Re: CRC-Problems with jffs2 Filesystems

Mike Frysinger (UNITED STATES)

Message: 90284   

 

it cant be loaded ever ?  or just after some time ?  can the file be read, or is there some other error ?

QuoteReplyEditDelete

 

 

2010-06-13 16:47:40     Re: CRC-Problems with jffs2 Filesystems

Patrick Hotz (GERMANY)

Message: 90300   

 

Hi,

 

is is very confusing for me,

 

most of the time the it is following:

The system boots after power on an everything is running..

I connect to the system over telnet and this works also.

 

 

 

Then i do nothing for about 5 hours (or sometimes more), and afterwards

i start a other prog (for example ls or df) and this fails... (libcrypt can´t be loaded).

TranslateQuoteReplyEditDelete

 

 

2010-06-14 02:50:44     Re: CRC-Problems with jffs2 Filesystems

Wolfgang Muees (GERMANY)

Message: 90301   

 

Hmmm... is this libcrypt patched to use L1 SRAM on Blackfin?

 

Then you may fall short of internal RAM.

 

 

 

regards

 

Wolfgang

TranslateQuoteReplyEditDelete

 

 

2010-06-15 18:42:14     Re: CRC-Problems with jffs2 Filesystems

Mike Frysinger (UNITED STATES)

Message: 90329   

 

why is your busybox linked against libcrypt ?

 

can you read the file at all, or just not dynamically load it ?

Attachments

    Outcomes