by crazystick » Mon Oct 27, 2014 12:08 pm
$this->bbcode_second_pass_quote('pepedog', 'S')orry, I only have a hb i2ex so can't help, can't believe it works on one and not the other
I think I figured it out, I have the Hummingboard Pro carrier which includes the hardware RTC and I end up with /dev/rtc0 and /dev/rtc1 plus the symlink /dev/rtc -> /dev/rtc0
After linking /dev/rtc -> /dev/rtc1 timedatectl succeeds. The behaviour on the Hummingboard and the Cubox is different
Cubox-i - Both rtc0 and rtc1 work as hardware clocks$this->bbcode_second_pass_code('', '
user@cubox ~ % sudo hwclock -r -f /dev/rtc0 --debug
hwclock from util-linux 2.25.1
Using the /dev interface to the clock.
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
/dev/rtc0 does not have interrupt functions. Waiting in loop for time from /dev/rtc0 to change
...got clock tick
Time read from Hardware Clock: 2014/10/27 12:01:06
Hw clock time : 2014/10/27 12:01:06 = 1414411266 seconds since 1969
Mon Oct 27 12:01:06 2014 -0.843424 seconds
user@cubox ~ % sudo hwclock -r -f /dev/rtc1 --debug
hwclock from util-linux 2.25.1
Using the /dev interface to the clock.
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 1970/01/13 01:34:33
Hw clock time : 1970/01/13 01:34:33 = 1042473 seconds since 1969
Tue Jan 13 01:34:33 1970 -0.287867 seconds
')
Hummingboard - rtc0 does not function, rtc1 is a hardware clock$this->bbcode_second_pass_code('', '
user@hummingboard ~ % sudo hwclock -r -f /dev/rtc0 --debug
hwclock from util-linux 2.25.1
Using the /dev interface to the clock.
Last drift adjustment done at 1414410754 seconds after 1969
Last calibration done at 1414410754 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
/dev/rtc0 does not have interrupt functions. Waiting in loop for time from /dev/rtc0 to change
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Invalid argument
...synchronization failed
74 user@hummingboard ~ % sudo hwclock -r -f /dev/rtc1 --debug
hwclock from util-linux 2.25.1
Using the /dev interface to the clock.
Last drift adjustment done at 1414410754 seconds after 1969
Last calibration done at 1414410754 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2014/10/27 12:00:53
Hw clock time : 2014/10/27 12:00:53 = 1414411253 seconds since 1969
Mon Oct 27 12:00:53 2014 -0.971156 seconds
')