imx6: Android: save time to /dev/rtc0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6: Android: save time to /dev/rtc0

750 Views
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

Labels (2)
0 Kudos
2 Replies

525 Views
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 Kudos

525 Views
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 Kudos