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: J7200 7.3 SDK Demo Board How to use Quad Port Ethernet Expansion Board

Part Number: TDA4VM
Other Parts Discussed in Thread: DRA821

Dear Support:

we are analyzing Ethernet capabilities on J7200 Demo Board,SDK version 7.3(Linux 7.3.0.4,Rtos 7.3.0.7).

We can see that demo board evaluation module have Quad Ethernet expansion board with integrated Quad-SGMII PHY and two Stacked RJ45 SGMII interfaces.

however, the network cannot be use(plug in cable cannot link). I see this support https://e2e.ti.com/support/processors-group/processors/f/processors-forum/900935/tda4vm-tda4vm,

is it the same question?if not,how do i configure the demo board,Thanks!

  • Hi,

    The link you referenced is broken. Can you post the correct link ?

    What problem are you facing exactly ?

    Regards

    Vineet

  • Hi, Vineet:

    My question is that i can't use the Quad Ethernet expansion board(CPSW4G) on the demo board, like this support https://e2e.ti.com/support/processors-group/processors/f/processors-forum/944062/ccs-tda4vmxevm-can-tda4vm-support-quad-port-ethernet-expansion-board-on-linux?tisearch=e2e-sitesearch&keymatch=quad%252520ethernet%252520expansion#

    A72 boot log show MAIN R5 is booting successfully, Related drivers loaded successfully and created eth1 network card.

    So i would like to know if whether other configuration  is required to support the use of Quad Ethernet expansion board based on my SDK version.

  • Hi,

    The E2E you are referring to is talking about J721E/TDA4 which is a different device from J7200 which you are referring to.

    J7200 EVM supports Quad SGMII board out of the box (nothing is required)

    J721E EVM does not support Quad SGMII and needs a GESI card to connect over RGMII.

    Regards

    Vineet

  • Hi:

    Sorry my fault. My demo board is J7200 EVM, According to the data sheet,there is no need for any additional configuration.

    The demo board program i got now has net been modified. but i found it can't be used after power on.

    Could you please provide me with some investigation ideas for me to investigate and confirm,Thanks.

  • Hi,

    If there is a HW issue then I am not sure I can help much. You need to check

    1. If you can ping from the EVM to another PC

    2. Are you able to receive or transmit the packets ? What is going on ?

    3. Check the statistics by running cpsw_stats_print_regs.gel on MCU 2_0 under pdk/packages/ti/drv/enet/tools/debug_gels/ and see if everything is correct.

    Regards

    Vineet

  • Hi:

    Today, I got J7200 EVM again to continue inverstigate this problem. By chance, I came across this list and felt that the problem it described was consistent with mine, https://e2e.ti.com/support/processors-group/processors/f/processors-forum/999836/dra821u-why-therda821u-ethernet-is-not-working-in-sdk7-3-default-image/3697230?tisearch=e2e-sitesearch&keymatch=register_ipv4#3697230

    My problem is that eth1 cannot be used. When the eth1 network port of J7200 EVM  is directly connected to PC with net cable, the PC network card cannot recognize the network cable access and the network port light is not on. Moreover, I have tested that the PC network card is normal when it is connected to eth0 network port.

    Later I will provide the environment variable infomation, boot infomation, and network card infomation for my board.

  • J7200 EVM.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    [15:52:42]=> reset
    [15:52:43]resetting ...
    U-Boot SPL 2020.01-g2781231a33 (Apr 10 2021 - 13:46:58 +0000)
    [15:52:43]SYSFW ABI: 3.1 (firmware rev 0x0015 '21.1.1--v2021.01a (Terrific Lla')
    [15:52:43]Trying to boot from MMC2
    [15:52:43]Loading Environment from MMC... *** Warning - No MMC card found, using default environment
    [15:52:43]
    [15:52:44]Starting ATF on ARM64 core...
    [15:52:44]
    [15:52:44]NOTICE: BL31: v2.4(release):07.03.00.005-dirty
    [15:52:44]NOTICE: BL31: Built : 13:45:56, Apr 10 2021
    [15:52:44]
    [15:52:44]U-Boot SPL 2020.01-g2781231a33 (Apr 10 2021 - 13:47:34 +0000)
    [15:52:44]SYSFW ABI: 3.1 (firmware rev 0x0015 '21.1.1--v2021.01a (Terrific Lla')
    [15:52:44]Trying to boot from MMC2
    [15:52:44]pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
    [15:52:44]
    [15:52:44]
    [15:52:44]U-Boot 2020.01-g2781231a33 (Apr 10 2021 - 13:47:34 +0000)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi,

    Please share boot log and output of Ethernet Firmware.

    See this FAQ for reference.

    Regards

    Vineet

  • Hi,

    The environment variable is correct.

    boot log and output of Ethernet Firmware as follows.

    4331.output.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    root@j7200-evm:~# ifconfig
    docker0 Link encap:Ethernet HWaddr 02:42:DE:8F:49:48
    inet addr:172.17.0.1 Bcast:172.17.255.255 Mask:255.255.0.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    eth0 Link encap:Ethernet HWaddr F4:84:4C:F8:D7:AE
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    eth1 Link encap:Ethernet HWaddr 70:FF:76:1D:92:C1
    inet6 addr: fe80::72ff:76ff:fe1d:92c1/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi,

    EthFW output looks correct, CPSW 5G is being brought up correctly.

    Can you share the Linux bootlog as well ?

    Try connecting a DHCP server to the Quad SGMII daughter card and monitor the EthFW log, it will show an IP address getting assigned.

    Regards

    Vineet

  • 4035.boot log.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    [15:52:42]=> reset
    [15:52:43]resetting ...
    U-Boot SPL 2020.01-g2781231a33 (Apr 10 2021 - 13:46:58 +0000)
    [15:52:43]SYSFW ABI: 3.1 (firmware rev 0x0015 '21.1.1--v2021.01a (Terrific Lla')
    [15:52:43]Trying to boot from MMC2
    [15:52:43]Loading Environment from MMC... *** Warning - No MMC card found, using default environment
    [15:52:43]
    [15:52:44]Starting ATF on ARM64 core...
    [15:52:44]
    [15:52:44]NOTICE: BL31: v2.4(release):07.03.00.005-dirty
    [15:52:44]NOTICE: BL31: Built : 13:45:56, Apr 10 2021
    [15:52:44]
    [15:52:44]U-Boot SPL 2020.01-g2781231a33 (Apr 10 2021 - 13:47:34 +0000)
    [15:52:44]SYSFW ABI: 3.1 (firmware rev 0x0015 '21.1.1--v2021.01a (Terrific Lla')
    [15:52:44]Trying to boot from MMC2
    [15:52:44]pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
    [15:52:44]
    [15:52:44]
    [15:52:44]U-Boot 2020.01-g2781231a33 (Apr 10 2021 - 13:47:34 +0000)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Now the problem is that any one of the four network ports inserted into the network cable can not detect LINK.

  • So it's even less likely that an IP address will be assigned via an external DHCP server.

  • What does the EthFw log show when you connect the RJ45 connector ? The link status will show up in the log.

    I am not sure what the issue is, the out of box demo works. I have tested it and it's been tested by many other people without any issues.

    Only thing that comes to my mind is that there is some HW issue. Check if the Daughter card is connected securely to the EVM.

    Regards

    Vineet

  • Hi:

    Log output without any connection state changes wthen I connect the RJ45.The most obvious is that no cable insertion is detected on the PC network card at this time.

    It is true that i have not checked wheter the hardware is normal,we only have one board which can not do difference test.

  • Hi,

    Log output without any connection state changes wthen I connect the RJ45

    That indicates that EVM is detecting cable correctly. You can probably try with another PC or network card or USB-Ethernet.

    Regards

    Vineet

  • Hi:

    I tried to connect different type of network card and different devices are the same phenomenon.

    Can you provide some screening methods, thank.

  • Hi Peter:

    I will modify it for verication later.

    Thank you very much for you reply.

  • Hi Peter:

    Changes for PDK, The purpose is not to modify app_remoteswitchcfg_server_strip.xer5f for initialize the QSGMII board.

  • Hi, Song:

    This is needed for TI DRA821 EVM.

    What is your concern to make changes to the app_remoteswitchcfg_server_strip.xer5f?

    Thanks.

  • Hi,Peter:

    I have no qualms, just want to make sure that the updated file is correct. I have seen your latest instructions and will verify them later.

  • Hi Peter:

    CPSW5G is currently available, All Four Ports can be normal LINK. However, there are some ambiguous error printing, i have not found whether it affects the use.

    cat /sys/kernel/debug/remoteproc/remoteproc*/trace0” 

    CpswCpts_ioctl: Failed to lookup for event: -14

    EnetMod_ioctl: cpsw5g.cpts: Failed to do IOCTL cmd 0x0101030c: -14

    EnetPer_ioctl: cpsw5g.cpts: Failed to do IOCTL cmd 0x0101030c: -14

    Enet_ioctl: cpsw5g: Failed to do IOCTL cmd 0x0101030c: -14

  • Hi,

    CPSW5G is currently available, All Four Ports can be normal LINK

    What changes did you make for this to work ? That would probably also explain the errors

    Regards

    Vineet

  • Hi:

    I modeified it according to the above method provided by Peter, and then the Link will work normally。See this link: e2e.ti.com/.../faq-j7200xsomxevm-how-to-use-the-qsgmii-expansion-board-with-dra821-sdk-v7-3

  • Hi Peter:

    CPSW5G is currently available, All Four Ports can be normal LINK. However, there are some ambiguous error printing, i have not found whether it affects the use.

    cat /sys/kernel/debug/remoteproc/remoteproc*/trace0” 

    CpswCpts_ioctl: Failed to lookup for event: -14

    EnetMod_ioctl: cpsw5g.cpts: Failed to do IOCTL cmd 0x0101030c: -14

    EnetPer_ioctl: cpsw5g.cpts: Failed to do IOCTL cmd 0x0101030c: -14

    Enet_ioctl: cpsw5g: Failed to do IOCTL cmd 0x0101030c: -14

  • Hi,

    I will check this at our end, it's most likely the effect of the changes you made.Out of the 4 IOCTL errors, 3 appear to be linked to CPTS or the timesync module. Are you planning to test PTP ? For the last one, I will have to reproduce and see.

    It's still very weird because I don't see this issue on my setup, but both you and Peter are able to reproduce the issue but I am not. Still I will try to take a look at it

    Can you tell me if your EVM works with SDK 7.2 ? I have not heard any complaints there.

    Regards

    Vineet

  • Hi Vineet :

    The SDK i am using is version 7.3.

    Our customers may need support for PTP, and they have metioned this requirement.

  • Hi, 

    I have tested the SDK V7.2 prebuilt images. The QSGMII board doesn't work.

    Also, I just build the ethfw (SDK V7.2, app_remoteswitchcfg_server) and replace it to the one in SD card.

    It turn out that the QSGMII board also doesn't work.

    My observation is : the LED isn't lighted at all.

    Thanks.

  • Hi,

    I will file a bug and investigate. I do not have an explanation at the moment as I do not see this on my setup. Since the original issue is about QSGMII and not PTP, we can close this E2E.

    Please create another E2E for the PTP issue.

    Regards

    Vineet

  • Hi:

    Ok, Thanks.