earlyprintk不能按预期工作,引导过程中内核挂起

时间:2018-08-27 09:05:29

标签: debugging linux-kernel kernel

我正在引导内核(arm,cortexa15),并且内核挂在:

## Booting kernel from Legacy Image at 40007fc0 ...
   Image Name:   Linux-4.4.138-cip25-rt19-yocto-s
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5510400 Bytes = 5.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 40f00000
   Booting using the fdt blob at 0x40f00000
   XIP Kernel Image ... OK
   Loading Device Tree to 40ef1000, end 40effb37 ... OK

   Starting kernel ...

我试图使Earlyprintk知道内核卡在哪里。

CONF_PRINTK=y
CONF_EARLY_PRINTK=y
CONFIG_DEBUG_LL=y (low-level debug)
# CONFIG_DEBUG_ICEDCC is not set

并设置bootargs:

> setenv bootargs ${bootargs_base} earlyprintk

但是,控制台上没有打印消息。有人可以帮忙吗?

0 个答案:

没有答案