AnsweredAssumed Answered

Kernel hangs due to page fault

Question asked by masasi on Apr 13, 2015
Latest reply on Apr 15, 2015 by Scott Wood

Hi, I am trying to boot SDK 1.6 kernel in my P1012 board. I have Linux source files provided by Yocto and I have set some variables on the kernel configuration file but the kernel hangs without showing any console output.

I have been using BDI3000 to debug and found out that the problem is that the kernel access a bad area. Kernel stops at arch/PowerPC/kernel/head_fsl_booke.S:


/* Data Storage Interrupt */ 



mfspr    r5,SPRN_ESR                     /* Grab the ESR, save it, pass arg3 */ 

stw        r5,_ESR(r11) 

mfspr    r4,SPRN_DEAR                 /* Grab the DEAR, save it, pass arg2 */ 

andis.    r10,r5,(ESR_ILK|ESR_DLK)@h 

bne        1f 

EXC_XFER_LITE(0x0300, handle_page_fault)  <--Kernel stops here

I have used the kernel image prebuilt in the SDK and it boots correctly so I guess my problem has nothing to do with my device tree  or my uboot environment settings passed to the kernel. Has anybody faced a similar problem trying to boot the kernel?

Thanks in advance,