This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello all,
I facing a issue that customer's product sometime crash on specific end customer's environment.
Customer use AM335x + Linux SDK 6.0.
Right now, customer can not use console to capture system / app log.
Is there any way to save log while system crash?
I did some research, the Kernel log is save in /var/log/ , but it can not save logs before reboot.
I also tried "tee" command to save task log to a file, but it not helpful while system crash.
I saw a function "PSTORE" could help for this issue, and it is inncluded in SDK 6.0.
However, I can not use this function even I turn it on in menuconnfig.
Is anything I missing?
How can I enable PSTORE function and use it?
Is there other way to save crash log while system panic?
Anything is helpful. Thank you.
Best Regards,
Wayne Kuo
Hi Yordan,
Thanks for your reply.
I've try your suggestion, but no luck.
It seems SDK 6.0 does not have PSTORE_CONSOLE and PSTORE_PMSG function, so even I turn these two config on it doesn't help.
I compared SDK 7.0 and SDK 6.0, the source code of PSTORE is different as below.
Any suggestion?
BTW, I tried to enable PSTORE on SDK 7.0, the system has created a directory "/sys/fs/pstore/" but there is no anything else.
dmesg does not show any log of PSTORE or RAMOOPS.
I simulate a crash situation after I turn PSTORE on, but there is no any crash log while I reboot the system.
I think I missing something, any suggestion?
PSTORE source code:
SDK 6.0:
-rw-r--r-- 1 wpi wpi 7737 Jun 26 2013 inode.c
-rw-r--r-- 1 wpi wpi 272 Jun 26 2013 internal.h
-rw-r--r-- 1 wpi wpi 541 Jun 26 2013 Kconfig
-rw-r--r-- 1 wpi wpi 102 Jun 26 2013 Makefile
-rw-r--r-- 1 wpi wpi 6728 Jun 26 2013 platform.c
SDK 7.0:
-rw-r--r-- 1 wpi wpi 3086 Dec 15 2014 ftrace.c
-rw-r--r-- 1 wpi wpi 10293 Dec 15 2014 inode.c
-rw-r--r-- 1 wpi wpi 1265 Dec 15 2014 internal.h
-rw-r--r-- 1 wpi wpi 1643 Dec 15 2014 Kconfig
-rw-r--r-- 1 wpi wpi 214 Dec 15 2014 Makefile
-rw-r--r-- 1 wpi wpi 12863 Dec 15 2014 platform.c
-rw-r--r-- 1 wpi wpi 15515 Dec 15 2014 ram.c
-rw-r--r-- 1 wpi wpi 13244 Dec 15 2014 ram_core.c
Best Regards,
Wayne Kuo