I am having issues with the time synchronization after rebooting my Jetson Orin device.
I have looked at previous posts such as: AGX Orin: RTC always auto reset every time in reboot
Which have told me that the system I am using is on rtc1, and does not have a battery installed.
lrwxrwxrwx 1 root root 4 Mar 15 2023 /dev/rtc → rtc1
Thus on reboot it first has to sync. Which is okay by me.
Therefore in my software startup bash script I have a simple function to check the timedatectl status
is_clock_synchronized() {
timedatectl status | grep -q "System clock synchronized: yes"
}
while ! is_clock_synchronized; do
echo "Waiting for NTP synchronization..."
sleep 5
done
echo $(date +%s)
However, even with this in place I am seeing that the time is not synced. Is there something else I can check to verify time? Or would the recommendation be just to setup rtc0 hardware time?