wlan firmware log

修改WCNSS_qcom_cfg.ini

将下面两条词缀全置为1

1
2
3
4
#Enable firmware log
gEnablefwlog=1
# Enable broadcast logging to the userspace entities
gMulticastHostFwMsgs=1

确认Data.msc

1
2
3
4
//检测
ls -al /firmware/image/
//若没有Data.msc执行以下命令
adb push Data.msc /firmware/image/

更改Data.msc权限

1
chmod 777 Data.msc

更改linux内核日志级别

查询

1
cat /proc/sys/kernel/printk

printk1.png

更改

1
echo 4 > /proc/sys/kernel/printk

确认

1
cat /proc/sys/kernel/printk

printk2.png

打开fw log

1
2
3
iwpriv wlan0 dl_report 1
iwpriv wlan0 dl_type 1
iwpriv wlan0 dl_loglevel 0

抓取log

1
cnss_diag -c > /data/fw_log.txt

FWMSG.png

如果生成的fw_log.txt文件出现如上图所示,说明firmware log已经正常抓取!!