DART-MX8M RTC: Difference between revisions
No edit summary |
(Add INIT_RELEASE_PARAM) |
||
(11 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<!-- Set release according to "release" parameter in URL and use | <!-- Set release according to "release" parameter in URL and use RELEASE_SUMO_V1.0_DART-MX8M as default | ||
--> {{# | --> {{INIT_RELEASE_PARAM|RELEASE_SUMO_V1.0_DART-MX8M}} <!-- | ||
--> {{#lst: | --> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!-- | ||
--> {{PageHeader|{{#var:HARDWARE_NAME}} RTC}} {{DocImage|category1=Yocto|category2=DART-MX8M | --> {{#lst:B2QT_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!-- | ||
--> {{#lst:Debian_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!-- | |||
--> {{PageHeader|{{#var:HARDWARE_NAME}} - Real Time Clock (RTC)}} {{DocImage|category1=Yocto|category2=Debian}}[[Category:DART-MX8M]][[Category:DART-MX8M-MINI]][[Category:DART-MX8M-PLUS]] __toc__ | |||
= Setting the RTC = | = Setting the RTC = | ||
First set the system date & time: | |||
# date --set="20171231 23:59" | |||
Then set the HW RTC using the system date & time: | |||
Then set the | # hwclock --systohc --utc | ||
<br> | |||
< | Power down your board, wait 5 minutes and power up again, then check you system date & time and verify it is correct: | ||
Power down your board wait 5 minutes and power up | # date | ||
= Wake-up using the RTC = | = Wake-up using the RTC = | ||
Wake-up using the RTC requires hardware connection of RTC IRQ pin to a SoC GPIO | Wake-up using the RTC requires hardware connection of RTC IRQ pin to a SoC GPIO.<br> | ||
On DART-MX8M, DART-MX8M-MINI and DART-MX8M-PLUS carrier boards RTC IRQ pin is connected to GPIO1_15.<br> | |||
On VAR-SOM-MX8M-MINI, VAR-SOM-MX8M-NANO VAR-SOM-MX8M-PLUS carrier boards RTC IRQ pin is not connected.<br> | |||
== Using rtcwake command == | |||
For example, to set the RTC to wakeup after 10 seconds type: | For example, to set the RTC to wakeup after 10 seconds type: | ||
# echo enabled > /sys/class/rtc/rtc0/device/power/wakeup | |||
# rtcwake -m mem -d rtc0 -s 10 | |||
For more options, like waking up at a specific time, run: | For more options, like waking up at a specific time, run: | ||
# rtcwake --help | |||
Latest revision as of 17:21, 7 February 2023
This page is using the default release RELEASE_SUMO_V1.0_DART-MX8M.
To view this page for a specific Variscite SoM and software release, please follow these steps:
- Visit variwiki.com
- Select your SoM
- Select the software release
Setting the RTC
First set the system date & time:
# date --set="20171231 23:59"
Then set the HW RTC using the system date & time:
# hwclock --systohc --utc
Power down your board, wait 5 minutes and power up again, then check you system date & time and verify it is correct:
# date
Wake-up using the RTC
Wake-up using the RTC requires hardware connection of RTC IRQ pin to a SoC GPIO.
On DART-MX8M, DART-MX8M-MINI and DART-MX8M-PLUS carrier boards RTC IRQ pin is connected to GPIO1_15.
On VAR-SOM-MX8M-MINI, VAR-SOM-MX8M-NANO VAR-SOM-MX8M-PLUS carrier boards RTC IRQ pin is not connected.
Using rtcwake command
For example, to set the RTC to wakeup after 10 seconds type:
# echo enabled > /sys/class/rtc/rtc0/device/power/wakeup # rtcwake -m mem -d rtc0 -s 10
For more options, like waking up at a specific time, run:
# rtcwake --help