Debug kernel panic on Android x86

771 views
Skip to first unread message

Rover Zhang

unread,
Oct 23, 2015, 1:12:43 AM10/23/15
to Android-x86
Hi Android-x86 team,

Thanks for you great contribution on Android-x86 project, I am trying it for days and it's really amazing.

I am trying to porting new kernel on 5.1, but sometimes it reboots unexpectedly looks like a kernel panic. Then I couldn't find anything helpful for debug like dump/dmesg after reboot.
I googled and it says it supposed to be a /proc/last_kmsg file for debug, but I can't find it.
And I checked source code seems the related compiler switch like CONFIG_PSTORE_CONSOLE is enabled.
Some Android phone experts told me that this feature is platform related, for example Qualcomm & MTK will implement their own ways to support this feature on Android phone.
So hereis the question, how do I debug kernel panic on Android x86?

Any suggestion is appreciated, thanks in advance.

Rover

Rover Zhang

unread,
Dec 21, 2015, 10:24:04 PM12/21/15
to Android-x86
Anybody help?

在 2015年10月23日星期五 UTC+8下午1:12:43,Rover Zhang写道:

Mauro Rossi

unread,
Dec 22, 2015, 5:31:38 PM12/22/15
to Android-x86
Hi Rover,

It's very difficult to provide feedback,

because we don't know what kernel you are using, what changes you've done, if you're buinding 32-bit or 64-bit and what platform/DuT you are using to test your builds,
please provide the necessary information.

The following kernel 4.4rc6 branch, based on JJ Meijer's,  builds and boots on several desktops and laptops.
I'm testing the builds of lollipop-x86 just after each kernel release candidate.

https://github.com/maurossi/linux/commits/kernel-4.4rc6_rebase

Mauro




Rover Zhang

unread,
Dec 23, 2015, 1:33:57 AM12/23/15
to Android-x86
Hi Mauro,

Thanks for the reply, I am testing kernel 5.1 64bit, and actually what I need is a way to debug kernel panic like kdump on Ubuntu rather than a mature stable kernel.
Could you help me on this?

Rover

在 2015年12月23日星期三 UTC+8上午6:31:38,Mauro Rossi写道:

Mauro Rossi

unread,
Dec 23, 2015, 4:40:12 AM12/23/15
to Android-x86

Gary Naj

unread,
Dec 23, 2015, 5:47:38 AM12/23/15
to Android-x86
hello, 2 years ago I had the same problem, I dual boot it with windows and the android partition randomly unmount itself (black triangle with yellow exclamation point) and sometimes got kernel panic, what remedy I used is just a plain check disk from g-parted. I know now the cause of unmounting- it was due to unsafe power off of the device back then I mistakenly used a 3rd party power button app to turn off but it only turn off the display which I used to beleive my device already power off. But I did not know the root cause of my kernel panic.

http://androidforums.com/threads/dear-all-cyborgz-using-androids-who-eat-apples-and-blackberries-and-keep-starring-at-windows.764242/

Rover Zhang

unread,
Dec 24, 2015, 6:35:23 AM12/24/15
to Android-x86
Hi Mauro,

Thanks for the reply, but RAM CONSOLE only works on specific Android device since it's implemented by platform vendor, therefore it's not working on Android-x86.

Rover

在 2015年12月23日星期三 UTC+8下午5:40:12,Mauro Rossi写道:

Rover Zhang

unread,
Dec 24, 2015, 6:37:14 AM12/24/15
to Android-x86
Thanks for sharing.

在 2015年12月23日星期三 UTC+8下午6:47:38,Gary Naj写道:
Reply all
Reply to author
Forward
0 new messages