Hi Richard! and all the community. I have been trying to enable the IEEE 1588 capabilities in a custom driver, so far I have been able to syncronize the device with a network switch working as slave (I am using Hardware Time Stamping). The problem comes when I set this device as a master device, I get an "unexpected sockcet error" message. I tried to follow the instructions from the Kernel doc (https://www.kernel.org/doc/html/latest/networking/timestamping.html) but I have not been able to figure out what is happening here. I see that the File descriptor used for the ptp4l operations always returns a POLLERR in the revents field after the "port 1: LISTENING to GRAND_MASTER on RS_GRAND_MASTE" step.
My understanding is that when you use HW TS the tx frame is cloned and sent to the error queue and this rises a POLLERR flag. I was wondering if any of you would like to help me, i would like to know what should I verify in regards this error or which will be the root cause. I will look for the solution but I just need some info about this error. Below is the PTP4l log when my device works as a master device. #[/root]:ptp4l -i eth0 -m -H ptp4l[68.088]: selected /dev/ptp0 as PTP clock ptp4l[68.090]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[68.090]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[68.904]: port 1: new foreign master 62c48b.fffe.4772c6-1 ptp4l[72.904]: selected best master clock 62c48b.fffe.4772c6 ptp4l[72.904]: port 1: assuming the grand master role ptp4l[72.904]: port 1: LISTENING to GRAND_MASTER on RS_GRAND_MASTER ptp4l[72.908]: port 1: unexpected sockcet error ptp4l[72.908]: port 1: GRAND_MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[72.908]: selected local clock 00302f.fffe.023379 as best master ptp4l[72.908]: port 1: assuming the grand master role ptp4l[88.909]: port 1: FAULTY to LISTENING on INIT_COMPLETE ptp4l[90.908]: port 1: new foreign master 62c48b.fffe.4772c6-1 ptp4l[94.908]: selected best master clock 62c48b.fffe.4772c6 ptp4l[94.908]: port 1: assuming the grand master role ptp4l[94.908]: port 1: LISTENING to GRAND_MASTER on RS_GRAND_MASTER ptp4l[94.912]: port 1: unexpected sockcet error ptp4l[94.912]: port 1: GRAND_MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[94.912]: selected local clock 00302f.fffe.023379 as best master ptp4l[94.912]: port 1: assuming the grand master role I will be pending for any input My best regards Nico
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users