The problem of RTC on Android6.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

The problem of RTC on Android6.0

1,735 次查看
pengxingwei
Contributor III

Hi,

    My platform is Android6.0(the kernel version is linux 4.1.15), the rtc is pcf8563, so the driver is rtc-pcf8563, but I found a problem that the time can't save and the time is 1970-1-1 8:00 after the sytem startup every time, the start log as follow about pcf8563:

rtc-pcf8563 2-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 2-0051: rtc core: registered rtc-pcf8563 as rtc0

rtc-pcf8563 2-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 2-0051: hctosys: unable to read the hardware clock

 how to slove the problem? Thanks !

标签 (3)
0 项奖励
3 回复数

1,222 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello xingwei,

     Since you use external RTC chip, It means there are 2 RTCs in you system, another is RTC in CPU.

According to your description, I feel your system is using SRTC in CPU,  if you don't connect Battery for the SRTC, after shut down and startup again, timer will be reset.

    So please check which RTC chip is using in your system.

Have a nice day!

Best Regards,

weidong

0 项奖励

1,222 次查看
pengxingwei
Contributor III

Hello Wigros,

             Thanks for your reply. I had disabled the snvs rtc in my kernel configuration file ,and the kernel log about rtc is as follow:

 

 root@sabresd_6dq:/ # dmesg | grep -i rtc
[    3.752979] rtc-pcf8563 2-0051: low voltage detected, date/time is not reliable.
[    3.760676] rtc-pcf8563 2-0051: rtc core: registered rtc-pcf8563 as rtc0
[    6.454430] rtc-pcf8563 2-0051: low voltage detected, date/time is not reliable.
[    6.461913] rtc-pcf8563 2-0051: hctosys: unable to read the hardware clock
root@sabresd_6dq:/ #

So ,there is only pcf8563 rtc in my system.

 Thanks!

0 项奖励

1,222 次查看
pengxingwei
Contributor III

Hello Wigros,

             Thanks for your reply. I had disabled the snvs rtc in my kernel configuration file ,and the kernel log about rtc is as follow:

So ,there is only pcf8563 rtc in my system.

 Thanks!

0 项奖励