DHCOR STM32MP1 Linux: Difference between revisions
From Wiki-DB
Jump to navigationJump to search
Line 35: | Line 35: | ||
== Kernel Userspace Interfaces to Access Hardware == | |||
=== Serial (UART) Interfaces === | |||
:{| class="wikitable" style="width: 400px" | |||
||DHCOM (FF) UART 1||<tt>/dev/ttymxc0</tt> | |||
:{| class="wikitable" style="width: | |- | ||
|| | ||DHCOM (BT) UART 2 ||<tt>/dev/ttymxc4</tt> | ||
|- | |- | ||
|| | ||DHCOM (STD) UART 3 ||<tt>/dev/ttymxc3</tt> | ||
|} | |} | ||
:Set a specific system time | |||
: | :{| class="wikitable" align="center" | style="color: #000000; background: #FFFFFF;" valign="top" | | ||
:{| class="wikitable" | |<tt>''# date -s "2020-01-30 10:00:00"</tt> | ||
: | |||
: | |||
|<tt>'' | |||
|} | |} | ||
: | :Save the current system time to the RTC of the STM32MP1 | ||
:{| class="wikitable" | :{| class="wikitable" align="center" | style="color: #000000; background: #FFFFFF;" valign="top" | | ||
|<tt>'' | |<tt>''# hwclock -w</tt> | ||
|} | |} | ||
: | :When you allready have stored a date on the RTC and you want to read it out, use the next command. This command only gives back the time, but does not synchronize it with the system time. This is done in the next step. | ||
:{| class="wikitable" | :{| class="wikitable" align="center" | style="color: #000000; background: #FFFFFF;" valign="top" | | ||
|<tt>'' | |<tt>''# hwclock -r</tt> | ||
|} | |} | ||
: | :The system time can be synchronised to the RTC by this command: | ||
:{| class="wikitable" | :{| class="wikitable" align="center" | style="color: #000000; background: #FFFFFF;" valign="top" | | ||
|<tt>'' | |<tt>''# ??????????????????</tt> | ||
|} | |} | ||
Revision as of 09:20, 22 July 2020
PAGE IS UNDER CONSTRUCTION!
Linux Userspace Commands
Unsing the internal RTC
- Read out the current date
# date
- Set a specific system time
# date -s "2020-01-30 10:00:00"
- Save the current system time to the RTC of the STM32MP1
# hwclock -w
- When you allready have stored a date on the RTC and you want to read it out, use the next command. This command only gives back the time, but does not synchronize it with the system time. This is done in the next step.
# hwclock -r
- The system time can be synchronised to the RTC by this command:
# ??????????????????
Kernel Userspace Interfaces to Access Hardware
Serial (UART) Interfaces
DHCOM (FF) UART 1 /dev/ttymxc0 DHCOM (BT) UART 2 /dev/ttymxc4 DHCOM (STD) UART 3 /dev/ttymxc3
- Set a specific system time
# date -s "2020-01-30 10:00:00"
- Save the current system time to the RTC of the STM32MP1
# hwclock -w
- When you allready have stored a date on the RTC and you want to read it out, use the next command. This command only gives back the time, but does not synchronize it with the system time. This is done in the next step.
# hwclock -r
- The system time can be synchronised to the RTC by this command:
# ??????????????????