Hello I have a problem with RTC on Ixora board with apalis T30 on linux. Why does the clock work incorrectly after turning on the power? I execute the following commands and get errors.
root@apalis-t30:~# timedatectl Failed to query server: Invalid argument
After that, I’m trying to read the value of the time with the RTC by running the command:
root@apalis-t30:~# hwclock -r hwclock: RTC_RD_TIME: Invalid argument
But again I get an error.
Then I set the value of the RTC from the system clock
root@apalis-t30:~# hwclock -w
And get the following values after.
root@apalis-t30:~# timedatectl Local time: Fri 2017-06-02 16:47:56 UTC Universal time: Fri 2017-06-02 16:47:56 UTC RTC time: Fri 2017-06-02 16:47:57 Time zone: Universal (UTC, +0000) NTP enabled: no NTP synchronized: no RTC in local TZ: no DST active: n/a
But it’s not right.
At the next day after turning on the power it does not work again.
Why is this happening? What am I doing wrong?