DHCOR STM32MP1 Linux: Difference between revisions
From Wiki-DB
Jump to navigationJump to search
Line 9: | Line 9: | ||
=== Unsing the internal RTC === | === Unsing the internal RTC === | ||
:Read out the current date | :Read out the current date and time | ||
:{| class="wikitable" align="center" | style="color: #000000; background: #FFFFFF;" valign="top" | | :{| class="wikitable" align="center" | style="color: #000000; background: #FFFFFF;" valign="top" | | ||
|<tt>''# date</tt> | |<tt>''# date</tt> | ||
Line 33: | Line 33: | ||
|<tt>''# ??????????????????</tt> | |<tt>''# ??????????????????</tt> | ||
|} | |} | ||
== Kernel Userspace Interfaces to Access Hardware == | == Kernel Userspace Interfaces to Access Hardware == |
Revision as of 10:34, 22 July 2020
CAUTION! THIS PAGE IS UNDER CONSTRUCTION!
Linux Userspace Commands
Unsing the internal RTC
- Read out the current date and time
# 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
Serial (UART) Interfaces
96Boards Name Linux Name Hardware Name UART 0 /dev/ttySTM0 UART7 UART 1 /dev/ttySTM1 UART 4
I²C Interfaces
96Boards Name Linux Name Hardware Name I2C0 /dev/i2c-1 I2C2 I2C1 /dev/i2c-0 I2C1 OnBoard /dev/i2c-2 I2C4