Jetson Orin RTC

I use Jetpack 5.0.2, I have battery connected and I changed 50-udev-default.rules but I still have an issue with proper time keeping. After I set the time manually and power off and on the system the time is kept only in RTC. When I try to sync it to Local time and Universal time shown by “timedatectl” it doesn’t work. “sudo hwclock --hctosys” gives me “hwclock: Cannot access the Hardware Clock via any known method.” And time is not synchronized. Can you please help me to fix it?

hwclock --verbose
hwclock from util-linux 2.34
System Time: 1650548033.593276
Trying to open: /dev/rtc0
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.

EDIT: Today I get:

root@ubuntu:/home/jetsonorin# hwclock --verbose
hwclock from util-linux 2.34
System Time: 1650545823.016839
Trying to open: /dev/rtc0
Using the rtc interface to the clock.
Last drift adjustment done at 1661946454 seconds after 1969
Last calibration done at 1661946454 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
hwclock: select() to /dev/rtc0 to wait for clock tick timed out
...synchronization failed

Please add this patch.

diff -ur kernel-source.orig/kernel/nvidia/drivers/rtc/nvvrs-pseq-rtc.c kernel-source/kernel/nvidia/drivers/rtc/nvvrs-pseq-rtc.c
--- kernel-source.orig/kernel/nvidia/drivers/rtc/nvvrs-pseq-rtc.c    2022-08-11 11:15:42.000000000 +0800
+++ kernel-source/kernel/nvidia/drivers/rtc/nvvrs-pseq-rtc.c    2022-08-12 16:57:18.426126545 +0800
@@ -194,6 +194,8 @@
     if (ret < 0)
         dev_err(info->dev, "Failed to disable alarm: ret %d\n", ret);
 
+    rtc_update_irq(info->rtc_dev, 1, RTC_IRQF | RTC_UF);
+
     return IRQ_HANDLED;
 }
1 Like

its seems that this patch returns on few topics.
is there way to push it to the git repo? and maybe others?

Hi,

Yes, we will try to merge it. But that needs to be wait for next release. Our git repo here will not update daily.

But only update when new jetpack got released.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.