Hello,
We would like to know how to enable ramoops on ls1046a with linux kernel 5.4.3.
Here are my settings and test but there is nothing on "/sys/fs/pstore".
1. Enabe pstore in kernel
CONFIG_PSTORE=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_RAM=y
2. Pass module parameters from boot loader env
"ramoops.mem_address=0xc0000000 ramoops.mem_size=0x20000"
and I can see below kernel messages while booting,
[ 0.465329] ramoops: using module parameters
[ 1.020523] pstore: Registered ramoops as persistent store backend
[ 1.026735] ramoops: using 0x20000@0xc0000000, ecc: 0
3. Trigger kernel panic by sysrq
# echo c > /proc/sysrq-trigger
4. Waiting watchdog to reboot system (it should be warm boot)
5. Mount pstore fs
# mount -t pstore pstore /sys/fs/pstore
But there is no any ramoops files in pstore folder.
Could anyone show me how to enable this feature?
Thanks.
Regards,
Leo