Coder Social home page Coder Social logo

sfptpd's Introduction

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

sfptpd's People

Contributors

abower-amd avatar ivatet-amd avatar matthewr-xilinx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.