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.

TDA4VE-Q1: The TDA4VE Ethernet debugging fails

Part Number: TDA4VE-Q1


Hi,

     I have a question about TDA4VE Ethernet debugging that I need to ask you.Details of the question are as follows:

     Code version:TDA4_BSP_0806

     Description: Ethernet is not working, ifconfig device is not available

     Hardware link: TDA4 connects to RTL9068switch through RMII, RTL9068 program is directly brush in flash, no TDA4 configuration is required.

     Please refer to the following PDF file for code and log:

     TDA4VE Ethernet Debugging issues PDF.pdf

      Hope to receive your reply soon, thank you!

      Best regards,

      Kong

  • Hi Kong,

    Can you confirm that you have gone through this document?

    If not can you go through it and see if you are missing something.

    Regards,
    Tanmay

  • HI:

       TDA4VE-Q1。dst:k3-j721S2*

       I tried to modify it, but it didn't work。

       Could you please provide a patch?

    Hardware connection:

    diff path:

    diff --git a/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts
    index 3e8a3fc..843e84e 100755
    --- a/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts
    +++ b/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts
    @@ -739,7 +739,7 @@
     };
     
     &main_cpsw {
    -       status = "disabled";
    +       status = "okay";
     };
     
     &csi0_port0 {
    diff --git a/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-gesi-exp-board.dts b/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-gesi-exp-board.dts
    index eab60e0..0a82284 100755
    --- a/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-gesi-exp-board.dts
    +++ b/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-gesi-exp-board.dts
    @@ -20,15 +20,16 @@
                    >;
            };
     
    -       rgmii1_pins_default: rgmii1-pins-default {
    +       main_rmii1_pins_default: main-rmii1-pins-default {
                    pinctrl-single,pins = <
    -                       J721S2_IOPAD(0x0a8, PIN_INPUT, 8) /* (U24) MCASP0_AXR14.CLKOUT */
    +                       J721S2_IOPAD(0x0a8, PIN_OUTPUT_PULLUP, 8) /* (U24) MCASP0_AXR14.CLKOUT */
                            J721S2_IOPAD(0x098, PIN_INPUT, 8) /* (V25) MCASP0_AXR10.RMII1_CRS_DV */
    +                       J721S2_IOPAD(0x0a4, PIN_INPUT, 8) /* (T23) MCASP0_AXR13.RMII_REF_CLK */
                            J721S2_IOPAD(0x090, PIN_INPUT, 8) /* (W24) MCASP0_AXR8.RMII1_RXD0 */
                            J721S2_IOPAD(0x094, PIN_INPUT, 8) /* (AA25) MCASP0_AXR9.RMII1_RXD1 */
    -                       J721S2_IOPAD(0x0a0, PIN_INPUT, 8) /* (AB25) MCASP0_AXR12.RMII1_TXD0 */
    -                       J721S2_IOPAD(0x0b0, PIN_INPUT, 8) /* (AD26) MCASP1_AXR3.RMII1_TXD1 */
    -                       J721S2_IOPAD(0x0ac, PIN_INPUT, 8) /* (AC25) MCASP0_AXR15.RMII1_TX_EN */
    +                       J721S2_IOPAD(0x0a0, PIN_OUTPUT, 8) /* (AB25) MCASP0_AXR12.RMII1_TXD0 */
    +                       J721S2_IOPAD(0x0b0, PIN_OUTPUT, 8) /* (AD26) MCASP1_AXR3.RMII1_TXD1 */
    +                       J721S2_IOPAD(0x0ac, PIN_OUTPUT, 8) /* (AC25) MCASP0_AXR15.RMII1_TX_EN */
                    >;
            };
     };
    @@ -46,7 +47,7 @@
     &main_cpsw {
            pinctrl-names = "default";
            pinctrl-0 = <&main_cpsw_mdio_pins_default
    -                    &rgmii1_pins_default>;
    +                    &main_rmii1_pins_default>;
            status = "okay";
     };
     
    @@ -56,13 +57,10 @@
     
            main_cpsw_phy0: ethernet-phy@0 {
                    reg = <0>;
    -               ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
    -               ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
    -               ti,min-output-impedance;
            };
     };
     
     &main_cpsw_port1 {
    -       phy-mode = "rgmii-rxid";
    +       phy-mode = "rmii";
            phy-handle = <&main_cpsw_phy0>;
     };
    diff --git a/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
    index 39e59cb..4e2cb0a 100755
    --- a/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
    +++ b/tda4_linux/board-support/linux-5.10.162/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
    @@ -871,6 +871,7 @@
                                    reg = <1>;
                                    ti,mac-only;
                                    label = "port1";
    +                               phy-mode = "rmii";
                                    phys = <&phy_gmii_sel_cpsw 1>;
                            };
                    };

    log:

    [    1.211431] 0x000000680000-0x0000006c0000 : "ospi.env"
    [    1.216979] 0x0000006c0000-0x000000700000 : "ospi.env.backup"
    [    1.223128] 0x000000800000-0x000003fc0000 : "ospi.rootfs"
    [    1.228957] 0x000003fc0000-0x000004000000 : "ospi.phypattern"
    [    1.235789] cadence-qspi 47050000.spi: error -ENODEV: No Rx DMA available
    [    1.242881] spi-nor spi2.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
    [    1.249751] spi-nor: probe of spi2.0 failed with error -2
    [    1.258707] davinci_mdio c200f00.mdio: Configuring MDIO in manual mode
    [    1.301751] davinci_mdio c200f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.309306] davinci_mdio c200f00.mdio: no live phy, scanning all
    [    1.326399] davinci_mdio c200f00.mdio: phy[0]: device c200f00.mdio:00, driver unknown
    [    1.334220] davinci_mdio c200f00.mdio: phy[1]: device c200f00.mdio:01, driver unknown
    [    1.342091] am65-cpsw-nuss c200000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    1.354861] am65-cpsw-nuss c200000.ethernet: Use random MAC address
    [    1.361119] am65-cpsw-nuss c200000.ethernet: initialized cpsw ale version 1.4
    [    1.368239] am65-cpsw-nuss c200000.ethernet: ALE Table size 64
    [    1.374439] am65-cpsw-nuss c200000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
    [    1.384716] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010c, freq:200000000, add_val:4 pps:0
    [    1.494585] mmc0: CQHCI version 5.10
    [    1.498580] mmc1: CQHCI version 5.10
    [    1.505676] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fca100
    [    1.512552] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fca100
    [    1.519375] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fca100
    [    1.526177] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fca100
    [    1.532973] j721e-pcie 2910000.pcie: host bridge /bus@100000/pcie@2910000 ranges:
    [    1.539110] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    1.540456] j721e-pcie 2910000.pcie:       IO 0x0018001000..0x0018010fff -> 0x0018001000
    [    1.547925] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
    [    1.555977] j721e-pcie 2910000.pcie:      MEM 0x0018011000..0x001fffffff -> 0x0018011000
    [    1.555986] j721e-pcie 2910000.pcie:   IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [    1.580718] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [    1.590793] ti-udma 31150000.dma-controller: Channels: 60 (tchan: 30, rchan: 30, gp-rflow: 16)
    [    1.601179] davinci_mdio c200f00.mdio: Configuring MDIO in manual mode
    [    1.645750] davinci_mdio c200f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.653305] davinci_mdio c200f00.mdio: no live phy, scanning all
    [    1.659804] mmc0: Command Queue Engine enabled
    [    1.664280] mmc0: new HS200 MMC card at address 0001
    [    1.669646] mmcblk0: mmc0:0001 032G34 29.1 GiB 
    [    1.673286] davinci_mdio c200f00.mdio: phy[0]: device c200f00.mdio:00, driver unknown
    [    1.674323] mmcblk0boot0: mmc0:0001 032G34 partition 1 8.00 MiB
    [    1.682002] davinci_mdio c200f00.mdio: phy[1]: device c200f00.mdio:01, driver unknown
    [    1.688045] mmcblk0boot1: mmc0:0001 032G34 partition 2 8.00 MiB
    [    1.695808] am65-cpsw-nuss c200000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    1.701750] mmcblk0rpmb: mmc0:0001 032G34 partition 3 4.00 MiB, chardev (237:0)
    [    1.714419] am65-cpsw-nuss c200000.ethernet: Use random MAC address
    [    1.724461]  mmcblk0: p1 p2 p3 p4
    [    1.727873] am65-cpsw-nuss c200000.ethernet: initialized cpsw ale version 1.4
    [    1.727877] am65-cpsw-nuss c200000.ethernet: ALE Table size 64
    [    1.744589] am65-cpsw-nuss c200000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
    [    1.754657] am65-cpsw-nuss c200000.ethernet: set new flow-id-base 82
    [    1.763006] j721e-pcie 2910000.pcie: host bridge /bus@100000/pcie@2910000 ranges:
    [    1.770512] j721e-pcie 2910000.pcie:       IO 0x0018001000..0x0018010fff -> 0x0018001000
    [    1.778596] j721e-pcie 2910000.pcie:      MEM 0x0018011000..0x001fffffff -> 0x0018011000
    
    
    root@j721s2-evm:~# ifconfig eth0
    eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500  metric 1
            inet 192.168.1.6  netmask 255.255.255.0  broadcast 192.168.1.255
            ether f6:a5:e2:52:f2:a8  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@j721s2-evm:~# ifconfig eth0 192.168.1.9
    SIOCSIFFLAGS: No such device
    root@j721s2-evm:~# ping 192.168.1.5
    PING 192.168.1.5 (192.168.1.5): 56 data bytes
    ping: sendto: Network is unreachable