imx6: Android: save time to /dev/rtc0

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

imx6: Android: save time to /dev/rtc0

838 次查看
lzenz
Contributor II

Hello,

we ported Android M6.0.1_2.1.0 to a custom hardware with i.mx6dl.

When Android does sync the date and time with the network it is not stored to the /dev/rtc0 device (rtc kernel driver is already working as expected) and is lost when a reboot is done.

Is there a mechanism which can be used to store the date and time to /dev/rtc0?

Thank you.

Regards,

Ludwig

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

613 次查看
b36401
NXP Employee
NXP Employee

I can suggest to add a command to sync the clock into shutdown script.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

613 次查看
lzenz
Contributor II

Thank you very much.

Do you know a mechanism or hook which does it immediatly after the android system got a valid time from the network?

Regards,

Ludwig

0 项奖励
回复