This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5708: PTP over one HSRport

Part Number: AM5708

Hi:

     I have a custom AM5708 based board with SDK6.02.

I have 2 ethernet ports, eth1 & eth2, managed by PRU2 and have configured them in HSR mode.

I have configured PTP over eth1 and eth2 over HSR with the above configuration file:

[global]
step_threshold               0.010
tx_timestamp_timeout         300
domainNumber                 10
priority1                    128
priority2                    128
slaveOnly                    1
uds_address                  /var/run/ptp4l1
summary_interval             0
initial_delay                1
doubly_attached_clock        1

[hsr0]
redundancy                   1
delay_mechanism              P2P
network_transport            L2

[eth1]
redundancy                   1
redundancy_master_interface  hsr0
redundancy_slave_number      1
logMinPdelayReqInterval      -3
delay_mechanism              P2P
network_transport            L2
egressLatency                726
ingressLatency               186
delayAsymmetry               0
fault_reset_interval         0

[eth2]
redundancy                   1
redundancy_master_interface  hsr0
redundancy_slave_number      2
logMinPdelayReqInterval      -3
delay_mechanism              P2P
network_transport            L2
egressLatency                726
ingressLatency               186
delayAsymmetry               0
fault_reset_interval         0

and it works fine.

The issue comes up when I want to disable PTP over one port, let´s say eth2. In this case I remove all stuff under eth1:

[global]
step_threshold               0.010
tx_timestamp_timeout         300
domainNumber                 10
priority1                    128
priority2                    128
slaveOnly                    1
uds_address                  /var/run/ptp4l1
summary_interval             0
initial_delay                1
doubly_attached_clock        1

[hsr0]
redundancy                   1
delay_mechanism              P2P
network_transport            L2

[eth1]
redundancy                   1
redundancy_master_interface  hsr0
redundancy_slave_number      1
logMinPdelayReqInterval      -3
delay_mechanism              P2P
network_transport            L2
egressLatency                726
ingressLatency               186
delayAsymmetry               0
fault_reset_interval         0

In this case what I get is a segmentation fault. The same happens if I disable eth2.

............................................................................................

ptp4l[3625.815]: selected best master clock 001d7f.fffe.104ec2 on port 2
ptp4l[3625.815]: selected best master clock 001d7f.fffe.104ec2
ptp4l[3625.815]: running in a temporal vortex
ptp4l[3625.815]: red port 2 (eth1): LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[3626.127]: master offset      15605 s0 freq    -673 path d[ 3626.131964] audit: type=1701 audit(1618946310.730:88): auid=4294967295 uid=0 gid=0 ses=42
94967295 subj==unconfined pid=4568 comm="ptp4l" exe="/usr/bin/ptp4l" sig=11 res=1
elay       108
Segmentation fault (core dumped)

Is there any way of configuration PTP over HSR but only with one port enable?

Regards

Billa