The Dynamic RAM Console is an alternative to Android ram-console and pstore console that does not require a dedicated memory region for its operation. It continually captures all console messages and stores them in a small dynamically allocated circular buffer in RAM. The content of this buffer persists across reboots and is available as /proc/kmsg.last.
- Linux kernel 2.6.27+
-
Copy the file
kmsg_last.c
to the directorylinux-X.Y.Z/fs/proc
-
Add the following line to the end of file
linux-X.Y.Z/fs/proc/Makefile
proc-$(CONFIG_PRINTK) += kmsg_last.o
-
Rebuild the Linux kernel
DRAMConsole
|
|--COPYING GNU General Public License version 2
|--NEWS.md Version history
|--README.md This file
+--kmsg_last.c The Dynamic RAM Console kernel module
The code is available under the GNU General Public License version 2 or later.
See the COPYING
file for the full license text.