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.

  • Resolved

AM335x CPSW Ethernet Switch mode with CPU port

Prodigy 60 points

Replies: 5

Views: 5331

Dear Experts,

on a custom board AM335x with two Ethernet Ports I am to configure the Switch so that it behaves like
a "home office" simple plug-and-play switch (Port 1 and Port 2) which has a CPU (Port 0 with one single MAC address) for service purposes.

My OS is Windows CE 7.00, BSP derived from TI EVM BSP by ADENEO.
They mimick the Linux Dual MAC mode which is useless for my purpose; we have no time to "bridge" ports high up in the application layer.

The AM335x Ethernet subsytem CPSW (or CPSW3G) 3-port-switch configuration is described in several docs, like

"Linux Core CPSW User's Guide" : http://processors.wiki.ti.com/index.php/Linux_Core_CPSW_User%27s_Guide
"AM335x CPSW (Ethernet) Driver's Guide" :http://processors.wiki.ti.com/index.php/AM335x_CPSW_%28Ethernet%29_Driver%27s_Guide
AM335x TRM: 14.4.6 Initialization and Configuration of CPSW.
Enet AM335x StarterWare: http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/starterware/latest/index_FDS.html

After reading these, I know what IOCTLs there are to configure the CPSW, and what registers there are in the AM335x for the CPSW.
My Windows CE is already running the CPSW in RMII Single MAC mode, detecting whether a link is up ether on Port 1 or 2, and ignoring the other port.

But i still am missing an example configuration for the "Ethernet 2-Port Switch Mode".

Is there a guide as WHAT I have to configure in the ALE, port settings, etc... to configure the CPSW into an Ethernet Switch?

Thanks
Anja

  • Hi Anja,

    I will forward this to the Ethernet experts.

     

    Best Regards
    Biser
  • Matthijs van Duin replied to >> AM335x Ether subsystem use as LAN Hub << which overlaps with my question:

    e2e.ti.com/.../1457435
  • Hi Anja,

       Did you finish the ethernet switch use the AM335x? I want to do also.

       Thanks so much.

       BR.

       Hans.

  • In reply to Hans Huang1:

    Hi Hans,

    yes, we got it running fine with WinEC7. We followed the advice linked in the green box above, and it works - as desired - as simple 2-port-switch.

    Regards, Anja

  • In reply to Anja Zoelgert:

    Hi Anja,

    I already finished too.

    BR.
    Hans.

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.