Thread: [Linuxptp-users] phc2sys in fail status
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: <gan...@la...> - 2019-10-01 12:13:00
|
Hi,
I am trying to implement PTP server for synchronize TDD base stations and I
successfully install all the packages and services in the centos 8
But phc2sys in fail status. Do you have any suggestion for that ?
[root@localhost log]# systemctl status phc2sys
● phc2sys.service - Synchronize system clock or PTP hardware clock (PHC)
Loaded: loaded (/usr/lib/systemd/system/phc2sys.service; enabled; vendor
preset: disabled)
Active: failed (Result: exit-code) since Tue 2019-10-01 05:25:52 EDT;
59min ago
Process: 4169 ExecStart=/usr/sbin/phc2sys $OPTIONS (code=exited,
status=255)
Main PID: 4169 (code=exited, status=255)
But phc2sys -w -s eno2 -m output work properly
[root@localhost log]# phc2sys -w -s eno2 -m
phc2sys[83989.213]: CLOCK_REALTIME phc offset 35029765592 s0 freq -83330252
delay 3178
phc2sys[83990.296]: CLOCK_REALTIME phc offset 35113054809 s1 freq +3952
delay 3178
phc2sys[83991.297]: CLOCK_REALTIME phc offset 100822 s2 freq +104774
delay 2976
phc2sys[83992.297]: CLOCK_REALTIME phc offset 129 s2 freq +34328
delay 2930
phc2sys[83993.297]: CLOCK_REALTIME phc offset -30242 s2 freq +3996
delay 2934
phc2sys[83994.297]: CLOCK_REALTIME phc offset -30207 s2 freq -5042
delay 2927
phc2sys[83995.297]: CLOCK_REALTIME phc offset -21101 s2 freq -4998
delay 2931
============================================================================
======================
All the other services work fine
[root@localhost log]# systemctl status chronyd
● chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor
preset: enabled)
Active: active (running) since Tue 2019-10-01 06:38:59 EDT; 29min ago
Docs: man:chronyd(8)
man:chrony.conf(5)
Process: 5635 ExecStartPost=/usr/libexec/chrony-helper update-daemon
(code=exited, status=0/SUCCESS)
Process: 5631 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited,
status=0/SUCCESS)
Main PID: 5633 (chronyd)
Tasks: 1 (limit: 26213)
Memory: 3.2M
CGroup: /system.slice/chronyd.service
└─5633 /usr/sbin/chronyd
============================================================================
============================
[root@localhost log]# systemctl status timemaster
● timemaster.service - Synchronize system clock to NTP and PTP time sources
Loaded: loaded (/usr/lib/systemd/system/timemaster.service; disabled;
vendor preset: disabled)
Active: active (running) since Tue 2019-10-01 07:11:28 EDT; 3s ago
Main PID: 6310 (timemaster)
Tasks: 2 (limit: 26213)
Memory: 2.5M
CGroup: /system.slice/timemaster.service
├─6310 /usr/sbin/timemaster -f /etc/timemaster.conf
└─6311 /usr/sbin/chronyd -n -f /var/run/timemaster/chrony.conf
============================================================================
====================================
[root@localhost log]# systemctl status ptp4l
● ptp4l.service - Precision Time Protocol (PTP) service
Loaded: loaded (/usr/lib/systemd/system/ptp4l.service; disabled; vendor
preset: disabled)
Active: active (running) since Tue 2019-10-01 07:13:53 EDT; 2s ago
Main PID: 6417 (ptp4l)
Tasks: 1 (limit: 26213)
Memory: 236.0K
CGroup: /system.slice/ptp4l.service
└─6417 /usr/sbin/ptp4l -f /etc/ptp4l.conf -i eno2
============================================================================
=========================================
[root@localhost log]# pmc -u -b 0 'GET TIME_STATUS_NP'
sending: GET TIME_STATUS_NP
1402ec.fffe.04f911-0 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP
master_offset 0
ingress_time 0
cumulativeScaledRateOffset +0.000000000
scaledLastGmPhaseChange 0
gmTimeBaseIndicator 0
lastGmPhaseChange 0x0000'0000000000000000.0000
gmPresent false
gmIdentity 1402ec.fffe.04f911
[root@localhost log]#
Best Regards,
Ganganath
|
|
From: Miroslav L. <mli...@re...> - 2019-10-01 12:21:52
|
On Tue, Oct 01, 2019 at 04:48:17PM +0530, gan...@la... wrote: > Loaded: loaded (/usr/lib/systemd/system/phc2sys.service; enabled; vendor > preset: disabled) > Active: failed (Result: exit-code) since Tue 2019-10-01 05:25:52 EDT; > 59min ago > Process: 4169 ExecStart=/usr/sbin/phc2sys $OPTIONS (code=exited, > status=255) > Main PID: 4169 (code=exited, status=255) > > But phc2sys -w -s eno2 -m output work properly What is in the /etc/sysconfig/phc2sys file? -- Miroslav Lichvar |
|
From: <gan...@la...> - 2019-10-01 16:16:22
|
Dear Miroslav,
Now I set /etc/sysconfig/phc2sys file as below,
[root@localhost ~]# cat /etc/sysconfig/phc2sys
OPTIONS="-a -r -r"
#OPTIONS=”-s CLOCK_REALTIME -c eno2 -w”
Then the service become active.
[root@localhost ~]# systemctl status phc2sys
● phc2sys.service - Synchronize system clock or PTP hardware clock (PHC)
Loaded: loaded (/usr/lib/systemd/system/phc2sys.service; enabled; vendor
preset: disabled)
Active: active (running) since Tue 2019-10-01 12:01:54 EDT; 2min 22s ago
Main PID: 12173 (phc2sys)
Tasks: 1 (limit: 26213)
Memory: 376.0K
CGroup: /system.slice/phc2sys.service
└─12173 /usr/sbin/phc2sys -a -r -r
Thank you very much....
Best Regards,
Ganganath
-----Original Message-----
From: Miroslav Lichvar <mli...@re...>
Sent: Tuesday, October 1, 2019 05:52 PM
To: gan...@la...
Cc: 'Richard Cochran' <ric...@gm...>; 'Christian Leeb'
<chr...@ch...>; lin...@li...
Subject: Re: [Linuxptp-users] phc2sys in fail status
On Tue, Oct 01, 2019 at 04:48:17PM +0530, gan...@la... wrote:
> Loaded: loaded (/usr/lib/systemd/system/phc2sys.service; enabled;
> vendor
> preset: disabled)
> Active: failed (Result: exit-code) since Tue 2019-10-01 05:25:52
> EDT; 59min ago
> Process: 4169 ExecStart=/usr/sbin/phc2sys $OPTIONS (code=exited,
> status=255)
> Main PID: 4169 (code=exited, status=255)
>
> But phc2sys -w -s eno2 -m output work properly
What is in the /etc/sysconfig/phc2sys file?
--
Miroslav Lichvar
|
|
From: <gan...@la...> - 2019-10-02 05:04:48
|
Hi,
Good day to you all !!!
Now all the PTP services are in active state but in the Base station prompt
error message as below,
============================================================================
=========================
ADD
IPCLKLINK:LN=0,ICPT=PTP,SN=7,CNM=L2_MULTICAST,DELAYTYPE=E2E,MACMODE=NO,PROFI
LETYPE=G.8275.1;
Kolpitty_LB_10070
+++ Kolpitty_LB_10070 2019-10-02 09:17:43
O&M #31380
%%/*2396590*/ADD
IPCLKLINK:LN=0,ICPT=PTP,SN=7,CNM=L2_MULTICAST,DELAYTYPE=E2E,MACMODE=NO,PROFI
LETYPE=G.8275.1;%%
RETCODE = 806487822 The value range of domain must be 24 to 43 when the
profile of IP clock link is G.8275.1.
============================================================================
==========================
Then I changed the /etc/timemaster.conf as below
[ptp_domain 24 ]
interfaces eno2
#delay 10e-6
But then service become failed state,
[root@localhost ~]# systemctl status timemaster
● timemaster.service - Synchronize system clock to NTP and PTP time sources
Loaded: loaded (/usr/lib/systemd/system/timemaster.service; enabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-10-02 10:23:06 +0530;
4s ago
Process: 27629 ExecStart=/usr/sbin/timemaster -f /etc/timemaster.conf
(code=exited, status=1/FAILURE)
Main PID: 27629 (code=exited, status=1/FAILURE)
Oct 02 10:23:06 localhost.localdomain systemd[1]: Started Synchronize system
clock to NTP and PTP time sources.
Oct 02 10:23:06 localhost.localdomain timemaster[27629]:
timemaster[154029.818]: invalid ptp_domain number 24
Oct 02 10:23:06 localhost.localdomain systemd[1]: timemaster.service: Main
process exited, code=exited, status=1/FAILURE
Oct 02 10:23:06 localhost.localdomain systemd[1]: timemaster.service: Failed
with result 'exit-code'.
[root@localhost ~]#
Do you have any idea for this ………
Best Regards,
Ganganath
-----Original Message-----
From: gan...@la... <gan...@la...>
Sent: Tuesday, October 1, 2019 09:42 PM
To: 'Miroslav Lichvar' <mli...@re...>
Cc: lin...@li...
Subject: Re: [Linuxptp-users] phc2sys in fail status
Dear Miroslav,
Now I set /etc/sysconfig/phc2sys file as below,
[root@localhost ~]# cat /etc/sysconfig/phc2sys OPTIONS="-a -r -r"
#OPTIONS=”-s CLOCK_REALTIME -c eno2 -w”
Then the service become active.
[root@localhost ~]# systemctl status phc2sys ● phc2sys.service -
Synchronize system clock or PTP hardware clock (PHC)
Loaded: loaded (/usr/lib/systemd/system/phc2sys.service; enabled; vendor
preset: disabled)
Active: active (running) since Tue 2019-10-01 12:01:54 EDT; 2min 22s ago
Main PID: 12173 (phc2sys)
Tasks: 1 (limit: 26213)
Memory: 376.0K
CGroup: /system.slice/phc2sys.service
└─12173 /usr/sbin/phc2sys -a -r -r
Thank you very much....
Best Regards,
Ganganath
-----Original Message-----
From: Miroslav Lichvar <mli...@re... <mailto:mli...@re...> >
Sent: Tuesday, October 1, 2019 05:52 PM
To: gan...@la... <mailto:gan...@la...>
Cc: 'Richard Cochran' <ric...@gm...
<mailto:ric...@gm...> >; 'Christian Leeb'
<chr...@ch... <mailto:chr...@ch...> >;
lin...@li...
<mailto:lin...@li...>
Subject: Re: [Linuxptp-users] phc2sys in fail status
On Tue, Oct 01, 2019 at 04:48:17PM +0530, gan...@la...
<mailto:gan...@la...> wrote:
> Loaded: loaded (/usr/lib/systemd/system/phc2sys.service; enabled;
> vendor
> preset: disabled)
> Active: failed (Result: exit-code) since Tue 2019-10-01 05:25:52
> EDT; 59min ago
> Process: 4169 ExecStart=/usr/sbin/phc2sys $OPTIONS (code=exited,
> status=255)
> Main PID: 4169 (code=exited, status=255)
>
> But phc2sys -w -s eno2 -m output work properly
What is in the /etc/sysconfig/phc2sys file?
--
Miroslav Lichvar
_______________________________________________
Linuxptp-users mailing list
Lin...@li...
<mailto:Lin...@li...>
https://lists.sourceforge.net/lists/listinfo/linuxptp-users
|
|
From: Miroslav L. <mli...@re...> - 2019-10-02 07:48:35
|
On Wed, Oct 02, 2019 at 10:30:56AM +0530, gan...@la... wrote: > Then I changed the /etc/timemaster.conf as below > > [ptp_domain 24 ] > interfaces eno2 > #delay 10e-6 > Oct 02 10:23:06 localhost.localdomain timemaster[27629]: > timemaster[154029.818]: invalid ptp_domain number 24 You need to remove the space between 24 and ]. Yes, the syntax should probably be relaxed a bit. -- Miroslav Lichvar |
|
From: <gan...@la...> - 2019-10-02 09:34:45
|
Hi Miroslav, Thank you very much your response Now I got different error message as below, [root@localhost /]# systemctl status timemaster ● timemaster.service - Synchronize system clock to NTP and PTP time sources Loaded: loaded (/usr/lib/systemd/system/timemaster.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2019-10-02 14:43:58 +0530; 1s ago Process: 653 ExecStart=/usr/sbin/timemaster -f /etc/timemaster.conf (code=exited, status=1/FAILURE) Main PID: 653 (code=exited, status=1/FAILURE) Oct 02 14:43:58 localhost.localdomain timemaster[653]: [169682.206] process 656 started: /usr/sbin/phc2sys -l 5 -a -r -R 1.00 -z /var/> Oct 02 14:43:58 localhost.localdomain chronyd[654]: chronyd version 3.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIG> Oct 02 14:43:58 localhost.localdomain timemaster[653]: [169682.207] process 655 terminated with status 254 Oct 02 14:43:58 localhost.localdomain timemaster[653]: unknown option includefile at line 2 in global section Oct 02 14:43:58 localhost.localdomain timemaster[653]: failed to parse configuration file /var/run/timemaster/ptp4l.0.conf Oct 02 14:43:58 localhost.localdomain timemaster[653]: [169682.208] process 656 terminated abnormally Oct 02 14:43:58 localhost.localdomain timemaster[653]: [169682.208] process 654 terminated abnormally Oct 02 14:43:58 localhost.localdomain systemd[1]: timemaster.service: Main process exited, code=exited, status=1/FAILURE Oct 02 14:43:58 localhost.localdomain timemaster[653]: [169682.208] exiting Oct 02 14:43:58 localhost.localdomain systemd[1]: timemaster.service: Failed with result 'exit-code'. Then I changed the 2nd line in the /etc/ptp4l.conf but the output remain unchanged. My ptp4l.conf file as below, [root@localhost /]# cat /etc/ptp4l.conf [global] verbose 1 time_stamping hardware priority1 127 #tx_timestamp_ timeout 100 #[eno2] # # Default Data Set # twoStepFlag 1 slaveOnly 0 priority1 128 priority2 128 domainNumber 24 #utc_offset 37 clockClass 248 clockAccuracy 0xFE offsetScaledLogVariance 0xFFFF free_running 0 freq_est_interval 1 dscp_event 0 dscp_general 0 dataset_comparison ieee1588 G.8275.defaultDS.localPriority 128 # # Port Data Set # logAnnounceInterval 1 logSyncInterval 0 logMinDelayReqInterval 0 logMinPdelayReqInterval 0 announceReceiptTimeout 3 syncReceiptTimeout 0 delayAsymmetry 0 fault_reset_interval 4 neighborPropDelayThresh 20000000 masterOnly 0 G.8275.portDS.localPriority 128 # # Run time options # assume_two_step 0 logging_level 6 path_trace_enabled 0 follow_up_info 0 hybrid_e2e 0 inhibit_multicast_service 0 net_sync_monitor 0 tc_spanning_tree 0 tx_timestamp_timeout 1 unicast_listen 0 unicast_master_table 0 unicast_req_duration 3600 use_syslog 1 verbose 0 summary_interval 0 kernel_leap 1 check_fup_sync 0 # # Servo Options # pi_proportional_const 0.0 pi_integral_const 0.0 pi_proportional_scale 0.0 pi_proportional_exponent -0.3 pi_proportional_norm_max 0.7 pi_integral_scale 0.0 pi_integral_exponent 0.4 pi_integral_norm_max 0.3 step_threshold 0.0 first_step_threshold 0.00002 max_frequency 900000000 clock_servo pi sanity_freq_limit 200000000 ntpshm_segment 0 # # Transport options # transportSpecific 0x0 ptp_dst_mac 01:1B:19:00:00:00 p2p_dst_mac 01:80:C2:00:00:0E udp_ttl 1 udp6_scope 0x0E uds_address /var/run/ptp4l # # Default interface options # clock_type OC network_transport UDPv4 delay_mechanism E2E time_stamping hardware tsproc_mode filter delay_filter moving_median delay_filter_length 10 egressLatency 0 ingressLatency 0 boundary_clock_jbod 0 # # Clock description # productDescription ;; revisionData ;; manufacturerIdentity 00:00:00 userDescription ; timeSource 0xA0 [root@localhost /]# Best Regards, Ganganath -----Original Message----- From: Miroslav Lichvar <mli...@re...> Sent: Wednesday, October 2, 2019 01:18 PM To: gan...@la... Cc: 'Richard Cochran' <ric...@gm...>; lin...@li... Subject: Re: [Linuxptp-users] phc2sys in fail status On Wed, Oct 02, 2019 at 10:30:56AM +0530, gan...@la... wrote: > Then I changed the /etc/timemaster.conf as below > > [ptp_domain 24 ] > interfaces eno2 > #delay 10e-6 > Oct 02 10:23:06 localhost.localdomain timemaster[27629]: > timemaster[154029.818]: invalid ptp_domain number 24 You need to remove the space between 24 and ]. Yes, the syntax should probably be relaxed a bit. -- Miroslav Lichvar |
|
From: Miroslav L. <mli...@re...> - 2019-10-02 10:05:45
|
On Wed, Oct 02, 2019 at 03:00:56PM +0530, gan...@la... wrote: > Oct 02 14:43:58 localhost.localdomain timemaster[653]: [169682.207] process > 655 terminated with status 254 > Oct 02 14:43:58 localhost.localdomain timemaster[653]: unknown option > includefile at line 2 in global section > Then I changed the 2nd line in the /etc/ptp4l.conf but the output remain > unchanged. My ptp4l.conf file as below, To me it looks like you are mixing config files with different services. timemaster doesn't care what is in /etc/ptp4l.conf. It has its own config file and it is a separate service from phc2sys and ptp4l. Which service do you want to use? What is in its config file? -- Miroslav Lichvar |
|
From: <gan...@la...> - 2019-10-02 10:36:29
|
Dear Miroslav, This is the values in /etc/timemaster.conf [root@localhost /]# cat /etc/timemaster.conf # Configuration file for timemaster #[ntp_server ntp-server.local] #minpoll 4 #maxpoll 4 [ptp_domain 24] interfaces eno2 delay 10e-6 [timemaster] ntp_program chronyd [chrony.conf] include /etc/chrony.conf [ntp.conf] includefile /etc/ntp.conf [ptp4l.conf] includefile /etc/ptp4l.conf [chronyd] path /usr/sbin/chronyd [ntpd] path /usr/sbin/ntpd options -u ntp:ntp -g [phc2sys] path /usr/sbin/phc2sys [ptp4l] path /usr/sbin/ptp4l [root@localhost /]# Regards, Ganganath -----Original Message----- From: Miroslav Lichvar <mli...@re...> Sent: Wednesday, October 2, 2019 03:36 PM To: gan...@la... Cc: 'Richard Cochran' <ric...@gm...>; lin...@li... Subject: Re: [Linuxptp-users] phc2sys in fail status On Wed, Oct 02, 2019 at 03:00:56PM +0530, gan...@la... wrote: > Oct 02 14:43:58 localhost.localdomain timemaster[653]: [169682.207] > process > 655 terminated with status 254 > Oct 02 14:43:58 localhost.localdomain timemaster[653]: unknown option > includefile at line 2 in global section > Then I changed the 2nd line in the /etc/ptp4l.conf but the output > remain unchanged. My ptp4l.conf file as below, To me it looks like you are mixing config files with different services. timemaster doesn't care what is in /etc/ptp4l.conf. It has its own config file and it is a separate service from phc2sys and ptp4l. Which service do you want to use? What is in its config file? -- Miroslav Lichvar |
|
From: Miroslav L. <mli...@re...> - 2019-10-02 10:45:26
|
On Wed, Oct 02, 2019 at 04:02:44PM +0530, gan...@la... wrote: > [root@localhost /]# cat /etc/timemaster.conf > # Configuration file for timemaster > > [ptp4l.conf] > includefile /etc/ptp4l.conf Oh, I see. ptp4l doesn't support an "includefile" option. The content of /etc/ptp4l.conf needs to be included in the [ptp4l.conf] section of timemaster.conf. -- Miroslav Lichvar |
|
From: <gan...@la...> - 2019-10-03 06:43:45
|
Dear Miroslav, I want to synchronize TDD base station with PTP clock server (this server should be master clock) 01. this base station and the server in the same broadcast domain 02. PTP domain should be 24 Am I able to do this with below configuration in the /etc/ptp4l.conf or am I missing something ? [root@localhost ~]# cat /etc/ptp4l.conf [global] verbose 1 time_stamping hardware priority1 127 #tx_timestamp_timeout 100 #[eno2] # # Default Data Set # twoStepFlag 1 slaveOnly 0 priority1 128 priority2 128 domainNumber 24 #utc_offset 37 clockClass 248 clockAccuracy 0xFE offsetScaledLogVariance 0xFFFF free_running 0 freq_est_interval 1 dscp_event 0 dscp_general 0 dataset_comparison ieee1588 G.8275.defaultDS.localPriority 128 # # Port Data Set # logAnnounceInterval 1 logSyncInterval 0 logMinDelayReqInterval 0 logMinPdelayReqInterval 0 announceReceiptTimeout 3 syncReceiptTimeout 0 delayAsymmetry 0 fault_reset_interval 4 neighborPropDelayThresh 20000000 masterOnly 0 G.8275.portDS.localPriority 128 # # Run time options # assume_two_step 0 logging_level 6 path_trace_enabled 0 follow_up_info 0 hybrid_e2e 0 inhibit_multicast_service 0 net_sync_monitor 0 tc_spanning_tree 0 tx_timestamp_timeout 1 unicast_listen 0 unicast_master_table 0 unicast_req_duration 3600 use_syslog 1 verbose 0 summary_interval 0 kernel_leap 1 check_fup_sync 0 # # Servo Options # pi_proportional_const 0.0 pi_integral_const 0.0 pi_proportional_scale 0.0 pi_proportional_exponent -0.3 pi_proportional_norm_max 0.7 pi_integral_scale 0.0 pi_integral_exponent 0.4 pi_integral_norm_max 0.3 step_threshold 0.0 first_step_threshold 0.00002 max_frequency 900000000 clock_servo pi sanity_freq_limit 200000000 ntpshm_segment 0 # # Transport options # transportSpecific 0x0 ptp_dst_mac 01:1B:19:00:00:00 p2p_dst_mac 01:80:C2:00:00:0E udp_ttl 1 udp6_scope 0x0E uds_address /var/run/ptp4l # # Default interface options # clock_type OC network_transport UDPv4 delay_mechanism E2E time_stamping hardware tsproc_mode filter delay_filter moving_median delay_filter_length 10 egressLatency 0 ingressLatency 0 boundary_clock_jbod 0 # # Clock description # productDescription ;; revisionData ;; manufacturerIdentity 00:00:00 userDescription ; timeSource 0xA0 [root@localhost ~]# [root@localhost ~]# cat /etc/sysconfig/phc2sys OPTIONS="-a -r -r" #OPTIONS="-s CLOCK_REALTIME -c eno2 -w" [root@localhost ~]# Best Regards, Ganganath -----Original Message----- From: Miroslav Lichvar <mli...@re...> Sent: Wednesday, October 2, 2019 04:15 PM To: gan...@la... Cc: lin...@li... Subject: Re: [Linuxptp-users] phc2sys in fail status On Wed, Oct 02, 2019 at 04:02:44PM +0530, gan...@la... wrote: > [root@localhost /]# cat /etc/timemaster.conf > # Configuration file for timemaster > > [ptp4l.conf] > includefile /etc/ptp4l.conf Oh, I see. ptp4l doesn't support an "includefile" option. The content of /etc/ptp4l.conf needs to be included in the [ptp4l.conf] section of timemaster.conf. -- Miroslav Lichvar |