Welcome! Log In Create A New Profile


Porting of kernel 2.6.34 on Arm based board

Posted by Jaclky 
Hello All,

While try to port kernel 2.6.34 to a Arm based custom board,kernel fails or goes wrong on 'kmem_cache_init()' function.
I am very new to kernel porting.So i post my error message below

BUG: Bad page state in process swapper pfn:01400
page:c01d7000 count:0 mapcount:0 mappingsad smileynull) index:0x0
page flags: 0x80000(buddy)
[<c001b1c8>] (dump_backtrace+0x0/0x10c) from [<c015c0c0>] (dump_stack+0x18/0x1c)
r6:c01b9468 r5:c01c891c r4:c01d7000 r3:40000004
[<c015c0a8>] (dump_stack+0x0/0x1c) from [<c0066518>] (bad_page+0xa8/0x104)
[<c0066470>] (bad_page+0x0/0x104) from [<c0066cc4>] (get_page_from_freelist+0x750/0x8e8)
r6:c01baa84 r5:c01c0e44 r4:00000001 r3:c01d7000
[<c0066574>] (get_page_from_freelist+0x0/0x8e8) from [<c00679a4>] (__alloc_pages_nodemask+0xdc/0x5ac)
[<c00678c8>] (__alloc_pages_nodemask+0x0/0x5ac) from [<c015d210>] (cache_alloc_refill+0x2ec/0x5dc)
[<c015cf24>] (cache_alloc_refill+0x0/0x5dc) from [<c008e964>] (kmem_cache_alloc+0x84/0xa8)
[<c008e8e0>] (kmem_cache_alloc+0x0/0xa8) from [<c008f0c8>] (kmem_cache_create+0x1d4/0x974)
r7:c01c8b2c r6:00000020 r5:00002000 r4:c01c8b70
[<c008eef4>] (kmem_cache_create+0x0/0x974) from [<c000f844>] (kmem_cache_init+0x168/0x1a8)
[<c000f6dc>] (kmem_cache_init+0x0/0x1a8) from [<c0008990>] (start_kernel+0x138/0x1d4)
r8:010146b4 r7:c01b7b78 r6:cccccccd r5:c01b5fc8 r4:c01c1460
[<c0008858>] (start_kernel+0x0/0x1d4) from [<01008034>] (0x1008034)
r6:c00157d0 r5:c01c1768 r4:00003175
Disabling lock debugging due to kernel taint

Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:0 inactive_anon:0 isolated_anon:0
active_file:0 inactive_file:0 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
free:1322 slab_reclaimable:0 slab_unreclaimable:243
mapped:0 shmem:0 pagetables:0 bounce:0
Normal free:5288kB min:0kB low:0kB high:0kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolato
lowmem_reserve[]: 0 0
Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB
0 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
2048 pages of RAM
1324 free pages
481 reserved pages
243 slab pages
0 pages shared
0 pages swap cached
Kernel panic - not syncing: kmem_cache_create(): failed to create slab `size-32'
May be it is due to some mistake occur on kernel menuconfig . Does any body have a comment on this issue?

Your Email:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 24 plus 5?