kernel panic

Moderators: odroid, mdrjr

kernel panic

Unread postby 0petter0 » Mon Jan 16, 2017 12:20 am

hi, any solution to get kernel panic stack trace without uart cable? apanic is deprecated and works only with mtd, i tryed https://gitlab.com/k2wl/g2_kernel/commi ... 2b5f35b6cf but kernel doesn't boot with this patch and blitting console into hdmi fb doesn't work for me :-(
0petter0
 
Posts: 21
Joined: Tue Nov 22, 2016 10:47 pm
languages_spoken: english
ODROIDs: U3

Re: kernel panic

Unread postby odroid » Mon Jan 16, 2017 10:50 am

If the kernel panic occurs before HDMI output enabling, you can't see any log.
The USB-UART cable is required for the low level debugging. :(
User avatar
odroid
Site Admin
 
Posts: 27956
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: kernel panic

Unread postby 0petter0 » Tue Jan 17, 2017 4:52 am

and did you make hdmi framebuffer console work? i have kernel panic after hdmi enabled, it looks like xpad driver causes kernel panic sometimes, when device is booting and xbox receiver is plugged into usb. or kexec could be solution, create small kernel and into initramfs pack android recovery and boot it if panic occurs to access panic stack trace
0petter0
 
Posts: 21
Joined: Tue Nov 22, 2016 10:47 pm
languages_spoken: english
ODROIDs: U3

Re: kernel panic

Unread postby 0petter0 » Wed Jan 18, 2017 12:44 pm

my cmdline is

root=/dev/mmcblk0p2 rw rootfstype=ext4 init=/init console=/dev/graphics/fb0 androidboot.console=/dev/graphics/fb0 androidboot.selinux=permissive mem=2047M v_out=hdmi fake_fb=true fb_x_res=1920 fb_y_res=1080 hdmi_phy_res=1080 led_blink=1

and CONFIG_FRAMEBUFFER_CONSOLE=y

but still no console on TV when device booting, only android logo
0petter0
 
Posts: 21
Joined: Tue Nov 22, 2016 10:47 pm
languages_spoken: english
ODROIDs: U3

Re: kernel panic

Unread postby odroid » Wed Jan 18, 2017 1:10 pm

I don't know how the HDMI framebuffer driver can be enabled in early stage. Sorry about that.
User avatar
odroid
Site Admin
 
Posts: 27956
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: kernel panic

Unread postby 0petter0 » Wed Jan 18, 2017 5:05 pm

ok, do you know how to reboot device on kernel panic? i've set in config panic_timeout on 5sec so kernel should reboot after that and android last_kmsg driver will be able to get stack trace after reboot, but my kernel is stuck after panic, could be possible reboot on panic by bootloader??
0petter0
 
Posts: 21
Joined: Tue Nov 22, 2016 10:47 pm
languages_spoken: english
ODROIDs: U3

Re: kernel panic

Unread postby 0petter0 » Thu Jan 19, 2017 6:17 pm

after using console=tty1, disabled bootanim i see on tv printk messages, but somehow fbcon is not scrolling down, so i see only first lines
0petter0
 
Posts: 21
Joined: Tue Nov 22, 2016 10:47 pm
languages_spoken: english
ODROIDs: U3

Re: kernel panic

Unread postby 0petter0 » Thu Jan 26, 2017 6:48 pm

if somebody wants working last_kmsg here is my patches from smdk4412 kernel

https://github.com/havlenapetr/android_ ... d382486582
https://github.com/havlenapetr/android_ ... 5738e0fcad
0petter0
 
Posts: 21
Joined: Tue Nov 22, 2016 10:47 pm
languages_spoken: english
ODROIDs: U3


Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest