i.MX8MP PSTORE/RAMOOPS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8MP PSTORE/RAMOOPS

338 Views
zhuliushun
Contributor I

my board:i.MX8MP

Linux Version:5.4.70

rootfs:Yocto

Now I want to develop the pstore fucntion to store the log when there is a panic happened.

my config about kernel and dts as follows:

CONFIG_PSTORE=y

CONFIG_PSTORE_CONSOLE=y

CONFIG_PSTORE_PMSG=y

CONFIG_PSTORE_RAM=y

CONFIG_PANIC_ON_OOPS=y

CONFIG_PANIC_TIMEOUT=1

and my dts config as below:

ramoops@0x91f00000 {

         compatible = "ramoops";

         reg = <0 0x91f00000 0 0x00100000>;

         record-size     = <0x00020000>;

         console-size    = <0x00020000>;

         ftrace-size     = <0x00020000>;

         pmsg-size       = <0x00020000>;

  };

and i make kernel panic with the instruct "echo 1  >/proc/sys/kernel/sysrq;echo c >/proc/sysrq-trigger"

later the kernel panic and reboot.but the folder /sys/fs/pstore is empty, the panic log wasn't stored.

and the pstore is mounted OK.is there something wrong?please

 

0 Kudos
Reply
0 Replies