Hi,
I try to add pstore feature to debug kernel
Enable below kernel config:
CONFIG_PSTORE=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
CONFIG_PSTORE_RAM=y
Add below in fsl-lx2160a.dtsi
reserved-memory {
##address-cells = <2>
#size-cells = <2>;
ranges;
ramoops@84000000 {
compatible = "ramoops";
reg = <0x00000000 0x84000000 0x0 0x00200000>; // 2MB
record-size = <0x00040000>; // 256KB
console-size = <0x00080000>; // 512KB
pmsg-size = <0x00040000>; // 256KB
ftrace-size = <0x00040000>; // 256KB
no-map;
};
};
But after I use below command
echo c > /proc/sysrq-trigger
system reboot but /sys/fs/pstore/ still empty
Do you have any idea about this issue?
BR,
Jack Ho