内核启动失败failed to initialize host
在kernel内核中添加了打印代码函数,dev_info
但是编译的时候并没有提示出错误,最后整包烧录的后,设备没有起来,通过串口查看日志发现报错位置在print位置,也就是dev_info
仔细找了下用法,发现是我使用的时候漏掉了参数
rk-pcie 3c0000000.pcie: failed to initialize host\\cf1\\highlight2
author |
daisy.skye的博客_CSDN博客-Qt,嵌入式,Linux领域博主 |
错误日志 |
[ 4.015217] Modules linked in:\\cf1\\highlight2 [ 4.015500] Process kworker/3:1 (pid: 49, stack limit = 0x00000000c1305a52)\\cf1\\highlight2 [ 4.016112] CPU: 3 PID: 49 Comm: kworker/3:1 Not tainted 4.19.193 #45\\cf1\\highlight2 [ 4.016550] vendor storage:20190527 ret = 0\\cf1\\highlight2 [ 4.016678] Hardware name: Rockchip RK3568 EVB2 LP4X V10 Board (DT)\\cf1\\highlight2 [ 4.017612] Workqueue: events deferred_probe_work_func\\cf1\\highlight2 [ 4.018064] pstate: 00c00009 (nzcv daif +PAN +UAO)\\cf1\\highlight2 [ 4.018493] pc : __dev_printk+0x20/0x78\\cf1\\highlight2 [ 4.018841] lr : _dev_info+0x68/0x88\\cf1\\highlight2 [ 4.019164] sp : ffffff800a2cb8f0\\cf1\\highlight2 …… [ 11.361945] rk-pcie 3c0000000.pcie: failed to initialize host\\cf1\\highlight2 |
参考链接 |
kernel dump 分析https://blog.csdn.net/punmpkin/article/details/108076330 |