Linux 学习(2)-- kernel的log信息的查看方法

本文介绍了几种在PC上查看Android系统Kernel的日志信息的方法:包括通过串口线查看串口日志;使用ADB命令在eng版本或userdebug版本下查看一段Kernel日志;以及使用ADB命令连续查看Kernel日志。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在PC上查看android系统kernel的log信息的方法:
1.焊串口线,看串口log
2.adb中查看一段log方法查看:

adb root
adb shell
dmesg

注意:方法2必须在eng版本或者userdebug下

3.adb中连续查看log:

adb root
adb shell cat proc/kmsg
安装IB网卡驱动的时候报错Failed to install mlnx-ofed-kernel-dkms DEB Collecting debug info... See /tmp/MLNX_OFED_LINUX.10124.logs/mlnx-ofed-kernel-dkms.debinstall.log ubuntu@ubuntu-System-Product-Name:~/Downloads/MLNX_OFED_LINUX-4.9-7.1.0.0-ubuntu20.04-x86_64$ sudo cat /tmp/MLNX_OFED_LINUX.10124.logs/mlnx-ofed-kernel-dkms.debinstall.log /usr/bin/dpkg -i --force-confnew --force-confmiss /home/ubuntu/Downloads/MLNX_OFED_LINUX-4.9-7.1.0.0-ubuntu20.04-x86_64/DEBS/MLNX_LIBS/mlnx-ofed-kernel-dkms_4.9-OFED.4.9.7.1.0.1_all.deb Selecting previously unselected package mlnx-ofed-kernel-dkms. (Reading database ... 193000 files and directories currently installed.) Preparing to unpack .../mlnx-ofed-kernel-dkms_4.9-OFED.4.9.7.1.0.1_all.deb ... Unpacking mlnx-ofed-kernel-dkms (4.9-OFED.4.9.7.1.0.1) ... Setting up mlnx-ofed-kernel-dkms (4.9-OFED.4.9.7.1.0.1) ... Loading new mlnx-ofed-kernel-4.9 DKMS files... First Installation: checking all kernels... Building only for 5.15.0-139-generic Building for architecture x86_64 Building initial module for 5.15.0-139-generic ERROR (dkms apport): unable to determine source package for mlnx-ofed-kernel-dkms Error! Bad return status for module build on kernel: 5.15.0-139-generic (x86_64) Consult /var/lib/dkms/mlnx-ofed-kernel/4.9/build/make.log for more information. dpkg: error processing package mlnx-ofed-kernel-dkms (--install): installed mlnx-ofed-kernel-dkms package post-installation script subprocess returned error exit status 10 Errors were encountered while processing: mlnx-ofed-kernel-dkms
最新发布
08-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值