nxp-archive / openil_linuxptp

PTP IEEE 1588 stack for Linux
GNU General Public License v2.0
136 stars 60 forks source link

+BEGIN_EXAMPLE

git clone git://git.code.sf.net/p/linuxptp/code linuxptp

+END_EXAMPLE

If the git protocol is blocked by your local area network, then you can use the alternative HTTP protocol instead.

+BEGIN_EXAMPLE

git clone http://git.code.sf.net/p/linuxptp/code linuxptp

+END_EXAMPLE

+BEGIN_EXAMPLE

ethtool -T eth0

+END_EXAMPLE

This command shows whether a MAC supports hardware or software time stamping. The following example output indicates support for hardware time stamping.

+BEGIN_EXAMPLE

Time stamping parameters for eth6: Capabilities: hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE) software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE) hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE) software-receive (SOF_TIMESTAMPING_RX_SOFTWARE) software-system-clock (SOF_TIMESTAMPING_SOFTWARE) hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE) PTP Hardware Clock: 1 Hardware Transmit Timestamp Modes: off (HWTSTAMP_TX_OFF) on (HWTSTAMP_TX_ON) Hardware Receive Filter Modes: none (HWTSTAMP_FILTER_NONE) all (HWTSTAMP_FILTER_ALL)

+END_EXAMPLE

The next example shows the case where the MAC only supports software time stamping. The ~ptp4l~ program requires either the ~-S~ command line argument or the ~time_stamping software~ configuration option when using such interfaces.

+BEGIN_EXAMPLE

Time stamping parameters for enp6s0: Capabilities: software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE) software-receive (SOF_TIMESTAMPING_RX_SOFTWARE) software-system-clock (SOF_TIMESTAMPING_SOFTWARE) PTP Hardware Clock: none Hardware Transmit Timestamp Modes: none Hardware Receive Filter Modes: none

+END_EXAMPLE

Note the ~software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE)~ capability. If this is lacking, then the MAC cannot be used at all. However, adding this capability entails adding a single line of code to the device driver.

** Reporting Bugs

Please report any bugs or other issues with the software to the linuxptp-users mailing list.

https://lists.sourceforge.net/lists/listinfo/linuxptp-users

** Development

If you would like to get involved in improving the software, please join the linuxptp-devel mailing list.

https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

*** Submitting Patches

  1. Before submitting patches, please make sure that you are starting your work on the current HEAD of the git repository.

  2. Please checkout the ~CODING_STYLE.org~ file for guidelines on how to properly format your code.

  3. Describe your changes. Each patch will be reviewed, and the reviewers need to understand why you did what you did.

  4. Sign-Off each commit, so the changes can be properly attributed to you and you explicitely give your agreement for distribution under linuxptp's license. Signing-off is as simple as:

    +BEGIN_EXAMPLE

    git commit -s

    +END_EXAMPLE

    or by adding the following line (replace your real name and email) to your patch:

    +BEGIN_EXAMPLE

    Signed-off-by: Random J Developer random@developer.example.org

    +END_EXAMPLE

  5. Finally, send your patches via email to the linuxptp-devel mailing list, where they will be reviewed, and eventually be included in the official code base.

    +BEGIN_EXAMPLE

    git send-email --to linuxptp-devel@lists.sourceforge.net origin/master

    +END_EXAMPLE