Difference between revisions of "RTC(ROM-5880)"
From ESS-WIKI
Xingxing.li (talk | contribs) (Created page with " '''Set the system to the current time then set the RTC''' <pre># date 021710452016 && hwclock -w && date Wed Feb 17 10:45:00 UTC 2016 Wed Feb 17 10:45:01 UTC 2016</pre> '''S...") |
(No difference)
|
Latest revision as of 03:47, 5 December 2023
Set the system to the current time then set the RTC
# date 021710452016 && hwclock -w && date Wed Feb 17 10:45:00 UTC 2016 Wed Feb 17 10:45:01 UTC 2016
Set one incorrect time, then read RTC to verify
# date 010100002000 && hwclock -r && date Sat Jan 1 00:00:00 UTC 2000 2016-02-17 10:49:08.417688+00:00 Sat Jan 1 00:00:00 UTC 2000
Restore the RTC time to system time
# hwclock -s && date Wed Feb 17 10:46:58 UTC 2016