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.

TDA4VH-Q1: MCU_CPSW0 RMII interfaces connect to DP83822 but cannot ping to PC

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: TDA4VH

Hi TI Experts,

Customer is working on TDA4VH, with SDK version linux-j784s4-evm-08_06_00_12.

They are trying to use RMII interface(MCU_CPSW0) to connect with an external TI PHY (DP83822). The MCU_CPSW RMII_MHZ_50_CLK is from the external PHY to MCU_RMII1_REF_CLK pin.

Their connection flow is provided below.

MCU_RGMII1 PORT <--> External PHY(DP83822) <--> RJ45 connector <--> PC 

We could see the link is up & the speed is 100Mb/s shown in the below picture.

However, when we ping to PC, cpsw driver report a crash, showing as below.

eth0 (am65-cpsw-nuss): transmit queue 0 timed out

We have found that there is a similar problem shown in the below thread.

PROCESSOR-SDK-DRA8X-TDA4X: TDA4X MCU_CPSW0 RMII interfaces - Processors forum - Processors - TI E2E support forums

We have followed the suggestions to configure the registers 0x46022330, 0x40f08050, & set IFCTL_A bit to 1.

But this still cannot solve customer's problem.

Customer's DTS for mcu cpsw2g is provided below.

@@ -143,6 +143,28 @@ 
       }; 
}; 
 
+&wkup_pmx0 { 
+       mcu_cpsw_pins_default: mcu-cpsw-pins-default { 
+               pinctrl-single,pins = < 
+                       J784S4_WKUP_IOPAD(0x068, PIN_INPUT, 1) /* (C38) MCU_RGMII1_TX_CTL.MCU_RMII1_CRS_DV */ 
+                       J784S4_WKUP_IOPAD(0x094, PIN_INPUT, 1) /* (A35) MCU_RGMII1_RD0.MCU_RMII1_RXD0 */ 
+                       J784S4_WKUP_IOPAD(0x090, PIN_INPUT, 1) /* (B36) MCU_RGMII1_RD1.MCU_RMII1_RXD1 */ 
+                       J784S4_WKUP_IOPAD(0x06c, PIN_INPUT, 1) /* (C37) MCU_RGMII1_RX_CTL.MCU_RMII1_RX_ER */ 
+                       J784S4_WKUP_IOPAD(0x084, PIN_INPUT, 1) /* (B37) MCU_RGMII1_RXC.MCU_RMII1_REF_CLK */ 
+                       J784S4_WKUP_IOPAD(0x07c, PIN_OUTPUT, 1) /* (D37) MCU_RGMII1_TD0.MCU_RMII1_TXD0 */ 
+                       J784S4_WKUP_IOPAD(0x078, PIN_OUTPUT, 1) /* (D38) MCU_RGMII1_TD1.MCU_RMII1_TXD1 */ 
+                       J784S4_WKUP_IOPAD(0x080, PIN_OUTPUT, 1) /* (E36) MCU_RGMII1_TXC.MCU_RMII1_TX_EN */             
+               >; 
+       }; 
+ 
+       mcu_mdio_pins_default: mcu-mdio-pins-default { 
+               pinctrl-single,pins = < 
+                       J784S4_WKUP_IOPAD(0x09c, PIN_OUTPUT, 0) /* (A36) MCU_MDIO0_MDC */ 
+                       J784S4_WKUP_IOPAD(0x098, PIN_INPUT, 0) /* (B35) MCU_MDIO0_MDIO */ 
+               >; 
+       }; 
+}; 
+ 
@@ -193,3 +215,26 @@ 

+ 
+&mcu_cpsw { 
+       status = "okay"; 
+       pinctrl-names = "default"; 
+       pinctrl-0 = <&mcu_cpsw_pins_default>; 
+}; 
+ 
+&davinci_mdio { 
+       pinctrl-names = "default"; 
+       pinctrl-0 = <&mcu_mdio_pins_default>; 
+ 
+       mcu_phy2: ethernet-phy@2 { 
+               reg = <2>; 
+        rx-internal-delay-ps = <1>; 
+        tx-internal-delay-ps = <1>; 
+       }; 
+}; 
+ 
+&mcu_cpsw_port1 { 
+       status = "okay"; 
+       phy-mode = "rmii"; 
+       phy-handle = <&mcu_phy2>; 
+};

Could you please provide some suggestions about this problem?

Kind Regards,

Kevin

  • Hi Kevin,

    Can you provide me the kernel boot log.

    Usually the pinctrl for both rmii and mdio pins is provided to main cpsw node like following:

    &mcu_cpsw {
    	pinctrl-names = "default";
    	pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
    };

    Can you make it this way and remove the pinctrl property from MDIO node?

    Also it seems that the value of register "0x46022330" is the correct value before you are writing to it. Can you confirm this.

    Also would it possible you to create a ticket a get the delays programmed in the phy node checked by the phy team.

    Regards,
    Tanmay

  • Hi, Tanmay

        Thank you for your quick reply!

        After I try your suggested way, it still cannot ping to pc. 

    • here is my code diff:

     &mcu_cpsw {
            status = "okay";
            pinctrl-names = "default";
    -       pinctrl-0 = <&mcu_cpsw_pins_default>;
    +       pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
     };
     
     &davinci_mdio {
    -       pinctrl-names = "default";
    -       pinctrl-0 = <&mcu_mdio_pins_default>;
    -
            mcu_phy2: ethernet-phy@2 {
                    reg = <2>;
             rx-internal-delay-ps = <1>;

    • Here is my kernel boot log and the value of register "0x46022330"  is also shown in the log.
    • From the log, I can see the value of register 0x46022330 seems not correct before I write to it. But after I write value 0x00008021 to the register, it still cannot ping.

    U-Boot SPL 2021.01-00009-g22ac9bb89a-dirty (Jul 27 2023 - 15:35:01 +0800)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
    SPL initial stack usage: 13472 bytes
    Trying to boot from MMC2
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
    NOTICE:  BL31: Built : 15:42:56, Mar 13 2023
    I/TC: 
    I/TC: OP-TEE version: 3.20.0 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Mon Mar 13 15:43:08 UTC 2023 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
    I/TC: HUK Initialized
    I/TC: Activated SA2UL device
    I/TC: Fixing SA2UL firewall owner for GP device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    I/TC: Primary CPU switching to normal world boot
    
    U-Boot SPL 2021.01-00009-g22ac9bb89a-dirty (Jul 27 2023 - 15:34:47 +0800)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
    Trying to boot from MMC2
    
    
    U-Boot 2021.01-00009-g22ac9bb89a-dirty (Jul 27 2023 - 15:34:47 +0800)
    
    SoC:   J784S4 SR1.0 GP
    Model: KUKA J784S4 1CPP EP BOARD
    DRAM:  4 GiB
    idle-statesFlash: 0 Bytes
    MMC:   mmc@4f80000: 0, mmc@4fb0000: 1
    Loading Environment from MMC... *** Warning - bad CRC, using default environment
    
    In:    serial@2880000
    Out:   serial@2880000
    Err:   serial@2880000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    Net:   eth0: ethernet@46000000port@1
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    Failed to load 'boot.scr'
    Failed to load 'uEnv.txt'
    21586432 bytes read in 900 ms (22.9 MiB/s)
    62955 bytes read in 15 ms (4 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 000000008feed000, end 000000008fffffff ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 6.1.33-rt11-00016-g4da34e2a3d3a (xuqnqn@ubuntu1804) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (3
    [    0.000000] Machine model: KUKA J784S4 1CPP EP BOARD
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002880000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffefff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
    [    0.000000]   node   0: [mem 0x000000009e800000-0x000000009fffffff]
    [    0.000000]   node   0: [mem 0x00000000a0000000-0x00000000ffffefff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffefff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffefff]
    [    0.000000] On node 0, zone Normal: 1 pages in unavailable ranges
    [    0.000000] On node 0, zone Normal: 1 pages in unavailable ranges
    [    0.000000] cma: Reserved 512 MiB at 0x00000000dfe00000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.2
    [    0.000000] percpu: Embedded 19 pages/cpu s38592 r8192 d31040 u77824
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: Spectre-v3a
    [    0.000000] CPU features: detected: Spectre-BHB
    [    0.000000] CPU features: detected: ARM erratum 1742098
    [    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032190
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02880000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backut
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: area num 8.
    [    0.000000] software IO TLB: mapped [mem 0x00000000dbe00000-0x00000000dfe00000] (64MB)
    [    0.000000] Memory: 3476696K/4194296K available (10688K kernel code, 1176K rwdata, 7256K rodata, 1856K init, 441K bss, 193312K reserved, 524288K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU event tracing is enabled.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=8.
    [    0.000000] rcu:     RCU priority boosting: priority 1 delay 500 ms.
    [    0.000000] rcu:     RCU_SOFTIRQ processing moved to rcuc kthreads.
    [    0.000000]  No expedited grace period (rcu_normal_after_boot).
    [    0.000000]  Trampoline variant of Tasks RCU enabled.
    [    0.000000]  Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: [Firmware Bug]: GICR region 0x0000000001900000 has overlapping address
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 960 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000880050000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880060000
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.000181] Console: colour dummy device 80x25
    [    0.438497] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.438502] pid_max: default: 32768 minimum: 301
    [    0.438534] LSM: Security Framework initializing
    [    0.438601] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.438622] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.439783] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.439791] cblist_init_generic: Setting shift to 3 and lim to 1.
    [    0.489074] cblist_init_generic: Setting shift to 3 and lim to 1.
    [    0.495527] rcu: Hierarchical SRCU implementation.
    [    0.495529] rcu:     Max phase no-delay instances is 1000.
    [    0.495571] printk: bootconsole [ns16550a0] printing thread started
    [    0.512472] Platform MSI: msi-controller@1820000 domain created
    [    0.512564] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.512602] EFI services will not be available.
    [    0.512881] smp: Bringing up secondary CPUs ...
    I/TC: Secondary CPU 1 initializing
    I/TC: Secondary CPU 1 switching to normal world boot
    [    0.546105] Detected PIPT I-cache on CPU1
    [    0.546164] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.546177] GICv3: CPU1: using allocated LPI pending table @0x0000000880070000
    [    0.546210] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    I/TC: Secondary CPU 2 initializing
    I/TC: Secondary CPU 2 switching to normal world boot
    [    0.580011] Detected PIPT I-cache on CPU2
    [    0.580052] GICv3: CPU2: found redistributor 2 region 0:0x0000000001940000
    [    0.580065] GICv3: CPU2: using allocated LPI pending table @0x0000000880080000
    [    0.580088] CPU2: Booted secondary processor 0x0000000002 [0x411fd080]
    I/TC: Secondary CPU 3 initializing
    I/TC: Secondary CPU 3 switching to normal world boot
    [    0.613884] Detected PIPT I-cache on CPU3
    [    0.613931] GICv3: CPU3: found redistributor 3 region 0:0x0000000001960000
    [    0.613944] GICv3: CPU3: using allocated LPI pending table @0x0000000880090000
    [    0.613967] CPU3: Booted secondary processor 0x0000000003 [0x411fd080]
    I/TC: Secondary CPU 2 initializing
    I/TC: Secondary CPU 2 switching to normal world boot
    [    0.647793] Detected PIPT I-cache on CPU4
    [    0.647873] GICv3: CPU4: found redistributor 100 region 0:0x0000000001980000
    [    0.647887] GICv3: CPU4: using allocated LPI pending table @0x00000008800a0000
    [    0.647917] CPU4: Booted secondary processor 0x0000000100 [0x411fd080]
    I/TC: Secondary CPU 3 initializing
    I/TC: Secondary CPU 3 switching to normal world boot
    [    0.681932] Detected PIPT I-cache on CPU5
    [    0.681987] GICv3: CPU5: found redistributor 101 region 0:0x00000000019a0000
    [    0.682000] GICv3: CPU5: using allocated LPI pending table @0x00000008800b0000
    [    0.682022] CPU5: Booted secondary processor 0x0000000101 [0x411fd080]
    I/TC: Secondary CPU 4 initializing
    I/TC: Secondary CPU 4 switching to normal world boot
    [    0.716016] Detected PIPT I-cache on CPU6
    [    0.716071] GICv3: CPU6: found redistributor 102 region 0:0x00000000019c0000
    [    0.716084] GICv3: CPU6: using allocated LPI pending table @0x00000008800c0000
    [    0.716110] CPU6: Booted secondary processor 0x0000000102 [0x411fd080]
    I/TC: Secondary CPU 5 initializing
    I/TC: Secondary CPU 5 switching to normal world boot
    [    0.750093] Detected PIPT I-cache on CPU7
    [    0.750148] GICv3: CPU7: found redistributor 103 region 0:0x00000000019e0000
    [    0.750161] GICv3: CPU7: using allocated LPI pending table @0x00000008800d0000
    [    0.750185] CPU7: Booted secondary processor 0x0000000103 [0x411fd080]
    [    0.750249] smp: Brought up 1 node, 8 CPUs
    [    0.750254] SMP: Total of 8 processors activated.
    [    0.750258] CPU features: detected: 32-bit EL0 Support
    [    0.750260] CPU features: detected: CRC32 instructions
    [    0.795123] CPU: All CPU(s) started at EL2
    [    0.795124] alternatives: applying system-wide alternatives
    [    0.796144] devtmpfs: initialized
    [    0.802665] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.802679] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
    [    0.811632] pinctrl core: initialized pinctrl subsystem
    [    0.812022] DMI not present or invalid.
    [    0.812424] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.842301] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.842434] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.842581] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.842876] thermal_sys: Registered thermal governor 'step_wise'
    [    0.842879] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.842987] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.843105] ASID allocator initialised with 65536 entries
    [    0.850553] KASLR disabled due to lack of seed
    [    0.854183] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.854186] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.854189] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.854190] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.854192] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.854194] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.854196] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.854198] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
     [ / T C:  0.R8e5se44r7v0ed]  csrhayrpetdd:  mmemaoxr_cyp ius_ qleennab lseedt
    :o I1/00T0C
     D[ y n a mi0c.8 5sh5a12r6ed]  km3em-ochriy piinsf eon 4a3bl0e00d0
    t4.I/chTiCp:i dNo:r mFaamli Wloyr:Jl7d8 v4iS4r turaelv:iSzRat1i.o0 nJ TsuApGIpDor[t0 x0ibsb d80i0s2afbl]e dDe
    :cI/teTdC
    pA[s  y n ch0.r8o5n5o8us3 7n]o itoimfimcua: tDioenfsau larte d odmiasaibnl teyd
    e: Translated 
    [    0.855840] iommu: DMA domain TLB invalidation policy: strict mode 
    [    0.856019] SCSI subsystem initialized
    [    0.856172] pps_core: LinuxPPS API ver. 1 registered
    [    0.856174] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.856181] PTP clock support registered
    [    0.856203] EDAC MC: Ver: 3.0.0
    [    0.856613] FPGA manager framework
    [    0.857206] clocksource: Switched to clocksource arch_sys_counter
    [    0.857340] VFS: Disk quotas dquot_6.6.0
    [    0.857361] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.861425] NET: Registered PF_INET protocol family
    [    0.861661] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.863323] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 81920 bytes, linear)
    [    1.058680] printk: console[ [ttyS2] printing thread started
        0.863388] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    1.058702] printk: console [ttyS2] enabled
    [    1.058707] printk: bootconsole [ns16550a0] disabled
    [    1.072165] printk: bootconsole [ns16550a0] printing thread stopped
    [    1.109220] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.111227] davinci_mdio 46000f00.mdio: phy[2]: device 46000f00.mdio:02, driver TI DP83822
    [    1.111251] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    1.111374] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    1.111378] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    1.111846] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:0
    [    1.113577] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010c, freq:250000000, add_val:3 pps:0
    [    1.220985] j721e-pcie-host 2900000.pcie: host bridge /bus@100000/pcie@2900000 ranges:
    [    1.221010] j721e-pcie-host 2900000.pcie:       IO 0x0010001000..0x0010010fff -> 0x0010001000
    [    1.221023] j721e-pcie-host 2900000.pcie:      MEM 0x0010011000..0x0017ffffff -> 0x0010011000
    [    1.221033] j721e-pcie-host 2900000.pcie:   IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [    2.224708] j721e-pcie-host 2900000.pcie: PCI host bridge to bus 0000:00
    [    2.224714] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    2.224719] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x10001000-0x10010fff])
    [    2.224723] pci_bus 0000:00: root bus resource [mem 0x10011000-0x17ffffff]
    [    2.224753] pci 0000:00:00.0: [104c:b00d] type 01 class 0x060400
    [    2.224758] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    2.224869] pci 0000:00:00.0: supports D1
    [    2.224872] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    [    2.226297] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    2.226410] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
    [    2.226427] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    2.226780] pcieport 0000:00:00.0: PME: Signaling with IRQ 385
    [    2.227073] j721e-pcie-host 2910000.pcie: host bridge /bus@100000/pcie@2910000 ranges:
    [    2.227089] j721e-pcie-host 2910000.pcie:       IO 0x0018001000..0x0018010fff -> 0x0018001000
    [    2.227102] j721e-pcie-host 2910000.pcie:      MEM 0x0018011000..0x001fffffff -> 0x0018011000
    [    2.227111] j721e-pcie-host 2910000.pcie:   IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [    3.230685] j721e-pcie-host 2910000.pcie: PCI host bridge to bus 0001:00
    [    3.230691] pci_bus 0001:00: root bus resource [bus 00-ff]
    [    3.230695] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x18001000-0x18010fff])
    [    3.230698] pci_bus 0001:00: root bus resource [mem 0x18011000-0x1fffffff]
    [    3.230718] pci 0001:00:00.0: [104c:b013] type 01 class 0x060400
    [    3.230723] pci_bus 0001:00: 2-byte config write to 0001:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    3.230826] pci 0001:00:00.0: supports D1
    [    3.230829] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
    [    3.232163] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    3.232279] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
    [    3.232289] pci 0001:00:00.0: PCI bridge to [bus 01]
    [    3.232608] pcieport 0001:00:00.0: PME: Signaling with IRQ 389
    [    3.233559] ti-udma 285c0000.dma-controller: Channels: 22 (tchan: 11, rchan: 11, gp-rflow: 8)
    [    3.235733] ti-udma 31150000.dma-controller: Channels: 66 (tchan: 33, rchan: 33, gp-rflow: 16)
    [    3.277223] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    3.279113] davinci_mdio 46000f00.mdio: phy[2]: device 46000f00.mdio:02, driver TI DP83822
    [    3.279134] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    3.279249] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    3.279252] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    3.279653] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:0
    [    3.301841] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    3.303641] debugfs: Directory 'pd:74' with parent 'pm_genpd' already present!
    [    3.303666] debugfs: Directory 'pd:73' with parent 'pm_genpd' already present!
    [    3.303706] debugfs: Directory 'pd:72' with parent 'pm_genpd' already present!
    [    3.304320] mmc1: CQHCI version 5.10
    [    3.304334] debugfs: Directory 'pd:335' with parent 'pm_genpd' already present!
    [    3.304363] debugfs: Directory 'pd:333' with parent 'pm_genpd' already present!
    [    3.304381] debugfs: Directory 'pd:332' with parent 'pm_genpd' already present!
    [    3.355506] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    3.355632] Waiting for root device PARTUUID=958666aa-02...
    [    3.408420] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
    [    3.408913] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
    [    3.411544]  mmcblk1: p1 p2
    [    3.548276] EXT4-fs (mmcblk1p2): warning: mounting fs with errors, running e2fsck is recommended
    [    3.549840] EXT4-fs (mmcblk1p2): recovery complete
    [    3.550651] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Quota mode: none.
    [    3.550696] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    3.552014] devtmpfs: mounted
    [    3.552955] Freeing unused kernel memory: 1856K
    [    3.553117] Run /sbin/init as init process
    [    3.671303] systemd[1]: System time before build time, advancing clock.
    [    3.688429] systemd[1]: systemd 244.5+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD )
    [    3.688699] systemd[1]: Detected architecture arm64.
    
    Welcome to Arago 2021.09!
    
    [    3.807712] systemd[1]: Set hostname to <j784s4-evm>.
    [    4.008683] systemd[1]: Binding to IPv6 address not available since kernel does not support IPv6.
    [    4.008713] systemd[1]: Binding to IPv6 address not available since kernel does not support IPv6.
    [    4.012565] systemd[1]: /lib/systemd/system/irqbalanced.service:6: Unknown key name 'ConditionCPUs' in section 'Unit', ignoring.
    [    4.021744] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit .
    [  OK  ] Created slice system-getty.slice    4.997208] random: crng init done
    [    4.999171] systemd[1]: Created slice system-getty.slice.
    m.
    [  OK  ] Created slice system-serial\x2dgett[    5.026229] systemd[1]: Created slice system-serial\x2dgetty.slice.
    y.slice.
    [  OK  ] Created slice User and Session Slic[    5.050022] systemd[1]: Created slice User and Session Slice.
    e.
    [  OK  ] Started Dispatch Password …ts to [    5.073381] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    Console Directory Watch.
    [  OK  ] Started Forward Password R…uests [    5.097392] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    to Wall Directory Watch.
    [  OK  ] Reached target Paths.
    [    5.121324] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Remote File Systems   5.133285] systemd[1]: Reached target Remote File Systems.
    [0m.
    [  OK  ] Reached target Slices.
    [    5.157256] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Swap.
    [    5.169264] systemd[1]: Reached target Swap.
    [  OK  ] Listening on RPCbind Server Activat[    5.219858] systemd[1]: Listening on RPCbind Server Activation Socket.
    ion Socket.
    [  OK  ] Reached target RPC Port Mapper.[    5.245312] systemd[1]: Reached target RPC Port Mapper.
    
    [  OK  ] Listening on Process Core Dump Sock[    5.273371] systemd[1]: Listening on Process Core Dump Socket.
    et.
    [  OK  ] Listening on initctl Compatibility [    5.293403] systemd[1]: Listening on initctl Compatibility Named Pipe.
    Named Pipe.
    [  OK  ] Listening on Journal Socket (/dev/l[    5.318882] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
    [    5.319122] systemd[1]: Listening on Journal Socket (/dev/log).
    og).
    [  OK  ] Listening on Journal Socket.
    [    5.349509] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Network Service Netlin[    5.365478] systemd[1]: Listening on Network Service Netlink Socket.
    k Socket.
    [  OK  ] Listening on udev Control Socket    5.389441] systemd[1]: Listening on udev Control Socket.
    m.
    [  OK  ] Listening on udev Kernel Socket[    5.409362] systemd[1]: Listening on udev Kernel Socket.
    .
             Mounting Huge Pages File System...
    [    5.469523] systemd[1]: Mounting Huge Pages File System...
             Mounting POSIX Message Queue File System..[    5.483707] systemd[1]: Mounting POSIX Message Queue File System...
    .
             Mounting Kernel Debug File System...
    [    5.511966] systemd[1]: Mounting Kernel Debug File System...
             Mounting Temporary Directory (/tmp)...
    [    5.527927] systemd[1]: Mounting Temporary Directory (/tmp)...
    [    5.539499] systemd[1]: Condition check resulted in Create list of static device nodes for the current kernel being skipped.
    [    5.549373] systemd[1]: Starting Start psplash boot splash screen...
             Starting Start psplash boot splash screen...
             Starting RPC Bind...
    [    5.579676] systemd[1]: Starting RPC Bind...
             Starting Journal Service...
    [    5.593396] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
    [    5.596887] systemd[1]: Starting Journal Service...
             Starting Load Kernel Modules...
    [    5.617321] systemd[1]: Starting Load Kernel Modules...
             Starting Remount Root and Kernel File Systems   5.636511] systemd[1]: Starting Remount Root and Kernel File Systems...
    [    5.648584] EXT4-fs (mmcblk1p2): re-mounted. Quota mode: none.
    [0m...
             Starting udev Coldplug all Devices...
    [    5.672081] systemd[1]: Starting udev Coldplug all Devices...
    [  OK  ] Started RPC Bind.
    [    5.686488] systemd[1]: Started RPC Bind.
    [  OK  ] Started Journal Service.
    [    5.701615] systemd[1]: Started Journal Service.
    [  OK  ] Mounted Huge Pages File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [FAILED] Failed to start Start psplash boot splash screen.
    See 'systemctl status psplash-start.service' for details.
    [DEPEND] Dependency failed for Star…progress communication helper.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
    [    5.970899] systemd-journald[230]: Received client request to flush runtime journal.
             Starting Apply Kernel Variables...
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting udev Wait for Complete Device Initialization...
             Starting udev Kernel Device Manager...
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Created slice system-systemd\x2dfsck.slice.
    [  OK  ] Found device /dev/mmcblk1p1.
             Starting File System Check on /dev/mmcblk1p1...
    [  OK  ] Started udev Wait for Complete Device Initialization.
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
             Starting Docker Socket for the API.
    [  OK  ] Listening on dropbear.socket.
             Starting Reboot and dump vmcore via kexec...
    [  OK  ] Listening on Docker Socket for the API.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started Periodic Command Scheduler.
    [  OK  ] Started D-Bus System Message Bus.
             Starting Print notice about GPLv3 packages...
             Starting set host name as per compatible name...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
    [  OK  ] Started irqbalance daemon.
             Starting Telephony service...
             Starting rc.pvr.service...
             Starting Login Service...
    [  OK  ] Started TEE Supplicant.
             Starting Update weston ini… based on the platform name...
    [  OK  ] Started Reboot and dump vmcore via kexec.
    [  OK  ] Started File System Check on /dev/mmcblk1p1.
    [  OK  ] Started set host name as per compatible name.
    [  OK  ] Started IPv6 Packet Filtering Framework.
    [  OK  ] Started IPv4 Packet Filtering Framework.
    [  OK  ] Started rc.pvr.service.
    [  OK  ] Started Update weston ini …ge based on the platform name.
    [  OK  ] Started Telephony service.
    [  OK  ] Reached target Network (Pre).
             Mounting /run/media/mmcblk1p1...
             Starting Network Service...
             Starting weston.service...
    [  OK  ] Started Login Service.
    [  OK  ] Started Network Service.
             Starting Wait for Network to be Configured...
             Starting Network Name Resolution...
    [    7.382766] am65-cpsw-nuss 46000000.ethernet eth0: PHY [46000f00.mdio:02] driver [TI DP83822] (irq=POLL)
    [    7.382786] am65-cpsw-nuss 46000000.ethernet eth0: configuring for phy/rmii link mode
    [  OK  ] Mounted /run/media/mmcblk1p1.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Host and Network Name Lookups.
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Enable and configure wl18xx bluetooth stack...
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting Simple Network Ma…ent Protocol (SNMP) Daemon....
             Starting Permit User Sessions...
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started Simple Network Man…ement Protocol (SNMP) Daemon..
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
       autoconf
       bash-dev
       bash
       bc
       binutils
       cifs-utils
       coreutils-stdbuf
       coreutils
       cpio
       cpp-symlinks
       cpp
       dosfstools
       elfutils
       g++-symlinks
       g++
       gawk
       gcc-symlinks
       gcc
       gdb
       gdbserver
       gettext
       glmark2
       gstreamer1.0-libav-dev
       gstreamer1.0-libav
       gzip
       less
       libasm1
       libbfd
       libdw1
       libelf1
       libgdbm-compat4
       libgdbm-dev
       libgdbm6
       libgettextlib
       libgettextsrc
       libgmp-dev
       libgmp10
       libgmpxx4
       libidn2-0
       libidn2-dev
       libmpc3
       libmpfr6
       libreadline-dev
       libreadline8
       libunistring-dev
       libunistring2
       m4-dev
       m4
       make
       nettle-dev
       nettle
       parted
       python3-rfc3987
       python3-strict-rfc3339
       tar
       which
       zeromq
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [  OK  ] Started Synchronize System and HW clocks.
    [  OK  ] Started Print notice about GPLv3 packages.
    [  OK  ] Started weston.service.
             Starting DEMO...
             Starting telnetd.service...
    [  OK  ] Started DEMO.
    [  OK  ] Started telnetd.service.
    [   10.466105] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project j784s4-evm ttyS2
    
    Arago 2021.09 j784s4-evm ttyS2
    
    j784s4-evm login: root
    root@j784s4-evm:~# ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            ether 08:04:b4:2e:94:ea  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 4  bytes 1336 (1.3 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536  metric 1
            inet 127.0.0.1  netmask 255.0.0.0
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 82  bytes 6220 (6.0 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 82  bytes 6220 (6.0 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@j784s4-evm:~# ethtool -i eth0
    driver: am65-cpsw-nuss
    version: 6.1.33-rt11-00016-g4da34e2a3d3a
    firmware-version: 
    expansion-rom-version: 
    bus-info: 46000000.ethernet
    supports-statistics: yes
    supports-test: no
    supports-eeprom-access: no
    supports-register-dump: yes
    supports-priv-flags: yes
    root@j784s4-evm:~# 
    root@j784s4-evm:~# ethtool eth0
    Settings for eth0:
       Supported ports: [ TP         MII ]
       Supported link modes:   10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Supported pause frame use: Symmetric
       Supports auto-negotiation: Yes
       Supported FEC modes: Not reported
       Advertised link modes:  10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Advertised pause frame use: Symmetric
       Advertised auto-negotiation: Yes
       Advertised FEC modes: Not reported
       Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                            100baseT/Half 100baseT/Full
       Link partner advertised pause frame use: Symmetric Receive-only
       Link partner advertised auto-negotiation: Yes
       Link partner advertised FEC modes: Not reported
       Speed: 100Mb/s
       Duplex: Full
       Auto-negotiation: on
       Port: Twisted Pair
       PHYAD: 2
       Transceiver: external
       MDI-X: Unknown
       Supports Wake-on: gs
       Wake-on: d
            SecureOn password: 00:00:00:00:00:00
            Current message level: 0x000020f7 (8439)
                                   drv probe link ifdown ifup rx_err tx_err hw
       Link detected: yes
    root@j784s4-evm:~# 
    root@j784s4-evm:~# ifconfig eth0 192.168.1.10 netmask 255.255.255.0
    root@j784s4-evm:~# ping 192.168.1.100
    PING 192.168.1.100 (192.168.1.100): 56 data bytes
    ^C
    --- 192.168.1.100 ping statistics ---
    3 packets transmitted, 0 packets received, 100% packet loss
    root@j784s4-evm:~# 
    root@j784s4-evm:~# 
    root@j784s4-evm:~# ifconfig eth0 down
    [   75.421501] am65-cpsw-nuss 46000000.ethernet eth0: Link is Down
    root@j784s4-evm:~# 
    root@j784s4-evm:~# ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up                                                                                                                                      
    [   81.445091] am65-cpsw-nuss 46000000.ethernet eth0: PHY [46000f00.mdio:02] driver [TI DP83822] (irq=POLL)
    [   81.445108] am65-cpsw-nuss 46000000.ethernet eth0: configuring for phy/rmii link mode
    root@j784s4-evm:~# 
    root@j784s4-evm:~# 
    root@j784s4-evm:~# [   87.582111] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    
    root@j784s4-evm:~# 
    root@j784s4-evm:~# ping 192.168.1.100
    PING 192.168.1.100 (192.168.1.100): 56 data bytes
    ^C
    --- 192.168.1.100 ping statistics ---
    4 packets transmitted, 0 packets received, 100% packet loss
    root@j784s4-evm:~# 
    root@j784s4-evm:~# 
    root@j784s4-evm:~# ifconfig          
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.1.10  netmask 255.255.255.0  broadcast 192.168.1.255
            ether 08:04:b4:2e:94:ea  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 33  bytes 5364 (5.2 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536  metric 1
            inet 127.0.0.1  netmask 255.0.0.0
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 89  bytes 7004 (6.8 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 89  bytes 7004 (6.8 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@j784s4-evm:~# 
    root@j784s4-evm:~# devmem2 0x46022330 w
    /dev/mem opened.
    Memory mapped at address 0xffffa1b16000.
    Read at address  0x46022330 (0xffffa1b16330): 0x00008039
    root@j784s4-evm:~# 
    root@j784s4-evm:~# devmem2 0x46022330 w 0x00008021
    /dev/mem opened.
    Memory mapped at address 0xffff9fd4b000.
    Read at address  0x46022330 (0xffff9fd4b330): 0x00008039
    Write at address 0x46022330 (0xffff9fd4b330): 0x00008021, readback 0x00008021
    root@j784s4-evm:~# 
    root@j784s4-evm:~# [  224.989209] ------------[ cut here ]------------
    [  224.989215] NETDEV WATCHDOG: eth0 (am65-cpsw-nuss): transmit queue 0 timed out
    [  224.989247] WARNING: CPU: 6 PID: 66 at net/sched/sch_generic.c:525 dev_watchdog+0x224/0x230
    [  224.989266] Modules linked in:
    [  224.989272] CPU: 6 PID: 66 Comm: ktimers/6 Not tainted 6.1.33-rt11-00016-g4da34e2a3d3a #29 bb6cbeaf8f6645687a45443dd9bbc9df3d3eeb46
    [  224.989278] Hardware name: KUKA J784S4 1CPP EP BOARD (DT)
    [  224.989281] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [  224.989284] pc : dev_watchdog+0x224/0x230
    [  224.989289] lr : dev_watchdog+0x224/0x230
    [  224.989293] sp : ffff800009adbc50
    [  224.989294] x29: ffff800009adbc50 x28: ffff00087f776240 x27: ffff0008024f04a8
    [  224.989299] x26: ffff800009adbd30 x25: ffff800009adbd30 x24: ffff00087f776250
    [  224.989303] x23: ffff800009378000 x22: 0000000000000000 x21: ffff0008024f03e0
    [  224.989307] x20: ffff0008024f0000 x19: ffff0008024f04a8 x18: 0000000000000000
    [  224.989311] x17: 6f2064656d697420 x16: 3020657565757120 x15: 74696d736e617274
    [  224.989315] x14: 203a297373756e2d x13: 74756f2064656d69 x12: 7420302065756575
    [  224.989320] x11: 712074696d736e61 x10: 7274203a29737375 x9 : 777370632d35366d
    [  224.989324] x8 : ffff8000093908d8 x7 : ffff800009adba50 x6 : 00000000fffff16c
    [  224.989328] x5 : ffff00087f775c50 x4 : 0000000000000000 x3 : 0000000000000027
    [  224.989332] x2 : 0000000100000000 x1 : ce86b8dc6048f600 x0 : 0000000000000000
    [  224.989337] Call trace:
    [  224.989339]  dev_watchdog+0x224/0x230
    [  224.989343]  call_timer_fn.isra.0+0x24/0x80
    [  224.989351]  run_timer_softirq+0x4d4/0x548
    [  224.989356]  _stext+0x110/0x21c
    [  224.989359]  run_timersd+0x64/0xc0
    [  224.989364]  smpboot_thread_fn+0x2b8/0x2f8
    [  224.989369]  kthread+0x128/0x138
    [  224.989374]  ret_from_fork+0x10/0x20
    [  224.989378] ---[ end trace 0000000000000000 ]---
    [  224.989386] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:8092 dql_avail:-334 free_desc:514
    
    root@j784s4-evm:~# ping 192.168.1.100
    PING 192.168.1.100 (192.168.1.100): 56 data bytes
    [  230.877214] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:13980 dql_avail:-334 free_desc:514
    
    
    ^C
    --- 192.168.1.100 ping statistics ---
    4 packets transmitted, 0 packets received, 100% packet loss
    root@j784s4-evm:~# [  235.997208] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:19100 dql_avail:-334 free_desc:514
    [  241.885212] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:24988 dql_avail:-334 free_desc:514
    [  246.749210] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:29852 dql_avail:-334 free_desc:514
    [  251.869211] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:34972 dql_avail:-334 free_desc:514
    [  256.989208] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:40092 dql_avail:-334 free_desc:514
    [  262.877210] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:45980 dql_avail:-334 free_desc:514
    [  267.997209] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:51100 dql_avail:-334 free_desc:514
    [  273.885211] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:56988 dql_avail:-334 free_desc:514
    [  278.749210] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:61852 dql_avail:-334 free_desc:514
    [  283.869208] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:66972 dql_avail:-334 free_desc:514
    [  288.989208] am65-cpsw-nuss 46000000.ethernet eth0: txq:0 DRV_XOFF:0 tmo:72092 dql_avail:-334 free_desc:514
    

    Regards!

    Johnson

  • Hi Johnson,

    Can you check if MAC loopback is working? The way to test MAC loopback is given here.

    Regards,
    Tanmay

  • Hi, Tanmay

    •     This is my mac loopback log:

    • mac loopback test script:

    # cat ./mac_lpbk.sh                                                                                                                                                             
    #!/bin/sh
    
    my_ip_addr=192.168.1.10
    server_ip_addr=192.168.1.100
    
    mac_addr=0x46022330
    IF_NAME=eth0
    
    echo "======= $IF_NAME stats ======="
    ethtool -S $IF_NAME | grep good
    
    echo "**************************"
    echo "Setting CPSW in Loopback"
    echo "**************************"
    
    var=$(( 16#$(devmem2 $mac_addr | tail -n1 -c9) ))
    devmem2 $mac_addr w `expr $var + 2`
    devmem2 $mac_addr
    
    echo ""
    echo "Running Ping ..."
    ping -c 5 $server_ip_addr
    echo ""
    
    echo "======= $IF_NAME stats ======="
    ethtool -S $IF_NAME | grep good
    
    echo "**************************"
    echo "Removing CPSW Loopback"
    echo "**************************"
    
    devmem2 $mac_addr w $var
    

    Best Regards!

    Johnson.xu

  • Hi Tanmay,

    Thanks for your suggestion!

    Customer has tried the mac loopback test but no packets received mentioned above.

    Customer also dumps out the register value of MCU CPSW2g and attach the log below.

    For EVM board (normal)

    root@j784s4-evm:~# ./cpsw_reg_dump.sh  | grep Read
    Read at address  0x46000000 (0xffff83f2d000): 0x6BA02102
    Read at address  0x46000004 (0xffffb9b1e004): 0x00000000
    Read at address  0x46000008 (0xffffb2447008): 0x00000000
    Read at address  0x4600000C (0xffff8a71100c): 0x00000000
    Read at address  0x46000010 (0xffff874eb010): 0x00000001
    Read at address  0x46000018 (0xffff97e57018): 0x00000000
    Read at address  0x4600001C (0xffff9ca8d01c): 0x00000000
    Read at address  0x46000100 (0xffff9234a100): 0x4EC21102
    Read at address  0x46000104 (0xffffa76b2104): 0x00000000
    Read at address  0x46000110 (0xffff9ca4d110): 0x00000000
    Read at address  0x46000114 (0xffffa39da114): 0x00000030
    Read at address  0x46000118 (0xffff8dfa4118): 0x00000000
    Read at address  0x4600011C (0xffff99ecb11c): 0x00000000
    Read at address  0x46000120 (0xffff9c271120): 0x00000000
    Read at address  0x46000124 (0xffff865aa124): 0x00000000
    Read at address  0x46000130 (0xffff87bf9130): 0x00000000
    Read at address  0x46000134 (0xffff94099134): 0x00000000
    Read at address  0x46000138 (0xffffbdedc138): 0x00000000
    Read at address  0x46000140 (0xffffad717140): 0x00000000
    Read at address  0x46000144 (0xffff80d20144): 0x00000000
    Read at address  0x46000148 (0xffff80309148): 0x00000000
    Read at address  0x46000F00 (0xffffa24bcf00): 0x00070907
    Read at address  0x46000F04 (0xffff9d04bf04): 0x8100014C
    Read at address  0x46000F08 (0xffffaf63bf08): 0x00000001
    Read at address  0x46000F0C (0xffffbd084f0c): 0x00000001
    Read at address  0x46000F10 (0xffff9ae14f10): 0x00000003
    Read at address  0x46000F14 (0xffffab7b8f14): 0x00000000
    Read at address  0x46000F18 (0xffff98b12f18): 0x00000000
    Read at address  0x46000F1C (0xffff89456f1c): 0x00000000
    Read at address  0x46000F20 (0xffff9c0ddf20): 0x00000001
    Read at address  0x46000F24 (0xffffa8ad3f24): 0x00000000
    Read at address  0x46000F28 (0xffffa319af28): 0x00000000
    Read at address  0x46000F2C (0xffff8534ef2c): 0x00000000
    Read at address  0x46000F30 (0xffffbbc58f30): 0x00000001
    Read at address  0x46000F34 (0xffff7ff17f34): 0x00000000
    Read at address  0x46000F38 (0xffff8b062f38): 0xFFFFFFFF
    Read at address  0x46000F3C (0xffffb7019f3c): 0x00000000
    Read at address  0x46000F40 (0xffff806fff40): 0x00000000
    Read at address  0x46000F44 (0xffffa1e80f44): 0x00000000
    Read at address  0x46001000 (0xffffbc654000): 0x6690A200
    Read at address  0x46001010 (0xffff8027c010): 0x00000000
    Read at address  0x46001014 (0xffff84604014): 0x00000000
    Read at address  0x46001100 (0xffffa3956100): 0x00000000
    Read at address  0x46001300 (0xffff9952c300): 0x00000000
    Read at address  0x46001500 (0xffffa369d500): 0x00000000
    Read at address  0x46001A80 (0xffffbecaca80): 0x00000000
    Read at address  0x46020000 (0xffffa37a6000): 0x6BA82102
    Read at address  0x46020004 (0xffff9e28b004): 0x00006006
    Read at address  0x46020010 (0xffffa0f79010): 0x00000000
    Read at address  0x46020014 (0xffff858ce014): 0x00000003
    Read at address  0x46020018 (0xffff867bb018): 0x00000000
    Read at address  0x4602001C (0xffff83e3101c): 0x00000000
    Read at address  0x46020020 (0xffffb6844020): 0x00003001
    Read at address  0x46020024 (0xffffbf33a024): 0x0000000B
    Read at address  0x46020028 (0xffffb9e51028): 0x00000008
    Read at address  0x4602002C (0xffffb20d002c): 0x00000000
    Read at address  0x46020030 (0xffff9ff88030): 0xFFFFFFFF
    Read at address  0x46020034 (0xffff9a19f034): 0x00000000
    Read at address  0x46020038 (0xffffbd9ae038): 0xFFFFFFFF
    Read at address  0x4602003C (0xffff8b5e603c): 0xFFFFFFFF
    Read at address  0x46020040 (0xffff9ed9f040): 0x00000000
    Read at address  0x46020044 (0xffffb372c044): 0x00000000
    Read at address  0x46020050 (0xffff86b8c050): 0x88A88100
    Read at address  0x46020054 (0xffffb4dbd054): 0x00000000
    Read at address  0x46020100 (0xffff95d1b100): 0x000007E8
    Read at address  0x46020104 (0xffff92d56104): 0x000007E8
    Read at address  0x46020108 (0xffff90792108): 0x000007E8
    Read at address  0x4602010C (0xffff88aeb10c): 0x000007E8
    Read at address  0x46020110 (0xffff96b8e110): 0x000007E8
    Read at address  0x46020114 (0xffff80015114): 0x000007E8
    Read at address  0x46020118 (0xffffae62c118): 0x000007E8
    Read at address  0x4602011C (0xffffa274011c): 0x000007E8
    Read at address  0x46021004 (0xffff80d02004): 0x00010001
    Read at address  0x46021008 (0xffffb5521008): 0x00000030
    Read at address  0x46021010 (0xffff7fade010): 0x00000002
    Read at address  0x46021014 (0xffff97d95014): 0x00000000
    Read at address  0x46021018 (0xffffa1795018): 0x76543210
    Read at address  0x4602101C (0xffff8e0e101c): 0x00000000
    Read at address  0x46021020 (0xffffab276020): 0x76543210
    Read at address  0x46021024 (0xffff9ea9a024): 0x000005F2
    Read at address  0x46021028 (0xffffaec7e028): 0x01245678
    Read at address  0x46021030 (0xffff98163030): 0x00000000
    Read at address  0x46021034 (0xffffbe6e6034): 0x00000000
    Read at address  0x46021038 (0xffffaa3e4038): 0x00000060
    Read at address  0x4602103C (0xffff8430903c): 0x00000000
    Read at address  0x4602104C (0xffffaa98804c): 0x01000000
    Read at address  0x46021050 (0xffff8b20e050): 0x00000000
    Read at address  0x46021120 (0xffffbe0c4120): 0x00000000
    Read at address  0x46021140 (0xffff959a1140): 0x00000000
    Read at address  0x46021160 (0xffff99728160): 0x00000000
    Read at address  0x46021180 (0xffffa7a73180): 0x1F1F1F1F
    Read at address  0x46021184 (0xffff9549c184): 0x1F1F1F1F
    Read at address  0x46021188 (0xffffbbada188): 0x00000000
    Read at address  0x4602118C (0xffff8899518c): 0x00000000
    Read at address  0x46021190 (0xffff81016190): 0x1F1F1F1F
    Read at address  0x46021194 (0xffff93e3f194): 0x1F1F1F1F
    Read at address  0x46021198 (0xffff92e65198): 0x00000000
    Read at address  0x4602119C (0xffff9a00819c): 0x00000000
    Read at address  0x46021300 (0xffff9ed96300): 0x04030201
    Read at address  0x46021304 (0xffffbcae6304): 0x08070605
    Read at address  0x46021320 (0xffffbcae9320): 0x00000000
    Read at address  0x46022000 (0xffffad7a2000): 0x00000000
    Read at address  0x46022004 (0xffff949a3004): 0x00000000
    Read at address  0x46022008 (0xffffbc64a008): 0x00001004
    Read at address  0x46022010 (0xffffa8e56010): 0x00000002
    Read at address  0x46022014 (0xffff98fb0014): 0x00000000
    Read at address  0x46022018 (0xffffa5922018): 0x76543210
    Read at address  0x4602201C (0xffff97cd901c): 0x00009000
    Read at address  0x46022020 (0xffff95555020): 0x76543210
    Read at address  0x46022024 (0xffffab41d024): 0x000005F2
    Read at address  0x46022028 (0xffff9aff1028): 0x01245678
    Read at address  0x4602202C (0xffffa0f3702c): 0x00000040
    Read at address  0x46022030 (0xffffbda9a030): 0x00000000
    Read at address  0x46022034 (0xffffae7f0034): 0x00000000
    Read at address  0x46022038 (0xffff8093e038): 0x00000060
    Read at address  0x46022040 (0xffff9219a040): 0x00000000
    Read at address  0x46022044 (0xffff95d75044): 0x00000000
    Read at address  0x46022048 (0xffffb1a01048): 0x001312D0
    Read at address  0x46022050 (0xffffaf0e2050): 0x0000FF00
    Read at address  0x46022060 (0xffff94d41060): 0x00000000
    Read at address  0x46022120 (0xffffb2eb6120): 0x00000000
    Read at address  0x46022140 (0xffff94e53140): 0x00000000
    Read at address  0x46022160 (0xffffa7443160): 0x00000000
    Read at address  0x46022180 (0xffff9b087180): 0x1F1F1F1F
    Read at address  0x46022184 (0xffff9ae78184): 0x1F1F1F1F
    Read at address  0x46022188 (0xffff97ed7188): 0x00000000
    Read at address  0x4602218C (0xffffbd9c118c): 0x00000000
    Read at address  0x46022190 (0xffff8fdaf190): 0x1F1F1F1F
    Read at address  0x46022194 (0xffffb3ee5194): 0x1F1F1F1F
    Read at address  0x46022198 (0xffff8b41b198): 0x00000000
    Read at address  0x4602219C (0xffff8786919c): 0x00000000
    Read at address  0x46022300 (0xffffa336c300): 0x00000000
    Read at address  0x46022304 (0xffff9aeed304): 0x00000000
    Read at address  0x46022308 (0xffffa0682308): 0x00009B4A
    Read at address  0x4602230C (0xffff8945830c): 0x6264E03C
    Read at address  0x46022310 (0xffffb96d7310): 0x00000000
    Read at address  0x46022314 (0xffffbf555314): 0x001E0000
    Read at address  0x46022318 (0xffffb8f45318): 0x00000000
    Read at address  0x4602231C (0xffffbabdb31c): 0x00000000
    Read at address  0x46022320 (0xffff8a854320): 0x00040000
    Read at address  0x46022330 (0xffffb56a6330): 0x000000B9
    Read at address  0x46022334 (0xffff9f0fa334): 0xF0000018
    Read at address  0x46022338 (0xffffaa8d8338): 0x00000000
    Read at address  0x4602233C (0xffff8cbcd33c): 0x01A10000
    Read at address  0x46022340 (0xffff800f8340): 0x00000000
    Read at address  0x46022350 (0xffffbd6f4350): 0x00000000
    Read at address  0x46022370 (0xffff8f357370): 0x00000000
    Read at address  0x46022380 (0xffff83041380): 0x00000000
    Read at address  0x460223A0 (0xffffac3e73a0): 0x00000000
    Read at address  0x460223A4 (0xffff9a1163a4): 0x0000000C
    Read at address  0x460223A8 (0xffffb03dc3a8): 0x00000204
    Read at address  0x460223AC (0xffff88bb23ac): 0x00000000
    Read at address  0x460223B0 (0xffffb325d3b0): 0x00000000
    Read at address  0x460223B4 (0xffffa7cb63b4): 0x00000000
    Read at address  0x460223B8 (0xffff9cbd23b8): 0x00000000
    Read at address  0x460223BC (0xffff951393bc): 0x00000000
    Read at address  0x46032000 (0xffffb3a86000): 0x00000000
    Read at address  0x4603A000 (0xffff8975e000): 0x00000111
    Read at address  0x4603A004 (0xffffac8bb004): 0x0000007E
    Read at address  0x4603A008 (0xffffafbb8008): 0x0000003D
    Read at address  0x4603A010 (0xffff909d8010): 0x00000000
    Read at address  0x4603A018 (0xffffa8450018): 0x00000000
    Read at address  0x4603A020 (0xffffafdaf020): 0x00000000
    Read at address  0x4603A024 (0xffffa8b52024): 0x00000000
    Read at address  0x4603A028 (0xffffa7268028): 0x00000000
    Read at address  0x4603A02C (0xffff87b3802c): 0x00000000
    Read at address  0x4603A030 (0xffffae20b030): 0x0000CE80
    Read at address  0x4603A034 (0xffffaace0034): 0x00000042
    Read at address  0x4603A038 (0xffff8383f038): 0x00000001
    Read at address  0x4603A03C (0xffffbce2103c): 0x00000012
    Read at address  0x4603A064 (0xffff8bbc9064): 0x000018DE
    Read at address  0x4603A068 (0xffff9dcfe068): 0x00000032
    Read at address  0x4603A06C (0xffffbd1eb06c): 0x000000A2
    Read at address  0x4603A070 (0xffffbf2c9070): 0x00000010
    Read at address  0x4603A074 (0xffffa3e58074): 0x0000006F
    Read at address  0x4603A078 (0xffff8c6e9078): 0x00000000
    Read at address  0x4603A07C (0xffffb23bf07c): 0x00000000
    Read at address  0x4603A080 (0xffffb946d080): 0x0000E75E
    Read at address  0x4603A084 (0xffffbe7c2084): 0x00000000
    Read at address  0x4603A088 (0xffffa4a72088): 0x00000000
    Read at address  0x4603A08C (0xffffa7b9f08c): 0x00000000
    Read at address  0x4603A090 (0xffff96482090): 0x00000000
    Read at address  0x4603A094 (0xffff8fe72094): 0x00000000
    Read at address  0x4603A098 (0xffff9b87c098): 0x00000000
    Read at address  0x4603A09C (0xffff8b9a109c): 0x00000000
    Read at address  0x4603A0A0 (0xffff910630a0): 0x00000000
    Read at address  0x4603A0A4 (0xffffad9fe0a4): 0x00000000
    Read at address  0x4603A0A8 (0xffff81b160a8): 0x00000000
    Read at address  0x4603A0AC (0xffff83d0f0ac): 0x00000000
    Read at address  0x4603A0B0 (0xffffa3b230b0): 0x00000000
    Read at address  0x4603A0B4 (0xffff99d9a0b4): 0x00000000
    Read at address  0x4603A0B8 (0xffffa14d80b8): 0x00000000
    Read at address  0x4603A0BC (0xffff935230bc): 0x00000000
    Read at address  0x4603A0C0 (0xffffb31e90c0): 0x00000000
    Read at address  0x4603A0C4 (0xffff8dc350c4): 0x00000000
    Read at address  0x4603A0C8 (0xffff8d82e0c8): 0x00000000
    Read at address  0x4603A0CC (0xffffaaaf70cc): 0x00000000
    Read at address  0x4603A0D0 (0xffffaf5c90d0): 0x00000000
    Read at address  0x4603A0D4 (0xffff84ae70d4): 0x00000000
    Read at address  0x4603A0D8 (0xffffba84a0d8): 0x00000000
    Read at address  0x4603A0DC (0xffffb8d880dc): 0x00000000
    Read at address  0x4603A140 (0xffffa075d140): 0x00000000
    Read at address  0x4603A144 (0xffffaf72d144): 0x00000000
    Read at address  0x4603A148 (0xffff85305148): 0x00000000
    Read at address  0x4603A14C (0xffffb499714c): 0x00000000
    Read at address  0x4603A150 (0xffff892c8150): 0x00000000
    Read at address  0x4603A154 (0xffff8d874154): 0x00000000
    Read at address  0x4603A17C (0xffff9b41117c): 0x00000000
    Read at address  0x4603A200 (0xffffbdbd6200): 0x00000079
    Read at address  0x4603A204 (0xffffbe362204): 0x00000013
    Read at address  0x4603A208 (0xffffa9a0b208): 0x00000022
    Read at address  0x4603A20C (0xffff8439520c): 0x00000000
    Read at address  0x4603A210 (0xffffaa7e0210): 0x00000000
    Read at address  0x4603A214 (0xffffbec09214): 0x00000000
    Read at address  0x4603A218 (0xffff939c9218): 0x00000000
    Read at address  0x4603A21C (0xffffad98221c): 0x00000000
    Read at address  0x4603A220 (0xffff866bd220): 0x00000000
    Read at address  0x4603A224 (0xffff854e3224): 0x00000000
    Read at address  0x4603A228 (0xffff8632e228): 0x00000037
    Read at address  0x4603A22C (0xffff997c522c): 0x00000000
    Read at address  0x4603A230 (0xffffb99e0230): 0x00002CCB
    Read at address  0x4603A234 (0xffffa027a234): 0x00000111
    Read at address  0x4603A238 (0xffffbd899238): 0x0000007E
    Read at address  0x4603A23C (0xffff877a923c): 0x0000003D
    Read at address  0x4603A240 (0xffff9adfc240): 0x00000000
    Read at address  0x4603A244 (0xffffb2bb4244): 0x00000000
    Read at address  0x4603A248 (0xffff9cd31248): 0x00000000
    Read at address  0x4603A24C (0xffff92d0024c): 0x00000000
    Read at address  0x4603A250 (0xffff8b5cf250): 0x00000000
    Read at address  0x4603A254 (0xffff82d5a254): 0x00000000
    Read at address  0x4603A258 (0xffffb5208258): 0x00000000
    Read at address  0x4603A25C (0xffff948da25c): 0x00000000
    Read at address  0x4603A260 (0xffffa4680260): 0x00000000
    Read at address  0x4603A264 (0xffffb8f0d264): 0x0000CE80
    Read at address  0x4603A268 (0xffff84db5268): 0x00000047
    Read at address  0x4603A26C (0xffff9c97926c): 0x000000C1
    Read at address  0x4603A270 (0xffff84f1b270): 0x00000013
    Read at address  0x4603A274 (0xffff863cc274): 0x0000006F
    Read at address  0x4603A278 (0xffffa8f17278): 0x00000000
    Read at address  0x4603A27C (0xffff8eb4027c): 0x00000000
    Read at address  0x4603A280 (0xffffaff40280): 0x0000FB4B
    Read at address  0x4603A284 (0xffff8fc74284): 0x00000000
    Read at address  0x4603A288 (0xffff97502288): 0x00000037
    Read at address  0x4603A28C (0xffff8c0bf28c): 0x00000000
    Read at address  0x4603A290 (0xffffbcad1290): 0x00000000
    Read at address  0x4603A294 (0xffffa06c6294): 0x00000000
    Read at address  0x4603A298 (0xffff85d49298): 0x00000000
    Read at address  0x4603A29C (0xffffb37c529c): 0x00000000
    Read at address  0x4603A2A0 (0xffffb5a082a0): 0x00000028
    Read at address  0x4603A2A4 (0xffff8bc502a4): 0x00000000
    Read at address  0x4603A2A8 (0xffff906562a8): 0x0000002F
    Read at address  0x4603A2AC (0xffff9066e2ac): 0x000010F2
    Read at address  0x4603A2B0 (0xffff8e2a22b0): 0x00000021
    Read at address  0x4603A2B4 (0xffff8297a2b4): 0x00000EE3
    Read at address  0x4603A2B8 (0xffff809eb2b8): 0x00000001
    Read at address  0x4603A2BC (0xffff93f8d2bc): 0x00000040
    Read at address  0x4603A2C0 (0xffffb36352c0): 0x00000000
    Read at address  0x4603A2C4 (0xffff9596b2c4): 0x00000000
    Read at address  0x4603A2C8 (0xffffbde7a2c8): 0x00000000
    Read at address  0x4603A2CC (0xffff970222cc): 0x00000000
    Read at address  0x4603A2D0 (0xffff861162d0): 0x00000000
    Read at address  0x4603A2D4 (0xffff95ecd2d4): 0x00000000
    Read at address  0x4603A2D8 (0xffffb5e682d8): 0x00000000
    Read at address  0x4603A2DC (0xffffa61972dc): 0x00000000
    Read at address  0x4603A340 (0xffffa8c60340): 0x00000000
    Read at address  0x4603A344 (0xffffab352344): 0x00000000
    Read at address  0x4603A348 (0xffffaaeb6348): 0x00000002
    Read at address  0x4603A34C (0xffffaa2ca34c): 0x00000000
    Read at address  0x4603A350 (0xffff8fdbe350): 0x00000000
    Read at address  0x4603A354 (0xffff930dd354): 0x00000000
    Read at address  0x4603A37C (0xffff84d0437c): 0x00000000
    Read at address  0x4603A380 (0xffffadbff380): 0x00000111
    Read at address  0x4603A3A0 (0xffff946dd3a0): 0x0000CE80
    Read at address  0x4603A3C0 (0xffff860413c0): 0x00000000
    Read at address  0x4603A3E0 (0xffffbf5e13e0): 0x00000000
    Read at address  0x4603D000 (0xffff96ddb000): 0x4E8A010B
    Read at address  0x4603D004 (0xffff825a6004): 0x00020021
    Read at address  0x4603D008 (0xffff85898008): 0x00000000
    Read at address  0x4603D00C (0xffffa8fd400c): 0x00000000
    Read at address  0x4603D010 (0xffff9e7f6010): 0x8E0EA9C3
    Read at address  0x4603D014 (0xffffa8e21014): 0x00000000
    Read at address  0x4603D018 (0xffffb7152018): 0x00000000
    Read at address  0x4603D01C (0xffff91a1f01c): 0x00000000
    Read at address  0x4603D020 (0xffffb5ae7020): 0x00000000
    Read at address  0x4603D024 (0xffffa06c4024): 0x00000000
    Read at address  0x4603D028 (0xffffaef99028): 0x00000001
    Read at address  0x4603D02C (0xffff9fa4f02c): 0x00000000
    Read at address  0x4603D030 (0xffffbf613030): 0x00000000
    Read at address  0x4603D034 (0xffff9f4f4034): 0x00000000
    Read at address  0x4603D038 (0xffff9c9bc038): 0x00000000
    Read at address  0x4603D03C (0xffffb218603c): 0x00000000
    Read at address  0x4603D040 (0xffffbbf89040): 0x00000000
    Read at address  0x4603D044 (0xffffb605f044): 0x00000000
    Read at address  0x4603D048 (0xffff965ef048): 0x00000000
    Read at address  0x4603D04C (0xffff939a804c): 0x00000001
    Read at address  0x4603D050 (0xffff863e7050): 0x00000000
    Read at address  0x4603D054 (0xffffb1795054): 0x00000000
    Read at address  0x4603D058 (0xffffb31ce058): 0x00000000
    Read at address  0x4603D200 (0xffffbae1a200): 0x00000000
    Read at address  0x4603D204 (0xffffac876204): 0x00000000
    Read at address  0x4603D208 (0xffff9734e208): 0x00000000
    Read at address  0x4603D20C (0xffff9cd5220c): 0x00000000
    Read at address  0x4603D210 (0xffff92171210): 0x00000000
    Read at address  0x4603D214 (0xffff81163214): 0x00000000
    Read at address  0x4603D218 (0xffff8b7e4218): 0x00000000
    Read at address  0x4603E000 (0xffffa1733000): 0x00293904
    Read at address  0x4603E004 (0xffffb1326004): 0x00000140
    Read at address  0x4603E008 (0xffff89778008): 0x80000005
    Read at address  0x4603E00C (0xffff9e18a00c): 0x00000000
    Read at address  0x4603E010 (0xffffa1da6010): 0x00051615
    Read at address  0x4603E014 (0xffffa4e21014): 0x00002706
    Read at address  0x4603E01C (0xffff8443501c): 0x00000000
    Read at address  0x4603E020 (0xffff9ccb7020): 0x0000000C
    Read at address  0x4603E034 (0xffff95de6034): 0x00000004
    Read at address  0x4603E038 (0xffff90fe3038): 0x10000100
    Read at address  0x4603E03C (0xffff8921603c): 0x5E0000FC
    Read at address  0x4603E040 (0xffff83fc7040): 0x00000013
    Read at address  0x4603E090 (0xffffb2315090): 0x00000000
    Read at address  0x4603E094 (0xffff8f507094): 0x00000000
    Read at address  0x4603E098 (0xffffa7962098): 0x00000000
    Read at address  0x4603E09C (0xffffb67bb09c): 0x00000000
    Read at address  0x4603E0B8 (0xffffada350b8): 0x00000000
    Read at address  0x4603E0BC (0xffffa7feb0bc): 0x00000000
    Read at address  0x4603E0C0 (0xffff93de70c0): 0x00000003
    Read at address  0x4603E0C4 (0xffffa87f70c4): 0x00000002
    Read at address  0x4603E0FC (0xffffaa4dc0fc): 0x00000000
    Read at address  0x4603E100 (0xffff83f27100): 0x00000000
    Read at address  0x4603E104 (0xffffbd66f104): 0x00000000
    Read at address  0x4603E108 (0xffff82c3e108): 0x00000000
    Read at address  0x4603E10C (0xffffa79a410c): 0x00000000
    Read at address  0x4603E110 (0xffff95535110): 0x00000000
    Read at address  0x4603E118 (0xffffb6104118): 0x00000000
    Read at address  0x4603E11C (0xffff8793a11c): 0x00000000
    Read at address  0x4603E120 (0xffffa3ed2120): 0x00000000
    Read at address  0x4603E124 (0xffff9d3c6124): 0x00000000
    Read at address  0x4603E128 (0xffffb008f128): 0x00000000
    Read at address  0x4603E12C (0xffff97e1512c): 0x00000000
    Read at address  0x4603E134 (0xffffa6c49134): 0x00008000
    Read at address  0x4603E138 (0xffffbc2a6138): 0x00000000
    Read at address  0x4603E13C (0xffffb467813c): 0x00000000
    root@j784s4-evm:~# 
    root@j784s4-evm:~# uname -a
    Linux j784s4-evm 5.10.145-g8b51d20b6e #1 SMP PREEMPT Sun Oct 30 20:21:18 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
    root@j784s4-evm:~# 
    root@j784s4-evm:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP    MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Supported pause frame use: Symmetric
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Advertised pause frame use: Symmetric
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                                 100baseT/Half 100baseT/Full
                                                 1000baseT/Full
            Link partner advertised pause frame use: Symmetric Receive-only
            Link partner advertised auto-negotiation: Yes
            Link partner advertised FEC modes: Not reported
            Speed: 1000Mb/s
            Duplex: Full
            Auto-negotiation: on
            master-slave cfg: preferred slave
            master-slave status: slave
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: external
            MDI-X: Unknown
            Supports Wake-on: ubgs
            Wake-on: d
            SecureOn password: 00:00:00:00:00:00
            Current message level: 0x000020f7 (8439)
                                   drv probe link ifdown ifup rx_err tx_err hw
            Link detected: yes
    root@j784s4-evm:~# 
    root@j784s4-evm:~# ifconfig eth0
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.1.10  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::3ee0:64ff:fe62:4a9b  prefixlen 64  scopeid 0x20<link>
            ether 3c:e0:64:62:4a:9b  txqueuelen 1000  (Ethernet)
            RX packets 66  bytes 6102 (5.9 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 280  bytes 53444 (52.1 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@j784s4-evm:~# 
    
    

    For Customer's Dev board (cannot ping)

    root@j784s4-evm:~/mcu_cpsw2g# ./cpsw_reg_dump.sh | grep Read
    Read at address  0x46000000 (0xffff8fc1d000): 0x6BA02102
    Read at address  0x46000004 (0xffff85477004): 0x00000000
    Read at address  0x46000008 (0xffffb3cb1008): 0x00000000
    Read at address  0x4600000C (0xffff8cccf00c): 0x00000000
    Read at address  0x46000010 (0xffffb6808010): 0x00000001
    Read at address  0x46000018 (0xffffa6780018): 0x00000000
    Read at address  0x4600001C (0xffffbbd5101c): 0x00000000
    Read at address  0x46000100 (0xffff92465100): 0x4EC21102
    Read at address  0x46000104 (0xffff83645104): 0x00000000
    Read at address  0x46000110 (0xffffacfe2110): 0x00000000
    Read at address  0x46000114 (0xffff8ed0f114): 0x00000030
    Read at address  0x46000118 (0xffff8b2e4118): 0x00000000
    Read at address  0x4600011C (0xffffad6e711c): 0x00000000
    Read at address  0x46000120 (0xffffb2f00120): 0x00000000
    Read at address  0x46000124 (0xffff82101124): 0x00000000
    Read at address  0x46000130 (0xffff84345130): 0x00000000
    Read at address  0x46000134 (0xffff88240134): 0x00000000
    Read at address  0x46000138 (0xffff975cc138): 0x00000000
    Read at address  0x46000140 (0xffffa2595140): 0x00000000
    Read at address  0x46000144 (0xffff8f845144): 0x00000000
    Read at address  0x46000148 (0xffff898ca148): 0x00000000
    Read at address  0x46000F00 (0xffffb59a9f00): 0x00070907
    Read at address  0x46000F04 (0xffff8f7eff04): 0x8100014C
    Read at address  0x46000F08 (0xffffa8625f08): 0x00000004
    Read at address  0x46000F0C (0xffffae99bf0c): 0x00000004
    Read at address  0x46000F10 (0xffffbe6e3f10): 0x00000000
    Read at address  0x46000F14 (0xffff81eb2f14): 0x00000000
    Read at address  0x46000F18 (0xffffb3fc4f18): 0x00000000
    Read at address  0x46000F1C (0xffff95e23f1c): 0x00000000
    Read at address  0x46000F20 (0xffffb042bf20): 0x00000001
    Read at address  0x46000F24 (0xffff966f3f24): 0x00000000
    Read at address  0x46000F28 (0xffffa6febf28): 0x00000000
    Read at address  0x46000F2C (0xffffa945cf2c): 0x00000000
    Read at address  0x46000F30 (0xffff9ca9cf30): 0x00000001
    Read at address  0x46000F34 (0xffff97d29f34): 0x00000000
    Read at address  0x46000F38 (0xffff892e3f38): 0xFFFFFFFF
    Read at address  0x46000F3C (0xffffbd1eff3c): 0x00000000
    Read at address  0x46000F40 (0xffff92691f40): 0x00000000
    Read at address  0x46000F44 (0xffff80e7cf44): 0x00000000
    Read at address  0x46001000 (0xffffa7610000): 0x6690A200
    Read at address  0x46001010 (0xffffa3e59010): 0x00000000
    Read at address  0x46001014 (0xffffb8b39014): 0x00000000
    Read at address  0x46001100 (0xffffad21c100): 0x00000000
    Read at address  0x46001300 (0xffffa2f0f300): 0x00000000
    Read at address  0x46001500 (0xffff97dff500): 0x00000000
    Read at address  0x46001A80 (0xffffa6f5ea80): 0x00000000
    Read at address  0x46020000 (0xffffb1655000): 0x6BA82102
    Read at address  0x46020004 (0xffff8e7cf004): 0x00006006
    Read at address  0x46020010 (0xffff90362010): 0x00000000
    Read at address  0x46020014 (0xffff86964014): 0x00000003
    Read at address  0x46020018 (0xffffbe0ae018): 0x00000000
    Read at address  0x4602001C (0xffffb134b01c): 0x00000000
    Read at address  0x46020020 (0xffff8830a020): 0x00003001
    Read at address  0x46020024 (0xffffb2d52024): 0x0000000B
    Read at address  0x46020028 (0xffff96323028): 0x00000008
    Read at address  0x4602002C (0xffff839f002c): 0x00000000
    Read at address  0x46020030 (0xffff84b90030): 0xFFFFFFFF
    Read at address  0x46020034 (0xffff9fa42034): 0x00000000
    Read at address  0x46020038 (0xffff8c6e6038): 0xFFFFFFFF
    Read at address  0x4602003C (0xffffae3d303c): 0xFFFFFFFF
    Read at address  0x46020040 (0xffffa1697040): 0x00000000
    Read at address  0x46020044 (0xffff8072b044): 0x00000000
    Read at address  0x46020050 (0xffff89473050): 0x88A88100
    Read at address  0x46020054 (0xffffb9cbe054): 0x00000000
    Read at address  0x46020100 (0xffffb66f2100): 0x000007E8
    Read at address  0x46020104 (0xffff9c7b8104): 0x000007E8
    Read at address  0x46020108 (0xffffbdd7b108): 0x000007E8
    Read at address  0x4602010C (0xffffa608110c): 0x000007E8
    Read at address  0x46020110 (0xffff8e98b110): 0x000007E8
    Read at address  0x46020114 (0xffffae385114): 0x000007E8
    Read at address  0x46020118 (0xffff9229b118): 0x000007E8
    Read at address  0x4602011C (0xffff8bbcb11c): 0x000007E8
    Read at address  0x46021004 (0xffff947e9004): 0x00010001
    Read at address  0x46021008 (0xffff91f64008): 0x00000030
    Read at address  0x46021010 (0xffff938ee010): 0x00000002
    Read at address  0x46021014 (0xffff95cf4014): 0x00000000
    Read at address  0x46021018 (0xffffb9c91018): 0x76543210
    Read at address  0x4602101C (0xffff9455c01c): 0x00000000
    Read at address  0x46021020 (0xffff8f9a4020): 0x76543210
    Read at address  0x46021024 (0xffff84630024): 0x000005F2
    Read at address  0x46021028 (0xffffac352028): 0x01245678
    Read at address  0x46021030 (0xffffaa89a030): 0x00000000
    Read at address  0x46021034 (0xffff7fdc6034): 0x00000000
    Read at address  0x46021038 (0xffff9d057038): 0x00000060
    Read at address  0x4602103C (0xffffa46f103c): 0x00000000
    Read at address  0x4602104C (0xffffae1f504c): 0x01000000
    Read at address  0x46021050 (0xffff93017050): 0x00000000
    Read at address  0x46021120 (0xffff8bf03120): 0x00000000
    Read at address  0x46021140 (0xffffbcaf4140): 0x00000000
    Read at address  0x46021160 (0xffff8c3f1160): 0x00000000
    Read at address  0x46021180 (0xffffbaa79180): 0x1F1F1F1F
    Read at address  0x46021184 (0xffffb2a19184): 0x1F1F1F1F
    Read at address  0x46021188 (0xffffb6632188): 0x00000000
    Read at address  0x4602118C (0xffff959c818c): 0x00000000
    Read at address  0x46021190 (0xffffa094b190): 0x1F1F1F1F
    Read at address  0x46021194 (0xffffb3fa1194): 0x1F1F1F1F
    Read at address  0x46021198 (0xffff8163b198): 0x00000000
    Read at address  0x4602119C (0xfffface7c19c): 0x00000000
    Read at address  0x46021300 (0xffff98cad300): 0x04030201
    Read at address  0x46021304 (0xffffb9345304): 0x08070605
    Read at address  0x46021320 (0xffffa3732320): 0x00000000
    Read at address  0x46022000 (0xffff9bc63000): 0x00000000
    Read at address  0x46022004 (0xffffa862d004): 0x00000000
    Read at address  0x46022008 (0xffffa19d9008): 0x00001004
    Read at address  0x46022010 (0xffffbc1ec010): 0x00000001
    Read at address  0x46022014 (0xffff87933014): 0x00000000
    Read at address  0x46022018 (0xffffb538a018): 0x76543210
    Read at address  0x4602201C (0xffffba28a01c): 0x00009000
    Read at address  0x46022020 (0xffff87e52020): 0x76543210
    Read at address  0x46022024 (0xffff9e4eb024): 0x000005F2
    Read at address  0x46022028 (0xffffb4514028): 0x01245678
    Read at address  0x4602202C (0xffffb3bb602c): 0x00000040
    Read at address  0x46022030 (0xffffbbafb030): 0x00000000
    Read at address  0x46022034 (0xffff9c7a0034): 0x00000000
    Read at address  0x46022038 (0xffff866bc038): 0x00000060
    Read at address  0x46022040 (0xffffbbc87040): 0x00000008
    Read at address  0x46022044 (0xffff90841044): 0x00000000
    Read at address  0x46022048 (0xffffaa97c048): 0x001312D0
    Read at address  0x46022050 (0xffffb3190050): 0x0000FF00
    Read at address  0x46022060 (0xffff86e16060): 0x00000000
    Read at address  0x46022120 (0xffffaacfa120): 0x00000000
    Read at address  0x46022140 (0xffffa6d4b140): 0x00000000
    Read at address  0x46022160 (0xffffbbd09160): 0x00000000
    Read at address  0x46022180 (0xffffbbf18180): 0x1F1F1F1F
    Read at address  0x46022184 (0xffff99e2b184): 0x1F1F1F1F
    Read at address  0x46022188 (0xffffa27f0188): 0x00000000
    Read at address  0x4602218C (0xffff819db18c): 0x00000000
    Read at address  0x46022190 (0xffffbd93f190): 0x1F1F1F1F
    Read at address  0x46022194 (0xffff99211194): 0x1F1F1F1F
    Read at address  0x46022198 (0xffff806b3198): 0x00000000
    Read at address  0x4602219C (0xffff7f8d919c): 0x00000000
    Read at address  0x46022300 (0xffffbdb99300): 0x00000000
    Read at address  0x46022304 (0xffffabbec304): 0x00000000
    Read at address  0x46022308 (0xffffaedfb308): 0x0000EA94
    Read at address  0x4602230C (0xffff8e97e30c): 0x2EB40408
    Read at address  0x46022310 (0xffff975c9310): 0x00000000
    Read at address  0x46022314 (0xffff95a48314): 0x001E0000
    Read at address  0x46022318 (0xffffa1083318): 0x00000000
    Read at address  0x4602231C (0xffffb325a31c): 0x00000000
    Read at address  0x46022320 (0xffffac18b320): 0x00040000
    Read at address  0x46022330 (0xffffaea4e330): 0x00008039
    Read at address  0x46022334 (0xffffb82f7334): 0xF0000000
    Read at address  0x46022338 (0xffffb60f2338): 0x00000000
    Read at address  0x4602233C (0xffff8bf5f33c): 0x00C00000
    Read at address  0x46022340 (0xffff97407340): 0x00000000
    Read at address  0x46022350 (0xffff90251350): 0x00000000
    Read at address  0x46022370 (0xffffa529d370): 0x00000000
    Read at address  0x46022380 (0xffffb9c24380): 0x00000000
    Read at address  0x460223A0 (0xffff83f653a0): 0x00000000
    Read at address  0x460223A4 (0xffff916c73a4): 0x0000000C
    Read at address  0x460223A8 (0xffffaf89d3a8): 0x00000204
    Read at address  0x460223AC (0xffff9a1e43ac): 0x00000000
    Read at address  0x460223B0 (0xffffb33933b0): 0x00000000
    Read at address  0x460223B4 (0xffff9efa03b4): 0x00000000
    Read at address  0x460223B8 (0xffffb18323b8): 0x00000000
    Read at address  0x460223BC (0xffff9c2bf3bc): 0x00000000
    Read at address  0x46032000 (0xffff99df1000): 0x00000000
    Read at address  0x4603A000 (0xffffa5893000): 0x00000018
    Read at address  0x4603A004 (0xffffbdff2004): 0x0000000D
    Read at address  0x4603A008 (0xffffad9a9008): 0x0000000B
    Read at address  0x4603A010 (0xffff82a74010): 0x00000000
    Read at address  0x4603A018 (0xffffaff93018): 0x00000000
    Read at address  0x4603A020 (0xffffbf4f5020): 0x00000000
    Read at address  0x4603A024 (0xffffab7bc024): 0x00000000
    Read at address  0x4603A028 (0xffff9e24e028): 0x00000000
    Read at address  0x4603A02C (0xffff9d03502c): 0x00000000
    Read at address  0x4603A030 (0xffffa8c2e030): 0x00000F4A
    Read at address  0x4603A034 (0xffff87adf034): 0x00000000
    Read at address  0x4603A038 (0xffff868c7038): 0x00000000
    Read at address  0x4603A03C (0xffffbcdcc03c): 0x00000000
    Read at address  0x4603A064 (0xffff81dc6064): 0x00000000
    Read at address  0x4603A068 (0xffffb425f068): 0x00000006
    Read at address  0x4603A06C (0xffffb9f2f06c): 0x00000005
    Read at address  0x4603A070 (0xffff8e187070): 0x00000006
    Read at address  0x4603A074 (0xffffbc771074): 0x00000007
    Read at address  0x4603A078 (0xffff93b00078): 0x00000000
    Read at address  0x4603A07C (0xffffbbf8907c): 0x00000000
    Read at address  0x4603A080 (0xffffbde63080): 0x00000F4A
    Read at address  0x4603A084 (0xffff9a382084): 0x00000000
    Read at address  0x4603A088 (0xffff9e4a5088): 0x00000000
    Read at address  0x4603A08C (0xffff84d2208c): 0x00000000
    Read at address  0x4603A090 (0xffff9006e090): 0x00000000
    Read at address  0x4603A094 (0xffff82614094): 0x00000000
    Read at address  0x4603A098 (0xffff9c907098): 0x00000000
    Read at address  0x4603A09C (0xffffa03c609c): 0x00000000
    Read at address  0x4603A0A0 (0xffffb29710a0): 0x00000000
    Read at address  0x4603A0A4 (0xffff9c2200a4): 0x00000000
    Read at address  0x4603A0A8 (0xffff9daf40a8): 0x00000000
    Read at address  0x4603A0AC (0xffff868790ac): 0x00000000
    Read at address  0x4603A0B0 (0xffffbd90a0b0): 0x00000000
    Read at address  0x4603A0B4 (0xffffb76150b4): 0x00000000
    Read at address  0x4603A0B8 (0xffff82d510b8): 0x00000000
    Read at address  0x4603A0BC (0xffff925590bc): 0x00000000
    Read at address  0x4603A0C0 (0xffff93c460c0): 0x00000000
    Read at address  0x4603A0C4 (0xffffb70630c4): 0x00000000
    Read at address  0x4603A0C8 (0xffff8b9540c8): 0x00000000
    Read at address  0x4603A0CC (0xffff943d90cc): 0x00000000
    Read at address  0x4603A0D0 (0xffff8fc480d0): 0x00000000
    Read at address  0x4603A0D4 (0xffff86e8d0d4): 0x00000000
    Read at address  0x4603A0D8 (0xffffac9fc0d8): 0x00000000
    Read at address  0x4603A0DC (0xffffa08640dc): 0x00000000
    Read at address  0x4603A140 (0xffff9baf5140): 0x00000000
    Read at address  0x4603A144 (0xffffa10ee144): 0x00000000
    Read at address  0x4603A148 (0xffff8c315148): 0x00000000
    Read at address  0x4603A14C (0xffff8df7e14c): 0x00000000
    Read at address  0x4603A150 (0xffffa478a150): 0x00000000
    Read at address  0x4603A154 (0xffff9b6fe154): 0x00000000
    Read at address  0x4603A17C (0xffffbee6117c): 0x00000000
    Read at address  0x4603A200 (0xffff8a1ea200): 0x00000000
    Read at address  0x4603A204 (0xffffb91c1204): 0x00000000
    Read at address  0x4603A208 (0xffff86e94208): 0x00000000
    Read at address  0x4603A20C (0xffffad01220c): 0x00000000
    Read at address  0x4603A210 (0xffff90e18210): 0x00000000
    Read at address  0x4603A214 (0xffff932eb214): 0x00000000
    Read at address  0x4603A218 (0xffffb1412218): 0x00000000
    Read at address  0x4603A21C (0xffffb3c7821c): 0x00000000
    Read at address  0x4603A220 (0xffff98d0e220): 0x00000000
    Read at address  0x4603A224 (0xffffa10f8224): 0x00000000
    Read at address  0x4603A228 (0xffff97bd5228): 0x00000000
    Read at address  0x4603A22C (0xffff9c42922c): 0x00000000
    Read at address  0x4603A230 (0xffff999c8230): 0x00000000
    Read at address  0x4603A234 (0xffff8ab07234): 0x00000018
    Read at address  0x4603A238 (0xffff9c1b2238): 0x0000000D
    Read at address  0x4603A23C (0xffff8e6a723c): 0x0000000B
    Read at address  0x4603A240 (0xffffaa1b5240): 0x00000000
    Read at address  0x4603A244 (0xffff943f1244): 0x00000000
    Read at address  0x4603A248 (0xffff8f2af248): 0x00000000
    Read at address  0x4603A24C (0xffff8481c24c): 0x00000000
    Read at address  0x4603A250 (0xffffaa574250): 0x00000000
    Read at address  0x4603A254 (0xffffbc2b4254): 0x00000000
    Read at address  0x4603A258 (0xffffa1d30258): 0x00000000
    Read at address  0x4603A25C (0xffff9641525c): 0x00000000
    Read at address  0x4603A260 (0xffff81cb4260): 0x00000000
    Read at address  0x4603A264 (0xffffbece6264): 0x00000F4A
    Read at address  0x4603A268 (0xffff810fa268): 0x00000006
    Read at address  0x4603A26C (0xffffb27eb26c): 0x00000005
    Read at address  0x4603A270 (0xffffa207d270): 0x00000006
    Read at address  0x4603A274 (0xffffaf226274): 0x00000007
    Read at address  0x4603A278 (0xffffbba5b278): 0x00000000
    Read at address  0x4603A27C (0xffff946c927c): 0x00000000
    Read at address  0x4603A280 (0xffff8e64d280): 0x00000F4A
    Read at address  0x4603A284 (0xffffba3e2284): 0x00000000
    Read at address  0x4603A288 (0xffff82a23288): 0x00000000
    Read at address  0x4603A28C (0xffffa861528c): 0x00000000
    Read at address  0x4603A290 (0xffffa61a4290): 0x00000000
    Read at address  0x4603A294 (0xffffb2515294): 0x00000000
    Read at address  0x4603A298 (0xffff81a99298): 0x00000000
    Read at address  0x4603A29C (0xffffb66d229c): 0x00000000
    Read at address  0x4603A2A0 (0xffff93d892a0): 0x00000000
    Read at address  0x4603A2A4 (0xffff810042a4): 0x00000000
    Read at address  0x4603A2A8 (0xffffa0cc32a8): 0x00000000
    Read at address  0x4603A2AC (0xffff93d312ac): 0x00000000
    Read at address  0x4603A2B0 (0xffff8a5512b0): 0x00000000
    Read at address  0x4603A2B4 (0xffffab6ce2b4): 0x00000000
    Read at address  0x4603A2B8 (0xffffade002b8): 0x00000000
    Read at address  0x4603A2BC (0xffff8db2d2bc): 0x00000000
    Read at address  0x4603A2C0 (0xffffad5642c0): 0x00000000
    Read at address  0x4603A2C4 (0xffff8ee352c4): 0x00000000
    Read at address  0x4603A2C8 (0xffffaec892c8): 0x00000000
    Read at address  0x4603A2CC (0xffffa46532cc): 0x00000000
    Read at address  0x4603A2D0 (0xffffa189e2d0): 0x00000000
    Read at address  0x4603A2D4 (0xffffac31e2d4): 0x00000000
    Read at address  0x4603A2D8 (0xffff909fc2d8): 0x00000000
    Read at address  0x4603A2DC (0xffffbb8ff2dc): 0x00000000
    Read at address  0x4603A340 (0xffff9df02340): 0x00000000
    Read at address  0x4603A344 (0xffffb59f8344): 0x00000000
    Read at address  0x4603A348 (0xffffbda43348): 0x00000000
    Read at address  0x4603A34C (0xffffaed2834c): 0x00000000
    Read at address  0x4603A350 (0xffff866a6350): 0x00000000
    Read at address  0x4603A354 (0xffff8e4da354): 0x00000000
    Read at address  0x4603A37C (0xffff9e42737c): 0x00000000
    Read at address  0x4603A380 (0xffff991cb380): 0x00000018
    Read at address  0x4603A3A0 (0xffffaac373a0): 0x00000F4A
    Read at address  0x4603A3C0 (0xffffa94893c0): 0x00000000
    Read at address  0x4603A3E0 (0xffffb722f3e0): 0x00000000
    Read at address  0x4603D000 (0xffff9e146000): 0x4E8A010B
    Read at address  0x4603D004 (0xffffa46b2004): 0x00020021
    Read at address  0x4603D008 (0xffff9cd56008): 0x00000000
    Read at address  0x4603D00C (0xffff8980f00c): 0x00000000
    Read at address  0x4603D010 (0xffff99615010): 0xD244B1FA
    Read at address  0x4603D014 (0xffffae303014): 0x00000000
    Read at address  0x4603D018 (0xffffb512d018): 0x00000000
    Read at address  0x4603D01C (0xffff80b8701c): 0x00000000
    Read at address  0x4603D020 (0xffffadff9020): 0x00000000
    Read at address  0x4603D024 (0xffff935d1024): 0x00000000
    Read at address  0x4603D028 (0xffff88063028): 0x00000001
    Read at address  0x4603D02C (0xffffafa9902c): 0x00000000
    Read at address  0x4603D030 (0xffff9c10c030): 0x00000000
    Read at address  0x4603D034 (0xffffa2988034): 0x00000000
    Read at address  0x4603D038 (0xffff94000038): 0x00000000
    Read at address  0x4603D03C (0xffff88e0803c): 0x00000000
    Read at address  0x4603D040 (0xffff872a2040): 0x00000000
    Read at address  0x4603D044 (0xffff97082044): 0x00000000
    Read at address  0x4603D048 (0xffff90862048): 0x00000000
    Read at address  0x4603D04C (0xffffacbd804c): 0x00000001
    Read at address  0x4603D050 (0xffff94056050): 0x00000000
    Read at address  0x4603D054 (0xffff9dc57054): 0x00000000
    Read at address  0x4603D058 (0xffff9b5be058): 0x00000000
    Read at address  0x4603D200 (0xffffa1c74200): 0x00000000
    Read at address  0x4603D204 (0xffffb45d2204): 0x00000000
    Read at address  0x4603D208 (0xffff82593208): 0x00000000
    Read at address  0x4603D20C (0xffff9285e20c): 0x00000000
    Read at address  0x4603D210 (0xffffa9f74210): 0x00000000
    Read at address  0x4603D214 (0xffff8d8e7214): 0x00000000
    Read at address  0x4603D218 (0xffffa6b85218): 0x00000000
    Read at address  0x4603E000 (0xffffb174b000): 0x00293904
    Read at address  0x4603E004 (0xffff8d605004): 0x00000140
    Read at address  0x4603E008 (0xffff97108008): 0x80000005
    Read at address  0x4603E00C (0xffffa04ed00c): 0x00000000
    Read at address  0x4603E010 (0xffff8cc14010): 0x00051615
    Read at address  0x4603E014 (0xffff99550014): 0x00002706
    Read at address  0x4603E01C (0xffffaebb301c): 0x00000000
    Read at address  0x4603E020 (0xffffbe746020): 0x00000008
    Read at address  0x4603E034 (0xffff82ec3034): 0x00000004
    Read at address  0x4603E038 (0xffffa093f038): 0x10000100
    Read at address  0x4603E03C (0xffffa70c003c): 0x5E0000FC
    Read at address  0x4603E040 (0xffff89442040): 0x00000013
    Read at address  0x4603E090 (0xffffadf3e090): 0x00000000
    Read at address  0x4603E094 (0xffff91de6094): 0x00000000
    Read at address  0x4603E098 (0xffffade0c098): 0x00000000
    Read at address  0x4603E09C (0xffffbc96309c): 0x00000000
    Read at address  0x4603E0B8 (0xffff87bcf0b8): 0x00000000
    Read at address  0x4603E0BC (0xffff8fac70bc): 0x00000000
    Read at address  0x4603E0C0 (0xffff8cc5c0c0): 0x00000003
    Read at address  0x4603E0C4 (0xffffb79610c4): 0x00000002
    Read at address  0x4603E0FC (0xffffab5e30fc): 0x00000000
    Read at address  0x4603E100 (0xffffb73c0100): 0x00000000
    Read at address  0x4603E104 (0xffffa99c2104): 0x00000000
    Read at address  0x4603E108 (0xffffb5d1f108): 0x00000000
    Read at address  0x4603E10C (0xffffb01da10c): 0x00000000
    Read at address  0x4603E110 (0xffff9ae7b110): 0x00000000
    Read at address  0x4603E118 (0xffffba2a5118): 0x00000000
    Read at address  0x4603E11C (0xffff9715211c): 0x00000000
    Read at address  0x4603E120 (0xffff9ba64120): 0x00000000
    Read at address  0x4603E124 (0xffffad79a124): 0x00000000
    Read at address  0x4603E128 (0xffffb30e1128): 0x00000000
    Read at address  0x4603E12C (0xffffa2e6a12c): 0x00000000
    Read at address  0x4603E134 (0xffff7fe33134): 0x00008000
    Read at address  0x4603E138 (0xffff85e66138): 0x00000000
    Read at address  0x4603E13C (0xffff8bace13c): 0x00000000
    root@j784s4-evm:~/mcu_cpsw2g# 
    root@j784s4-evm:~/mcu_cpsw2g# uname -a
    Linux j784s4-evm 5.10.162-00001-g4f12ba8f0bb6 #2 SMP PREEMPT Sat Jul 29 18:05:40 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
    root@j784s4-evm:~/mcu_cpsw2g# 
    root@j784s4-evm:~/mcu_cpsw2g# dmesg | grep KUKA
    [    0.000000] Machine model: KUKA J784S4 1CPP EP BOARD
    root@j784s4-evm:~/mcu_cpsw2g# 
    root@j784s4-evm:~/mcu_cpsw2g# ethtool eth0
    Settings for eth0:
       Supported ports: [ TP      MII ]
       Supported link modes:   10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Supported pause frame use: Symmetric
       Supports auto-negotiation: Yes
       Supported FEC modes: Not reported
       Advertised link modes:  10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Advertised pause frame use: Symmetric
       Advertised auto-negotiation: Yes
       Advertised FEC modes: Not reported
       Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                            100baseT/Half 100baseT/Full
       Link partner advertised pause frame use: Symmetric Receive-only
       Link partner advertised auto-negotiation: Yes
       Link partner advertised FEC modes: Not reported
       Speed: 100Mb/s
       Duplex: Full
       Auto-negotiation: on
       Port: Twisted Pair
       PHYAD: 2
       Transceiver: external
       MDI-X: Unknown
       Supports Wake-on: gs
       Wake-on: d
            SecureOn password: 00:00:00:00:00:00
            Current message level: 0x000020f7 (8439)
                                   drv probe link ifdown ifup rx_err tx_err hw
       Link detected: yes
    root@j784s4-evm:~/mcu_cpsw2g# 
    root@j784s4-evm:~/mcu_cpsw2g#         
    root@j784s4-evm:~/mcu_cpsw2g# dmesg | grep -E 'mdio|cpsw'
    [    3.428270] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    3.437780] davinci_mdio 46000f00.mdio: phy[2]: device 46000f00.mdio:02, driver TI DP83822
    [    3.446063] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    3.458898] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    3.466103] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    3.472387] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:0
    [    3.660269] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    3.669642] davinci_mdio 46000f00.mdio: phy[2]: device 46000f00.mdio:02, driver TI DP83822
    [    3.677926] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    3.690754] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    3.697960] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    3.704216] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:0
    [    3.714257] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    6.580035] am65-cpsw-nuss 46000000.ethernet eth0: PHY [46000f00.mdio:02] driver [TI DP83822] (irq=POLL)
    [    6.592256] am65-cpsw-nuss 46000000.ethernet eth0: configuring for phy/rmii link mode
    [    9.677139] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    root@j784s4-evm:~/mcu_cpsw2g# 
    
    

    The “evm_mcu_cpsw2g_reg_dump.log ” is J784S4 evm log. It is normal.

    The “customer_mcu_cpsw2g_reg_dump.log” is customer's problem board log. It shows link up, but cannot ping to PC.

    EVM is CPSW2G + DP83867, RGMII mode, 1000Mb/s.

    Customer's board is CPSW2G + DP83822, RMII mode, 100Mb/s.

    From the mac loopback test log, it show no packet is received from MAC port.

    The kernel customer using is build from Linux SDK 08.06, non RT-linux kernel.

    Any more debugging suggestions based on these results would be very helpful, thanks a lot!

    Kind Regards,

    Kevin

  • Hi, Tanmay

          Thank you very much for your support!

          We find one cpsw CLK problem in SOC, and two problems in PHY status register:

          1. cpsw CLK problem

    the mcu CPSW2G use internel 50MHz clock defaultly:

    but there is no clock seen from clk measurement dump:

        2. the two prolems in DP83822 PHY status register:

         3. RESET signal affects REF_CLK clock

           if connect Reset from SoC to PHY, the 50MHz REF_CLK outputs incorrectly, now we only use power-up RC reset, disconnect the reset from SoC to PHY, which means there is no hot-reset for PHY, is there any issue if we do so?

    Best Regards!

    Johnson.Xu

  • Hi,

    the mcu CPSW2G use internel 50MHz clock defaultly:

    As per the value CPSW is configured for Internal RMII clock.

    Selects the rmii clock (rmii_mhz_50_clk) source. This defaults to the internal 50 MHz clock source.
    0h - MCU_PLL2_HSDIV0_CLKOUT / 5
    1h - MCU_RMII_REFCLK (pin)

    Can you please set the CTRL_MMR_CFG0_MCU_ENET_CLKSEL register (0x40F08050) .MCU_ENET_CLKSEL_RMII_CLK_SEL to 1 (i.e. bit 0 to 1)  for external clock usage and check once.

    Best Regards,
    Sudheer