Get the latest tech news
Use ramoops for logging under Linux (2021)
Store the kernel log, console output and user messages persistent between reboots
In normal hardware designs RAM will not power off when we just do a reboot and therefore the data will survive a restart. Now that we have deployed the device tree and are sure that ramoops is enabled we reboot the module and check if we can mount pstore. In the next article I will write about a driver that directly provides information about the reset reason without having to analyse the pstore files.
Or read this on Hacker News