This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mission:log:2015:02:06:patching-kernel-ntp-to-fix-odroid-armv7a-chrony-adjtimex-bug [2015-02-07 17:50] – [Fixing the kernel] chrono | mission:log:2015:02:06:patching-kernel-ntp-to-fix-odroid-armv7a-chrony-adjtimex-bug [2015-02-08 09:17] (current) – [Fixing the kernel] chrono | ||
---|---|---|---|
Line 32: | Line 32: | ||
} | } | ||
</ | </ | ||
- | After patching the odroid sources with the recommended one from the bugtracker chronyd is working like a charm again. So if you' | + | |
+ | 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:// | ||
+ | |||
+ | <sxh c; toolbar: | ||
+ | --- a/ | ||
+ | +++ b/ | ||
+ | @@ -634,9 +634,9 @@ int ntp_validate_timex(struct timex *txc) | ||
+ | return -EPERM; | ||
+ | |||
+ | if (txc-> | ||
+ | - if (LONG_MIN / PPM_SCALE > txc-> | ||
+ | + if (LLONG_MIN / PPM_SCALE > txc-> | ||
+ | return -EINVAL; | ||
+ | - if (LONG_MAX / PPM_SCALE < txc-> | ||
+ | + if (LLONG_MAX / PPM_SCALE < txc-> | ||
+ | return -EINVAL; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | This patch was tested and is solving chrony' | ||
===== Hacking a new RTC power supply with a goldcap capacitor ===== | ===== Hacking a new RTC power supply with a goldcap capacitor ===== | ||
- | The Odroid C1 also comes with another not so obvious pitfall: The RTC power supply. The optional RTC battery, you can usually buy wherever you can buy the Odroid itself, is the only power supply for the RTC. Meaning: When you don't have this battery, the RTC will not get powered at all (not even when your system is powered and running) so in order to get the RTC working, you need to feed power to the RTC Header. | + | The Odroid C1 also came with another not so obvious pitfall: The RTC power supply. The optional RTC battery, you can usually buy wherever you can buy the Odroid itself, is the only power supply for the RTC. Meaning: When you don't have this battery, the RTC will not get powered at all (not even when your system is powered and running) so in order to get the RTC working |
+ | |||
+ | U15 (XC6215B0927R-G) is a highly precise, low noise, positive voltage LDO regulator and it supplies the power to the VDD_RTC rail. And it's **only** connected to the RTC Battery PIN Header. So what to do now, when no battery is available? Just a quick hack to solve it: | ||
- | A quick glance in the schematics revealed the secret: U15 (XC6215B0927R-G) is a highly precise, low noise, positive voltage LDO regulator, to feed the RTC the voltage it needs. | + | Since using a battery seemed kinda backwards and there was a 5.5V 1F goldcap |
{{tag> | {{tag> |