AnsweredAssumed Answered

Debugging early kernel hangs on i.MX6

Question asked by Curt Black on Sep 12, 2016
Latest reply on Sep 14, 2016 by Curt Black

I have an issue where sometimes I get the dreaded hang at "Starting kernel..."  This only happens on certain builds of the kernel itself, and seems to be triggered by nothing more than adding some dummy lines of code.  At first, this seemed like some kind of alignment/padding or size issue.  However, I can not think of any reason this would occur.


Now, I am trying to enable early_printk but having no success.  I have enabled CONFIG_DEBUG_LL and EARLY_PRINTK, with CONFIG_DEBUG_IMX_UART_PORT=1 (ttymxc0), which is the console.  I have also tried to add early_printk to the bootargs in uboot.


Note, I have restored the kernel to a state that fully boots, and still I see no additional debug at boot time.


Any ideas?


Kernel:  Freescale 3.10.17_ga

Board: Custom based on i.MX6 SABRESD

Media: NAND boot

Console: ttymxc0