Android: How to get kernel logs after kernel panic?

后端 未结 6 1747
暖寄归人
暖寄归人 2020-12-04 15:09

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 aft

6条回答
  •  广开言路
    2020-12-04 15:17

    As for me,

    cat /proc/last_kmsg 
    

    after reboot (caused by the kernel panic during insmod) does list messages relevant to the crash, like

    [  424.909515] Kernel panic - not syncing: Fatal exception
    [  424.909606] Backtrace: 
    [  424.909790] [] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
    [  424.909973]  r6:c5cccf00 r5:00000000 r4:c08505a0 r3:00000000
    

    So you can at least try. I am working with Linux 3.0.31-g4f6d371 on Galaxy Nexus.

提交回复
热议问题