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.

AM3359: Ethernet issue

Part Number: AM3359
Other Parts Discussed in Thread: AM3352

HI,

 i am using Am3359 custom board , with micrel Ethernet port , driver is up in kernel, in the sense i am getting light blinking in the Ethernet port, except that i am not able to do ping test with other devices also when i do ifconfig , Rx bytes portion of eth0 portion is showing 0 bytes, Tx is happening but not Rx i think . can anyone help me with this issue.

logs are as follows:

am335x-evm login: root
root@am335x-evm:~# root@am335x-evm:~# ifconfig
eth0      Link encap:Ethernet  HWaddr E0:C7:9D:A6:59:3B 
          inet6 addr: fe80::e2c7:9dff:fea6:593b%775872/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:4318 (4.2 KiB)
          Interrupt:51

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1%775872/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:165 errors:0 dropped:0 overruns:0 frame:0
          TX packets:165 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12612 (12.3 KiB)  TX bytes:12612 (12.3 KiB)

root@am335x-evm:~# ethtool -S eth0
NIC statistics:
     Good Rx Frames: 0
     Broadcast Rx Frames: 0
     Multicast Rx Frames: 0
     Pause Rx Frames: 0
     Rx CRC Errors: 0
     Rx Align/Code Errors: 0
     Oversize Rx Frames: 0
     Rx Jabbers: 0
     Undersize (Short) Rx Frames: 0
     Rx Fragments: 0
     Rx Octets: 0
     Good Tx Frames: 29
     Broadcast Tx Frames: 7
     Multicast Tx Frames: 22
     Pause Tx Frames: 0
     Deferred Tx Frames: 0
     Collisions: 0
     Single Collision Tx Frames: 0
     Multiple Collision Tx Frames: 0
     Excessive Collisions: 0
     Late Collisions: 0
     Tx Underrun: 0
     Carrier Sense Errors: 0
     Tx Octets: 4434
     Rx + Tx 64 Octet Frames: 0
     Rx + Tx 65-127 Octet Frames: 22
     Rx + Tx 128-255 Octet Frames: 0
     Rx + Tx 256-511 Octet Frames: 7
     Rx + Tx 512-1023 Octet Frames: 0
     Rx + Tx 1024-Up Octet Frames: 0
     Net Octets: 4434
     Rx Start of Frame Overruns: 0
     Rx Middle of Frame Overruns: 0
     Rx DMA Overruns: 0
     Rx DMA chan 0: head_enqueue: 1
     Rx DMA chan 0: tail_enqueue: 127
     Rx DMA chan 0: pad_enqueue: 0
     Rx DMA chan 0: misqueued: 0
     Rx DMA chan 0: desc_alloc_fail: 0
     Rx DMA chan 0: pad_alloc_fail: 0
     Rx DMA chan 0: runt_receive_buf: 0
     Rx DMA chan 0: runt_transmit_bu: 0
     Rx DMA chan 0: empty_dequeue: 0
     Rx DMA chan 0: busy_dequeue: 0
     Rx DMA chan 0: good_dequeue: 0
     Rx DMA chan 0: requeue: 0
     Rx DMA chan 0: teardown_dequeue: 0
     Tx DMA chan 0: head_enqueue: 29
     Tx DMA chan 0: tail_enqueue: 0
     Tx DMA chan 0: pad_enqueue: 0
     Tx DMA chan 0: misqueued: 0
     Tx DMA chan 0: desc_alloc_fail: 0
     Tx DMA chan 0: pad_alloc_fail: 0
     Tx DMA chan 0: runt_receive_buf: 0
     Tx DMA chan 0: runt_transmit_bu: 0
     Tx DMA chan 0: empty_dequeue: 29
     Tx DMA chan 0: busy_dequeue: 0
     Tx DMA chan 0: good_dequeue: 29
     Tx DMA chan 0: requeue: 0
     Tx DMA chan 0: teardown_dequeue: 0

  • Please complete this checklist and post the results here: processors.wiki.ti.com/.../5x_CPSW

  • U-Boot SPL 2018.01-00569-g7b4e473842-dirty (Nov 11 2019 - 20:35:47)
    Critical Link AM335X Dev Kit -- NAND Page size = 2048k booting from dev 8
    Trying to boot from MMC1
    
    
    U-Boot 2018.01-00569-g7b4e473842-dirty (Nov 11 2019 - 20:35:47 +0530)
    
    CPU  : AM335X-GP rev 1.0
    I2C:   ready
    DRAM:  256 MiB
    NAND:  256 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Using default environment
    
    In:    ns16550_serial
    Out:   ns16550_serial
    Err:   ns16550_serial
    
    HARDIK->: func:board_late_init : file: board/cl/mitysom-335x/som.c line:1882 
    HARDIK->: func:board_late_init : file: board/cl/mitysom-335x/som.c line:1918 <ethaddr> not set. Validating first E-fuse MAC
    
    HARDIK->: func:board_late_init : file: board/cl/mitysom-335x/som.c line:1931 
    HARDIK->: func:board_late_init : file: board/cl/mitysom-335x/som.c line:1935 
    HARDIK->: func:board_late_init : file: board/cl/mitysom-335x/som.c line:1946 
    HARDIK->: func:board_late_init : file: board/cl/mitysom-335x/som.c line:1949 
    HARDIK->: func:board_late_init : file: board/cl/mitysom-335x/som.c line:1954 
    HARDIK->: func:board_late_init : file: board/cl/mitysom-335x/som.c line:1957 Net:   
    [Manju]  registered : Micrel ksz9021
    
    [Manju]  registered : Micrel ksz9031
    
    HARDIK->: func:board_eth_init : file: board/cl/mitysom-335x/som.c line:1555 
    HARDIK->: func:phy_find_by_mask : file: drivers/net/phy/phy.c line:853 
    HARDIK->: func:search_for_existing_phy : file: drivers/net/phy/phy.c line:725 
    HARDIK->: func:get_phy_device_by_mask : file: drivers/net/phy/phy.c line:743 
    HARDIK->: func:create_phy_by_mask : file: drivers/net/phy/phy.c line:709 
    HARDIK->: func:get_phy_id : file: drivers/net/phy/phy.c line:682 
    HARDIK->: func:phy_device_create : file: drivers/net/phy/phy.c line:634 
    HARDIK->: func:phy_probe : file: drivers/net/phy/phy.c line:590 Srini -> Getting PHY address is success !!!!
    
    HARDIK->: func:phy_reset : file: drivers/net/phy/phy.c line:785 
    HARDIK->: func:phy_connect_dev : file: drivers/net/phy/phy.c line:880 [ manju ]cpsw connected to  manju Micrel ksz9021
    
    HARDIK->: func:ksz9021_config : file: drivers/net/phy/micrel_ksz90x1.c line:268 
    HARDIK->: func:ksz9021_config : file: drivers/net/phy/micrel_ksz90x1.c line:285 
    HARDIK->: func:ksz9021_config : file: drivers/net/phy/micrel_ksz90x1.c line:290 
    HARDIK->: func:genphy_config_aneg : file: drivers/net/phy/phy.c line:187 
    HARDIK->: func:genphy_config_advert : file: drivers/net/phy/phy.c line:40 
    HARDIK->: func:genphy_restart_aneg : file: drivers/net/phy/phy.c line:160 
    HARDIK->: func:genphy_restart_aneg : file: drivers/net/phy/phy.c line:160 
    HARDIK->: func:ksz9021_config : file: drivers/net/phy/micrel_ksz90x1.c line:298 
    HARDIK->: func:board_eth_init : file: board/cl/mitysom-335x/som.c line:1570 
    HARDIK->: get current dev name device:cpsw 
    HARDIK->: func:board_eth_init : file: board/cl/mitysom-335x/som.c line:1584 cpsw
    Hit any key to stop autoboot:  2  0 
    => 
    => 
    => fatload mmc 0:1 0x88000000 am335x-mitysom-devkit.dtb<INTERRUPT>
    => mii info
    PHY 0x03: OUI = 0x0885, Model = 0x21, Rev = 0x01, 100baseT, FDX
    => mii dump 3 0
    0.     (1000)                 -- PHY control register --
      (8000:0000) 0.15    =     0    reset
      (4000:0000) 0.14    =     0    loopback
      (2040:0000) 0. 6,13 =   b00    speed selection = 10 Mbps
      (1000:1000) 0.12    =     1    A/N enable
      (0800:0000) 0.11    =     0    power-down
      (0400:0000) 0.10    =     0    isolate
      (0200:0000) 0. 9    =     0    restart A/N
      (0100:0000) 0. 8    =     0    duplex = half
      (0080:0000) 0. 7    =     0    collision test enable
      (003f:0000) 0. 5- 0 =     0    (reserved)
    
    
    => mii dump 3 0 1
    1.     (796d)                 -- PHY status register --
      (8000:0000) 1.15    =     0    100BASE-T4 able
      (4000:4000) 1.14    =     1    100BASE-X  full duplex able
      (2000:2000) 1.13    =     1    100BASE-X  half duplex able
      (1000:1000) 1.12    =     1    10 Mbps    full duplex able
      (0800:0800) 1.11    =     1    10 Mbps    half duplex able
      (0400:0000) 1.10    =     0    100BASE-T2 full duplex able
      (0200:0000) 1. 9    =     0    100BASE-T2 half duplex able
      (0100:0100) 1. 8    =     1    extended status
      (0080:0000) 1. 7    =     0    (reserved)
      (0040:0040) 1. 6    =     1    MF preamble suppression
      (0020:0020) 1. 5    =     1    A/N complete
      (0010:0000) 1. 4    =     0    remote fault
      (0008:0008) 1. 3    =     1    A/N able
      (0004:0004) 1. 2    =     1    link status
      (0002:0000) 1. 1    =     0    jabber detect
      (0001:0001) 1. 0    =     1    extended capabilities
    
    
    => fatload mmc 0:1 0x88000000 am335x-mitysom-devkit.dtb
    44934 bytes read in 8 ms (5.4 MiB/s)
    => setenv bootargs console=ttyO0,115200n8 root=/dev/mmcblk0p2
    => fatload mmc 0:1 0x82000000 zImage_omap
    3846656 bytes read in 292 ms (12.6 MiB/s)
    => bootz 0x82000000 - 0x88000000
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Using Device Tree in place at 88000000, end 8800df85
    ret = 0
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.79-ge669d52447 (manju@manju-VirtualBox) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 PREEMPT Tue Nov 5 16:28:46 IST 2019
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: Critical Link MitySOM-335x Devkit
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x8d000000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES1.0 (sgx neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 197272K/262144K available (8192K kernel code, 313K rwdata, 2452K rodata, 1024K init, 263K bss, 15720K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
    [    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
    [    0.000000]       .data : 0xc0d00000 - 0xc0d4e680   ( 314 kB)
    [    0.000000]        .bss : 0xc0d4e680 - 0xc0d9060c   ( 264 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000] 	Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000042] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000056] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000285] timer_probe: no matching timers found
    [    0.000531] Console: colour dummy device 80x30
    [    0.000573] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.118878] pid_max: default: 32768 minimum: 301
    [    0.119093] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119111] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.120027] CPU: Testing write buffer coherency: ok
    [    0.120105] CPU0: Spectre v2: using BPIALL workaround
    [    0.120900] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.121075] Hierarchical SRCU implementation.
    [    0.121483] EFI services will not be available.
    [    0.123092] devtmpfs: initialized
    [    0.133541] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
    [    0.134044] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.134407] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.134434] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.138607] pinctrl core: initialized pinctrl subsystem
    [    0.139645] DMI not present or invalid.
    [    0.140126] NET: Registered protocol family 16
    [    0.142675] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.159459] omap_hwmod: debugss: _wait_target_disable failed
    [    0.188437] cpuidle: using governor ladder
    [    0.188478] cpuidle: using governor menu
    [    0.193723] OMAP GPIO hardware version 0.1
    [    0.205272] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [    0.208546] No ATAGs?
    [    0.208565] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.224323] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.228615] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.228693] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
    [    0.228739] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
    [    0.229147] media: Linux media interface: v0.10
    [    0.229203] Linux video capture interface: v2.00
    [    0.229344] pps_core: LinuxPPS API ver. 1 registered
    [    0.229354] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.229380] PTP clock support registered
    [    0.229422] EDAC MC: Ver: 3.0.0
    [    0.229953] dmi: Firmware registration failed.
    [    0.230479] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.230917] Advanced Linux Sound Architecture Driver Initialized.
    [    0.232209] clocksource: Switched to clocksource timer1
    [    0.241972] NET: Registered protocol family 2
    [    0.242924] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.242966] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.242997] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.243120] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.243145] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.243328] NET: Registered protocol family 1
    [    0.243836] RPC: Registered named UNIX socket transport module.
    [    0.243852] RPC: Registered udp transport module.
    [    0.243861] RPC: Registered tcp transport module.
    [    0.243869] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.244839] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.244991] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.246766] workingset: timestamp_bits=14 max_order=16 bucket_order=2
    [    0.251751] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.252935] NFS: Registering the id_resolver key type
    [    0.252994] Key type id_resolver registered
    [    0.253004] Key type id_legacy registered
    [    0.253056] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.255459] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.255484] io scheduler noop registered
    [    0.255495] io scheduler deadline registered
    [    0.255756] io scheduler cfq registered (default)
    [    0.255770] io scheduler mq-deadline registered
    [    0.255779] io scheduler kyber registered
    [    0.257365] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.260956] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [    0.320234] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.320508] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a OMAP UART0
    [    0.997561] console [ttyO0] enabled
    [    1.001842] omap_uart 481a6000.serial: no wakeirq for uart3
    [    1.008016] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 31, base_baud = 3000000) is a OMAP UART3
    [    1.018230] omap_uart 481a8000.serial: no wakeirq for uart4
    [    1.024336] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 32, base_baud = 3000000) is a OMAP UART4
    [    1.035512] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    1.044635] pinctrl-single 44e10800.pinmux: pin PIN40 already requested by lcd-controller@1; cannot claim for 4830e000.lcdc
    [    1.056360] pinctrl-single 44e10800.pinmux: pin-40 (4830e000.lcdc) status -22
    [    1.063847] pinctrl-single 44e10800.pinmux: could not request pin 40 (PIN40) from group lcd_pins_default  on device pinctrl-single
    [    1.076147] tilcdc 4830e000.lcdc: Error applying setting, reverse things back
    [    1.083655] tilcdc: probe of 4830e000.lcdc failed with error -22
    [    1.103323] brd: module loaded
    [    1.114483] loop: module loaded
    [    1.122174] m25p80 spi1.0: m25p64 (8192 Kbytes)
    [    1.127209] 1 ofpart partitions found on MTD device spi1.0
    [    1.132985] Creating 1 MTD partitions on "spi1.0":
    [    1.138008] 0x000000000000-0x000000800000 : "NOR User Defined"
    [    1.146421] libphy: Fixed MDIO Bus: probed
    [    1.222308] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.230340] libphy: 4a101000.mdio: probed
    [    1.236098] davinci_mdio 4a101000.mdio: phy[3]: device 4a101000.mdio:03, driver Micrel KSZ9021 Gigabit PHY
    [    1.247321] cpsw 4a100000.ethernet: Detected MACID = e0:c7:9d:a6:59:3b
    [    1.254413] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.261069] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.266694] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.275894] i2c /dev entries driver
    [    1.280114] IR NEC protocol handler initialized
    [    1.284998] IR RC5(x/sz) protocol handler initialized
    [    1.290286] IR RC6 protocol handler initialized
    [    1.295046] IR JVC protocol handler initialized
    [    1.299782] IR Sony protocol handler initialized
    [    1.304625] IR SANYO protocol handler initialized
    [    1.309544] IR Sharp protocol handler initialized
    [    1.314476] IR MCE Keyboard/mouse protocol handler initialized
    [    1.320575] IR XMP protocol handler initialized
    [    1.327266] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.334973] sdhci: Secure Digital Host Controller Interface driver
    [    1.341445] sdhci: Copyright(c) Pierre Ossman
    [    1.402588] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.412695] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.427811] NET: Registered protocol family 10
    [    1.434079] Segment Routing with IPv6
    [    1.438005] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.445142] NET: Registered protocol family 17
    [    1.450136] Key type dns_resolver registered
    [    1.454914] omap_voltage_late_init: Voltage driver support not added
    [    1.468141] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.473741] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.482095] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
    [    1.488918] nand: Micron MT29F2G08ABAEAWP
    [    1.493211] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.501212] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.507061] 8 ofpart partitions found on MTD device omap2-nand.0
    [    1.513416] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.519013] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    1.525894] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    1.533324] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    1.540596] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    1.546813] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.555355] mmc0: new high speed SDHC card at address aaaa
    [    1.562019] mmcblk0: mmc0:aaaa SS08G 7.40 GiB 
    [    1.568382] 0x000000080000-0x000000260000 : "NAND.u-boot"
    [    1.574305]  mmcblk0: p1 p2 p3
    [    1.581410] 0x000000260000-0x000000280000 : "NAND.u-boot-env"
    [    1.588622] 0x000000280000-0x000000780000 : "NAND.kernel"
    [    1.600027] 0x000000780000-0x000010000000 : "NAND.file-system"
    [    1.843761] omap_i2c 44e0b000.i2c: bus 1 rev0.11 at 400 kHz
    [    1.850822] omap_i2c 4802a000.i2c: bus 2 rev0.11 at 400 kHz
    [    1.882495] tps65910 3-002d: No interrupt support, no core IRQ
    [    1.890871] vrtc: supplied by vbat
    [    1.898082] random: fast init done
    [    1.901894] vio: supplied by vbat
    [    1.906954] vdd1: supplied by vbat
    [    1.912378] vdd2: supplied by vbat
    [    1.919314] vdig1: supplied by vbat
    [    1.924431] vdig2: supplied by vbat
    [    1.929486] vpll: supplied by vbat
    [    1.934517] vdac: supplied by vbat
    [    1.939485] vaux1: supplied by vbat
    [    1.944587] vaux2: supplied by vbat
    [    1.949637] vaux33: supplied by vbat
    [    1.954835] vmmc: supplied by vbat
    [    1.959814] vbb: supplied by vbat
    [    1.964572] omap_i2c 4819c000.i2c: bus 3 rev0.11 at 400 kHz
    [    1.972657] hctosys: unable to open rtc device (rtc0)
    [    1.978881] ALSA device list:
    [    1.982003]   No soundcards found.
    [    1.990935] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem
    [    2.003922] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [    2.011611] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [    2.044524] EXT4-fs (mmcblk0p2): recovery complete
    [    2.056653] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.065426] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
    [    2.083419] devtmpfs: mounted
    [    2.088620] Freeing unused kernel memory: 1024K
    [    2.445103] systemd[1]: System time before build time, advancing clock.
    [    2.495228] systemd[1]: Configuration file /etc/systemd/system.conf is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    2.534123] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN default-hierarchy=hybrid)
    [    2.557289] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2018.10!
    
    [    2.597903] systemd[1]: Set hostname to <am335x-evm>.
    [    2.911850] systemd[1]: Configuration file /lib/systemd/system/system.slice is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    2.933552] systemd[1]: Configuration file /lib/systemd/system/slices.target is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    2.953825] systemd[1]: Configuration file /lib/systemd/system/shutdown.target is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    2.973837] systemd[1]: Configuration file /lib/systemd/system/local-fs.target is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    3.001490] systemd[1]: Configuration file /lib/systemd/system/umount.target is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    3.023030] systemd[1]: Configuration file /lib/systemd/system/var-volatile-srv.service is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    3.045163] systemd[1]: Configuration file /lib/systemd/system/systemd-journald.socket is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    3.417648] random: systemd: uninitialized urandom read (16 bytes read)
    [  OK  ] Created slice User and Session Slice.
    [    3.452826] random: systemd: uninitialized urandom read (16 bytes read)
    [  OK  ] Listening on udev Kernel Socket.
    [    3.493163] random: systemd: uninitialized urandom read (16 bytes read)
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Listening on Process Core Dump Socket.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Created slice System Slice.
    [  OK  ] Reached target Slices.
             Mounting Kernel Debug File System...
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-getty.slice.
             Mounting POSIX Message Queue File System...
    [  OK  ] Listening on Journal Socket (/dev/log).
    [  OK  ] Reached target Swap.
             Mounting Temporary Directory (/tmp)...
    [  OK  ] Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Syslog Socket.
    [  OK  ] Listening on Journal Socket.
             Starting Journal Service...
             [    4.271939] systemd-journald[65]: Configuration file /etc/systemd/journald.conf is marked executable. Please remove executable permission bits. Proceeding anyway.
    Starting File System Check on Root Device...
             Starting Load Kernel Modules...
             Starting Create list of required st…ce nodes for the current kernel...
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [    4.480861] cryptodev: loading out-of-tree module taints kernel.
    [  OK  ] Started Create list of required sta…vice nodes for the current kernel.
    [    4.513983] cryptodev: driver 1.9 loaded.
    [  OK  ] Started Load Kernel Modules.
             Starting Apply Kernel Variables...
             Mounting Kernel Configuration File System...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started File System Check on Root Device.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Journal Service.
             Starting Remount Root and Kernel File Systems...
    [    4.932923] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting udev Coldplug all Devices...
             Starting Flush Journal to Persistent Storage...
             Starting Create Static Device Nodes in /dev...
    [    5.200942] systemd-journald[65]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /var/volatile...
             Mounting /media/ram...
             Starting udev Kernel Device Manager...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
             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 Update UTMP about System Boot/Shutdown...
             Starting Network Time Synchronization...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Created slice system-systemd\x2dbacklight.slice.
    [    7.872908] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
             Starting Load/Save Screen Backlight…ightness of backlight:backlight...
    [[    7.965834] omap_rtc 44e3e000.rtc: registered as rtc0
      OK  ] Found device /dev/ttyO0.
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Started Load/Save Screen Backlight Brightness of backlight:backlight.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [    8.569769] CAN device driver interface
    [[    8.652077] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=38)
      OK  ] Started System Logging Service.
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [    8.847825] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=39)
    [    8.978973] random: crng init done
    [    8.978984] random: 7 urandom warning(s) missed due to ratelimiting
    [  OK  ] Started Kernel Logging Service.
             Starting RPC Bind Service...
    [  OK  ] Started Periodic Command Scheduler.
             Starting telnetd.service...
             Starting Print notice about GPLv3 packages...
    [  OK  ] Reached target Containers.
    [  OK  ] Started D-Bus System Message Bus.
    [    9.854300] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [   10.073937] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [   10.175680] omap-aes 53500000.aes: will run requests pump with realtime priority
             Starting Login Service...
             Starting Network Service...
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started RPC Bind Service.
    [  OK  ] Started telnetd.service.
    [   11.779286] remoteproc remoteproc0: wkup_m3 is available
    [   11.858989] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [   11.896649] PM: Cannot get wkup_m3_ipc handle
    [   12.148831] remoteproc remoteproc0: powering up wkup_m3
    [   12.193271] PM: Cannot get wkup_m3_ipc handle
    [   12.360340] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 224628
    [  OK  ] Started Network Service.
    [   12.561006] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [   12.647723] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [   12.763098] net eth0: initializing cpsw version 1.12 (0)
    [   12.827525] EXT4-fs (mmcblk0p3): mounting ext3 file system using the ext4 subsystem
    [   12.877307] EXT4-fs (mmcblk0p3): warning: mounting fs with errors, running e2fsck is recommended
    [   12.895583] EXT4-fs (mmcblk0p3): recovery complete
    [   12.895614] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
    [   13.131071] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [   13.713498] Micrel KSZ9021 Gigabit PHY 4a101000.mdio:03: attached PHY driver [Micrel KSZ9021 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:03, irq=POLL)
    [   14.051041] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started Login Service.
    [  OK  ] Reached target Network.
             Starting Permit User Sessions...
             Starting Network Name Resolution...
             Starting thttpd.service...
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started thttpd.service.
    [   16.004152] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   16.088807] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Reached target Host and Network Name Lookups.
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting rng-tools.service...
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyO0.
    [  OK  ] Started rng-tools.service.
             Starting thermal-zone-init.service...
    [  OK  ] Started thermal-zone-init.service.
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
    	bash
    	binutils
    	cifs-utils
    	cpio
    	dosfstools
    	elfutils
    	gawk
    	gzip
    	libdw1
    	libelf1
    	libreadline7
    	m4
    	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.
    [   19.587780] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/44e0d000.tscadc:tsc/input/input0
    [   19.654567] PM: bootloader does not support rtc-only!
    [   19.716999] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [   19.734023] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    [   19.805149] usbcore: registered new interface driver usbfs
    [   19.805230] usbcore: registered new interface driver hub
    [   19.805390] usbcore: registered new device driver usb
    [   19.915702] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [   19.915748] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [   19.947218] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [   19.947231] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   19.947238] usb usb1: Product: MUSB HDRC host driver
    [   19.947244] usb usb1: Manufacturer: Linux 4.14.79-ge669d52447 musb-hcd
    [   19.947251] usb usb1: SerialNumber: musb-hdrc.0
    [   19.959168] hub 1-0:1.0: USB hub found
    [   19.961648] hub 1-0:1.0: 1 port detected
    [   20.060281] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [   20.060320] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    [   20.095376] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [   20.095390] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   20.095396] usb usb2: Product: MUSB HDRC host driver
    [   20.095403] usb usb2: Manufacturer: Linux 4.14.79-ge669d52447 musb-hcd
    [   20.095409] usb usb2: SerialNumber: musb-hdrc.1
    [   20.104748] hub 2-0:1.0: USB hub found
    [   20.104852] hub 2-0:1.0: 1 port detected
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm ttyO0
    
    Arago 2018.10 am335x-evm ttyO0
    
    am335x-evm login: root
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# ethtool eth0
    Settings for eth0:
    	Supported ports: [ TP MII ]
    	Supported link modes:   10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Supported pause frame use: Symmetric Receive-only
    	Supports auto-negotiation: Yes
    	Supported FEC modes: Not reported
    	Advertised link modes:  10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Advertised pause frame use: No
    	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
    	Link partner advertised auto-negotiation: Yes
    	Link partner advertised FEC modes: Not reported
    	Speed: 100Mb/s
    	Duplex: Full
    	Port: MII
    	PHYAD: 3
    	Transceiver: internal
    	Auto-negotiation: on
    	Supports Wake-on: d
    	Wake-on: d
    	Current message level: 0x00000000 (0)
    			       
    	Link detected: yes
    root@am335x-evm:~# ethtool eth0 - S  
    NIC statistics:
         Good Rx Frames: 0
         Broadcast Rx Frames: 0
         Multicast Rx Frames: 0
         Pause Rx Frames: 0
         Rx CRC Errors: 0
         Rx Align/Code Errors: 0
         Oversize Rx Frames: 0
         Rx Jabbers: 0
         Undersize (Short) Rx Frames: 0
         Rx Fragments: 0
         Rx Octets: 0
         Good Tx Frames: 23
         Broadcast Tx Frames: 5
         Multicast Tx Frames: 18
         Pause Tx Frames: 0
         Deferred Tx Frames: 0
         Collisions: 0
         Single Collision Tx Frames: 0
         Multiple Collision Tx Frames: 0
         Excessive Collisions: 0
         Late Collisions: 0
         Tx Underrun: 0
         Carrier Sense Errors: 0
         Tx Octets: 3398
         Rx + Tx 64 Octet Frames: 0
         Rx + Tx 65-127 Octet Frames: 18
         Rx + Tx 128-255 Octet Frames: 0
         Rx + Tx 256-511 Octet Frames: 5
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 3398
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 1
         Rx DMA chan 0: tail_enqueue: 127
         Rx DMA chan 0: pad_enqueue: 0
         Rx DMA chan 0: misqueued: 0
         Rx DMA chan 0: desc_alloc_fail: 0
         Rx DMA chan 0: pad_alloc_fail: 0
         Rx DMA chan 0: runt_receive_buf: 0
         Rx DMA chan 0: runt_transmit_bu: 0
         Rx DMA chan 0: empty_dequeue: 0
         Rx DMA chan 0: busy_dequeue: 0
         Rx DMA chan 0: good_dequeue: 0
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 23
         Tx DMA chan 0: tail_enqueue: 0
         Tx DMA chan 0: pad_enqueue: 0
         Tx DMA chan 0: misqueued: 0
         Tx DMA chan 0: desc_alloc_fail: 0
         Tx DMA chan 0: pad_alloc_fail: 0
         Tx DMA chan 0: runt_receive_buf: 0
         Tx DMA chan 0: runt_transmit_bu: 0
         Tx DMA chan 0: empty_dequeue: 23
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 23
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ifconfig eth0
    eth0      Link encap:Ethernet  HWaddr E0:C7:9D:A6:59:3B  
              inet6 addr: fe80::e2c7:9dff:fea6:593b%3068585368/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:3376 (3.2 KiB)
              Interrupt:51 
    
    root@am335x-evm:~# uname -a
    Linux am335x-evm 4.14.79-ge669d52447 #1 PREEMPT Tue Nov 5 16:28:46 IST 2019 armv7l GNU/Linux
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 
    root@am335x-evm:~# 

    Hi ,

    I have uploaded the log file as an attachment, here u can find all the mentioned as per : processors.wiki.ti.com/.../5x_CPSW

    When posting to the forums please capture the information requested below. Please send these as attachments as some of the logs will be lengthy.

    • Kernel version and source, also include the results of this command: uname -a
    • File system, TI SDK or Arago/Yocto based filesytem
    • Custom board or TI board? Please include device tree source file.
    • Console log of the boot process that includes U-Boot and the Kernel.
    • ethtool <interface such as eth0 or eth1>
    • ethtool -S <interface such as eth0 or eth1>
    • ifconfig <interface such as eth0 or eth1>
  • hi , anything can we do regarding this issue

  • Hi,

    Thank you for the boot logs. Is the board something your company designed or purchased from another company? The boot log shows a dev kit name, is there software or an SDK supplied with this dev kit?

    As you point out, your board does not have an IP address.  The board is sending packets at least at the MAC level but not receiving any. This could a be a mis-matched DTB file for that board in use here. Is there a dhcp server on the subnet that is capable of supplying IP addresses? Are the other platforms in the subnet getting IP addresses statically or dynamically? You will need to hook up wireshark or some packet sniffer to see if there are responses to the DHCP requests returning the board. If the DTB file that specifies the ethernet interface is incorrect this might be a reason as to why there are not received packets.

    Best Regards,

    Schuyler 

  • Hi,


    Case 1:
    We have Micrel Phy 9021 connected to AM3352.  It is working fine with AM3352, please find attached dts and log for the same.
    DTS File name: Case1_am3352.dts
    Log file name: case1_log.txt
    Mux.c :  mux_case1.c


    Case 2:


    We have Micrel Phy 9021 connected to AM3359 on different port.  We have modified mux.c in uboot and dts for the Kernel.  please find attached dts and log for the same.


    DTS File name:Case1_am3359.dts
    Log file name: case1_log.txt
    Mux.c : mux_case2.c
    Case 1 is working fine but case 2 is not.  Please provide your inputs.

    files are in the zip file attached.

    e2e_ethernet.zip

  • Hi ,

    we have tried with following changes in dts

    1.  compatible model as TI AM335x EVM-SK in the DTS file.
    2. PHY reset line to top under:

    pinctrl-names = "default";and add a node as phy-reset and moved the muxing line .

    uploaded is the log file and dts of the same, still the result is same.

     

    8308.e2e_ethernet.zip

    Regards,

    Manjunath

  • Hi,

    I see a couple of issues, first is the RGMII2 is being used and the mac node is not reflecting this change. Please take a look this description on selected the second interface as the active interface:

    Primary Interface on Second External Port - under this chapter 

    Then second is the PHY mode, for RGMII to function the only PHY mode supported is rgmii-txid due to a HW limitation. Is the PHY timing necessary in the MDIO node?

    Best Regards,

    Schuyler

  • hi,

     

    we  tried with your suggestion which is as described here : Primary Interface on Second External Port - under this chapter

    still the result we are getting is the same as before.

    Also, rgmii-txid seem to also not work for phy-mode .

    Regarding PHY timing , with or without the observed logs are same.

    Attached is the dts and log file for your suggested change.

    25thNov.zip

    Regards,

    Manjunath

     

  • hi ,

    any update regarding the above concern.

    Regards,

    Manjunath

  • hi ,

    from working of Am3352 board and Am3359 , we have found a link speed   "Link is Up -100Mbps/full" in am3352  & "Link is Up - 1Gbps/Full " in am3359 .

    How to change this speed to 100 Mbps for Am3359 in driver code or via dts.

    attached is the log files of the both .

    e2e_reply_2dec.zip

    Regards,

    Manjunath

  • Hi,

    You can limit the speed by adding this line to the phy0 node definition:

    max-speed = <100>;

    Please note this may not fix the problem as the ping is showing a 50% packet loss. How were these PHY timings derived?

    phy0: ethernet-phy@0 {
    rxc-skew-ps = <3000>;
    rxdv-skew-ps = <0>;
    txc-skew-ps = <3000>;
    txen-skew-ps = <0>;
    reg = <3>;
    };

    Best Regards,

    Schuyler

  • Hi,

    Since we have not heard back I will assume that you were able to move past the issue and close the thread.

    Best Regards,

    Schuyler