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: TDA4 SGMII MAC2MAC

Part Number: TDA4VM

hi

When I use sgmii MAC2MAC driven by cpsw9g, I have the following problems

1.Is this correct that no IP can be set without enabling static IP configuration in ndk.cfg

2.Both sgmii3 and sgmii4 are used.

Sgmii3 is configured as forcelink mode to connect the switching chip.

Sgmii4 is configured in master autoeng mode to communicate with another tda4.

Both sgmii work in mac2mac mode.

In this case, sgmii3 cannot communicate with the switch chip, and sgmii4 can communicate with the outside.

Check the log of mcu2-0 ,i find that there is only the last initialized sgmii4's MAC address and IP address is set

Sgmii3 only linkup.

If only sgmii3 is initialized,  sgmii4 is not initialized,sgmii3 can communicate with the switch chip.

Best Regards!

  • Hi,

    Sorry for the delay. See my replies inline

    1.Is this correct that no IP can be set without enabling static IP configuration in ndk.cfg

    Yes, that is correct. You will get an error otherwise.

    Regarding SGMII issues:

    1. Which SDK version are you using ?

    2. Have you checked this FAQ on SGMII MAC 2 MAC

    3. Can you take a look at these two E2E's and let me know if you have a similar problem

    TDA4VM: SDK 7.2 SGMII MAC-to-MAC enabling problem

    TDA4VM: Enable SERDES0 LAN0 as SGMII communication between two TDA4VM fail

    TDA4VM: SDK 7.0 EthFw SGMII MAC-to-MAC enabling problem

    Regards

    Vineet

  • hi,

    thanks for your replay 

    i use the sdk 7.3 qnx + rtos

    My question doesn't belong to inline issues

    The communication between the two tda4 via sgmii4 has been completed,it works ok

    But we also connected the external switch chip through sgmii3 

    My question is, can there be two mac2macs on the same tda4 at the same time,

    When I use two mac2mac, it is not feasible, and there is no effective log to provide analysis

    There are no errors in the log file, including the initialization of sgmii3, sgmii4 and ethfw

    only sgmii4 between TDA4A and TDA4B is ok

    but if i do not initialize sgmii4 ,SGMII3 It doesn't need any change and can be used normally

  • Hi,

    I see this older E2E from you describing roughly the same problem and it was marked as verified closed. Was that issue not resolved back then ? Can you comment ?

    There is no issue in having 2 MAC 2 MAC connections. It's supported.

    Regards

    Vineet

  • hi

    sja1110 was designed by other customers I just got it. Before that, I just configured the software in advance and didn't debug it.

    The running log is as follows,MAC 3 log is the function CpswMacPort_configSgmii line 2194 's print i changed ENTTRACE_DBG->ENTTRACE_INFO,I think MAC3 is linkup  but it's unable to communicate with external switch chip,MAC4 is Normal communication。

    If I change mac4 to rgmii,MAC3 is Normal communication .
    Log does not have any error prompts, please help to analyze the following should start from where to check this problem

  • hi

    Vineet 

    I just checked a FAQ that might solve my problem :e2e.ti.com/.../faq-tda4vm-how-to-configure-cpsw-5g-9g-ale
    The current status of my board is unable to get a second MAC address and static IP address. Please confirm it for me
    Tda4A in BOARD:A
    I have only two MAC addresses and two IP addresses, corresponding to A72 and sgmii4 respectively. Sgmii3 has no Mac and IP addresses 
    in BOARD:B
    Sja1110 has a default IP address 192.168.0.200, I can't pass a72 ping192.168.0.200 but ping 192.168. 0.109 and 192.168. 0.110 is ok

    [FAQ] TDA4VM: How to Configure CPSW 5G/9G ALE - Processors forum - Processors - TI E2E support forums

  • Hi,

    Ok, I now understand what you mean. Your MAC 2 MAC L2 connection is fine, as in it can send and receive packets. The problem is that ping is not working. Can you confirm? That can be due to various reasons.

    A72 will get only 1 IP and MAC address as multiple eth interfaces are not supported right now. As already mentioned by you, change the ALE entries and play with it to redirect traffic as required.

    Regards

    Vineet

  • Hi,

    thanks for your replay 

    i am sure the connection of SGMII3 and SGMII4 is fine. but i can not ping 192.168.0.200 from A72 . the ip 192.168.0.200 is connect to sgmii3 

    if i want ping 192.168.0.200 from A72 i must change ALE entries right ?

    It hasn't been explained in more detail for change ALE entries?
    If I change the ale entry and redirect the traffic, will it affect the whole bandwidth? For example, Mac1 and mac3 use 1g bandwidth together

  • Hi,

    If you want to ping two separate devices on SGMII3 and SGMII4, they need to be on different subnet and you need to have two interfaces at your end which are on those corresponding subnets.

    You could use the Ethernet Firmware as a separate interface to accomplish this since A72 can have only one interface.

    So it will look something like this (may change based on your need)

    R5F (EthFW) --->SGMII4-->TDA4

    A72 (Linux) ---->SGMII3-->SJA110

    I don't think this will require any ALE configuration. You will have to initiate SGMII3 ping from A72 and R5F ping from other TDA4.

    Regards

    Vineet

  • hi Vineet

    I think I understand what you mean
    But there are a few questions

    1.there is a phy of rgmii interface on MAC 1 of tda4a, the correct structure should be as follows:

        R5F (EthFW) --->RGMII1-->PHY->OTHER   ip  which are on those corresponding subnets SGMII4 

        R5F (EthFW) --->SGMII4-->TDA4

        A72 (Linux) ---->SGMII3-->SJA110

    2.We are currently using QNX operating system. If we use A72 to drive sgmii3, we need use CPSW2g right?if i use cpsw2g Is it possible to drive three devices,RGMII1 SGMII3 SGMII4 

    3.If I add a PHY chip to sgmii3, can I solve the corresponding problem? Instead of using A72 driver, I still use ethfw firmware,and use CPSW9g

       R5F (EthFW) --->RGMII1-->PHY->OTHER   ip addr is ?

       R5F (EthFW) --->SGMII4-->TDA4                 ip addr is 192.168.0.100

       R5F (EthfFW) ---->SGMII3-->PHY->SJA110 ip addr is ?

  • Hi,

    Yes, if you use CPSW 2G you get an additional ethernet interface for a third device. But I didn't get the part about SGMII3 and CPSW 2G, these are two different things.

    Regards

    Vineet

  • With SDK 8.1 (Nov 21) you will get multiple Ethernet interfaces on Linux with CPSW 9G, maybe that will solve your problem.

    Regards

    Vineet

  • thanks vineet 

    the last question

    If I use the following methods, i can solve the current needs

    R5F (EthFW) --->RGMII1-->PHY->OTHER  

    R5F (EthfFW) ---->SGMII3-->PHY->SJA110

    R5F (EthFW) --->SGMII4-->TDA4

     use ethfw firmware,and use CPSW9g

    Otherwise, i need to wait for the development package of sdk8.1
  • Hi,

    No it will not. R5F (ethfw) will only give you one eth interface for CPSW 9G. Linux will have two eth interfaces, (1 for 2G and 1 for 9G)

    Regards

    Vineet

  •  hi vineet

    you mean like this?

    A72 --->RGMII1-->PHY->OTHER CPSW9G

    A72---->SGMII3-->PHY->SJA110  CPSW2G

    R5F (EthFW) --->SGMII4-->TDA4 CPSW9G

  • Hi,

    you mean like this?

    Yes

    If OTHER CPSW9G and CPSW2G are on the same subnet but with different IP's, then you should be able to ping both from single A72 eth interface (if that's ok with your application)

    R5F (EthFW) can have a different IP and subnet (same as TDA4 CPSW9G)

    Regards

    Vineet