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.

TDA4VM: How to use gptp after setting native drive to switch

Part Number: TDA4VM

Hi, TI experts

I have now successfully configured the network port to switch mode under the native driver,but I need to use gptp to synchronize external time to cpts in this mode.

However, I found that in switch mode, only br0 can ping. May I know how to configure time synchronization in the switch mode of the native driver

Regards,

Albert

  • can you please elaborate what's the steps you did to change to switch mode and the command lines and logs for br0 ping? Also, how did you use the gptp along with cpsw9g now?

    In short, please describe this issue more specifically so that our BU expert could suggest. 

  • I loaded the k3-j721e-gesi exp board. dtb file on the VM development board to run the board in native driver mode.

    Then, I execute the following command:

    ip link set dev eth1 down
    ip link set dev eth2 down
    ip link set dev eth3 down
    ip link set dev eth4 down
    devlink dev param set platform/c000000.ethernet name switch_mode value true cmode runtime
    ip link add name br0 type bridge
    ip link set dev br0 type bridge ageing_time 1000
    ip link set dev eth1 up
    ip link set dev eth2 up
    ip link set dev eth3 up
    ip link set dev eth4 up
    ip link set dev eth1 master br0
    ip link set dev eth2 master br0
    ip link set dev eth3 master br0
    ip link set dev eth4 master br0
    ip link set dev br0 type bridge vlan_filtering 1
    bridge vlan add dev br0 vid 1 pvid untagged self

    After completing the execution, I found that equipping br0 with an IP can ping, but eth1 to eth4 cannot ping. Using eth4 to ping my computer and then using wireshark cannot capture the ping packet.

    I want to use ptp4l for PTP time synchronization in this mode, and I'm not sure if it is supported. If supported, how should I configure it.

  • It has been resolved, and I found that when using udp, the switch may not receive it, but it can be sent out normally. However, using the IEEE8023 method can achieve normal time synchronization. Also, if I want to use udp, can I do it

  • Thanks for the confirmation Albert. Closing this ticket.

    Please reopen the ticket if needed. Just respond on it to reopen.

    Regards,
    Tanmay