UCM-iMX95 Yocto Linux: RTC

From Compulab Mediawiki
Revision as of 15:55, 9 January 2025 by Igor (talk | contribs) (Created page with "There two RTC devices: * SoC integrated '''rtc0''' that can be used as wake-up source * On board '''rtc1''' - a low current battery powered time keeper <!-- == Internal - rtc0...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

There two RTC devices:

  • SoC integrated rtc0 that can be used as wake-up source
  • On board rtc1 - a low current battery powered time keeper

External - rtc1

  • System information:
udevadm info -p /sys/class/rtc/rtc1
  • Set the date and write to the RTC:
date -s "12 SEP 2019 10:00:00"

Thu Sep 12 10:00:00 UTC 2019
hwclock --systohc --rtc /dev/rtc1
  • Read the RTC time and date:
hwclock --show --rtc /dev/rtc1

2023-06-16 12:01:37.935876+00:00