Skip to content
Merged
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 @@ -188,169 +188,3 @@ Multicast MAC address can be added/deleted using ip maddr commands or Linux sock
.. code-block:: console

# ip maddr del 01:00:5e:00:00:05 dev hsr0

.. ifconfig:: CONFIG_part_variant in ('AM64X', 'AM65X')

.. rubric:: PTP Ordinary Clock

PTP Master Clock

The PTP Ordinary Clock (OC) implementation is provided by the linuxptp application.
The following command should be executed for master mode clock.

.. code-block:: console

ptp4l -f gm_hsr0.cfg -m

The gm_hsr0.cfg is given below

.. code-block:: console

root@am65xx-evm:~# cat gm_hsr0.cfg
[global]
sanity_freq_limit 0
step_threshold 0.00002
tx_timestamp_timeout 20

domainNumber 0
priority1 127
priority2 128
slaveOnly 0

twoStepFlag 1
summary_interval 0
doubly_attached_clock 1

[hsr0]
redundancy 1
delay_mechanism P2P
network_transport L2

[eth1]
redundancy 1
redundancy_master_interface hsr0
redundancy_slave_number 1

logAnnounceInterval 0
logSyncInterval 0
logMinPdelayReqInterval 0
announceReceiptTimeout 3
syncReceiptTimeout 2

delay_mechanism P2P
network_transport L2
egressLatency 726
ingressLatency 186
fault_reset_interval 0

[eth2]
redundancy 1
redundancy_master_interface hsr0
redundancy_slave_number 2

logAnnounceInterval 0
logSyncInterval 0
logMinPdelayReqInterval 0
announceReceiptTimeout 3
syncReceiptTimeout 2

delay_mechanism P2P
network_transport L2
egressLatency 726
ingressLatency 186
fault_reset_interval 0

.. rubric:: PTP Slave Clock

The following command should be executed for slave mode clock.

.. code-block:: console

ptp4l -f oc_hsr0.cfg -m -s

The oc_hsr0.cfg is given below

.. code-block:: console

[global]
sanity_freq_limit 0
step_threshold 0.00002
tx_timestamp_timeout 20

domainNumber 0
priority1 128
priority2 128
slaveOnly 0

twoStepFlag 1
summary_interval 0
doubly_attached_clock 1

[hsr0]
redundancy 1
delay_mechanism P2P
network_transport L2

[eth1]
redundancy 1
redundancy_master_interface hsr0
redundancy_slave_number 1

logAnnounceInterval 0
logSyncInterval 1
logMinPdelayReqInterval 0
announceReceiptTimeout 3
syncReceiptTimeout 2

delay_mechanism P2P
network_transport L2
egressLatency 726
ingressLatency 186
fault_reset_interval 0

[eth2]
redundancy 1
redundancy_master_interface hsr0
redundancy_slave_number 2

logAnnounceInterval 0
logSyncInterval 1
logMinPdelayReqInterval 0
announceReceiptTimeout 3
syncReceiptTimeout 2

delay_mechanism P2P
network_transport L2
egressLatency 726
ingressLatency 186
fault_reset_interval 0

.. rubric:: PPS

PPS can be tested using the testptp.c tool.

To find which PTP Hardware Clock is associated with the netdevice, use

.. code-block:: console

ethtool -T DEVNAME

To turn on PPS,

.. code-block:: console

# ip link set dev eth1 up
# ./testptp -d /dev/ptp2 -P 1
pps for system time request okay

To turn off PPS,

.. code-block:: console

# ./testptp -d /dev/ptp2 -P 0
pps for system time request okay

.. rubric:: PTP Over VLAN

For PTP Over VLAN, the PTP oc_hsr0.cfg and gm_hsr0.cfg should use VLAN
interface instead of hsr0.