Could someone give me an answer to this question? Thank you
2022년 8월 16일 (화) 오후 1:24, james jeong <james190...@gmail.com>님이 작성: > > Dear, > > In the path you mentioned, the service files of ph2sys and ptp4l were > modified and run according to my environment. > > ---ptp4l.service---(Master) > [Unit] > Description=Precision Time Protocol (PTP) service > Documentation=man:ptp4l > > [Service] > Type=simple > ExecStart=/root/linuxptp-3.1.1/ptp4l -i eno1 -m --step_threshold=1 > > [Install] > WantedBy=multi-user.target > > > ---ptp4l.service---(Slave) > [Unit] > Description=Precision Time Protocol (PTP) service > Documentation=man:ptp4l > > [Service] > Type=simple > ExecStart=/root/linuxptp-3.1.1/ptp4l -i ens6f0 -s -m --step_threshold=1 > > [Install] > WantedBy=multi-user.target > > > ----phc2sys.service--- (same content between master and slave) > [Unit] > Description=Synchronize system clock or PTP hardware clock (PHC) > Documentation=man:phc2sys > #After=ntpdate.service > Requires=ptp4l.service > After=ptp4l.service > > [Service] > Type=simple > ExecStart=/root/linuxptp-3.1.1/phc2sys -a -r -r -m --step_threshold=1 > > [Install] > WantedBy=multi-user.target > > > However, after booting, the following output is displayed in the > phc2sys service of Master and Slave. > > Aug 16 13:19:59 ozhdr-devel2 phc2sys[1390]: phc2sys[8432.167]: failed > to get UTC offset > Aug 16 13:19:59 ozhdr-devel2 phc2sys[1390]: [8432.167] failed to get UTC > offset > Aug 16 13:20:01 ozhdr-devel2 phc2sys[1390]: phc2sys[8434.168]: failed > to get UTC offset > Aug 16 13:20:01 ozhdr-devel2 phc2sys[1390]: [8434.168] failed to get UTC > offset > Aug 16 13:20:03 ozhdr-devel2 phc2sys[1390]: phc2sys[8436.169]: failed > to get UTC offset > Aug 16 13:20:03 ozhdr-devel2 phc2sys[1390]: [8436.169] failed to get UTC > offset > Aug 16 13:20:05 ozhdr-devel2 phc2sys[1390]: phc2sys[8438.171]: failed > to get UTC offset > Aug 16 13:20:05 ozhdr-devel2 phc2sys[1390]: [8438.171] failed to get UTC > offset > Aug 16 13:20:07 ozhdr-devel2 phc2sys[1390]: phc2sys[8440.172]: failed > to get UTC offset > Aug 16 13:20:07 ozhdr-devel2 phc2sys[1390]: [8440.172] failed to get UTC > offset > > I get this message and the time synchronization doesn't work. > But if I manually restart the service in phc2sys (systemctl restart > phc2sys.service) the time synchronization works fine. > > How can I fix this error? > > Regards, > > > > 2022년 8월 10일 (수) 오후 4:20, Miroslav Lichvar <mlich...@redhat.com>님이 작성: > > > > On Wed, Aug 10, 2022 at 09:13:53AM +0900, james jeong wrote: > > > Dear, > > > > > > We are using Ubuntu 20.04 LTS. > > > I am trying to use linuxptp as a service daemon rather than an > > > application. > > > (The purpose is to automatically run ptp4l and phc2sys when the Master and > > > Slave devices are booted.) > > > > The Ubuntu linuxptp package seems to contain systemd service files: > > > > /lib/systemd/system/phc2sys.service > > /lib/systemd/system/ptp4l.service > > /lib/systemd/system/timemaster.service > > > > and it has configuration files in /etc/linuxptp. > > > > You would just edit the configuration and enable the services you need > > to run. > > > > -- > > Miroslav Lichvar > > _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users