Take the 2-minute tour ×  I am using an Android Custom ROM on my
device, also with a custom boot.img (custom kernel + cmdline +
ramdisk). I now want to be able to view the kernel logs
immediately after a kernel panic, but unfortunately I can not
use a serial console.  The good news: There seem to be some
sources/modules in the Linux kernel of Android that are written
exactly for this purpose. For example, the following lines are
activated in my .config file for the kernel:   My problem is:
After I forced a kernel panic in order to test this, i.e. by
loading a simple panic kernel module with insmod panic.ko, it
seems that no log was written to the MTD named oem_log (which
exists on my device). Secondly, the RAM also does not contain
logs after reboot because it seems to be cleared - or the logs
are not written either.  So how can I get the kernel logs after
a panic? Also it would be helpful if there is a way I could test
the APANIC on the running system. Maybe by using the kernel
debug system? As of now I am p