On a Debian server, I'm having problem with hwclock
:
$ hwclock --show
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
System runs on backports kernel Debian 4.9.18-1~bpo8+1 (2017-04-10)
.
Here's debug output:
$ hwclock --debug
hwclock from util-linux 2.25.2
hwclock: cannot open /dev/rtc: Device or resource busy
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
clocksource:
$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc
Finally, rtc
device exists:
$ ls -l /dev/rtc*
lrwxrwxrwx 1 root root 4 Apr 29 16:41 /dev/rtc -> rtc0
crw------- 1 root root 253, 0 Apr 29 16:41 /dev/rtc0