DHCOR STM32MP1 Linux: Difference between revisions
From Wiki-DB
Jump to navigationJump to search
Line 53: | Line 53: | ||
:{| class="wikitable" | :{| class="wikitable" | ||
|- style="font-weight:bold; background-color:#efefef;" | |- style="width: 800px; font-weight:bold; background-color:#efefef;" | ||
! | ! Test | ||
! Linux Name | ! Linux Name | ||
! Hardware Name | ! Hardware Name |
Revision as of 10:03, 22 July 2020
CAUTION! THIS 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
Test Linux Name Hardware Name A2 B2 B3 A3 B3 C3
- 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:
# ??????????????????