After upgrading glibc to 2.31-2 hwclock cannot adjust time anymore:
$this->bbcode_second_pass_code('', '
$ sudo hwclock --verbose -s
hwclock from util-linux 2.35.1
System Time: 1588275996.557196
Trying to open: /dev/rtc0
Using the rtc interface to the clock.
Last drift adjustment done at 1554326909 seconds after 1969
Last calibration done at 1554326909 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
ioctl(3, RTC_UIE_ON, 0): Invalid argument
Waiting in loop for time from /dev/rtc0 to change
...got clock tick
Time read from Hardware Clock: 2020/04/30 19:46:38
Hw clock time : 2020/04/30 19:46:38 = 1588275998 seconds since 1969
Time since last adjustment is 33949089 seconds
Calculated Hardware Clock drift is 0.000000 seconds
Calling settimeofday(1588275998.000000, -120)
hwclock: settimeofday() failed: Invalid argument
')
Packages:
- glibc 2.31-2
linux-odroid-c2 3.16.78-1
util-linux 2.35.1-2
PS: It's unfortunate that RTC is being hit again despite the fact that I'm staying with the old kernel (3.16.78-1) and old systemd (244.3-1) because of this: https://archlinuxarm.org/forum/viewtopic.php?f=15&t=14225