IMX RTC: Difference between revisions
From Variscite Wiki
(Created page with "{{PageHeader|VAR-SOM-MX6 - RTC}} {{DocImage|category1=VAR-SOM-MX6|category2=Yocto}} __toc__") |
No edit summary |
||
Line 1: | Line 1: | ||
{{PageHeader|VAR-SOM-MX6 - RTC}} {{DocImage|category1=VAR-SOM-MX6|category2=Yocto}} __toc__ | {{PageHeader|VAR-SOM-MX6 - RTC}} {{DocImage|category1=VAR-SOM-MX6|category2=Yocto}} __toc__ | ||
To set the RTC first set the date from Linux shell, type:<br> | |||
<pre>$ date --set="20150225 09:04" | |||
</pre> | |||
Then set the real time clock from Linux shell, type:<br> | |||
<pre>$ hwclock --systohc --utc | |||
</pre> | |||
Power down your board wait 5 minutes and power up. Check your system with date and the time should be up to date.<br> |
Revision as of 16:50, 13 December 2015
VAR-SOM-MX6 - RTC
To set the RTC first set the date from Linux shell, type:
$ date --set="20150225 09:04"
Then set the real time clock from Linux shell, type:
$ hwclock --systohc --utc
Power down your board wait 5 minutes and power up. Check your system with date and the time should be up to date.