All,I'm consulting with a company to help them tidy up a 2.6.22 kernel image running on an embedded ARM 9 processor running at 200MHz on a device that has 32MB of DRAM (2 banks of 16MB) and a YAFFS2 File System. WORKS - When they use a Kernel built in a 16MB configuration, their YAFFS2 file system runs well. FAILS - However, when they try running a kernel build in a 24MB or 32MB configuration, the system boots up okay; but file copies from NAND to NAND encounter segmentation faults with an "unable to handle kernel paging request..." error. Testing...Copies from SD card to SD Card, from SD Card to NAND and from NAND to SD Card all seem to be working fine. Also, previous tests showed that booting from ramdisk seemed to be working fine (in a 16MB as well as a 32MB configuration). If any of you have insights or advice as to where to look and/or what may be the cause, please let me know.Onercp libQtNetwork.so.4 tmp
Unable to handle kernel paging request at virtual address ffffffff
pgd = c1300000
[ffffffff] *pgd=07002031, *pte=00000000, *ppte=00000000
Internal error: Oops: 801 [#1]
Modules linked in: mm6p_ad7879
CPU: 0 Not tainted (2.6.22 #24)
PC is at prune_dcache+0x80/0x184
LR is at prune_dcache+0x30/0x184
pc : [<c008a210>] lr : [<c008a1c0>] psr: 20000013
sp : c02a5ec0 ip : c02a5ec0 fp : c02a5eec
r10: c01ca93c r9 : 00000001 r8 : 00000037
r7 : 00000000 r6 : c01ca924 r5 : 00000190 r4 : c1f2ced8
r3 : c01ca93c r2 : ffffffff r1 : c1f2ce7c r0 : 00000000
Flags: nzCv IRQs on FIQs on Mode SVC_32 Segment kernel
Control: 0005317f Table: 08300000 DAC: 00000017
Process kswapd0 (pid: 31, stack limit = 0xc02a4260)
Stack: (0xc02a5ec0 to 0xc02a6000)
5ec0: 000000d0 00000080 00000190 c022d6c0 00000190 000000d0 00000080 00000000
5ee0: c02a5f04 c02a5ef0 c008a344 c008a1a0 c00519b8 00000080 c02a5f3c c02a5f08
5f00: c0066858 c008a324 c0260e70 00001a42 00000000 00000000 c01ca1d0 00000000
5f20: 0000000a 00000000 c01ca1d0 00000000 c02a5fd4 c02a5f40 c0066c74 c0066780
5f40: 00000000 c024a01c 00000000 c02a4000 00001a42 c02a5fa4 00000000 00000000
5f60: 00000001 00000000 00000000 00000000 000000d0 00000001 00000001 00000020
5f80: 0000003c 00000000 00000000 c0260d60 c004ea2c c02a5f94 c02a5f94 0000000a
5fa0: c0260e70 00000000 c02a5fd4 c02a4000 c01ca1d0 c00669c0 00000000 00000000
5fc0: 00000000 00000000 c02a5ff4 c02a5fd8 c004e700 c00669d0 00000000 00000000
5fe0: 00000000 00000000 00000000 c02a5ff8 c003df90 c004e6b4 04002002 40402300
Backtrace:
[<c008a190>] (prune_dcache+0x0/0x184) from [<c008a344>] (shrink_dcache_memory+0x30/0x50)
[<c008a314>] (shrink_dcache_memory+0x0/0x50) from [<c0066858>] (shrink_slab+0xe8/0x178)
r4:00000080
[<c0066770>] (shrink_slab+0x0/0x178) from [<c0066c74>] (kswapd+0x2b4/0x3d4)
[<c00669c0>] (kswapd+0x0/0x3d4) from [<c004e700>] (kthread+0x5c/0x94)
[<c004e6a4>] (kthread+0x0/0x94) from [<c003df90>] (do_exit+0x0/0x7c4)
r6:00000000 r5:00000000 r4:00000000
Code: e5913000 e5912004 e5832004 e5811004 (e5823000)
Unable to handle kernel paging request at virtual address ffffffff
pgd = c1300000
[ffffffff] *pgd=07002031, *pte=00000000, *ppte=00000000
Internal error: Oops: 1 [#2]
Modules linked in: mm6p_ad7879
CPU: 0 Not tainted (2.6.22 #24)
PC is at prune_dcache+0x70/0x184
LR is at prune_dcache+0x30/0x184
pc : [<c008a200>] lr : [<c008a1c0>] psr: 20000013
sp : c09d1b68 ip : c09d1b68 fp : c09d1b94
r10: c01ca93c r9 : 00000001 r8 : 00000080
r7 : 00000000 r6 : c01ca924 r5 : 00000190 r4 : 00000082
r3 : 00000000 r2 : 00000001 r1 : ffffffff r0 : 00000000
Flags: nzCv IRQs on FIQs on Mode SVC_32 Segment user
Control: 0005317f Table: 08300000 DAC: 00000015
Process cp (pid: 193, stack limit = 0xc09d0260)
Stack: (0xc09d1b68 to 0xc09d2000)
1b60: 00000000 00000082 00000190 c022d6c0 00000190 000201d2
1b80: 00000100 00000000 c09d1bac c09d1b98 c008a344 c008a1a0 c00519b8 00000082
1ba0: c09d1be4 c09d1bb0 c0066858 c008a324 c09d1bac 00001a83 0000030b 00000000
1bc0: 00000008 00000008 00000040 00000000 c09d1c6c 00000000 c09d1c44 c09d1be8
1be0: c0066ee0 c0066780 c00610ec 000201d2 c01ca464 00001a83 00000001 00000040
1c00: 000201d2 00000001 00000001 00000020 0000003c 00000000 c09d1c44 c01ca46c
1c20: 000201d2 00000042 c0245040 00000000 00000000 c01ca460 c09d1c9c c09d1c48
1c40: c0061d30 c0066da4 00000000 00000000 c01ca464 000201d2 00000000 00000080
1c60: 00000010 c09d0000 00000000 00000000 005bb000 0000000a 0000000a 000005e6
1c80: c083c230 c083c234 00000020 000007d2 c09d1d1c c09d1ca0 c0063890 c0061b70
1ca0: 005bb000 c1f2b5a0 00001000 c1d551b8 c01cc508 00001000 c09d1d14 c09d1cc8
1cc0: c00c9a54 c00c7690 00001000 c09d1d4c c01dc408 00000140 c01ca1d0 c0216a20
1ce0: bea437f8 00000000 c0216b78 c0216a58 c00645d8 c09d1dcc c083c230 00000020
1d00: c1f2b5a0 000005dc 00000000 c1f2b5a0 c09d1d44 c09d1d20 c0063a94 c00637e0
1d20: 00000001 c09d1dcc 00000000 00000020 00000001 c083c230 c09d1d64 c09d1d48
1d40: c0063b80 c0063a30 c09d1dcc 00000000 c09d1dcc 00000000 c09d1d94 c09d1d68
1d60: c0063d30 c0063b00 000000ae 004c4b40 00000000 000005bc 000005bc 00001000
1d80: 007d22c6 00000000 c09d1e24 c09d1d98 c005da2c c0063bb0 00000001 005bb000
1da0: c09d1ee0 c1f2b5a0 c1f2b5e4 c083c230 c083c198 000007d2 000005bd 000005bc
1dc0: 000005bb 00000000 c09d1ee0 000005bc 00000020 00000000 00000000 000005bc
1de0: 000005dc 00000020 00000020 00000000 00000000 00000000 00001000 00000001
1e00: c1f2b5a0 00000008 c1f2b5e4 00000000 c09d1f20 c09d1ee0 c09d1e84 c09d1e28
1e20: c005fb24 c005d8ec c09d1e44 c005ccdc 00000000 00000001 c09d1e84 00000001
1e40: c005f184 00000000 00001000 bea427f8 00000000 00001000 c0043c48 c09d1e90
1e60: c1f2b5a0 c09d1e90 c09d1f20 c09d1f78 c09d0000 fffffdee c09d1f4c c09d1e88
1e80: c00792e8 c005f9f0 005bc000 00000000 c09d1efc c09d1ea0 00000000 00000001
1ea0: ffffffff c1f2b5a0 00000000 00000000 00000000 00000000 c0245040 00000028
1ec0: 00000000 00000000 a51b2240 c0245040 c004ea2c c09d1ed4 c09d1ed4 c01d9640
1ee0: 005bc000 00000000 0000000a 00000001 c01daee8 00000000 c09d1f4c 00001000
1f00: c0043c48 c00510b0 c004422c c09d1f18 c01db238 00000000 00000000 c1d552b4
1f20: bea427f8 00001000 c1f2b5a0 bea427f8 c09d1f78 00001000 c001f674 00900003
1f40: c09d1f74 c09d1f50 c0079c14 c007923c 00000000 00000004 005bc000 00000000
1f60: c1f2b5a0 00000003 c09d1fa4 c09d1f78 c007a024 c0079b70 005bc000 00000000
1f80: c09d1fac 00000000 c001e04c 00001000 bea427f8 00000003 00000000 c09d1fa8
1fa0: c001ee80 c0079ff0 00001000 bea427f8 00000003 bea427f8 00001000 000001b6
1fc0: 00001000 bea427f8 00000003 005bc000 00000004 0014b3c8 00000003 00000000
1fe0: 00000000 bea427e8 0000a20c 000bcb74 60000010 00000003 fa89500c efffe9dd
Backtrace:
[<c008a190>] (prune_dcache+0x0/0x184) from [<c008a344>] (shrink_dcache_memory+0x30/0x50)
[<c008a314>] (shrink_dcache_memory+0x0/0x50) from [<c0066858>] (shrink_slab+0xe8/0x178)
r4:00000082
[<c0066770>] (shrink_slab+0x0/0x178) from [<c0066ee0>] (try_to_free_pages+0x14c/0x224)
[<c0066d94>] (try_to_free_pages+0x0/0x224) from [<c0061d30>] (__alloc_pages+0x1d0/0x2cc)
[<c0061b60>] (__alloc_pages+0x0/0x2cc) from [<c0063890>] (__do_page_cache_readahead+0xc0/0x250)
[<c00637d0>] (__do_page_cache_readahead+0x0/0x250) from [<c0063a94>] (blockable_page_cache_readahead+0x74/0xd0)
[<c0063a20>] (blockable_page_cache_readahead+0x0/0xd0) from [<c0063b80>] (make_ahead_window+0x90/0xb0)
r8:c083c230 r7:00000001 r6:00000020 r5:00000000 r4:c09d1dcc
[<c0063af0>] (make_ahead_window+0x0/0xb0) from [<c0063d30>] (page_cache_readahead+0x190/0x1c0)
r5:00000000 r4:c09d1dcc
[<c0063ba0>] (page_cache_readahead+0x0/0x1c0) from [<c005da2c>] (do_generic_mapping_read+0x150/0x4c0)
[<c005d8dc>] (do_generic_mapping_read+0x0/0x4c0) from [<c005fb24>] (generic_file_aio_read+0x144/0x188)
[<c005f9e0>] (generic_file_aio_read+0x0/0x188) from [<c00792e8>] (do_sync_read+0xbc/0x10c)
[<c007922c>] (do_sync_read+0x0/0x10c) from [<c0079c14>] (vfs_read+0xb4/0x144)
[<c0079b60>] (vfs_read+0x0/0x144) from [<c007a024>] (sys_read+0x44/0x70)
r7:00000003 r6:c1f2b5a0 r5:00000000 r4:005bc000
[<c0079fe0>] (sys_read+0x0/0x70) from [<c001ee80>] (ret_fast_syscall+0x0/0x2c)
r6:00000003 r5:bea427f8 r4:00001000
Code: 1afffff7 ea000001 e151000a 099daff0 (e5913000)
Segmentation fault
\w #