<div dir="ltr">Hi,<div><br></div><div>I&#39;m working on the kernel of my xiaomi device. However, whenever I start it, it soft reboots to recovery. </div><div>I&#39;m guessing a kernel oops occur.</div><div>I wanted to ask how to read kernel debug messages of the last run ?</div><div>In my Nexus 5, I have /proc/last_kmsg which contains the messages from the last run.</div><div><br></div><div>However, in my xiaomi kernel tree, that proc entry is removed.</div><div>Responsible commit - <a href="https://github.com/omerjerk/android_kernel_xiaomi_ferrari/commit/15d76446205710ddfcba6cc9156c7883074f84b1">https://github.com/omerjerk/android_kernel_xiaomi_ferrari/commit/15d76446205710ddfcba6cc9156c7883074f84b1</a></div><div><br></div><div>It says that functionality has been moved to pstore. </div><div>But I&#39;m not able to get how to exactly read the debug messages of the last run.</div><div><br></div><div>Thanks</div><div>Umair</div></div>