User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mission:log:2015:02:06:patching-kernel-ntp-to-fix-odroid-armv7a-chrony-adjtimex-bug [2015/02/07 19:36]
chrono [Hacking a new RTC power supply with a goldcap capacitor]
mission:log:2015:02:06:patching-kernel-ntp-to-fix-odroid-armv7a-chrony-adjtimex-bug [2015/02/08 09:17] (current)
chrono [Fixing the kernel]
Line 32: Line 32:
         }         }
 </sxh> </sxh>
-After patching the odroid sources with the recommended one from the bugtracker chronyd is working like a charm again. So if you're having issues with newer kernels (at least from an embedded perspective), that use dynamic or idle tick-less clocks, you might want to patch your kernel as well.+ 
 +After patching the odroid sources with the recommended one from the bugtracker chronyd is working like a charm again
 + 
 +**Update** 
 + 
 +After linking the issue on github, kukabu delivered the link to the  [[https://bugzilla.kernel.org/attachment.cgi?id=165631&action=diff|upstream kernel bug]]: 
 + 
 +<sxh c; toolbar:false; highlight: [7,8,10,11];
 +--- a/kernel/time/ntp.c 
 ++++ b/kernel/time/ntp.c 
 +@@ -634,9 +634,9 @@ int ntp_validate_timex(struct timex *txc) 
 +                return -EPERM; 
 +  
 +        if (txc->modes & ADJ_FREQUENCY) { 
 +-               if (LONG_MIN / PPM_SCALE > txc->freq) 
 ++               if (LLONG_MIN / PPM_SCALE > txc->freq) 
 +                        return -EINVAL; 
 +-               if (LONG_MAX / PPM_SCALE < txc->freq) 
 ++               if (LLONG_MAX / PPM_SCALE < txc->freq) 
 +                        return -EINVAL; 
 +        } 
 +</sxh> 
 + 
 +This patch was tested and is solving chrony's sync problems as well. So if you're experiencing NTP issues with newer kernels (at least from an embedded perspective), that use dynamic or idle tick-less clocks, you might want to check/patch your kernel with this one.
  
 ===== Hacking a new RTC power supply with a goldcap capacitor ===== ===== Hacking a new RTC power supply with a goldcap capacitor =====