Folks, I'm not a kernel and neither a gcc expert developer, and after searching for a solution for the last 2 weeks I've decided to appeal to the list.
I'm trying to build a kernel image (2.6.32 and 2.6.30) for mini2440 (armv4t) with Yocto Project (poky master branch) and I'm facing a strange issue. If I compile the kernel with Yocto gcc recipes (gcc 4.5.1) the kernel will panic on init (console printed message is attached for kernel 2.6.30 and 2.6.32). But, if I compile the kernel with meta-oe gcc recipes (gcc 4.5) everything will be ok. Just for your reference these is the gcc recipes which I'm using: http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/gcc http://git.openembedded.org/cgit.cgi/meta-openembedded/tree/recipes-devtools/gcc I've compiled with and without thumb instructions, but the issue remains. I've tried to apply the patches gcc-armv4-pass-fix-v4bx-to-ld.patch and gcc-arm-volatile-bitfield-fix.patch, but no success. Kind Regards, -- *dS Diego Sueiro /*long live rock 'n roll*/
VFS: Mounted root (jffs2 filesystem) on device 31:2. Freeing init memory: 104K Failed to execute /linuxrc. Attempting defaults... Unable to handle kernel paging request at virtual address 00100104 pgd = c3980000 [00100104] *pgd=3398c031, *pte=00000000, *ppte=00000000 Internal error: Oops: 817 [#1] Modules linked in: CPU: 0 Not tainted (2.6.30.4-boardcon #1) PC is at get_page_from_freelist+0x1cc/0x418 LR is at get_page_from_freelist+0xf8/0x418 pc : [<c0061ed4>] lr : [<c0061e00>] psr: 60000093 sp : c381db10 ip : 00000000 fp : c381db6c r10: c041e660 r9 : c03c0cb8 r8 : 60000013 r7 : 00000001 r6 : c03e0974 r5 : c03e0994 r4 : 00000000 r3 : 00100100 r2 : 00000000 r1 : 00200200 r0 : 00000001 Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user Control: c000717f Table: 33980000 DAC: 00000015 Process init (pid: 1, stack limit = 0xc381c268) Stack: (0xc381db10 to 0xc381e000) db00: 00000044 00000000 f77682ec 00000000 db20: 00000000 00000000 c03e0f00 00000000 000284d0 00000000 c03e0974 c03e0974 db40: c002f3a0 c381a000 00000000 000084d0 c381c000 c03e0efc 00000000 00000000 db60: c381dbdc c381db70 c00621c8 c0061d18 00000000 00000044 c0403248 000284d0 db80: 00000001 c381c000 c381db88 00000400 c381dbb4 00000000 c040230c 00000000 dba0: 00000010 c04022e0 00000000 c040230c c381dbfc c3981000 c3935000 c3a05160 dbc0: c381c000 c3981000 c3980000 00000200 c381dbfc c381dbe0 c006ee50 c0062130 dbe0: 40025000 c381a000 c3a05160 c381c000 c381dc64 c381dc00 c0071404 c006ee38 dc00: c381dc2c c381dc10 c0022048 c0038bdc 00000800 ffffffff f4000000 00004000 dc20: c3935000 c381dc30 c00229e4 c0022010 c041e560 00000080 00000000 c3935000 dc40: 4002587c c381ddf0 c381a000 c3a05160 00000805 c3935034 c381dd1c c381dc68 dc60: c0028194 c0070ba0 40025000 00000800 c393d780 00000034 00000000 c3408a80 dc80: c381dd3c c381dc90 c005e3bc c00922c8 00000001 c381c000 c381dcbc c381dca8 dca0: 0001dd5c 00000000 00000000 000000c0 00000000 c381dd98 00000000 00000000 dcc0: 00000000 00000001 00000000 00000000 c381dd14 c381dce0 c0151f5c c0151c90 dce0: c3a05184 c3a05184 c381dd14 c3a05160 c3a05184 00000805 4002587c c381ddf0 dd00: 00000005 c03ba664 20000013 40000000 c381dd3c c381dd20 c002835c c0028004 dd20: 00000005 00000805 4002587c c381ddf0 c381ddec c381dd40 c00221bc c00282f8 dd40: 40024000 c3935000 c381ddc4 c381dd58 c007481c c00737d4 c3a05120 00000000 dd60: c393d780 0000001c 00000000 c3a05160 c3a05000 c03c0ddc c34089e8 00000812 dd80: c393d780 c381c000 c393d780 c3a05120 c3a05124 c3a05108 c381ddc4 00000007 dda0: c381c000 c393d780 00002000 c3935000 00000812 00000002 c381de0c c381ddc8 ddc0: c0074cf8 c007467c 08100877 ffffffff c381de24 00000000 c381df50 c381c000 dde0: c381de4c c381ddf0 c00229a0 c0022198 4002587c 0000077c 00000000 81025fff de00: c393d700 c3838e00 00000000 c381df50 c381c000 c393d780 40000000 c381de4c de20: 00000000 c381de38 c00b3b70 c014c7c8 20000013 ffffffff 00000784 c00b3b70 de40: c381dedc c381de50 c00b4a48 c00b3b2c 00000812 00000000 0000000b 00016c14 de60: 00000001 0001653c 00008000 4002587c 40025960 0000e53c 00008000 c393d700 de80: 00000000 000169fc 00000000 c3984480 c3986fc0 c393d734 00000006 c3838f00 dea0: c3838e00 c035c6c0 00000000 beffffd4 c03e1440 c03c15bc c03c1208 c3838e00 dec0: fffffff8 00000000 c381df50 c381c000 c381df14 c381dee0 c0084c64 c00b3f4c dee0: befff000 00000002 c03ba228 00000000 00000000 c3838e00 c381df50 c381c000 df00: c03ba228 c03ba1a0 c381df4c c381df18 c0085db8 c0084bc0 c381df9c 00000000 df20: 00000000 c03ba1a0 c381df50 c035c6c0 c03ba228 00000000 00000000 00000000 df40: c381dfb4 c381df50 c0025b70 c0085bb4 00000000 00000000 00000000 00000000 df60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 df80: 00000000 00000000 00000000 00000000 00000000 00000000 c03e1380 c001d1f8 dfa0: 00000000 00000000 c381dfc4 c381dfb8 c002225c c0025b40 c381dfdc c381dfc8 dfc0: c00222ec c0022250 c3401080 c03e1380 c381dff4 c381dfe0 c00089c8 c0022274 dfe0: 00000000 00000000 00000000 c381dff8 c00365a8 c0008918 40000442 00004001 Backtrace: [<c0061d08>] (get_page_from_freelist+0x0/0x418) from [<c00621c8>] (__alloc_pages_internal+0xa8/0x424) [<c0062120>] (__alloc_pages_internal+0x0/0x424) from [<c006ee50>] (__pte_alloc+0x28/0x178) [<c006ee28>] (__pte_alloc+0x0/0x178) from [<c0071404>] (handle_mm_fault+0x874/0xa8c) r7:c381c000 r6:c3a05160 r5:c381a000 r4:40025000 [<c0070b90>] (handle_mm_fault+0x0/0xa8c) from [<c0028194>] (do_page_fault+0x1a0/0x268) [<c0027ff4>] (do_page_fault+0x0/0x268) from [<c002835c>] (do_translation_fault+0x74/0x7c) [<c00282e8>] (do_translation_fault+0x0/0x7c) from [<c00221bc>] (do_DataAbort+0x34/0x9c) r6:c381ddf0 r5:4002587c r4:00000805 r3:00000005 [<c0022188>] (do_DataAbort+0x0/0x9c) from [<c00229a0>] (__dabt_svc+0x40/0x60) Exception stack(0xc381ddf0 to 0xc381de38) dde0: 4002587c 0000077c 00000000 81025fff de00: c393d700 c3838e00 00000000 c381df50 c381c000 c393d780 40000000 c381de4c de20: 00000000 c381de38 c00b3b70 c014c7c8 20000013 ffffffff r8:c381c000 r7:c381df50 r6:00000000 r5:c381de24 r4:ffffffff [<c00b3b1c>] (padzero+0x0/0x60) from [<c00b4a48>] (load_elf_binary+0xb0c/0x11e8) [<c00b3f3c>] (load_elf_binary+0x0/0x11e8) from [<c0084c64>] (search_binary_handler+0xb4/0x250) [<c0084bb0>] (search_binary_handler+0x0/0x250) from [<c0085db8>] (do_execve+0x214/0x290) [<c0085ba4>] (do_execve+0x0/0x290) from [<c0025b70>] (kernel_execve+0x40/0x8c) [<c0025b30>] (kernel_execve+0x0/0x8c) from [<c002225c>] (run_init_process+0x1c/0x24) r7:00000000 r6:00000000 r5:c001d1f8 r4:c03e1380 [<c0022240>] (run_init_process+0x0/0x24) from [<c00222ec>] (init_post+0x88/0x10c) [<c0022264>] (init_post+0x0/0x10c) from [<c00089c8>] (kernel_init+0xc0/0xe8) r4:c03e1380 r3:c3401080 [<c0008908>] (kernel_init+0x0/0xe8) from [<c00365a8>] (do_exit+0x0/0x638) r5:00000000 r4:00000000 Code: e5860014 e243a018 e59a101c e59a3018 (e5831004) ---[ end trace 704cbbcafe7c7935 ]--- Kernel panic - not syncing: Attempted to kill init! Backtrace: [<c0026598>] (dump_backtrace+0x0/0x10c) from [<c02c84d8>] (dump_stack+0x18/0x1c) r6:c0061ed4 r5:0000000b r4:c03e19c0 r3:ffffffff [<c02c84c0>] (dump_stack+0x0/0x1c) from [<c02c8528>] (panic+0x4c/0x110) [<c02c84dc>] (panic+0x0/0x110) from [<c0036bb4>] (do_exit+0x60c/0x638) r3:c03be6f4 r2:c381d794 r1:c381d8c0 r0:c035fae8 r7:00000000 [<c00365a8>] (do_exit+0x0/0x638) from [<c0026934>] (die+0x1c4/0x214) r7:00000000 [<c0026770>] (die+0x0/0x214) from [<c0027fe4>] (__do_kernel_fault+0x6c/0x7c) r7:c3935000 r3:ffffffff [<c0027f78>] (__do_kernel_fault+0x0/0x7c) from [<c0028138>] (do_page_fault+0x144/0x268) r7:c381a000 r6:c381dac8 r5:00100104 r4:c3935000 [<c0027ff4>] (do_page_fault+0x0/0x268) from [<c00221bc>] (do_DataAbort+0x34/0x9c) [<c0022188>] (do_DataAbort+0x0/0x9c) from [<c00229a0>] (__dabt_svc+0x40/0x60) Exception stack(0xc381dac8 to 0xc381db10) dac0: 00000001 00200200 00000000 00100100 00000000 c03e0994 dae0: c03e0974 00000001 60000013 c03c0cb8 c041e660 c381db6c 00000000 c381db10 db00: c0061e00 c0061ed4 60000093 ffffffff r8:60000013 r7:00000001 r6:c03e0974 r5:c381dafc r4:ffffffff [<c0061d08>] (get_page_from_freelist+0x0/0x418) from [<c00621c8>] (__alloc_pages_internal+0xa8/0x424) [<c0062120>] (__alloc_pages_internal+0x0/0x424) from [<c006ee50>] (__pte_alloc+0x28/0x178) [<c006ee28>] (__pte_alloc+0x0/0x178) from [<c0071404>] (handle_mm_fault+0x874/0xa8c) r7:c381c000 r6:c3a05160 r5:c381a000 r4:40025000 [<c0070b90>] (handle_mm_fault+0x0/0xa8c) from [<c0028194>] (do_page_fault+0x1a0/0x268) [<c0027ff4>] (do_page_fault+0x0/0x268) from [<c002835c>] (do_translation_fault+0x74/0x7c) [<c00282e8>] (do_translation_fault+0x0/0x7c) from [<c00221bc>] (do_DataAbort+0x34/0x9c) r6:c381ddf0 r5:4002587c r4:00000805 r3:00000005 [<c0022188>] (do_DataAbort+0x0/0x9c) from [<c00229a0>] (__dabt_svc+0x40/0x60) Exception stack(0xc381ddf0 to 0xc381de38) dde0: 4002587c 0000077c 00000000 81025fff de00: c393d700 c3838e00 00000000 c381df50 c381c000 c393d780 40000000 c381de4c de20: 00000000 c381de38 c00b3b70 c014c7c8 20000013 ffffffff r8:c381c000 r7:c381df50 r6:00000000 r5:c381de24 r4:ffffffff [<c00b3b1c>] (padzero+0x0/0x60) from [<c00b4a48>] (load_elf_binary+0xb0c/0x11e8) [<c00b3f3c>] (load_elf_binary+0x0/0x11e8) from [<c0084c64>] (search_binary_handler+0xb4/0x250) [<c0084bb0>] (search_binary_handler+0x0/0x250) from [<c0085db8>] (do_execve+0x214/0x290) [<c0085ba4>] (do_execve+0x0/0x290) from [<c0025b70>] (kernel_execve+0x40/0x8c) [<c0025b30>] (kernel_execve+0x0/0x8c) from [<c002225c>] (run_init_process+0x1c/0x24) r7:00000000 r6:00000000 r5:c001d1f8 r4:c03e1380 [<c0022240>] (run_init_process+0x0/0x24) from [<c00222ec>] (init_post+0x88/0x10c) [<c0022264>] (init_post+0x0/0x10c) from [<c00089c8>] (kernel_init+0xc0/0xe8) r4:c03e1380 r3:c3401080 [<c0008908>] (kernel_init+0x0/0xe8) from [<c00365a8>] (do_exit+0x0/0x638) r5:00000000 r4:00000000
Unable to handle kernel paging request at virtual address 00100104 pgd = c3a94000 [00100104] *pgd=33a99031, *pte=00000000, *ppte=00000000 Internal error: Oops: 817 [#1] last sysfs file: Modules linked in: CPU: 0 Not tainted (2.6.32.11 #1) PC is at get_page_from_freelist+0x204/0x458 LR is at get_page_from_freelist+0xa4/0x458 pc : [<c0069fe4>] lr : [<c0069e84>] psr: 20000093 sp : c3823cf0 ip : 00200200 fp : 000201da r10: c03ce634 r9 : c3822000 r8 : c0411520 r7 : 60000013 r6 : c3822000 r5 : 00000000 r4 : c03ce604 r3 : 00200200 r2 : 00100100 r1 : 00000001 r0 : 00000001 Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user Control: c000717f Table: 33a94000 DAC: 00000015 Process init (pid: 1, stack limit = 0xc3822270) Stack: (0xc3823cf0 to 0xc3824000) 3ce0: 00000041 00000000 00000000 00000000 3d00: 00000001 c03cebf8 00000001 ffffffff 00000000 c03ce62c 00000000 00000000 3d20: 00000028 00000000 00000000 c03ce604 00000000 000201da 00000000 c03cebf4 3d40: c03ce604 003fffff 00000001 c3a22880 c3414b84 c006a31c 00000001 00000041 3d60: c03ce604 00000002 00000000 00000002 00000000 00000000 00000000 000201da 3d80: c03cebf8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 3da0: 00000000 00000000 00000000 c03ce604 00000000 00000000 c3414b80 00000004 3dc0: 00000004 00000020 0000001d c3a22880 c3414b84 c006bfe8 c3823e1c 00000020 3de0: c3823de0 c3823de0 c3823e1c c3a22880 00000000 00000004 c3414b80 c3a228c0 3e00: c3823e60 c3a90108 c3414ae8 c006c3d4 00000000 c3414b80 c3a22880 c0065890 3e20: 00000020 00000000 00000000 c3414b80 00000000 c3a90108 c3a90108 c3a2d000 3e40: 00000000 00000000 c3a95000 c3a9a810 40004000 c007672c 00000000 c3a9a800 3e60: 00000000 00000004 40004000 00000000 c3822000 400045b4 c3a90108 40004000 3e80: 00000000 c3a2d000 00000200 c3a9a810 c3a94000 c0079084 00000004 00000000 3ea0: 00000000 00000000 c3a22700 00000000 c3a95000 00000010 00000004 00000000 3ec0: 00000000 400045b4 c3820000 c3823fb0 c3a2d000 80000005 c3a90108 c3a2d034 3ee0: 00000000 c002e5dc 400045b4 80000005 00000005 00000005 400045b4 c3823fb0 3f00: c02b725c 00000000 000247d4 c00282b4 c04084e0 c39b6500 fffffff8 c03b3164 3f20: 00000000 00000002 c3823f80 c03b2c60 00000001 c3820000 c3820000 00000000 3f40: 00000000 b4121cbb c3a9201c c3820000 00000017 c3820000 00000000 c0051370 3f60: c03adde8 c3822000 c3823fac c02b51c0 00000000 c3823fb0 0000170d 00000000 3f80: 00383093 00000000 00000000 c3823f80 00001fb0 c3822000 ffffffff 00000000 3fa0: 00000000 00000000 00000000 c0028e20 bee06f10 bee06fd4 00000000 00000000 3fc0: 00000940 00000000 00000000 00000000 00000000 00000000 000247d4 00000000 3fe0: 00000000 bee06f10 400007a0 400045b4 00000010 ffffffff 33cc33cc 33cc33cc [<c0069fe4>] (get_page_from_freelist+0x204/0x458) from [<c006a31c>] (__alloc_pages_nodemask+0xe4/0x518) [<c006a31c>] (__alloc_pages_nodemask+0xe4/0x518) from [<c006bfe8>] (__do_page_cache_readahead+0xa4/0x1ec) [<c006bfe8>] (__do_page_cache_readahead+0xa4/0x1ec) from [<c006c3d4>] (ra_submit+0x20/0x24) [<c006c3d4>] (ra_submit+0x20/0x24) from [<c0065890>] (filemap_fault+0x1ac/0x378) [<c0065890>] (filemap_fault+0x1ac/0x378) from [<c007672c>] (__do_fault+0x50/0x3ac) [<c007672c>] (__do_fault+0x50/0x3ac) from [<c0079084>] (handle_mm_fault+0x248/0x578) [<c0079084>] (handle_mm_fault+0x248/0x578) from [<c002e5dc>] (do_page_fault+0xdc/0x1c8) [<c002e5dc>] (do_page_fault+0xdc/0x1c8) from [<c00282b4>] (do_PrefetchAbort+0x30/0x98) [<c00282b4>] (do_PrefetchAbort+0x30/0x98) from [<c0028e20>] (ret_from_exception+0x0/0x10) Exception stack(0xc3823fb0 to 0xc3823ff8) 3fa0: bee06f10 bee06fd4 00000000 00000000 3fc0: 00000940 00000000 00000000 00000000 00000000 00000000 000247d4 00000000 3fe0: 00000000 bee06f10 400007a0 400045b4 00000010 ffffffff Code: 1592800c e2488018 e598301c e5982018 (e5823004) ---[ end trace 7dab06e1f3ea4fc9 ]--- BUG: Bad page map in process init pte:300271cf pmd:33a91031 page:c04084e0 flags:00000014 count:0 mapcount:-1 mapping:(null) index:0 addr:bee06000 vm_flags:00100173 anon_vma:c3a98000 mapping:(null) index:befff [<c002d6dc>] (unwind_backtrace+0x0/0xd0) from [<c0076c18>] (print_bad_pte+0x190/0x1c0) [<c0076c18>] (print_bad_pte+0x190/0x1c0) from [<c0078290>] (unmap_vmas+0x378/0x5a0) [<c0078290>] (unmap_vmas+0x378/0x5a0) from [<c007bdf4>] (exit_mmap+0xa0/0x12c) [<c007bdf4>] (exit_mmap+0xa0/0x12c) from [<c0039934>] (mmput+0x38/0xd0) [<c0039934>] (mmput+0x38/0xd0) from [<c003d068>] (exit_mm+0x104/0x108) [<c003d068>] (exit_mm+0x104/0x108) from [<c003e2c8>] (do_exit+0x174/0x574) [<c003e2c8>] (do_exit+0x174/0x574) from [<c002c4c0>] (die+0x158/0x17c) [<c002c4c0>] (die+0x158/0x17c) from [<c002e4f0>] (__do_kernel_fault+0x64/0x74) [<c002e4f0>] (__do_kernel_fault+0x64/0x74) from [<c002e6b4>] (do_page_fault+0x1b4/0x1c8) [<c002e6b4>] (do_page_fault+0x1b4/0x1c8) from [<c002821c>] (do_DataAbort+0x30/0x98) [<c002821c>] (do_DataAbort+0x30/0x98) from [<c0028a40>] (__dabt_svc+0x40/0x60) Exception stack(0xc3823ca8 to 0xc3823cf0) 3ca0: 00000001 00000001 00100100 00200200 c03ce604 00000000 3cc0: c3822000 60000013 c0411520 c3822000 c03ce634 000201da 00200200 c3823cf0 3ce0: c0069e84 c0069fe4 20000093 ffffffff [<c0028a40>] (__dabt_svc+0x40/0x60) from [<c0069fe4>] (get_page_from_freelist+0x204/0x458) [<c0069fe4>] (get_page_from_freelist+0x204/0x458) from [<c006a31c>] (__alloc_pages_nodemask+0xe4/0x518) [<c006a31c>] (__alloc_pages_nodemask+0xe4/0x518) from [<c006bfe8>] (__do_page_cache_readahead+0xa4/0x1ec) [<c006bfe8>] (__do_page_cache_readahead+0xa4/0x1ec) from [<c006c3d4>] (ra_submit+0x20/0x24) [<c006c3d4>] (ra_submit+0x20/0x24) from [<c0065890>] (filemap_fault+0x1ac/0x378) [<c0065890>] (filemap_fault+0x1ac/0x378) from [<c007672c>] (__do_fault+0x50/0x3ac) [<c007672c>] (__do_fault+0x50/0x3ac) from [<c0079084>] (handle_mm_fault+0x248/0x578) [<c0079084>] (handle_mm_fault+0x248/0x578) from [<c002e5dc>] (do_page_fault+0xdc/0x1c8) [<c002e5dc>] (do_page_fault+0xdc/0x1c8) from [<c00282b4>] (do_PrefetchAbort+0x30/0x98) [<c00282b4>] (do_PrefetchAbort+0x30/0x98) from [<c0028e20>] (ret_from_exception+0x0/0x10) Exception stack(0xc3823fb0 to 0xc3823ff8) 3fa0: bee06f10 bee06fd4 00000000 00000000 3fc0: 00000940 00000000 00000000 00000000 00000000 00000000 000247d4 00000000 3fe0: 00000000 bee06f10 400007a0 400045b4 00000010 ffffffff Kernel panic - not syncing: Attempted to kill init!
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
