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.

PROCESSOR-SDK-AM62X: the ethernt link is up but ping doesnot work

Part Number: PROCESSOR-SDK-AM62X

Hi TI,

we are using DP83822 PHY for our developement. with the following configuration

rgmii-rxid , 100Mbps/Full - flow control rx/tx.

we are using the default dtsi which comes with EVAL board AM62X. 

Even though we are using only one PHY (eth0 and connected to RGMII1), However when ever we remove the ethernet cable it says "eth1 is down" instead of "eth0"  

we can see from our schematic we connected to only RGMII1.

if we remove ethernet1 and RGMII2 from dtsi file, then even the eth0 is getting removed.

could you please help us in resolving the issue.

Thanks and Regards,

Swapna

  • Hi, 

    Could you please attach your schematic snippet showing the CPSW interface(s). 

    Could you also please attach your boot log?

    Also please attach the results of the following commands:

    - ifconfig -a

    - ethtool eth0

    - ethtool eth1

    - ethtool -S eth0

    - ethtool -S eth1

    I would also recommend setting the link up between your board and a Linux PC where wireshark can be run. This will tell us if packets are at least being transmitted from your board.

    Best Regards,

    Schuyler

  • Hi Schuyler,

    From the last post we have disabled the eth1 and only enabled eth0.

    The schematic snippet is as below:

    Boot log:

    U-Boot SPL 2021.01-00001-g45cb7e44ae-dirty (Oct 19 2023 - 15:04:50 +0530)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
    SPL initial stack usage: 13424 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
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Loading Environment from MMC... *** Warning - No MMC card found, using default environment
    
    Starting ATF on ARM64 core...
    
    
    U-Boot SPL 2021.01-00001-g45cb7e44ae-dirty (Oct 19 2023 - 15:04:37 +0530)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
    Trying to boot from MMC2
    
    
    U-Boot 2021.01-00001-g45cb7e44ae-dirty (Oct 19 2023 - 15:04:37 +0530)
    
    SoC:   AM62X SR1.0 GP
    Model: Texas Instruments AM625 SK
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    DRAM:  2 GiB
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
    Loading Environment from MMC... OK
    In:    serial@2860000
    Out:   serial@2860000
    Err:   serial@2860000
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Net:   eth0: ethernet@8000000port@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'
    1490 bytes read in 3 ms (484.4 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    Running uenvcmd ...
    1 bytes read in 3 ms (0 Bytes/s)
    Already setup.
    19147264 bytes read in 205 ms (89.1 MiB/s)
    55406 bytes read in 4 ms (13.2 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 000000008feef000, end 000000008fffffff ... OK
    
    Starting kernel ...
    
    [    1.091225] printk: console [ttyS2] enabled
    [    1.099668] printk: bootconsole [ns16550a0] disabled
    [    1.112300] [drm] Initialized tidss 1.0.0 20180215 for 30200000.dss on minor 0
    [    1.122189] tidss 30200000.dss: vp1: Clock rate 6250000 differs over 5% from requested 5850000
    [    1.138834] Console: switching to colour frame buffer device 40x30
    [    1.169164] tidss 30200000.dss: [drm] fb0: tidssdrmfb frame buffer device
    [    1.178915] spi-nor spi0.0: unrecognized JEDEC id bytes: f0 00 00 00 00 00
    [    1.185827] spi-nor: probe of spi0.0 failed with error -2
    [    1.197288] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
    [    1.241342] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.249979] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver unknown
    [    1.257920] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
    [    1.270712] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
    [    1.277844] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
    [    1.284520] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0
    [    1.294911] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
    [    1.304577] rtc-ti-k3 2b1f0000.rtc: registered as rtc0
    [    1.309774] rtc-ti-k3 2b1f0000.rtc: setting system clock to 1970-01-01T00:00:02 UTC (2)
    [    1.422176] mmc2: CQHCI version 5.10
    [    1.422214] mmc0: CQHCI version 5.10
    [    1.431053] davinci-mcasp 2b10000.mcasp: IRQ common not found
    [    1.448894] pca953x 1-0022: supply vcc not found, using dummy regulator
    [    1.455645] pca953x 1-0022: using AI
    [    1.465948] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
    [    1.486215] vdd_mmc1: supplied by vcc_3v3_sys
    [    1.492429] wlan_lten: supplied by vcc_3v3_sys
    [    1.498281] debugfs: Directory 'pd:53' with parent 'pm_genpd' already present!
    [    1.498981] mmc1: CQHCI version 5.10
    [    1.505607] debugfs: Directory 'pd:52' with parent 'pm_genpd' already present!
    [    1.516481] debugfs: Directory 'pd:51' with parent 'pm_genpd' already present!
    [    1.524029] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    1.542694] ALSA device list:
    [    1.542802] mmc1: SDHCI controller on fa00000.mmc [fa00000.mmc] using ADMA 64-bit
    [    1.545686]   No soundcards found.
    [    1.562893] mmc0: Command Queue Engine enabled
    [    1.567369] mmc0: new HS200 MMC card at address 0001
    [    1.572974] mmcblk0: mmc0:0001 S0J56X 14.8 GiB
    [    1.577690] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
    [    1.583790] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
    [    1.589874] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (237:0)
    [    1.600224]  mmcblk0: p1
    [    1.614051] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
    [    1.621427] mmcblk1: mmc1:aaaa SL16G 14.8 GiB
    [    1.631071]  mmcblk1: p1 p2
    [    2.939389] sdhci-am654 fa20000.mmc: Power on failed
    [    2.974946] mmc2: SDHCI controller on fa20000.mmc [fa20000.mmc] using ADMA 64-bit
    [    3.060618] EXT4-fs (mmcblk1p2): recovery complete
    [    3.066427] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    3.074590] VFS: Mounted root (ext4 filesystem) on device 179:98.
    [    3.083874] devtmpfs: mounted
    [    3.088159] Freeing unused kernel memory: 1920K
    [    3.092789] Run /sbin/init as init process
    [    3.223442] systemd[1]: System time before build time, advancing clock.
    [    3.266632] NET: Registered protocol family 10
    [    3.272108] Segment Routing with IPv6
    [    3.299461] 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 -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    3.321595] systemd[1]: Detected architecture arm64.
    
    Welcome to Arago 2021.09!
    
    [    3.362154] systemd[1]: Set hostname to <am62xx-evm>.
    [    3.586429] systemd[1]: /lib/systemd/system/startwlansta.service:7: Unknown key name 'After' in section 'Service', ignoring.
    [    3.601268] systemd[1]: /lib/systemd/system/startwlanap.service:7: Unknown key name 'After' in section 'Service', ignoring.
    [    3.625376] systemd[1]: /lib/systemd/system/irqbalanced.service:6: Unknown key name 'ConditionCPUs' in section 'Unit', ignoring.
    [    3.655286] 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 file accordingly.
    [    3.753196] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.763553] systemd[1]: Created slice system-getty.slice.
    [  OK  ] Created slice system-getty.slice.
    [    3.785521] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.793944] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    3.817510] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.825585] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    3.845851] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password …ts to Console Directory Watch.
    [    3.869662] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R…uests to Wall Directory Watch.
    [    3.893630] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Paths.
    [    3.909483] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    3.929449] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Slices.
    [    3.945481] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    3.984970] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    4.009692] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    4.036641] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    4.057882] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    4.084773] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
    [    4.093655] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    4.118110] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    4.134259] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    4.158039] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    4.177907] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    4.202322] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    4.222099] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    4.250146] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    4.273223] systemd[1]: Mounting Temporary Directory (/tmp)...
             Mounting Temporary Directory (/tmp)...
    [    4.294535] systemd[1]: Starting Create list of static device nodes for the current kernel...
             Starting Create list of st…odes for the current kernel...
    [    4.327926] systemd[1]: Starting Start psplash boot splash screen...
             Starting Start psplash boot splash screen...
    [    4.354298] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    4.377833] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
    [    4.393040] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    4.415812] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    4.435688] cryptodev: loading out-of-tree module taints kernel.
    [    4.438640] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems cryptodev: driver 1.10 loaded.
    [    4.457312] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [0m...
    [    4.482762] systemd[1]: Starting udev Coldplug all Devices...
             Starting udev Coldplug all Devices...
    [    4.503754] systemd[1]: Started Start psplash boot splash screen.
    [  OK  ] Started Start psplash boot splash screen.
    [    4.526266] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    4.542241] systemd[1]: Started Journal Service.
    [  OK  ] 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).
    [  OK  ] Started Create list of sta… nodes for the current kernel.
    [  OK  ] Started Load Kernel Modules.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Mounting Kernel Configuration File System...
    [  OK  ] Started Start psplash-syst…progress communication helper.
             Starting Flush Journal to Persistent Storage...
    [    4.760669] systemd-journald[203]: Received client request to flush runtime journal.
    [    4.769738] random: systemd: uninitialized urandom read (16 bytes read)
             Starting Apply Kernel Variables...
    [    4.782860] random: systemd-journal: uninitialized urandom read (16 bytes read)
    [    4.794786] random: systemd: uninitialized urandom read (16 bytes read)
             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 Create Static Device Nodes in /dev.
    [  OK  ] Started udev Coldplug all Devices.
    [  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 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.
    [    5.497130] k3-m4-rproc 5000000.m4fss: assigned reserved memory node m4f-dma-memory@9cb00000
    [    5.516371] k3-m4-rproc 5000000.m4fss: configured M4 for remoteproc mode
    [    5.597038] k3-m4-rproc 5000000.m4fss: local reset is deasserted for device
    [    5.646629] remoteproc remoteproc0: 5000000.m4fss is available
    [    5.677778] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    5.692500] remoteproc remoteproc0: powering up 5000000.m4fss
    [    5.694221] PVR_K:  241: Read BVNC 33.15.11.3 from HW device registers
    [    5.698471] remoteproc remoteproc0: Booting fw image am62-mcu-m4f0_0-fw, size 54860
    [    5.710376] platform 78000000.r5f: configured R5F for IPC-only mode
    [    5.722225] PVR_K:  241: RGX Device registered with BVNC 33.15.11.3
    [    5.727756] platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@9da00000
    [    5.737489]  remoteproc0#vdev0buffer: assigned reserved memory node m4f-dma-memory@9cb00000
    [    5.746523] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    5.747689] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
    [    5.752157]  remoteproc0#vdev0buffer: registered virtio0 (type 7)
    [    5.754018] remoteproc remoteproc1: 78000000.r5f is available
    [    5.754100] remoteproc remoteproc1: attaching to 78000000.r5f
    [    5.754285] platform 78000000.r5f: R5F core initialized in IPC-only mode
    [    5.754299]  remoteproc1#vdev0buffer: assigned reserved memory node r5f-dma-memory@9da00000
    [    5.754707] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    5.754739]  remoteproc1#vdev0buffer: registered virtio1 (type 7)
    [    5.754744] remoteproc remoteproc1: remote processor 78000000.r5f is now attached
    [    5.765918] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe
    [    5.768677] [drm] Initialized pvr 1.15.6133109 20170530 for fd00000.gpu on minor 1
    [    5.771501] remoteproc remoteproc0: remote processor 5000000.m4fss is now up
    [    5.834042] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xd
    [    5.842112] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xe
    [    5.983723] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.028278] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.037813] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.747448] remoteproc remoteproc2: 30074000.pru is available
    [    6.774134] remoteproc remoteproc3: 30078000.pru is available
    [    6.797900] cdns-csi2rx: probe of 30101000.csi-bridge failed with error -22
    [    6.945409] random: crng init done
    [    6.948887] random: 180 urandom warning(s) missed due to ratelimiting
    [  OK  ] Reached target Hardware activated USB gadget.
    [  OK  ] Started Load/Save Random Seed.
    [    6.985030] usbcore: registered new interface driver usbfs
    [    6.991309] usbcore: registered new interface driver hub
    [    6.997288] usbcore: registered new device driver usb
    [    7.026784] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    7.032466] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
    [    7.040498] xhci-hcd xhci-hcd.1.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000000000010010
    [    7.050103] xhci-hcd xhci-hcd.1.auto: irq 494, io mem 0x31100000
    [    7.056407] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    7.061974] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
    [    7.069775] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
    [    7.076629] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    [    7.085088] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    7.092450] usb usb1: Product: xHCI Host Controller
    [    7.097408] usb usb1: Manufacturer: Linux 5.10.168-g2c23e6c538 xhci-hcd
    [    7.104072] usb usb1: SerialNumber: xhci-hcd.1.auto
    [    7.109972] hub 1-0:1.0: USB hub found
    [    7.113917] hub 1-0:1.0: 1 port detected
    [  OK  ] Created slice system-systemd\x2dfsc[    7.120109] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    k.slice.
    [    7.132133] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
    [    7.141625] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    7.148951] usb usb2: Product: xHCI Host Controller
    [    7.153920] usb usb2: Manufacturer: Linux 5.10.168-g2c23e6c538 xhci-hcd
    [    7.160911] usb usb2: SerialNumber: xhci-hcd.1.auto
    [    7.166904] hub 2-0:1.0: USB hub found
    [    7.170902] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
    [  OK  ] Found device /dev/mmcblk0p1.
             Starting File System Check on /dev/mmcblk0p1...
    [  OK  ] Found device /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...
             Starting File System Check on /dev/mmcblk1p1...
    [  OK  ] Listening on Docker Socket for the API.
    [  OK  ] Started Reboot and dump vmcore via kexec.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting Save/Restore Sound Card State...
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started Periodic Command Scheduler.
    [  OK  ] Started D-Bus System Message Bus.
             Starting Print notice about GPLv3 packages...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
    [  OK  ] Started irqbalance daemon.
             Starting rc.pvr.service...
             Starting startwlanap...
             Starting startwlansta...
             Starting Login Service...
    [  OK  ] Started TEE Supplicant.
    [  OK  ] Started File System Check on /dev/mmcblk0p1.
    [  OK  ] Started Save/Restore Sound Card State.
    [  OK  ] Started IPv6 Packet Filtering Framework.
    [  OK  ] Started IPv4 Packet Filtering Framework.
    [  OK  ] Started startwlansta.
    [  OK  ] Started startwlanap.
    [  OK  ] Reached target Network (Pre).
    [  OK  ] Reached target Sound Card.
             Mounting /run/media/mmcblk0p1...
             Starting Network Service...
    [  OK  ] Started File System Check on /dev/mmcblk1p1.
             Mounting /run/media/mmcblk1p1...
    [    7.667133] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
    [    7.685483] ext4 filesystem being mounted at /run/media/mmcblk0p1 supports timestamps until 2038 (0x7fffffff)
    [  OK  ] Mounted /run/media/mmcblk0p1.
    [  OK  ] Mounted /run/media/mmcblk1p1.
    [  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
    [    7.863426] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [  OK  ] Started Network Service.[    7.924053] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    
             Starting Wait for Network to be Configured...
             Starting Network Name Resolution...
    [    8.009168] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [Generic PHY] (irq=POLL)
    [    8.021661] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    [    8.041706] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [  OK  ] Started Login Service.
    [  OK  ] Started rc.pvr.service.
             Starting weston.service...
    [  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 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 Enable and configure wl18xx bluetooth stack.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Simple Network Man…ement Protocol (SNMP) Daemon..
    [    9.239282] startwlanap.sh[723]: sed: unmatched '/'
    [    9.259083] startwlanap.sh[724]: adding wlan1 interface
    [    9.279277] startwlanap.sh[726]: command failed: No such file or directory (-2)
    [    9.321231] startwlanap.sh[727]: Configuration file: /usr/share/wl18xx/hostapd.conf
    [    9.361103] startwlanap.sh[727]: Could not read interface wlan1 flags: No such device
    [    9.361632] startwlanap.sh[727]: nl80211: Driver does not support authentication/association or connect commands
    [    9.361911] startwlanap.sh[727]: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
    [    9.378480] startwlanap.sh[727]: Could not read interface wlan1 flags: No such device
    [    9.378912] startwlanap.sh[727]: nl80211 driver initialization failed.
    [    9.379119] startwlanap.sh[727]: wlan1: interface state UNINITIALIZED->DISABLED
    [    9.379254] startwlanap.sh[727]: wlan1: AP-DISABLED
    [    9.379379] startwlanap.sh[727]: wlan1: CTRL-EVENT-TERMINATING
    [    9.379494] startwlanap.sh[727]: hostapd_free_hapd_data: Interface wlan1 wasn't started
    [  OK  ] Started Synchronize System and HW clocks.
    ***************************************************************
    ***************************************************************
    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
            gzip
            hidapi
            less
            libasm1
            libbfd
            libdw1
            libelf1
            libgdbm-compat4
            libgdbm-dev
            libgdbm6
            libgettextlib
            libgettextsrc
            libgmp10
            libidn2-0
            libmpc3
            libmpfr6
            libreadline-dev
            libreadline8
            libunistring2
            m4-dev
            m4
            make
            nettle
            parted
            tar
            which
    
    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 Print notice about GPLv3 packages.
    [   10.325709] startwlanap.sh[888]: SIOCSIFADDR: No such device
    [   10.369482] startwlanap.sh[888]: wlan1: ERROR while getting interface flags: No such device
    [   10.388970] startwlanap.sh[888]: SIOCSIFNETMASK: No such device
    [   10.405460] startwlanap.sh[888]: wlan1: ERROR while getting interface flags: No such device
    [   11.543664] startwlanap.sh[909]: iperf3: error - unable to start listener for connections: Cannot assign requested address
    [   11.560534] startwlanap.sh[909]: iperf3: exiting
    [  OK  ] Started weston.service.
             Starting telnetd.service...
    [  OK  ] Started telnetd.service.
             Starting hmi_demo.service...
             Starting LSB: Expand Rootfs of boot device...
    [  OK  ] Started LSB: Expand Rootfs of boot device.
    [   12.072628] PVR_K:  915: RGX Firmware image 'rgx.fw.33.15.11.3' loaded
    [   12.109337] PVR_K:  915: Shader binary image 'rgx.sh.33.15.11.3' loaded
    [  OK  ] Started hmi_demo.service.
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project am62xx-evm ttyS2
    
    Arago 2021.09 am62xx-evm ttyS2
    
    am62xx-evm login: root
    root@am62xx-evm:~#

    Command responses:

    Also we have installed wireshark on LINUX PC and we can packets are being transferred from Target board to LINUX host, however we don't see the packets being received by the target board.

    We tried to read the registers from DP83822, either we are getting 0x0000 or ox FFFF.

    DTS configuration:

    &cpsw3g {
    pinctrl-names = "default";
    pinctrl-0 = <&main_mdio1_pins_default
    &main_rgmii1_pins_default>;
    //&main_rgmii2_pins_default>;
    };

    &cpsw_port1 {
    phy-mode = "rgmii-rxid";
    phy-handle = <&cpsw3g_phy0>;
    };

    &cpsw_port2 {
    //phy-mode = "rgmii-rxid";
    //phy-handle = <&cpsw3g_phy1>;
    status = "disabled";
    };

    &cpsw3g_mdio {
    cpsw3g_phy0: ethernet-phy@0 {
    reg = <0>;
    ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
    ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
    ti,min-output-impedance;
    };

    main_mdio1_pins_default: main-mdio1-pins-default {
    pinctrl-single,pins = <
    AM62X_IOPAD(0x160, PIN_OUTPUT, 0) /* (AD24) MDIO0_MDC */
    AM62X_IOPAD(0x15c, PIN_INPUT, 0) /* (AB22) MDIO0_MDIO */
    >;
    };

    main_rgmii1_pins_default: main-rgmii1-pins-default {
    pinctrl-single,pins = <
    AM62X_IOPAD(0x14c, PIN_INPUT, 0) /* (AB17) RGMII1_RD0 */
    AM62X_IOPAD(0x150, PIN_INPUT, 0) /* (AC17) RGMII1_RD1 */
    AM62X_IOPAD(0x154, PIN_INPUT, 0) /* (AB16) RGMII1_RD2 */
    AM62X_IOPAD(0x158, PIN_INPUT, 0) /* (AA15) RGMII1_RD3 */
    AM62X_IOPAD(0x148, PIN_INPUT, 0) /* (AD17) RGMII1_RXC */
    AM62X_IOPAD(0x144, PIN_INPUT, 0) /* (AE17) RGMII1_RX_CTL */
    AM62X_IOPAD(0x134, PIN_OUTPUT, 0) /* (AE20) RGMII1_TD0 */
    AM62X_IOPAD(0x138, PIN_OUTPUT, 0) /* (AD20) RGMII1_TD1 */
    AM62X_IOPAD(0x13c, PIN_OUTPUT, 0) /* (AE18) RGMII1_TD2 */
    AM62X_IOPAD(0x140, PIN_OUTPUT, 0) /* (AD18) RGMII1_TD3 */
    AM62X_IOPAD(0x130, PIN_OUTPUT, 0) /* (AE19) RGMII1_TXC */
    AM62X_IOPAD(0x12c, PIN_OUTPUT, 0) /* (AD19rgmi) RGMII1_TX_CTL */
    >;
    };

    One more observations is, the driver is displayed as GENERIC PHY and not DP83822.

    root@am62xx-evm:~# dmesg | grep eth
    [ 0.000000] psci: probing for conduit method from DT.
    [ 0.849583] optee: probing for conduit method.
    [ 1.258037] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
    [ 1.270824] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
    [ 1.277951] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
    [ 1.284617] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0
    [ 1.295015] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
    [ 8.507201] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [Generic PHY] (irq=POLL)
    [ 8.517874] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    [ 8.540027] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

    Regards,

    Swapna,

  • Hi, 

    One question to begin with the PHY driver not being identified. Did you use the TI defconfig for you kernel configuration? One reason that the generic driver is being used if because the kernel does not access to the PHY driver.

    The other thing I see is that there are DP867 timing references. I will need to check with a colleague if the DP83822 requires the timing parameters. Is this what you are calculating as result of layout timing analysis? 

    Best Regards,

    Schuyler

  • Hi Schuyler,

    We have enables the DP83822 Driver from menuconfig and it is getting reflected in .config file, but still show as GENERIC PHY.

    Regards,

    Swapna

  • Hi,

    This is confusing that the PHY is not being identified. Since the link is detected and up the Generic PHY is at least able to communicate over the MDIO link. I will need to check with the TI PHY team to provide some clues on what to look at next. I am still working the timing question, I hope to have an answer tomorrow.

    Best Regards,

    Schuyler

  • Hi Schuyler,

    Any updates on the current issue we are facing, as this issue becoming critical to our release.

     

    Thanks and regards,

    Swapna

     

  • Hi,

    I think we need to resolve the generic PHY detection issue since if you want to set PHY parameters you will need the driver detected.

    I noticed that you said that phy-tool was returning 0 or 0xFFFF, does mii-tool return similar results? 

    Could you try running the TI default kernel from the SDK that you are using? All the TI phys are by default configed into the kernel.  BTW, which TI SDK version are you using?

    Best Regards,

    Schuyler