Rtc; Watchdog - Advantech RSB-3730 User Manual

Nxp imx8m mini arm cortex-a53 2.5″ sbc with uio40 express
Table of Contents

Advertisement

3.8

RTC

1.
Disable RTC sync service.
# systemctl disable ntpd.service
Removed /etc/systemd/system/multi-user.target.wants/ntpd.service.
# systemctl stop systemd-timesyncd
# systemctl stop ntpdate.service
2.
Set system time to current, then write to RTC.
# date 021710452016 && hwclock -w && date
Wed Feb 17 10:45:00 UTC 2016
Wed Feb 17 10:45:01 UTC 2016
3.
Set one incorrect time, then read the time from RTC to verify.
# date 010100002000 && hwclock -r && date
Sat Jan 1 00:00:00 UTC 2000
2016-02-17 10:45:06.361513+00:00
Sat Jan 1 00:00:00 UTC 2000
4.
Restore the RTC time to system time.
# hwclock -s && date
Wed Feb 17 10:45:13 UTC 2016
3.9

Watchdog

System will reboot after 1 sec.
# /unit_tests/Watchdog/wdt_driver_test.out 1 2 0
---- Running < /unit_tests/Watchdog/wdt_driver_test.out > test ----
Starting wdt_driver (timeout: 1, sleep: 2, test: ioctl) Trying to set time out value=1 seconds
The actual timeout was set to 1 seconds
Now reading back -- The timeout is 1 seconds
35
RSB-3730 User Manual

Advertisement

Table of Contents
loading

Table of Contents