JP6.0 RTC sync to system

We use rtc1 on our customized orin carrier board. When the L4T is 35.4.1, it works by setting the below kernel config to rtc1
CONFIG_RTC_HCTOSYS_DEVICE=“rtc1”
CONFIG_RTC_SYSTOHC_DEVICE=“rtc1”

But it does not work on JP6.0/L4T 36.2.0, hwclock app always opens rtc0, and causes error.
If set open device to rtc1, the hwclock can read/write rtc time.
This topic shows two sciprts may solve this issue

I have modified /etc/init.d/hwclock.sh to rtc1, but it does not work.
But I can’t find /etc/systemd/nvrtc-sync-boot.sh in my rootfs, I have check rootfs of L4T 32.7.x, 34.1.x, 35.x,and 36.2.0.
Where can I get this script ?

Please confirm manual run the /etc/init.d/hwclock.sh is working make sure the system run it at the system start up, it not add it.

Thanks

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