AOM-DB3500 RTC

From ESS-WIKI
Revision as of 03:55, 6 January 2026 by Xingxing.li (talk | contribs) (Created page with " === '''RTC''' === 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 20...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

RTC

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 12:00:00 AM UTC 2000
2016-02-17 10:45:14.178208+00:00
Sat Jan 1 12:00:00 AM UTC 2000

Restore the RTC time to system time.

# hwclock -s && date
Wed Feb 17 10:45:30 AM UTC 2016