This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: The problem I encountered while using the phc2sys software

Part Number: TDA4VM

Hi, TI experts

I am currently running the SDK version 8.6 software using the VM development board. Then the board loads the k3-j721e-quad-port-eth-exp.dtb file to make it work in native driver mode.

I used the phc2sys software to synchronize the hardware clock with the software clock, but found that the synchronization failed. The following is the log

root@j7200-evm:~/rqyang# phc2sys -s /dev/ptp2  -c CLOCK_REALTIME -O 0  -q --step__threshold=0.00002 -m
phc2sys[373.301]: CLOCK_REALTIME phc offset 3468205803 s0 freq  +11050 delay   1020
phc2sys[374.301]: failed to step clock: Invalid argument
phc2sys[374.301]: CLOCK_REALTIME phc offset 3468205782 s1 freq  +11029 delay   1075
phc2sys[375.301]: CLOCK_REALTIME phc offset 3468205799 s0 freq  +11029 delay   1035
phc2sys[376.302]: CLOCK_REALTIME phc offset 3468205824 s0 freq  +11029 delay   1040
^Cphc2sys[376.797]: failed to step clock: Invalid argument
phc2sys[376.797]: CLOCK_REALTIME phc offset 3468205826 s1 freq  +11033 delay   1015
root@j7200-evm:~/rqyang# vi qbv.sh
root@j7200-evm:~/rqyang# phc2sys -s /dev/ptp2  -c CLOCK_REALTIME -O 0  -q -m
phc2sys[393.157]: CLOCK_REALTIME phc offset 3468205955 s0 freq  +11033 delay   1025
phc2sys[394.157]: failed to step clock: Invalid argument
phc2sys[394.157]: CLOCK_REALTIME phc offset 3468205976 s1 freq  +11054 delay   1000
phc2sys[395.157]: CLOCK_REALTIME phc offset 3468205960 s2 freq +100000000 delay   1035
phc2sys[396.158]: CLOCK_REALTIME phc offset 3357088434 s2 freq +100000000 delay    963
^Cphc2sys[396.209]: CLOCK_REALTIME phc offset 3351313232 s2 freq +100000000 delay    918
root@j7200-evm:~/rqyang# phc2sys -s /dev/ptp2  -c CLOCK_REALTIME -O 0  -q -m
phc2sys[398.551]: CLOCK_REALTIME phc offset 3091183268 s0 freq +100000000 delay    950
phc2sys[399.551]: failed to step clock: Invalid argument
phc2sys[399.551]: CLOCK_REALTIME phc offset 2980060365 s1 freq  +11059 delay    923
phc2sys[400.551]: CLOCK_REALTIME phc offset 2980044831 s2 freq +100000000 delay   1050
phc2sys[401.552]: CLOCK_REALTIME phc offset 2868926212 s2 freq +100000000 delay    931
phc2sys[402.552]: CLOCK_REALTIME phc offset 2757808339 s2 freq +100000000 delay    918
^Cphc2sys[402.689]: CLOCK_REALTIME phc offset 2742613614 s2 freq +100000000 delay    950

May I ask how to locate and solve this problem?

Regards, Albert