Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
HSR and PRP PTP support
=======================

The `linuxptp-hsr <https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/linuxptp-hsr.git>`_
implementation on the ``hsr_prp_v2_plus`` branch supports PTP (Precision Time Protocol)
The `linuxptp-hsr-prp <https://git.kernel.org/pub/scm/linux/kernel/git/mda/linuxptp-hsr-prp.git>`_
implementation on the ``hsr_prp_ptp`` branch supports PTP (Precision Time Protocol)
synchronization over High-availability Seamless Redundancy (HSR) and Parallel Redundancy
Protocol (PRP) interfaces.

Expand All @@ -19,21 +19,9 @@ Clone linuxptp-hsr:

.. code-block:: console

git clone https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/linuxptp-hsr.git
cd linuxptp-hsr
git checkout hsr_prp_v2_plus

Patch the config files with the actual interface names and the P2P destination MAC
address. The config files use INI-style sections where ``[eth1]`` and ``[eth2]``
denote the two physical interfaces. The first command appends the ``p2p_dst_mac``
key (destination MAC for P2P delay-request messages) into the ``[global]``
section just after the ``delay_mechanism`` key. The second command replaces the
``[eth1]`` and ``[eth2]`` section headers with the actual interface names:

Comment thread
danish-ti marked this conversation as resolved.
.. code-block:: console

sed -i '/^delay_mechanism/a p2p_dst_mac 01:1B:19:00:00:01' configs/<proto>-master.cfg configs/<proto>-slave.cfg
sed -i 's/^\[eth1\]/[<INTF_A>]/; s/^\[eth2\]/[<INTF_B>]/' configs/<proto>-master.cfg configs/<proto>-slave.cfg
git clone https://git.kernel.org/pub/scm/linux/kernel/git/mda/linuxptp-hsr-prp.git
cd linuxptp-hsr-prp
git checkout hsr_prp_ptp

Build and install:

Expand Down
Loading