[util-linux] hwclock cannot adjust time with glibc 2.31-2

Problems with packages? Post here, using [tags] of the package name.

[util-linux] hwclock cannot adjust time with glibc 2.31-2

Postby stast » Thu Apr 30, 2020 7:52 pm

Hardware: ODROID-C2
After upgrading glibc to 2.31-2 hwclock cannot adjust time anymore:
Code: Select all
$ 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
Last edited by stast on Thu Apr 30, 2020 8:02 pm, edited 1 time in total.
stast
 
Posts: 34
Joined: Thu May 04, 2017 2:45 pm


Re: [util-linux] hwclock cannot adjust time with glibc 2.31-

Postby stast » Thu Apr 30, 2020 8:03 pm

Renamed the topic: [glibc] -> [util-linux], because I believe that hwclock needs to be patched for new glibc.

UPD: This seems to be the patch: https://github.com/karelzak/util-linux/commit/cd781c405be82540484da3bfe3d3f17a39b8eb5c
stast
 
Posts: 34
Joined: Thu May 04, 2017 2:45 pm

Re: [util-linux] hwclock cannot adjust time with glibc 2.31-

Postby NeilMunday » Thu May 21, 2020 8:11 pm

I'm also seeing this error since updating my Raspberry Pi which has a RTC module.

Cheers,

Neil.
NeilMunday
 
Posts: 18
Joined: Thu Feb 05, 2015 4:23 pm

Re: [util-linux] hwclock cannot adjust time with glibc 2.31-

Postby iomihai » Fri May 22, 2020 9:29 am

Had this issue and solved it by building from source and compiling just hwclock
Code: Select all
git clone https://github.com/karelzak/util-linux.git
cd util-linux/
./autogen.sh
./configure --disable-all-programs --enable-hwclock
make hwclock
make install hwclock

but I see a new version of util-linux 2.35.2 is released and it will be soon available in the repo that should fix this
iomihai
 
Posts: 1
Joined: Fri May 22, 2020 9:24 am

Re: [util-linux] hwclock cannot adjust time with glibc 2.31-

Postby NeilMunday » Thu May 28, 2020 10:56 pm

Hi,

Just updated my Raspberry Pi and hwclock is working again.

Thanks to those that helped fix the issue.

Cheers,

Neil.
NeilMunday
 
Posts: 18
Joined: Thu Feb 05, 2015 4:23 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 3 guests