How to: Generate a kernel log after random reboot

Once in a while, a software bug in the kernel will cause a random reboot, so in order to help kernel developers to fix and troubleshoot the reboots, a kernel log need to be submitted to the developer for further analysis and hopefully lead to a bug fix.

Most Android kernels have "RAM Consoles" to save the necessary kernel logs immediately after reboot in the RAM.  The users can then retrieve this RAM log on a subsequent reboot to submit to kernel developers. Here is a quick tour on how to do that.


[ Using ADB ]
  1. adb shell
  2. su
  3. cat /proc/last_kmsg > /sdcard/last_kmsg.txt
  4. exit
  5. exit
  6. adb pull /sdcard/last_kmsg.txt
File last_kmsg.txt will be located in the same location as adb.exe executable.


[ Using android terminal app ]
  1. su
  2. cat /proc/last_kmsg > /sdcard/last_kmsg.txt
  3. exit
  4. exit
  5. adb pull /sdcard/last_kmsg.txt
File last_kmsg.txt will be located on your SD-card.


[ Using Root Explorer / ES Explorer with Root ]
  1. go to /proc folder
  2. copy last_kmsg to /sdcard/
  3. rename last_kmsg to last_kmsg.txt
File last_kmsg.txt will be located on your SD-card.

The best method to share the last_kmsg.txt content is to upload it to pastebin.com and send a link to the developer.

Source: faux123 (Google +)

Have any questions or comments? Feel free to share! Also, if you like this article, please use media sharing buttons (Twitter, G+, Facebook) below this post!
Thanks for reading my news about How to: Generate a kernel log after random reboot at my blog Mods Firmware if you want too share this article, please put the resource, and if you think this article is very usefully dont forget to bookmark this site with CTRL + D on your keyboard to web browser.

New and Hot Article's :

  • Custom Rom Mokee Lollipop for Lenovo A7000
  • [Custom ROM] [MTK6753] MIUI 8.2 v7.1.5 Marshmallow For Lenovo K4 Note A7010a48
  • How to Charge iPhone 7 and any other iPhone device wirelessly
  • How to ROOT Almost ALL Android Phones
  • Cara Root dan Pasang TWRP di Xiaomi Redmi 3s | Prime
  • Galaxy S7 and S7 Edge Android 7.1.1 Nougat update rolling out on January of 2017
  • Make your Internet Browsing Speed more faster than ever before with the recommended apps
  • Spesifikasi Andromax B (A26C4H) 4G LTE Dengan Fitur VOWIFI
  • [ROM] MIUI V7 For Cherry Mobile Flare S3 Octa
  • How to Increase Wi-Fi Connection Time
  • More Articles :