09-06-2016 10:22 AM
I was wondering if anyone had implemented pstore, or ramoops on zynq's OCM yet?
Some background:
https://www.kernel.org/doc/Documentation/ramoops.txt
Ramoops is an oops/panic logger that writes its logs to RAM before the system crashes. It works by logging oopses and panics in a circular buffer. Ramoops needs a system with persistent RAM so that the content of that area can survive after a restart.
https://www.kernel.org/doc/Documentation/ABI/testing/pstore
Platforms that provide a mechanism to preserve some data across system reboots can register with this driver to provide a generic interface to show records captured in the dying moments. In the case of a panic the last part of the console log is captured, but other interesting data can also be saved.
The goal would be to store info about a crashing kernel, into the Zynq On Chip Memory, and then have that memory survive a re-boot, (not get clobbered by the FSBL, or U-Boot, or a Booting kernel).
I couldn't find any info on OCM during boot, and how much is used, to see if this was practical.
We would like to do this before we send Alpha units into the field - so we can gather crash info easier.
-Robin
09-10-2016 04:10 PM
10-04-2016 09:32 AM
10-04-2016 05:13 PM