2011-07-22 10:37:59     Kernel crash + jffs2 + 2010

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

2011-07-22 10:37:59     Kernel crash + jffs2 + 2010

Shyam sundar (INDIA)

Message: 102617   

 

Hello world,

 

I am using 2010 version of uclinux for BF531 customised board.

 

At the startup,my application mounts the jffs2 image from a serial flash, sometimes the kernel crashes and gives the following console print.

 

What could be the problem?

 

 

 

JFFS2 error: (189) read_unknown: REF_UNCHECKED but unknown node at 0x000000

JFFS2 error: (189) read_unknown: Node is {1985,2003,0000000c,e41eb0b1}. Please report this error.

JFFS2 error: (189) read_unknown: REF_UNCHECKED but unknown node at 0x000000

JFFS2 error: (189) read_unknown: Node is {1985,2003,0000000c,e41eb0b1}. Please report this error.

External Memory Addressing Error

Kernel OOPS in progress

HW Error context

CURRENT PROCESS:

COMM=jffs2_gcd_mtd5 PID=189  CPU=0

invalid mm

return address: [0x00073b5a]; contents of:

0x00073b30:  5a94  bf72  b2b0  b270  b230  2542  0000  9159

0x00073b40:  bfb1  0c41  1409  200e  afb2  a050  5410  0c08

0x00073b50:  1009  b3b1  2002  601a  afb1 [9109] 0c01  17f5

0x00073b60:  b3b1  e3cc  b241  e532  001a  e410  0042  0c00

 

ADSP-BF531-0.3 294(MHz CCLK) 98(MHz SCLK) (mpu off)

Linux version 2.6.34.7-ADI-2010R1-svn9581 (shyam@ubuntu) (gcc version 4.3.5 (ADI/svn-4960) ) #255 Fri Jul 22 19:30:47 IST 2011

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 0000c03f  IPEND: 8030  IMASK: 0000  SYSCFG: 0006

  Global Interrupts Disabled (IPEND[4])

  Peripheral interrupts masked off

  Kernel interrupts masked off

  HWERRCAUSE: 0x3

  EXCAUSE   : 0x3f

  interrupts disabled

  physical IVG5 asserted : <0xffa08cf4> { _evt_ivhw + 0x0 }

  physical IVG15 asserted : <0xffa09070> { _evt_system_call + 0x0 }

  logical irq   6 mapped  : <0xffa083a0> { _bfin_coretmr_interrupt + 0x0 }

  logical irq  10 mapped  : <0x000cb1f4> { _err_handler + 0x0 }

  logical irq  11 mapped  : <0x000a98fc> { _sport_uart_err_irq + 0x0 }

  logical irq  16 mapped  : <0x000cb4c8> { _rx_handler + 0x0 }

  logical irq  17 mapped  : <0x000cb47c> { _tx_handler + 0x0 }

  logical irq  18 mapped  : <0x000a9b20> { _sport_uart_rx_irq + 0x0 }

  logical irq  19 mapped  : <0x000a9adc> { _sport_uart_tx_irq + 0x0 }

  logical irq  21 mapped  : <0x000a8fe4> { _bfin_serial_dma_rx_int + 0x0 }

  logical irq  22 mapped  : <0x000a8d5c> { _bfin_serial_dma_tx_int + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x01bf0000> /* kernel dynamic memory (maybe user-space) */

RETX: <0x01ae5b76> /* kernel dynamic memory (maybe user-space) */

RETS: <0x000745bc> { _jffs2_get_inode_nodes + 0xb28 }

PC  : <0x00073b5a> { _jffs2_get_inode_nodes + 0xc6 }

PROCESSOR STATE:

R0 : 00200200    R1 : 0097aca0    R2 : 00000003    R3 : 000000c4

R4 : 00000000    R5 : 00000003    R6 : 00000100    R7 : 00f7e000

P0 : 0017a7c4    P1 : 65746e69    P2 : 01a53e94    P3 : 0097b1e8

P4 : 01cea6e0    P5 : 00000028    FP : 00ade500    SP : 00f7fccc

LB0: ffa09798    LT0: ffa09796    LC0: 00000000

LB1: 00093efa    LT1: 00093eea    LC1: 00000000

B0 : 00000137    L0 : 00000000    M0 : fffffffc    I0 : 01cea6e8

B1 : 000000c0    L1 : 00000000    M1 : 00000001    I1 : 00151cf4

B2 : 7ffff000    L2 : 00000000    M2 : 00001802    I2 : 00000003

B3 : 00000000    L3 : 00000000    M3 : 0000005b    I3 : 00000006

A0.w: 0003355f   A0.x: 00000000   A1.w: 0000079f   A1.x: 00000000

USP : 00000000  ASTAT: 02000000

 

Hardware Trace:

   0 Target : <0x00003c38> { _trap_c + 0x0 }

     Source : <0xffa08dac> { _evt_ivhw + 0xb8 } CALL pcrel

   1 Target : <0xffa08d8e> { _evt_ivhw + 0x9a }

     Source : <0xffa08d80> { _evt_ivhw + 0x8c } IF !CC JUMP pcrel

   2 Target : <0xffa08d70> { _evt_ivhw + 0x7c }

     Source : <0xffa08d6c> { _evt_ivhw + 0x78 } IF CC JUMP pcrel

   3 Target : <0xffa08cf4> { _evt_ivhw + 0x0 }

      FAULT : <0x00073b58> { _jffs2_get_inode_nodes + 0xc4 } R1 = W[P6 + 14](X)

   4 Target : <0x00073b56> { _jffs2_get_inode_nodes + 0xc2 }

     Source : <0x00073b44> { _jffs2_get_inode_nodes + 0xb0 } IF !CC JUMP pcrel (BP)

   5 Target : <0x00073b3c> { _jffs2_get_inode_nodes + 0xa8 }

     Source : <0x000745c2> { _jffs2_get_inode_nodes + 0xb2e } JUMP.S

   6 Target : <0x000745bc> { _jffs2_get_inode_nodes + 0xb28 }

     Source : <0x00072fd2> { _jffs2_mark_node_obsolete + 0x25a } RTS

   7 Target : <0x00072fcc> { _jffs2_mark_node_obsolete + 0x254 }

     Source : <0x00072fa4> { _jffs2_mark_node_obsolete + 0x22c } JUMP.S

   8 Target : <0x00072f9c> { _jffs2_mark_node_obsolete + 0x224 }

     Source : <0x00072f62> { _jffs2_mark_node_obsolete + 0x1ea } JUMP.S

   9 Target : <0x00072f20> { _jffs2_mark_node_obsolete + 0x1a8 }

     Source : <0x00072e90> { _jffs2_mark_node_obsolete + 0x118 } IF !CC JUMP pcrel (BP)

  10 Target : <0x00072e7e> { _jffs2_mark_node_obsolete + 0x106 }

     Source : <0x0007abf6> { ___jffs2_dbg_acct_sanity_check_nolock + 0x12e } RTS

  11 Target : <0x0007abf0> { ___jffs2_dbg_acct_sanity_check_nolock + 0x128 }

     Source : <0x0007ab7e> { ___jffs2_dbg_acct_sanity_check_nolock + 0xb6 } IF CC JUMP pcrel (BP)

  12 Target : <0x0007ab50> { ___jffs2_dbg_acct_sanity_check_nolock + 0x88 }

     Source : <0x0007aaee> { ___jffs2_dbg_acct_sanity_check_nolock + 0x26 } IF CC JUMP pcrel (BP)

  13 Target : <0x0007aac8> { ___jffs2_dbg_acct_sanity_check_nolock + 0x0 }

     Source : <0x00072e7a> { _jffs2_mark_node_obsolete + 0x102 } JUMP.L

  14 Target : <0x00072e6c> { _jffs2_mark_node_obsolete + 0xf4 }

     Source : <0x00072e3c> { _jffs2_mark_node_obsolete + 0xc4 } JUMP.S

  15 Target : <0x00072e0a> { _jffs2_mark_node_obsolete + 0x92 }

     Source : <0x00072df6> { _jffs2_mark_node_obsolete + 0x7e } JUMP.S

Kernel Stack

Stack info:

SP: [0x00f7fbd4] <0x00f7fbd4> /* kernel dynamic memory (maybe user-space) */

FP: (0x00f7ffa4)

Memory from 0x00f7fbd0 to 00f80000

00f7fbd0: 7fffffff [00007f68] 00f7fbe8  00007fe2  00000007  0000ffff  00ade500  00118330

00f7fbf0: 00f7fccc  00000000  00ade500  00003f86  00f7fccc  01cea6e0  0097b1e8  00f7e000

00f7fc10: 00000007  0000003f  00000013  00000068  00f7fbd4  ffffffff  ffffffff  ffa08c8a

00f7fc30: 00030002  00000033  0000003f  000000bd  00000000  00010bda  00008050  00000000

00f7fc50: 00000000  01bf0000  01ae5b76  00010bda  00010bc4  00000006  02001004  00093efa

00f7fc70: ffa09798  00093eea  ffa09796  00000000  00000000  0000079f  00000000  0003355f

00f7fc90: 00000000  00000000  7ffff000  000000c0  00000137  00000000  ffa08db0  ffc00014

00f7fcb0: 00f7e000  00000100  00000003  00000000  fffffffc  00000006  00000003  01ae5b76

00f7fcd0: 00008030  0000c03f  00000000  01bf0000  01ae5b76  00073b5a  000745bc  00200200

00f7fcf0: 02000000  00093efa  ffa09798  00093eea  ffa09796  00000000  00000000  0000079f

00f7fd10: 00000000  0003355f  00000000  00000000  7ffff000  000000c0  00000137  00000000

00f7fd30: 00000000  00000000  00000000  0000005b  00001802  00000001  fffffffc  00000006

00f7fd50: 00000003  00151cf4  01cea6e8  00000000  00ade500  00000028  01cea6e0  0097b1e8

00f7fd70: 01a53e94  65746e69  0017a7c4  00f7e000  00000100  00000003  00000000  000000c4

00f7fd90: 00000003  0097aca0  00200200  00200200  0017a7c4  00000006  0103146c  000000bd

00f7fdb0:<0011e6dc> 00001985  00002003  0000000c  e41eb0b1  01371ba0  00f7e000  00f7e000

00f7fdd0: 00f7e000  00f7fe3c  01cea708  01cea724  65746e69  0000001c  00000028  00f7fef8

00f7fdf0: 00074838  00f7fe74  01a53200  01a53e00  00f7fe28  01a53e00  01a53e2c  000007bf

00f7fe10: 01a53e00  01a53200  00f7fe28  00f7fef8  0007208a  00f7fe74  00a03880  00000000

00f7fe30: 00000eb2  00000000  00000000  00000000  00000000  0003ddd8  00074eea  01a53200

00f7fe50: 0011e748  01a53e00  00c73338  01a53e00  01a53e2c  000007bf  00187d54  01040bb4

00f7fe70: 00f7fe98  00f7fe9c  0000be50  00187d28  01029320  01040b80  01040bac  01cef960

00f7fe90: 01029320  01040b80  01cef960  0000ffff  00f7fec8  ffa09eec  01cef960  00f7fef8

00f7feb0: ffa0a858  274e6fa8  0007857a  00c73338  00f7e000  00f7e000  00000000  ffa0a2b8

00f7fed0: 01a53e00  00f7e000  00f7ff28  ffff0d9a  0000ffff  00f7e000  01a53e00  0000e1a2

00f7fef0: 00f7ff1c  00f7e000  00000000  000797e6  01a53e00  00f7e000  00f7ff28  00f7e000

00f7ff10: 00f7e000  00f7e000  000007bf  00000000  00000000  00000000  00000001  010294a4

00f7ff30:<0000e35e> 00187d28  01041620  0000bbb6  0104164c  00187d54  01041654  00f7ff74

00f7ff50: 00f7ff78  0000be50  00187d28  01029320  01041620  0104164c  01cef4e0  01029320

00f7ff70: 01041620  01cef4e0  00000000  00f7ffa4  ffa09eec  01cef4e0  01cef4e0  00c0dd58

00f7ff90: 000796e0  00000000  00f7e008  00f7e000  00f7e000 (00000000)<0001e75c> 00c0dd58

00f7ffb0: 000796e0  00000000  01a53e00  00000000  00000000  00000000  00000000  0001e704

00f7ffd0: 00001460  00000000  00000000  00f7ffdc  00f7ffdc <00001466> 00000000  00000000

00f7fff0: 00000000  00000000  ffffffff  00000006

Return addresses in stack:

    address : <0x0011e6dc> /* kernel dynamic memory (maybe user-space) */

    address : <0x0000e35e> { _try_to_wake_up + 0xfe }

   frame  1 : <0x0001e75c> { _kthread + 0x58 }

    address : <0x00001466> { _kernel_thread_helper + 0x6 }

Modules linked in:

Kernel panic - not syncing: Kernel exception

Hardware Trace:

Stack info:

SP: [0x00f7fbf0] <0x00f7fbf0> /* kernel dynamic memory (maybe user-space) */

FP: (0x00f7ffa4)

Memory from 0x00f7fbf0 to 00f80000

00f7fbf0:[00145834] 001182b6  00f7fccc  00145834  0017a37e  0017a37e  0017a37e  00f7fc20

00f7fc10: 00003f96  00f7fccc  00f7e000  00000068  0000ffff  ffffffff  ffffffff  ffa08c8a

00f7fc30: 00030002  00000033  0000003f  000000bd  00000000  00010bda  00008050  00000000

00f7fc50: 00000000  01bf0000  01ae5b76  00010bda  00010bc4  00000006  02001004  00093efa

00f7fc70: ffa09798  00093eea  ffa09796  00000000  00000000  0000079f  00000000  0003355f

00f7fc90: 00000000  00000000  7ffff000  000000c0  00000137  00000000  ffa08db0  ffc00014

00f7fcb0: 00f7e000  00000100  00000003  00000000  fffffffc  00000006  00000003  01ae5b76

00f7fcd0: 00008030  0000c03f  00000000  01bf0000  01ae5b76  00073b5a  000745bc  00200200

00f7fcf0: 02000000  00093efa  ffa09798  00093eea  ffa09796  00000000  00000000  0000079f

00f7fd10: 00000000  0003355f  00000000  00000000  7ffff000  000000c0  00000137  00000000

00f7fd30: 00000000  00000000  00000000  0000005b  00001802  00000001  fffffffc  00000006

00f7fd50: 00000003  00151cf4  01cea6e8  00000000  00ade500  00000028  01cea6e0  0097b1e8

00f7fd70: 01a53e94  65746e69  0017a7c4  00f7e000  00000100  00000003  00000000  000000c4

00f7fd90: 00000003  0097aca0  00200200  00200200  0017a7c4  00000006  0103146c  000000bd

00f7fdb0:<0011e6dc> 00001985  00002003  0000000c  e41eb0b1  01371ba0  00f7e000  00f7e000

00f7fdd0: 00f7e000  00f7fe3c  01cea708  01cea724  65746e69  0000001c  00000028  00f7fef8

00f7fdf0: 00074838  00f7fe74  01a53200  01a53e00  00f7fe28  01a53e00  01a53e2c  000007bf

00f7fe10: 01a53e00  01a53200  00f7fe28  00f7fef8  0007208a  00f7fe74  00a03880  00000000

00f7fe30: 00000eb2  00000000  00000000  00000000  00000000  0003ddd8  00074eea  01a53200

00f7fe50: 0011e748  01a53e00  00c73338  01a53e00  01a53e2c  000007bf  00187d54  01040bb4

00f7fe70: 00f7fe98  00f7fe9c  0000be50  00187d28  01029320  01040b80  01040bac  01cef960

00f7fe90: 01029320  01040b80  01cef960  0000ffff  00f7fec8  ffa09eec  01cef960  00f7fef8

00f7feb0: ffa0a858  274e6fa8  0007857a  00c73338  00f7e000  00f7e000  00000000  ffa0a2b8

00f7fed0: 01a53e00  00f7e000  00f7ff28  ffff0d9a  0000ffff  00f7e000  01a53e00  0000e1a2

00f7fef0: 00f7ff1c  00f7e000  00000000  000797e6  01a53e00  00f7e000  00f7ff28  00f7e000

00f7ff10: 00f7e000  00f7e000  000007bf  00000000  00000000  00000000  00000001  010294a4

00f7ff30:<0000e35e> 00187d28  01041620  0000bbb6  0104164c  00187d54  01041654  00f7ff74

00f7ff50: 00f7ff78  0000be50  00187d28  01029320  01041620  0104164c  01cef4e0  01029320

00f7ff70: 01041620  01cef4e0  00000000  00f7ffa4  ffa09eec  01cef4e0  01cef4e0  00c0dd58

00f7ff90: 000796e0  00000000  00f7e008  00f7e000  00f7e000 (00000000)<0001e75c> 00c0dd58

00f7ffb0: 000796e0  00000000  01a53e00  00000000  00000000  00000000  00000000  0001e704

00f7ffd0: 00001460  00000000  00000000  00f7ffdc  00f7ffdc <00001466> 00000000  00000000

00f7fff0: 00000000  00000000  ffffffff  00000006

Return addresses in stack:

    address : <0x0011e6dc> /* kernel dynamic memory (maybe user-space) */

    address : <0x0000e35e> { _try_to_wake_up + 0xfe }

   frame  1 : <0x0001e75c> { _kthread + 0x58 }

    address : <0x00001466> { _kernel_thread_helper + 0x6 }

QuoteReplyEditDelete

 

 

2011-07-24 22:26:46     Re: Kernel crash + jffs2 + 2010

Aaron Wu (CHINA)

Message: 102653   

 

When saying sometimes it's crashed, do you mean most of the time it's working OK but not stable?

QuoteReplyEditDelete

 

 

2011-07-25 01:45:22     Re: Kernel crash + jffs2 + 2010

Shyam sundar (INDIA)

Message: 102655   

 

Hi Aaron,

 

Most of the times it worked. The ratio of success to crash is 10:1.

 

Any clue?

QuoteReplyEditDelete

 

 

2011-07-25 02:18:03     Re: Kernel crash + jffs2 + 2010

Aaron Wu (CHINA)

Message: 102656   

 

Looks like something is wrong with reading the jffs2 image or the jffs2 image itself. Could you try to rebuild the image and/or lower the SPI Flash clock? If curious about the crash log you may find more as described in   docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:analyzing_traces&s[]=kernel&s[]=crash

Attachments

    Outcomes