Skip to content

jfeather-amd/sfptpd

 
 

Repository files navigation

Solarflare Enhanced PTP Daemon Installation Instructions

The Solarflare Enhanced PTP Daemon works on Linux systems for 3.0 kernels and later.

(c) Copyright 2013-2023 Xilinx, Inc.

Building

  1. Change directory to the root of the sfptpd source repository or package
  2. Type make all
  3. The executable daemon is sfptpd in the build/ directory

Execution

The built sfptpd daemon does not require installation. However, it must normally be run as root.

Back-to-back PTP example

On host A:

sudo build/sfptpd -i eth1 -f config/ptp_master_freerun.cfg

On host B:

for i in ntp{,d} chrony{,d}; do sudo service $i stop 2>/dev/null; done
sudo build/sfptpd -i eth1 -f config/ptp_slave.cfg

Installation

Some example installation recipes follow.

For most recent distributions

sudo make prefix=/usr install

Example for an old distribution like RHEL6

sudo make prefix=/usr INST_INITS=sysv INST_OMIT=sfptpmon install

Default operation

Installs to /usr/local

sudo make install

Into a container image

make DESTDIR=../staging INST_INITS= install

Building a source RPM

mkdir -p ~/rpmbuild/SOURCES
ver="$(scripts/sfptpd_versioning derive)"
git archive --prefix="sfptpd-$ver/" --format=tgz -o ~/rpmbuild/SOURCES/sfptpd-$ver.tgz HEAD
curl https://raw.githubusercontent.com/Xilinx-CNS/sfptpd-rpm/generic/sfptpd.spec | sed "s/^\(Version: \).*/\1 $ver/g" > sfptpd.spec
rpmbuild -bs sfptpd.spec

About

Solarflare Enhanced PTP Daemon

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.1%
  • Other 1.9%