Hi Teun,

Teun Grinwis wrote:
Hello all,
Can someone give hint where to start debug searching ??

I use distribution 20060511 2.16.16-uc0 on custom MCF 5208 board.
With flash, S29GL064AR4. Debug for mtd, jffs2 set to noisy.

When I mount a mtdblock on jffs2 I got the following error:

See below.
Command: mount -t jffs2 /dev/mtdblock3 /mnt
Command:
Command:
Execution Finished, Exiting
mtdblock: read on "Romfs" at 0x3d400, size 0x200
......

Your root filesystem isn't also on the same flash
as the JFFS2 you are trying to mount is it?

If you where running apps XIP then this would be a problem.

Regards
Greg



MTD do_erase_oneblock(): ERASE 0x000a0000
cfi_send_gen_cmd():,43 cmd=aa addr=00000555 base=00000000 build
addr=00000aaa cm
d_val=00000010
cfi_send_gen_cmd():,44 cmd=55 addr=000002aa base=00000000 build
addr=00000554 cm
d_val=00000010
cfi_send_gen_cmd():,45 cmd=80 addr=00000555 base=00000000 build
addr=00000aaa cm
d_val=00000010
cfi_send_gen_cmd():,46 cmd=aa addr=00000555 base=00000000 build
addr=00000aaa cm
d_val=00000010
cfi_send_gen_cmd():,47 cmd=55 addr=000002aa base=00000000 build
addr=00000554 cm
d_val=00000010
MTD do_erase_oneblock(): enter for loop...
MTD do_erase_oneblock(): chip ready.
*** ILLEGAL INSTRUCTION ***   FORMAT=4
Current process id is 9
BAD KERNEL TRAP: 00000000
PC: [<00000000>]
SR: 2718  SP: 402cfcec  a2: 40281770
d0: 00002710    d1: 00000001    d2: 00000000    d3: 400140f4
d4: 00000001    d5: 00000000    a0: 00000000    a1: 4012fca8
Process pdflush (pid: 9, stackpage=402b3330)
Stack from 402cfcec:<0>
       <0> 00000001<0> 00000000<0> 400140f4<0> 00000001<0> 00000000<0>
00000000<
0> 4012fca8<0> 40281770<0>
       <0> 00002710<0> ffffffff<0> 00000000<0> 40102718<0> 00000000<0>
40024d1a<
0> fffffff4<0> 00000003<0>
       <0> 00000000<0> 00000000<0> 00002010<0> 0000000c<0> 00000000<0>
ffffffff<
0> 00000008<0> 40027f5e<0>
       <0> 40281756<0> 402cfd70<0> 40024d66<0> 40281770<0> 00000003<0>
00000001<
0> 00000000<0> 00000000<0>
       <0> 00000003<0> 4012fca8<0> 400c0294<0> 40281770<0> 00000003<0>
00000001<
0> 00000000<0> 00000003<0>
       <0> 0000000c<0> 00000000<0> ffff94f5<0> 40281720<0> 0000ffff<0>
400c2224<
0> 4012fca8<0> 40281756<0>
Call Trace:<0>
       <0> [<40024cc6>]<0> [<40024cc6>]<0> [<400bf1f4>]<0> [<40027f5e>]<0>
       <0> [<400c2354>]<0> [<400c1dca>]<0> [<400bbb66>]<0> [<4008989c>]<0>
       <0> [<4010d8ba>]<0> [<400410f8>]<0> [<4003a404>]<0> [<40027f6e>]<0>
       <0> [<4011b674>]<0> [<4008040a>]<0> [<4011b674>]<0> [<40115df3>]<0>
       <0> [<4008b262>]<0> [<4011fbd6>]<0> [<4004f33e>]<0> [<40040898>]<0>
       <0> [<4010d8ba>]<0> [<400410f8>]<0> [<400411e6>]<0> [<400366f0>]<0>
       <0> [<40024dd4>]<0> [<4004084e>]<0> [<400367be>]<0> [<400367e8>]<0>
       <0> [<40020b56>]<0>
============================================================================
====
Call Trace:<0>
0: 0x40024cc6, kernel/sched.c:3135
1: 0x40024cc6, kernel/sched.c:3135
2: 0x400bf1f4, drivers/mtd/chips/cfi_util.c:163
3: 0x40027f5e, kernel/printk.c:515
4: 0x400c2354, drivers/mtd/chips/cfi_cmdset_0002.c:1590
5: 0x400c1dca, drivers/mtd/chips/cfi_cmdset_0002.c:1488
6: 0x400bbb66, drivers/mtd/mtdpart.c:268
7: 0x4008989c, fs/jffs2/erase.c:78                                      
jffs2_erase_block
8: 0x4010d8ba, arch/m68knommu/kernel/semaphore.c:129
9: 0x400410f8, mm/pdflush.c:172
10: 0x4003a404, kernel/mutex-debug.c:400
11: 0x40027f6e, kernel/printk.c:523
12: 0x4011b674, ??:0
13: 0x4008040a, fs/jffs2/nodemgmt.c:763                         
jffs2_thread_should_wake
14: 0x4011b674, ??:0
15: 0x40115df3, ??:0
16: 0x4008b262, fs/jffs2/fs.c:380
17: 0x4011fbd6, ??:0
18: 0x4004f33e, fs/super.c:335
19: 0x40040898, mm/page-writeback.c:408
20: 0x4010d8ba, arch/m68knommu/kernel/semaphore.c:129
21: 0x400410f8, mm/pdflush.c:172
22: 0x400411e6, mm/pdflush.c:126
23: 0x400366f0, include/asm/thread_info.h:65
24: 0x40024dd4, kernel/sched.c:3227
25: 0x4004084e, mm/page-writeback.c:391
26: 0x400367be, kernel/kthread.c:95
27: 0x400367e8, kernel/kthread.c:107
28: 0x40020b56, arch/m68knommu/kernel/process.c:132
============================================================================
====
Badness in do_exit at kernel/exit.c:802
Stack from 402cfbc8:<0>
       <0> 402cfbd8<0> 402cfce0<0> 40029936<0> 401149b2<0> 4010fcce<0>
40114c7b<
0> 00000322<0> 0000000c<0>
       <0> 400140f4<0> 00000001<0> 40027f5e<0> 402cfcec<0> 000a0000<0>
40281756<
0> 402cfce0<0> 400140f4<0>
       <0> 00000001<0> 4002304c<0> 0000000b<0> 00000000<0> 402d0000<0>
4011457a<
0> 402b24ce<0> 00000009<0>
       <0> 402b3330<0> 40027f5e<0> 402cfcec<0> 4002314c<0> 40114612<0>
402cfcec<
0> 00000000<0> 401145f5<0>
       <0> 00000009<0> 00000000<0> 40281770<0> 40281720<0> 40023188<0>
402cfcec<
0> 0000000a<0> 000091f6<0>
       <0> 00009203<0> 4012edb4<0> 40027f5e<0> 4002793e<0> 4012edb4<0>
401466ca<
0> 0000000d<0> 00009203<0>
Call Trace:<0>
       <0> [<40027954>]<0> [<400279bc>]<0> [<400b53c6>]<0> [<4002793e>]<0>
       <0> [<40027954>]<0> [<400279bc>]<0> [<400208ec>]<0> [<40102718>]<0>
       <0> [<40024d1a>]<0> [<40027f5e>]<0> [<40024d66>]<0> [<400c0294>]<0>
       <0> [<400c2224>]<0> [<40024cc6>]<0> [<40024cc6>]<0> [<400bf1f4>]<0>
       <0> [<40027f5e>]<0> [<400c2354>]<0> [<400c1dca>]<0> [<400bbb66>]<0>
       <0> [<4008989c>]<0> [<4010d8ba>]<0> [<400410f8>]<0> [<4003a404>]<0>
       <0> [<40027f6e>]<0> [<4011b674>]<0> [<4008040a>]<0> [<4011b674>]<0>
       <0> [<40115df3>]<0> [<4008b262>]<0> [<4011fbd6>]<0> [<4004f33e>]<0>
       <0> [<40040898>]<0> [<4010d8ba>]<0> [<400410f8>]<0> [<400411e6>]<0>
       <0> [<400366f0>]<0> [<40024dd4>]<0> [<4004084e>]<0> [<400367be>]<0>
       <0> [<400367e8>]<0> [<40020b56>]<0>
============================================================================
=====
Call Trace:<0>
0: 0x40027954, kernel/printk.c:377
1: 0x400279bc, kernel/printk.c:386
2: 0x400b53c6, drivers/serial/mcfserial.c:1879
3: 0x4002793e, kernel/printk.c:368
4: 0x40027954, kernel/printk.c:377
5: 0x400279bc, kernel/printk.c:386
6: 0x400208ec, ??:0
7: 0x40102718, net/ipv4/igmp.c:2083
8: 0x40024d1a, kernel/sched.c:3161
9: 0x40027f5e, kernel/printk.c:515
10: 0x40024d66, kernel/sched.c:3182
11: 0x400c0294, drivers/mtd/chips/cfi_cmdset_0002.c:585
12: 0x400c2224, drivers/mtd/chips/cfi_cmdset_0002.c:1575
13: 0x40024cc6, kernel/sched.c:3135
14: 0x40024cc6, kernel/sched.c:3135
15: 0x400bf1f4, drivers/mtd/chips/cfi_util.c:163
16: 0x40027f5e, kernel/printk.c:515
17: 0x400c2354, drivers/mtd/chips/cfi_cmdset_0002.c:1590
18: 0x400c1dca, drivers/mtd/chips/cfi_cmdset_0002.c:1488
19: 0x400bbb66, drivers/mtd/mtdpart.c:268
20: 0x4008989c, fs/jffs2/erase.c:78
21: 0x4010d8ba, arch/m68knommu/kernel/semaphore.c:129
22: 0x400410f8, mm/pdflush.c:172
23: 0x4003a404, kernel/mutex-debug.c:400
24: 0x40027f6e, kernel/printk.c:523
25: 0x4011b674, ??:0
26: 0x4008040a, fs/jffs2/nodemgmt.c:763
27: 0x4011b674, ??:0
28: 0x40115df3, ??:0
29: 0x4008b262, fs/jffs2/fs.c:380
30: 0x4011fbd6, ??:0
31: 0x4004f33e, fs/super.c:335
32: 0x40040898, mm/page-writeback.c:408
33: 0x4010d8ba, arch/m68knommu/kernel/semaphore.c:129
34: 0x400410f8, mm/pdflush.c:172
35: 0x400411e6, mm/pdflush.c:126
36: 0x400366f0, include/asm/thread_info.h:65
37: 0x40024dd4, kernel/sched.c:3227
38: 0x4004084e, mm/page-writeback.c:391
39: 0x400367be, kernel/kthread.c:95
40: 0x400367e8, kernel/kthread.c:107
41: 0x40020b56, arch/m68knommu/kernel/process.c:132
============================================================================
=====
BUG: pdflush/9, lock held at task exit time!
 [403b6446] {alloc_super}
.. held by:           pdflush:    9 [402b2330, 115]
... acquired at:

Tx in advance for your info,

Kind regards

Teun Grinwis

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


--
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to