Ramoops/pstore not working on Kernel 4.9.17 and Android 7.1.2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Ramoops/pstore not working on Kernel 4.9.17 and Android 7.1.2

4,218 次查看
gsteimle
Contributor II

Hello,

We have a device with an iMX6 processor running Android 7.1.2 (Nougat) and Linux kernel 4.9.17. We would like to use the ramoops/pstore feature to obtain useful logs related to kernel panics, but it is not working.

We have the following kernel config flags enabled:

CONFIG_PSTORE=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
CONFIG_PSTORE_RAM=y

We can then induce a kernel panic with the following instructions entered from an adb shell:

echo 1 > /proc/sys/kernel/sysrq
echo c > /proc/sysrq-trigger

But after the device reboots, the folder /sys/fs/pstore is empty

Is there something else we need to do to enable the feature, or some other reason why it doesn't work?

Gary

标签 (3)
0 项奖励
回复
1 回复

3,215 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Gary,

The ramoops Write the kernel panic to RAM, once you reset or poweroff the device is gone. You probably need modify the device tree as mention here:

Ramoops oops/panic logger — The Linux Kernel documentation 

Regards

0 项奖励
回复