Lost clock sync between Aurix and Tegra clock , the AURIXCAN will stop.

Dear sir:

https://devtalk.nvidia.com/default/topic/1031778/faq/nvidia_drive_px2_time_sync_guide/
https://devtalk.nvidia.com/default/topic/1032296/faq/drivepx2-easycan-setup-guide/

follow the time_sync_guide and the easycan guide, i can get the message form the AURIX CANA.
But i meet a new problem as follow:

the nvidia system restart the clock will reset to 2016. Do the time sync will change to 2000.

NO1 ternimal:
sudo su -

sudo timedatectl set-ntp 0
cd /home/nvidia/drive-t186ref-linux/samples/nvavb/daemons
sudo ./phc2sys -s /dev/ptp0 -w &
sudo ./ptp4l -f ./gPTP.cfg -p /dev/ptp0 -i eth0.200 -s -m -D -l 7

ptp4l[1556.794]: port 1: delay timeout
ptp4l[1556.812]: negative delay -2249371
ptp4l[1556.812]: delay = (t2 - t3) * rr + (t4 - t1)
ptp4l[1556.812]: t2 - t3 = +5507602
ptp4l[1556.812]: t4 - t1 = -10006344
ptp4l[1556.812]: rr = 0.582621777
ptp4l[1556.812]: delay filtered -2427005 raw -2249371

NO2 ternimal:

root@tegra-ubuntu:/usr/local/driveworks/bin# ./sample_canbus_logger --driver=can.aurix --params=ip=10.42.0.146,bus=a
Program Arguments:
–driver=can.aurix
–filter=000:000
–hwtime=1
–params=ip=10.42.0.146,bus=a
–send_i_understand_implications=0
–send_id=6FF

[1-1-2000 0:17:52] Initialize DriveWorks SDK v1.2.400
[1-1-2000 0:17:52] Release build with GNU 4.9.4 from v1.2.0-rc11-0-ga7f5475 against Vibrante PDK v5.0.10.3
[1-1-2000 0:17:52] Platform: Detected Drive PX2 - Tegra A
[1-1-2000 0:17:52] TimeSource: monotonic epoch time offset is 946684863233800
[1-1-2000 0:17:52] Platform: number of GPU devices detected 2
[1-1-2000 0:17:52] Platform: currently selected GPU device discrete ID 0
[1-1-2000 0:17:52] SDK: Resources mounted from /usr/local/driveworks-1.2/data/resources
[1-1-2000 0:17:52] SDK: Create NvMediaDevice
[1-1-2000 0:17:52] SDK: Create NvMediaIPPManager
[1-1-2000 0:17:52] egl::Display: found 2 EGL devices
[1-1-2000 0:17:52] egl::Display: use drm device: drm-nvdc
[1-1-2000 0:17:52] SensorFactory::createSensor() -> can.aurix, ip=10.42.0.146,bus=a
Cannot setup CAN message filters: DW_NOT_SUPPORTED
[1-1-2000 0:17:52] EndpointUDP: started 10.42.0.146:50000
946685873174689 -> 340 [7] 00 00 00 00 00 00 00
946685874174647 (dt=999958) -> 340 [7] 00 00 00 00 00 00 00

1…stop sudo ./ptp4l -f ./gPTP.cfg -p /dev/ptp0 -i eth0.200 -s -m -D -l 7

946685916172335 (dt=999936) -> 340 [7] 00 00 00 00 00 00 00
[1-1-2000 0:18:36] AurixCAN: lost clock sync between Aurix and Tegra clock. Tegra clock is behind Aurix clock by at least 125 msec.
946685917172310 (dt=999975) -> 340 [7] 00 00 00 00 00 00 00
[1-1-2000 0:18:37] AurixCAN: lost clock sync between Aurix and Tegra clock. Tegra clock is behind Aurix clock by at least 128 msec.
946685918172219 (dt=999909) -> 340 [7] 00 00 00 00 00 00 00
946685918172219 (dt=0) ERROR DW_NOT_AVAILABLE[1-1-2000 0:18:38] EndpointUDP: stopped 10.42.0.146:50000
[1-1-2000 0:18:38] SDK: Release NvMediaDevice
[1-1-2000 0:18:38] Driveworks SDK released
[1-1-2000 0:18:38] SDK: Release NvMedia2D

2…keep sudo ./ptp4l -f ./gPTP.cfg -p /dev/ptp0 -i eth0.200 -s -m -D -l 7

946685918172219 (dt=999909) -> 340 [7] 00 00 00 00 00 00 00
946685918172219 (dt=0) ERROR DW_NOT_AVAILABLE[1-1-2000 0:18:38] EndpointUDP: stopped 10.42.0.146:50000
[1-1-2000 0:18:38] SDK: Release NvMediaDevice
[1-1-2000 0:18:38] Driveworks SDK released
[1-1-2000 0:18:38] SDK: Release NvMedia2D

it will always lost clock sync between Aurix and Tegra clock~~~ and the AURIXCAN will stop.

wait for you message.Thanks a lot!

Dear weibin_fang,

Could you please refer to the following link for your topic?
https://docs.nvidia.com/drive/active/5.0.10.3L/nvvib_docs/index.html#page/NVIDIA%20DRIVE%20Linux%20SDK%20Development%20Guide%2FConfiguration%2FgPTP.html%23

All Tegra side PTP related binaries are available at /home/nvidia/drive-t186ref-linux/samples/nvavb/daemons.