On Tue, Aug 04, 2015 at 08:43:11PM +0000, Gary E. Miller wrote: > cat ${CONF1} > [global] > uds_address /var/run/ptp4l > #network_transport L2 > network_transport UDPv6 > > clock_servo ntpshm > ntpshm_segment 0 > cat ${CONF2} > [global] > uds_address /var/run/ptp4l > network_transport UDPv4 > > clock_servo ntpshm > ntpshm_segment 1 > > ptp4l -i eno1 -l 3 -S -s -f ${CONF1} & > ptp4l -i eno2 -l 3 -S -s -f ${CONF2} & > > > That gives me this error in my logs: > > Aug 4 13:41:10 backup ptp4l[4122]: [384829.489] uds: bind failed: Address > already in use
That's the Unix domain socket, the two instances need to have a different path set by the uds_address option. Here is an example with two interfaces, each in two PTP domains, the first domain with HW timestamping, the other with SW timestamping. There are four ptp4l instances and two phc2sys instances feeding four SHM refclocks. # cat timemaster.conf [ntp_server 192.168.100.1] [ptp_domain 0] interfaces ens5 eno1 [ptp_domain 1] interfaces ens5 eno1 # timemaster -n -f timemaster.conf /var/run/timemaster/chrony.conf: makestep 1 3 server 192.168.100.1 minpoll 6 maxpoll 10 refclock SHM 0 poll 2 dpoll 0 refid PTP0 precision 1.0e-9 delay 1.0e-04 refclock SHM 1 poll 2 dpoll 0 refid PTP1 precision 1.0e-9 delay 1.0e-04 refclock SHM 2 poll 2 dpoll 0 refid PTP2 precision 1.0e-9 delay 1.0e-04 refclock SHM 3 poll 2 dpoll 0 refid PTP3 precision 1.0e-9 delay 1.0e-04 /var/run/timemaster/ptp4l.0.conf: [global] slaveOnly 1 domainNumber 0 uds_address /var/run/timemaster/ptp4l.0.socket /var/run/timemaster/ptp4l.1.conf: [global] slaveOnly 1 domainNumber 0 uds_address /var/run/timemaster/ptp4l.1.socket /var/run/timemaster/ptp4l.2.conf: [global] slaveOnly 1 domainNumber 1 uds_address /var/run/timemaster/ptp4l.2.socket clock_servo ntpshm ntpshm_segment 2 /var/run/timemaster/ptp4l.3.conf: [global] slaveOnly 1 domainNumber 1 uds_address /var/run/timemaster/ptp4l.3.socket clock_servo ntpshm ntpshm_segment 3 commands: chronyd -n -f /var/run/timemaster/chrony.conf ptp4l -l 5 -f /var/run/timemaster/ptp4l.0.conf -H -i ens5 phc2sys -l 5 -a -r -R 1.00 -z /var/run/timemaster/ptp4l.0.socket -n 0 -E ntpshm -M 0 ptp4l -l 5 -f /var/run/timemaster/ptp4l.1.conf -H -i eno1 phc2sys -l 5 -a -r -R 1.00 -z /var/run/timemaster/ptp4l.1.socket -n 0 -E ntpshm -M 1 ptp4l -l 5 -f /var/run/timemaster/ptp4l.2.conf -S -i ens5 ptp4l -l 5 -f /var/run/timemaster/ptp4l.3.conf -S -i eno1 -- Miroslav Lichvar ------------------------------------------------------------------------------ _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel