English Persian
`SOF_TIMESTAMPING_TX_SOFTWARE`
`SOF_TIMESTAMPING_RX_SOFTWARE`
For hardware time stamping support, the parameters list should include:
`SOF_TIMESTAMPING_RAW_HARDWARE`
`SOF_TIMESTAMPING_TX_HARDWARE`
`SOF_TIMESTAMPING_RX_HARDWARE`
Installing PTP
The kernel in Fedora includes support for `PTP`. User space support is provided by the tools in the [application]*linuxptp* package. To install [application]*linuxptp*, issue the following command as `root`:
~]#{nbsp}dnf install linuxptp
This will install [application]*ptp4l* and [application]*phc2sys*.
Do not run more than one service to set the system clock's time at the same time. If you intend to serve `PTP` time using `NTP`, see xref:Configuring_PTP_Using_ptp4l.adoc#sec-Serving_PTP_Time_with_NTP[Serving PTP Time with NTP].
Starting ptp4l
The [application]*ptp4l* program can be started from the command line or it can be started as a service. When running as a service, options are specified in the `/etc/sysconfig/ptp4l` file. Options required for use both by the service and on the command line should be specified in the `/etc/ptp4l.conf` file. The `/etc/sysconfig/ptp4l` file includes the [command]#-f /etc/ptp4l.conf# command line option, which causes the `ptp4l` program to read the `/etc/ptp4l.conf` file and process the options it contains. The use of the `/etc/ptp4l.conf` is explained in xref:Configuring_PTP_Using_ptp4l.adoc#sec-Specifying_a_Configuration_File[Specifying a Configuration File]. More information on the different [application]*ptp4l* options and the configuration file settings can be found in the `ptp4l(8)` man page.
Starting ptp4l as a Service
To start [application]*ptp4l* as a service, issue the following command as `root`:
~]#{nbsp}systemctl start ptp4l
Using ptp4l From The Command Line
The [application]*ptp4l* program tries to use hardware time stamping by default. To use [application]*ptp4l* with hardware time stamping capable drivers and NICs, you must provide the network interface to use with the [option]`-i` option. Enter the following command as `root`:
~]#{nbsp}ptp4l -i em3 -m
Where _em3_ is the interface you want to configure. Below is example output from [application]*ptp4l* when the `PTP` clock on the NIC is synchronized to a master: