do_undefinstr+0x108/0x258 with kernel 3.16.56+

Moderators: mdrjr, odroid

do_undefinstr+0x108/0x258 with kernel 3.16.56+

Unread postby eddy » Tue May 29, 2018 10:51 pm

I'm new to the Odroid world, and picked up a C2 (along with a Ublox MAX-M8Q GPS hat from Uputronics, the HAB-GPSPI-NAN) to use as an NTP server. I'm running DietPi for its optimized/minimal Debian config.

Although the system seems to mostly run OK (using ntpd and the reference clock 20 driver (https://www.eecis.udel.edu/~mills/ntp/html/drivers/driver20.html), I have seen the C2 get in to a hard-loop that just spews:

Code: Select all
------------ [ cut here ] ------------
WARNING: CPU: 0 PID: 0 at kernel/timer.c:1038 del_timer_sync+0x44/0x68()
...
Call trace:
...
bust_spinlocks+0x28/0x4c
die+0xb8/0x1a8
arm64_notify_die+0x48/0x8c
do_undefinstr+0x108/0x258   
Exception stack
...
update_wall_time+0x168/0x690
tick_do_update_jiffies64+0xe4/x0140
tick_sched_do_timer+0x4c/0x58
__run_hrtimer+0x94/0x32c
hrtimer_interrupt+0x114/0x2a8
meson_timer_interrupt+0x34/0xa4
handle_irq_event_percpu+0x78/0x290
handle_irq_event+0x54/0x80
handle_fasteoi_irq+0xc4/0x1a4
generic_handle_irq+0x3c/0x54
handle_IRQ+0x74/0xe8
gic_handle_irq+0x48/0x8c
Exception stack
...
el1_irq+0x64/0xd0
cpu_startup_entry+0x1b0/0x274
rest_init+0x8c/0x94
start_kernel_0x38c/0x3a0

over and over on the HDMI console, requiring a power-cycle to recover.

Any idea what might be causing this? I have the CPU governor set to "performance", the clock speed underclocked to 1000 MHz, and the CPU temps are good (46°C / 114°F).

Unfortunately, this isn't easily reproducible. But the whole point of getting the C2 was to have a very reliable local source of time on the network, so if the C2 is going to randomly lock up, that's not going to work out very well!

Any hints would be appreciated.
eddy
 
Posts: 4
Joined: Tue May 29, 2018 9:52 pm
languages_spoken: english
ODROIDs: C2

Re: do_undefinstr+0x108/0x258 with kernel 3.16.56+

Unread postby crashoverride » Tue May 29, 2018 11:44 pm

Try using the official Ubuntu 16.04 image (which has a different kernel) and see if the issue persists.
crashoverride
 
Posts: 3986
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: do_undefinstr+0x108/0x258 with kernel 3.16.56+

Unread postby crashoverride » Tue May 29, 2018 11:54 pm

Another suggestion is to change the hardware timer to "Arch timer" in boot.ini:
https://github.com/mdrjr/c2_bootini/blob/d1e9e1daf2644710d02ba0835ec5f94de6b8c0bb/boot.ini#L110-L115
Code: Select all
# Meson Timer
# 1 - Meson Timer
# 0 - Arch Timer
# Using meson_timer improves the video playback however it breaks KVM (virtualization).
# Using arch timer allows KVM/Virtualization to work however you'll experience poor video
setenv mesontimer "0"
crashoverride
 
Posts: 3986
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: do_undefinstr+0x108/0x258 with kernel 3.16.56+

Unread postby eddy » Wed May 30, 2018 9:41 pm

Thanks for the reply!

I've switched over to the "Arch" timer and will see if that improves things.

Do you know what differences there would be between the "official Ubuntu 16.04 kernel" and the one used in DietPi, or where I could go to determine the differences? I read http://com.odroid.com/sigong/blog/blog_list.php?bid=194 and based on that, thought that the "3.16.56+" kernel used by DietPi was the "latest and greatest".
eddy
 
Posts: 4
Joined: Tue May 29, 2018 9:52 pm
languages_spoken: english
ODROIDs: C2

Re: do_undefinstr+0x108/0x258 with kernel 3.16.56+

Unread postby rooted » Wed May 30, 2018 10:05 pm

DietPi is based on Debian Jessie, Ubuntu will have more updated packages.

The kernel revision is probably the same.
User avatar
rooted
 
Posts: 5575
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: do_undefinstr+0x108/0x258 with kernel 3.16.56+

Unread postby meveric » Thu May 31, 2018 7:25 pm

The development and patches on the Kernel 3.16 are rather slow, there isn't much going on. So the Kernel is more or less the same that Ubuntu is using.
There are a few more options activated when it comes to sound and game controller support, but aside from that they should be nearly identical.
I'm building a new Kernel right now with the latest patches including some changes for the LAN drivers.
It should be available on DietPi in a little bit, but as I said, the Kernel available on Ubuntu and Debian are nearly the same.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9176
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: do_undefinstr+0x108/0x258 with kernel 3.16.56+

Unread postby eddy » Thu May 31, 2018 8:52 pm

Thanks for the reply, maveric.

Any idea if the latest kernel patches address any UART issues that prevent gpsd from running, as described here? viewtopic.php?f=136&t=24608

I'd like to be able to run gpsd so I could give chrony a try...
eddy
 
Posts: 4
Joined: Tue May 29, 2018 9:52 pm
languages_spoken: english
ODROIDs: C2

Re: do_undefinstr+0x108/0x258 with kernel 3.16.56+

Unread postby meveric » Thu May 31, 2018 10:38 pm

Nope there weren't any fixes for that: https://github.com/hardkernel/linux/com ... c2-v3.16.y
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9176
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: do_undefinstr+0x108/0x258 with kernel 3.16.56+

Unread postby crashoverride » Fri Jun 01, 2018 12:38 am

eddy wrote:Do you know what differences there would be between the "official Ubuntu 16.04 kernel" and the one used in DietPi

The official Ubuntu 16.04 is using a different kernel version (3.14) than that posted in the subject (3.16).
crashoverride
 
Posts: 3986
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1


Return to General Chat

Who is online

Users browsing this forum: Biss123 and 3 guests