My board is i.MX8MP,and the Linux system version is 5.4.70.Now I want to develop the pstore to store the panic log,but there is something wrong which i couldn't understand.
I refer the article:Kdump + Crash in I.MX - NXP Community
my config as follows:
CONFIG_PSTORE_PMSG=y
CONFIG_PSTORE=y
CONFIG_PSTORE_RAM=y
CONFIG_PANIC_ON_OOPS=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PANIC_TIMEOUT=1
and my dts is configed as below:
ramoops@0x91f00000 {
compatible = "ramoops";
reg = <0 0x91f00000 0 0x00100000>;
record-size = <0x00020000>;
console-size = <0x00020000>;
ftrace-size = <0x00020000>;
pmsg-size = <0x00020000>;
};
then i make linux panic with the instruct “echo 1 > /proc/sys/kernel/panic”
after the instruct "echo 1 > /proc/sys/kernel/panic". the linux panic ant wait some time,the system reboot.
later i check,there is nothing in the path /sys/fs/pstore. failed to capture the kernal panic,
is there somthings wrong?
please,thank you