Thank you very much for your quick answer and the explanations.
I tried to set up our system accordingly, however I do not get two ptp4l 
processes running in parallel.
With one ptp domaine I get:

[ptp_domain 0]
interfaces eth1 eth2
delay 10e-6

[ntp_server 192.168.0.42]
minpoll 4
maxpoll 4

[timemaster]
ntp_program chronyd

[ptp4l.conf]
network_transport L2
slaveOnly 1


timemaster[9363.512]: adding PTP domain 0
timemaster[9363.513]: interface index 4 is up
timemaster[9363.513]: interface eth1: PHC 0
timemaster[9363.513]: interface index 5 is up
timemaster[9363.513]: interface eth2: PHC 0
timemaster[9363.513]: adding NTP server 192.168.0.42

13105 root      2732 S    /usr/bin/timemaster -l 7 -f 
/mnt/sd/timemaster.conf
13106 root      3968 S    chronyd -n -f /var/run/timemaster/chrony.conf
13107 root      3776 S    ptp4l -l 5 -f /var/run/timemaster/ptp4l.0.conf 
-H -i eth1 -i eth2
13108 root      3712 S    phc2sys -l 5 -a -r -R 1.00 -z 
/var/run/timemaster/ptp4l.0.socket -t [0:eth1+eth2] -n 0 -E ntpshm -M 0

chronyc sources
210 Number of sources = 2
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
#? PTP0                          0   2     0     -     +0ns[ +0ns] 
+/-    0ns
^? 192.168.0.42                  0   4     0     -     +0ns[ +0ns] 
+/-    0ns


With two ptp domains I get:
[ptp_domain 0]
interfaces eth1
delay 10e-6

[ptp_domain 1]
interfaces eth2
delay 10e-6

[ntp_server 192.168.0.42]
minpoll 4
maxpoll 4

[timemaster]
ntp_program chronyd

[ptp4l.conf]
network_transport L2
slaveOnly 1


timemaster[7362.902]: adding PTP domain 0
timemaster[7362.903]: interface index 4 is up
timemaster[7362.903]: interface eth1: PHC 0
timemaster[7362.903]: adding PTP domain 1
timemaster[7362.903]: interface index 5 is up
timemaster[7362.903]: interface eth2: PHC 0
timemaster[7362.904]: PHC 0 already allocated
timemaster[7362.904]: adding NTP server 192.168.0.42
failed to create a clock

On a different HW without prp I get two ptp4l and pch2sys processes with 
the first timemaster.conf (upper example).
Is there a further parameter needed to get two ptp4l with this kind of 
network configuration?
Or is the second example the preferred one to get two OCs?

Many thanks
   Alex

_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to