The problem may be in the power-off timing or the time reading on startup. When looking at ROCK series or ArmSoM industrial targets, hardware clocking, system clocking, and network timing should be evaluated separately.
Make four observations
Record system time and available RTC when connected to the Internet. Perform a graceful shutdown and disconnect external power. Hold for a known period of time. Turn off the Internet and power on again and read the time before connecting to the Internet. If the hardware clock is running but the system time is wrong, the key is to synchronize it at boot. The hardware clock has also stopped. Check the power supply design again.
Check time zone and battery design
A fixed eight-hour difference and a complete time rollback are two phenomena. Check the system time zone, whether the RTC uses UTC or local time, and the battery type, voltage, and polarity allowed by the on-board battery interface. For interfaces that may have charging circuits, accessories specified by the manufacturer must be used.
Set indicators with business consequences
The temperature recorder cares about data sorting after disconnection, and the TLS client also cares about the certificate verification clock. The acceptance condition can be written as “After a power outage for several hours, the error of the first record before networking is less than the project limit”, and indicate the source of the limit.
Reading status on a device using systemd and providing RTC
timedatectl status
ls /sys/class/rtc/
cat /sys/class/rtc/rtc0/name
Board documentation and references

- ArmSoM Forge1 · hardware and interface manual · Forge1 · product page
- Radxa ROCK 5B series hardware interface
- systemd Time setting and synchronization tool
