How to read last oops message in Android kernel
Hi, I'm working on the kernel of my xiaomi device. However, whenever I start it, it soft reboots to recovery. I'm guessing a kernel oops occur. I wanted to ask how to read kernel debug messages of the last run ? In my Nexus 5, I have /proc/last_kmsg which contains the messages from the last run. However, in my xiaomi kernel tree, that proc entry is removed. Responsible commit - https://github.com/omerjerk/android_kernel_xiaomi_ferrari/commit/15d76446205... It says that functionality has been moved to pstore. But I'm not able to get how to exactly read the debug messages of the last run. Thanks Umair
This might help https://www.kernel.org/doc/Documentation/ABI/testing/pstore *With Warm Regards,* Sasikumar Natarajan VVDN Technologies Pvt Ltd *Cell: *+91 9994692945 | *Skype:* sasi.vvdn On Wed, Nov 11, 2015 at 5:13 PM, Umair Khan <omerjerk@gmail.com> wrote:
Hi,
I'm working on the kernel of my xiaomi device. However, whenever I start it, it soft reboots to recovery. I'm guessing a kernel oops occur. I wanted to ask how to read kernel debug messages of the last run ? In my Nexus 5, I have /proc/last_kmsg which contains the messages from the last run.
However, in my xiaomi kernel tree, that proc entry is removed. Responsible commit - https://github.com/omerjerk/android_kernel_xiaomi_ferrari/commit/15d76446205...
It says that functionality has been moved to pstore. But I'm not able to get how to exactly read the debug messages of the last run.
Thanks Umair
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Sasikumar, I had a look at that already. There is no file inside /proc/fs/pstore. Any idea what could be the reason ? Btw, right now I'm running a working kernel which hasn't panicked yet. Is it the normal behavior ? If yes, then I'll try to boot the derped kernel and will see if the panick logs appear there or not. Umair On Wed, Nov 11, 2015 at 5:49 PM, Sasikumar Natarajan < sasikumar.natarajan@vvdntech.in> wrote:
This might help
https://www.kernel.org/doc/Documentation/ABI/testing/pstore
*With Warm Regards,*
Sasikumar Natarajan
VVDN Technologies Pvt Ltd
*Cell: *+91 9994692945 | *Skype:* sasi.vvdn
On Wed, Nov 11, 2015 at 5:13 PM, Umair Khan <omerjerk@gmail.com> wrote:
Hi,
I'm working on the kernel of my xiaomi device. However, whenever I start it, it soft reboots to recovery. I'm guessing a kernel oops occur. I wanted to ask how to read kernel debug messages of the last run ? In my Nexus 5, I have /proc/last_kmsg which contains the messages from the last run.
However, in my xiaomi kernel tree, that proc entry is removed. Responsible commit - https://github.com/omerjerk/android_kernel_xiaomi_ferrari/commit/15d76446205...
It says that functionality has been moved to pstore. But I'm not able to get how to exactly read the debug messages of the last run.
Thanks Umair
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
It works. Thanks. :) On Wed, Nov 11, 2015 at 5:49 PM, Sasikumar Natarajan < sasikumar.natarajan@vvdntech.in> wrote:
This might help
https://www.kernel.org/doc/Documentation/ABI/testing/pstore
*With Warm Regards,*
Sasikumar Natarajan
VVDN Technologies Pvt Ltd
*Cell: *+91 9994692945 | *Skype:* sasi.vvdn
On Wed, Nov 11, 2015 at 5:13 PM, Umair Khan <omerjerk@gmail.com> wrote:
Hi,
I'm working on the kernel of my xiaomi device. However, whenever I start it, it soft reboots to recovery. I'm guessing a kernel oops occur. I wanted to ask how to read kernel debug messages of the last run ? In my Nexus 5, I have /proc/last_kmsg which contains the messages from the last run.
However, in my xiaomi kernel tree, that proc entry is removed. Responsible commit - https://github.com/omerjerk/android_kernel_xiaomi_ferrari/commit/15d76446205...
It says that functionality has been moved to pstore. But I'm not able to get how to exactly read the debug messages of the last run.
Thanks Umair
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (2)
-
Sasikumar Natarajan -
Umair Khan