System clock set

What is the correct way to set the system clock on Drive AGX

Dear stephen.foy,
Are you asking about changing system time or frequency clocks of cpu/gpu?

Hi Siva,

The issue i have is time/date synchronization between the SoC and AURIX.
When i turn things off the time resets on the Aurix.

[url]
https://docs.nvidia.com/drive/active/5.0.13.0L/nvvib_docs/index.html#page/DRIVE%2520Linux%2520DDP%2520PDK%2520Development%2520Guide%2FMCU%2520Setup%2520and%2520Configuration%2Fmcu_time_sync.html%23[/url]

uname -r = 4.9.111-rt76-tegra
my current work around, each time i power cycle,


#Quick date setup
timedatect1 set-ntp 0
sudo dpkg-reconfigure tzdata
sudo date -s XXXXX

Dear stephen.foy,
Are you not able to synchronise Tegra and Aurix using the steps provided in documentation? If so, could you share where you have issue?

I followed the guide lines and managed to find phc2sys at ~/drive-t186ref-linux/samples/nvavb/daemons

Result:

nvidia@tegra-ubuntu:~/drive-t186ref-linux/samples/nvavb/daemons$ sudo ./phc2sys -s /dev/ptp0 -w -S 1.0 -O 0 & ./ptp4l -f ./gPTP_slave.cfg -p /dev/ptp0 -i eth0.200 -m -l 7
[6] 4611
ptp4l[4762.210]: selected /dev/ptp0 as PTP clock
ptp4l[4762.210]: ioctl SIOCGIFHWADDR failed: No such device
failed to generate a clock identity

Dear stephen.foy,

Could you please refer to below link for this topic? Thanks.

Thanks Steve, this work around, worked, thanks