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.

Using Starter Kit as Ethernet Switch

Other Parts Discussed in Thread: DP83848K

AM335x Starter Kit
SDK 8.00

Looking at the following page it seems that the starter kit should default to "switch mode" when powering up:

http://processors.wiki.ti.com/index.php/SK_ETH

I've tried the following simple experiment:

  1. Before I started my work PC was plugged into the corporate LAN with networking operational.
  2. I unplugged my PC and plugged it into the Starter Kit.
  3. I took another network cable and plugged from the starter kit into the corporate LAN.
  4. I powered up the starter kit and attempted to access the network via my PC.  It was not working...

Are there some other steps required to get this operational?

  • Hi Brad,

    Which SDK are you running?

  • I used AM335x SDK 08_00_00_00, file sitarra_linux_sdk_am335x.img.zip (for Windows load, under A335x SDK Card Creation).

    C:\Users\xxx\Documents\HMI\EVMKit>C:\FCIV -md5 -sha1 sitara_linux_sdk_a

    m335x.img
    //
    // File Checksum Integrity Verifier version 2.05.
    //
    MD5 SHA-1
    -------------------------------------------------------------------------
    2d19aeb7d2323cbaea5ff100475d9fe2 9013839d01f8bf745a3c1d865958f8886ff0f9b6 sitara
    _linux_sdk_am335x.img

    Please let me know if I should be using something different.

    Thanks,

    Doug

  • I was asking because I missed seeing this in the original post. This has already been forwarded to the networking experts. Feedback will be posted here.

  • The ethernet ports on the am335x evm-sk for SDK 8.0 come up in dual mac mode. The wiki is not correct, I will correct it. It is not possible to change between switch mode and dual mac mode without making a modification to the device tree file source file.
  • Hi,

    What are the specific changes needed to enable the switch mode and make the switch act as a "dumb" Ethernet switch?

    The documentation on the Wiki is out of date for SDK 7 andn SDK8.

    Thanks,

    Doug

  • Maybe just remove "dual_emac" from arch/arm/boot/dts/am335x-evmsk.dts? 

    &mac {
            pinctrl-names = "default", "sleep";
            pinctrl-0 = <&cpsw_default>;
            pinctrl-1 = <&cpsw_sleep>;
            dual_emac;
    };

  • I made the following change in SDK 8.00:

    diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk
    index e6c5bde..3d15664 100644
    --- a/arch/arm/boot/dts/am335x-evmsk.dts
    +++ b/arch/arm/boot/dts/am335x-evmsk.dts
    @@ -651,7 +651,6 @@
            pinctrl-names = "default", "sleep";
            pinctrl-0 = <&cpsw_default>;
            pinctrl-1 = <&cpsw_sleep>;
    -       dual_emac = <1>;
     };

     &davinci_mdio {

    I confirm that fixes the issue, i.e. the Starter Kit functions as a switch after making that change.

  • Brad,

    I tested the following configuraitons without any problems.  Thanks for the informaiton. (FD = Full Duplex, HD = Half Duplex, UUT = Unit Under Test, AM3354BZCZD60)  We are using DP83848K phys (10/100MB).  These tests were run with about 95% uitilization of line speed (of slowest link) for 10 minuites each.  I used random data for packets.  No packet loss and no CRC errors.  I did not test higher utilizaiton bursts.

     

    SmartBits 200 ports:

    UUT ports:

     

    #

    Test Name

    Card 1 (C1)

    Card 2 (C2)

    P64

    P74

    Connections:

    1

    100FD -- 100FD

    100FD

    100FD

    100FD

    100FD

    C1-P64, C2-P74

    2

    100HD -- 100HD

    100HD

    100HD

    100HD

    100HD

    C1-P64, C2-P74

    3

    100FD -- 100HD

    100FD

    100HD

    100FD

    100HD

    C1-P64, C2-P74

    3

    100FD -- 100HD REVERSE

    100HD

    100HD

    100HD

    100HD

    C1-P74, C2-P64

    4

    10FD -- 10FD

    10FD

    10FD

    10FD

    10FD

    C1-P64, C2-P74

    5

    10HD -- 10HD

    10HD

    10HD

    10HD

    10HD

    C1-P64, C2-P74

    6

    10FD -- 10HD

    10FD

    10HD

    10FD

    10HD

    C1-P64, C2-P74

    6

    10FD -- 10HD REVERSE

    10FD

    10HD

    10HD

    10FD

    C1-P64, C2-P74

    7

    100FD -- 10FD

    100FD

    10FD

    100FD

    10FD

    C1-P64, C2-P74

    7

    100FD -- 10FD REVERSE

    100FD

    10FD

    10FD

    100FD

    C1-P74, C2-P64

    8

    100FD -- 10HD

    100FD

    10HD

    100FD

    10FD

    C1-P64, C2-P74

    8

    100FD -- 10HD REVERSE

    100FD

    10HD

    10FD

    100FD

    C1-P74, C2-P64

    9

    100HD -- 10FD

    100HD

    10FD

    100HD

    10FD

    C1-P64, C2-P74

    9

    100HD -- 10FD REVERSE

    100HD

    10FD

    10FD

    100HD

    C1-P74, C2-P64

    10

    100HD -- 10HD

    100HD

    10HD

    100HD

    10FD

    C1-P64, C2-P74

    10

    100HD -- 10HD REVERSE

    100HD

    10HD

    10FD

    100HD

    C1-P74, C2-P64