This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

crash on __create_pgd_mapping for porting kernel4.9 to exynos7420 soc

Dears ,

I am trying to porting the  kernel 4.9(also 4.12) to exynos7420 soc,but it crashed on booting , can you give me some suggestion ?many thanks.

log:
[    0.000000] Booting Linux on physical CPU 0x100
[    0.000000] Linux version 4.9.33-dirty (wangping@gavin) (gcc version 4.8.3 20140401 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) ) #2 SMP PREEMPT Wed Jun 21 09:50:18 CST 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd032]
[    0.000000] earlycon: exynos4210 at MMIO 0x0000000014c30000 (options '')
[    0.000000] bootconsole [exynos4210] enabled
[    0.000000] cma: Reserved 16 MiB at 0x00000000ff000000
[    0.000000] Unhandled fault: synchronous external abort (0x96000010) at 0xffffffbefe63a000
[    0.000000] Internal error: : 96000010 [#1] PREEMPT SMP
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.33-dirty #2
[    0.000000] Hardware name: Samsung Exynos7 Espresso board based on EXYNOS7 (DT)
[    0.000000] task: ffffff800880bc00 task.stack: ffffff8008800000
[    0.000000] PC is at __create_pgd_mapping+0xc8/0x41c
[    0.000000] LR is at map_kernel_segment+0x88/0xbc
[    0.000000] pc : [<ffffff8008097540>] lr : [<ffffff80087754a4>] pstate: 200000c5
[    0.000000] sp : ffffff8008803db0
[    0.000000] x29: ffffff8008803db0 x28: 00c8000000000713
[    0.000000] x27: ffffffbefe63a000 x26: 00000000deef8968
[    0.000000] x25: 0000000000000000 x24: 00000000df07a230
[    0.000000] x23: ffffff8008775360 x22: 00000000004f0000
[    0.000000] x21: ffffff8008570000 x20: ffffff8008080000
[    0.000000] x19: ffffff8008858f60 x18: 0000000000000003
[    0.000000] x17: 0000000100000000 x16: 0000000000000000
[    0.000000] x15: 0000000000000018 x14: 0000000040000000
[    0.000000] x13: ffffff800886d6f0 x12: 000000000000691e
[    0.000000] x11: 0000000100000000 x10: 00000000fefff000
[    0.000000] x9 : 0000000000000000 x8 : ffffffbefe63e000
[    0.000000] x7 : 0000000000000000 x6 : 0000000000000001
[    0.000000] x5 : ffffff8008775360 x4 : 00c8000000000713
[    0.000000] x3 : 00000000004f0fff x2 : 0000000040080000
[    0.000000] x1 : ffffffbefe63a000 x0 : 00000000085f0000
[    0.000000]
[    0.000000] Process swapper (pid: 0, stack limit = 0xffffff8008800020)
[    0.000000] Stack: (0xffffff8008803db0 to 0xffffff8008804000)
[    0.000000] 3da0:                                   ffffff8008803e50 ffffff80087754a4
[    0.000000] 3dc0: ffffff8008858f60 ffffff8008080000 0000000040080000 00000000004f0000
[    0.000000] 3de0: ffffff8008775558 00000000df07a230 0000000000000000 00000000deef8968
[    0.000000] 3e00: 00000000df04f530 0000000040770018 ffffff8008803e30 ffffff800880eaff
[    0.000000] 3e20: ffffff800856ffff ffffff8008570000 ffffffbefe63a000 0000000040080000
[    0.000000] 3e40: ffffff8008080000 00000001087851a0 ffffff8008803e90 ffffff8008775558
[    0.000000] 3e60: ffffff8008858f60 ffffff8008770000 ffffffbefe63a000 00000000fefff000
[    0.000000] 3e80: ffffff8008080000 00000000ff000000 ffffff8008803f20 ffffff8008772978
[    0.000000] 3ea0: ffffff8008080000 ffffff800881f998 ffffffbefe800000 0000000000000000
[    0.000000] 3ec0: 0000000000000000 00000000df07a230 0000000000000000 00000000deef8968
[    0.000000] 3ee0: 00000000df04f530 0000000040770018 ffffffbefe800000 0000000000000000
[    0.000000] 3f00: 0000000000000000 00000000df07a230 0000000000000000 ffffff800881f000
[    0.000000] 3f20: ffffff8008803fa0 ffffff8008770848 00000000df07b1c0 ffffff80087a50e8
[    0.000000] 3f40: ffffff8008807000 0000000000000000 0000000000000000 00000000df07a230
[    0.000000] 3f60: 0000000000000000 ffffff80085700a0 0000000000000001 0000000048000000
[    0.000000] 3f80: ffffffffffffffff 0000000000000000 0000000080808080 fefefefefefefefe
[    0.000000] 3fa0: ffffff8008803ff0 ffffff80087701e0 00000000df07b1c0 0000000040080000
[    0.000000] 3fc0: 0000000048000000 0000000000000000 0000000000000000 00000000df07a230
[    0.000000] 3fe0: 0000000000000000 ffffff80087a50e8 0000000000000000 000000004056625c
[    0.000000] Call trace:
[    0.000000] Exception stack(0xffffff8008803be0 to 0xffffff8008803d10)
[    0.000000] 3be0: ffffff8008858f60 0000008000000000 ffffff8008803db0 ffffff8008097540
[    0.000000] 3c00: 0000000000000007 ffffff8000000000 ffffffbefe63a000 ffffff80080f98d4
[    0.000000] 3c20: ffffff8008803c40 ffffff80080f9af8 0000000000000009 ffffff80080f98f0
[    0.000000] 3c40: ffffff8008803cb0 ffffff80080f9dfc ffffff800885f000 ffffff8008819798
[    0.000000] 3c60: ffffff8008861818 0000000000000000 0000000000000000 000000000000002a
[    0.000000] 3c80: 00000000085f0000 ffffffbefe63a000 0000000040080000 00000000004f0fff
[    0.000000] 3ca0: 00c8000000000713 ffffff8008775360 0000000000000001 0000000000000000
[    0.000000] 3cc0: ffffffbefe63e000 0000000000000000 00000000fefff000 0000000100000000
[    0.000000] 3ce0: 000000000000691e ffffff800886d6f0 0000000040000000 0000000000000018
[    0.000000] 3d00: 0000000000000000 0000000100000000
[    0.000000] [<ffffff8008097540>] __create_pgd_mapping+0xc8/0x41c
[    0.000000] [<ffffff80087754a4>] map_kernel_segment+0x88/0xbc
[    0.000000] [<ffffff8008775558>] paging_init+0x80/0x6f4
[    0.000000] [<ffffff8008772978>] setup_arch+0x1c8/0x580
[    0.000000] [<ffffff8008770848>] start_kernel+0x64/0x478
[    0.000000] [<ffffff80087701e0>] __primary_switched+0x5c/0x6c
[    0.000000] Code: b5000060 b9409fa0 350014e0 f94043a1 (f9400020)
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task!

Parents
  • ESR=0x96000010, which shows 

    Data Abort taken without a change in Exception level.
    Used for MMU faults generated by data accesses, alignment faults other than those
    caused by the Stack Pointer misalignment, and Synchronous external aborts, including
    synchronous parity or ECC errors. Not used for debug related exceptions.

    Most likely, the MMU mapping for the region that contains addr=0xffffffbefe63a000 is not correct.

     

Reply
  • ESR=0x96000010, which shows 

    Data Abort taken without a change in Exception level.
    Used for MMU faults generated by data accesses, alignment faults other than those
    caused by the Stack Pointer misalignment, and Synchronous external aborts, including
    synchronous parity or ECC errors. Not used for debug related exceptions.

    Most likely, the MMU mapping for the region that contains addr=0xffffffbefe63a000 is not correct.

     

Children
No data