I want to synchronize the clocks of a slave sensor and the Nvidia Jetson Orin as master via ptp4l using L2 and P2P. The sensor and the Orin are connected directly via ethernet. The setup works perfectly, if I replace the Orin by a Notebook running the same Ubuntu version 20.04. However, the Orin throws the following error “: ioctl SIOCSHWTSTAMP failed: Numerical result out of range”. I found some forums adressing similiar issues, but never a solution was given. Here the question: Does the Orin support ptp hardware timestamping and if yes, how to activate it?
Please find my configuration file attached as a reference only.
Hi Wayne, thanks for your fast response. To be more precise: the following command executed on the Orin throws an Error:
Command: "sudo ptp4l -i eth0 -m -2
Error: “ioctl SIOCSHWTSTAMP failed: Numerical result out of range”
However, we need the option -2 (Layer2), as the sensor does only support ptp over Layer2 and not UDP. However, it seems that the Orin does not support ptp via Layer2? Can you please clarify if this is the case? Thank you.
as I did not receive an answer since a while, I try to further clarify our problem:
We are currently trying to use ptp4l on a NVIDIA Orin to sync with a couple of sensors using layer 2 ptp. However, we get the following error when starting the master instance on the Orin:
uam@hubble:~$ sudo ptp4l -i eth0 -m -2 -l 7
ptp4l[922.980]: selected /dev/ptp0 as PTP clock
ptp4l[923.053]: driver rejected most general HWTSTAMP filter
ptp4l[923.059]: ioctl SIOCSHWTSTAMP failed: Numerical result out of range
ptp4l[923.120]: port 1 (eth0): INITIALIZING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[923.121]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[923.121]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE
Our current understanding is that the Orin should support ptp via L2, due to the following output of the ethtool:
we also sent the question to the linuxptp mailing list and got the response that this is likely a bug in the vendor kernel aka 5.10.104-tegra ( linuxptp thread).
It would be great if you could look into this. If we can provide any further information or help please let us know.