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.

[FAQ] PROCESSOR-SDK-AM57X: SDK 8.2 HSR/PRP Configure offload features to PRU-ICSS modules

Part Number: PROCESSOR-SDK-AM57X

Tool/software:

The AM57x 8.2 SDK does not correctly document how to set up the functionality for these features. Original documentation: https://software-dl.ti.com/processor-sdk-linux/esd/AM57X/08_02_01_00/exports/docs/linux/Industrial_Protocols_HSR_PRP.html#getting-started

The following instructions were run on the default 8.2 SDK:

  • To try out HSR/PRP (assuming two supported platforms are set up already, and PRU-ICSS ports are eth1/eth2):

    1 ) Connect the PRU-ICSS ports between devices, eth1 to eth1 and eth2 to eth2. (This acts as a 2 node ring for HSR, or a 2 node point-to-point for PRP)

    2 ) Configure ports to have the same MAC address

    ifconfig eth1 0.0.0.0 down && ifconfig eth2 0.0.0.0 down
    ifconfig eth1 hw ether 70:FF:76:1C:0E:8C && ifconfig eth2 hw ether 70:FF:76:1C:0E:8C

    3 ) Configure offload feature, and create HSR/PRP interface

    (for HSR)

    ethtool -K eth1 hsr-fwd-offload on on && ethtool -K eth2 hsr-fwd-offload on
    ethtool -K eth1 hsr-tag-rm-offload on on && ethtool -K eth2 hsr-tag-rm-offload on
    ip link add name hsr0 type hsr slave1 eth1 slave2 eth2 supervision 45 version 1
    ifconfig eth1 up && ifconfig eth2 up
    ifconfig hsr0 192.168.2.20

    (for PRP)

    ethtool -K eth1 hsr-fwd-offload on on && ethtool -K eth2 hsr-fwd-offload on
    ethtool -K eth1 hsr-tag-rm-offload on on && ethtool -K eth2 hsr-tag-rm-offload on
    ip link add name hsr0 type hsr slave1 eth1 slave2 eth2 supervision 45 proto 1
    ifconfig eth1 up && ifconfig eth2 up
    ifconfig prp0 192.168.2.20

    4 ) Attempt to ping from one device to the other, and try disconnecting a link. The connection will continue without loss.

    Best,

    Josue