RevPi Connect+ RTC clock read error when booting up
Posted: 05 May 2021, 12:29
I am testing a RevPi Connect+ unit in my office WITHOUT internet connection.
Kunbus claim the RTC will hold power for 24 hours, however my time is lost when the unit has been down for much shorter time than that.
When I start the unit after a short time without power (just tested now with 30 minutes) the time is set correctly (from the RTC) and:
dmesg | grep rtc
[ 1.619515] rtc-pcf2127-i2c 1-0051: rtc core: registered rtc-pcf2127-i2c as rtc0
[ 1.623352] rtc-pcf2127-i2c 1-0051: setting system clock to 2021-05-05 08:18:31 UTC (1620202711)
so that looks ok.
However when power has been off a longer time (tested with 1hour 12 min) the time is incorrect (I get an old time) and:
dmesg | grep rtc
[ 1.606660] rtc-pcf2127-i2c 1-0051: pcf2127_rtc_read_time: read error
[ 1.607594] rtc-pcf2127-i2c 1-0051: rtc core: registered rtc-pcf2127-i2c as rtc0
[ 1.609207] rtc-pcf2127-i2c 1-0051: pcf2127_rtc_read_time: read error
[ 1.609983] rtc-pcf2127-i2c 1-0051: hctosys: unable to read the hardware clock
Kunbus claim the RTC will hold power for 24 hours, however my time is lost when the unit has been down for much shorter time than that.
When I start the unit after a short time without power (just tested now with 30 minutes) the time is set correctly (from the RTC) and:
dmesg | grep rtc
[ 1.619515] rtc-pcf2127-i2c 1-0051: rtc core: registered rtc-pcf2127-i2c as rtc0
[ 1.623352] rtc-pcf2127-i2c 1-0051: setting system clock to 2021-05-05 08:18:31 UTC (1620202711)
so that looks ok.
However when power has been off a longer time (tested with 1hour 12 min) the time is incorrect (I get an old time) and:
dmesg | grep rtc
[ 1.606660] rtc-pcf2127-i2c 1-0051: pcf2127_rtc_read_time: read error
[ 1.607594] rtc-pcf2127-i2c 1-0051: rtc core: registered rtc-pcf2127-i2c as rtc0
[ 1.609207] rtc-pcf2127-i2c 1-0051: pcf2127_rtc_read_time: read error
[ 1.609983] rtc-pcf2127-i2c 1-0051: hctosys: unable to read the hardware clock