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.

AM3358: how to achieve the switch functionality using CPSW?

Part Number: AM3358

Hi:

At present, we want to use cpsw as the network switch function? How to configure the switch function?

Although  we got a confirmation from vendor (TI) that with RMII interface,

3.2.4.8. CPSW — Processor SDK Linux for AM335X Documentation  

But there are only part of configurations? Could you share all the configuration codes?

  • Hi,

    It depends on the SDK version that you are using. Earlier versions of the SDK enabled switch mode by default. To enable switch mode look at this section in the link you passed Dual EMAC Device tree entry.

    +       dual_emac
    +       dual_emac_res_vlan = <1>;
    +       dual_emac_res_vlan = <2>;

    After deleting the above lines rebuild the DTS files and make sure to install them in the /boot directory of the root file system.

    Best Regards,

    Schuyler