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: Issue when mapped MAC-only port to A72 (Linux) in Ethernet Firmware

Part Number: TDA4VM

Dear TI Experts,

I have an issue when trying to map the ethfw Mac-only port to A72. Please help check my steps below:

Just use 1 MAC port:

Port cfg:

Virt port cfg:

Linux side device tree define:

When trying to boot the system, I got the log below:

It seems that the driver already recognized my setup but also through some errors. I just want to confirm: Is all my setting ok and Does the error log effect the result?

At booting done. I still cannot find any new network interface:

2. For the next steps. I'm trying to load the ethfw by running the vision_apps: /opt/vision_apps/vision_apps_init.sh

I also can see the log here:

But there is still no new ethernet interfaces and when I add some logs, it show that my PHY seems stuck in the LINK_WAIT state:

Could you please help check and give me your suggestion?

Best regards,

Dinh.

  • I'd like to update some more information.

    I've check for the details of the kernel error logs and it seems from the ti_j721e_cpsw_virt_mac

    Do you have any idea regarding to this errors?

  • Hi,

    Can you please confirm, are you using TI EVM for above testing? If so, Port-2 is mapped to QUAD PORT ETH EXP port on EVM.
    You have to use QSGMII and have QUAD PORT ETH EXP card connected to EVM.

    If you have Separate RGMII PHY then configuration mentioned above will be fine, but can you check extended configuration as mentioned below were take care by writing the PHY or not?


    Also, Refer to FAQ [How to Add MAC only port to A72] and check once.

    Please share the PHY details which you were using? 

    Best Regards,
    Sudheer

  • Hi Sudheer,

    Thank you for your information. It seems that some legacy code from previous developer cause the issue.

    I've resolved the kernel issue and can see the Ethernet interfaces.

    But about the issue about the ethfw keep loop in the Stage Machine: LINK_WAIT -> FOUND -> RESET_WAIT -> ENABLE -> LINK_WAIT -> FOUND

    Seems it missing something and unable to change to LINKED state. 

    Could you please give some suggestion where I can check.

    Best regards.

    Dinh.

  • Hi,

    Can you please confirm, have you made any changes to Ethfw? If so can you please share the changes to review once?

    Can you confirm, Is Link partner is connected to the CPSW Port and Link is Up? If not connected can you please connect the Link Partner and check once.

    Also, Can you please confirm that the Port-2 is configured in RGMII or not? by default in SDK Port-2 is configured in SGMII Mode.
    If not updated Port-2 to RGMII, check "Board_ethConfigCpsw9g" and invoke "Board_cpsw9gEthConfig(portNum, RGMII);" for Port-2 (portNum is 1 in below)


    Best Regards,
    Sudheer

  • Hi Sudheer,

    Thank you for your information.

    Its my mistake again, the Link Partner is not connect correctly so cause the Link status is not changed. After I fix my physical setup. All is OK now.

    Thank you again for your support time.

    Best regards,

    Dinh