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.

Linux/AM3357: Ethernet fails after kernel start

Part Number: AM3357
Other Parts Discussed in Thread: AM3352

Tool/software: Linux

We have custom board designed on am3357 and Ethernet  is working fine in u -boot.

Have used am335x-evm.dts file as reference, while booting Linux we see Ethernet  link is going down , but booting to prompt. we observed after linux booting, the power rail mpp_vdd voltage is dropping from 1.1 v 0.93 v. the EMAC1 (RGMII1) is used for ethernet interface

Using TI SDK 3.x

  • Please follow this checklist: processors.wiki.ti.com/.../5x_CPSW and post the results here.
  • Hi Biser,

    the below is the results

    1. Kernel version and source, also include the results of this command: uname -a

    >>> Linux version 4.4.19-gdb0b54cdad 

     2. File system, TI SDK or Arago/Yocto based filesytem

    >>> Arago based filesytem

     3. Custom board or TI board? Please include device tree source file.

    >>> Custom board using AM3357

     4. Console log of the boot process that includes U-Boot and the Kernel.

    >>> BootLog_U-boot_Linux.txt attached

     5. ethtool <interface such as eth0 or eth1>

       ethtool -S <interface such as eth0 or eth1>

       ifconfig <interface such as eth0 or eth1> 

    -------

    [    1.079994] libphy: Fixed MDIO Bus: probed

    [    1.148878] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6

    [    1.155024] davinci_mdio 4a101000.mdio: detected phy mask fffffffe

    [    1.162306] libphy: 4a101000.mdio: probed

    [    1.166357] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver TI DP83867

    [    1.175597] cpsw 4a100000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property

    [    1.184032] cpsw 4a100000.ethernet: Detected MACID = 68:c9:0b:73:09:19

    [    1.192902] mousedev: PS/2 mouse device common for all mice

    [    1.199395] i2c /dev entries driver

    [    1.204235] cpuidle: enable-method property 'ti,am3352' found operations

    [    1.212092] omap_hsmmc 48060000.mmc: Got CD GPIO

    [    1.360782] ledtrig-cpu: registered to indicate activity on CPUs

    [    1.373703] NET: Registered protocol family 10

    [    1.379965] sit: IPv6 over IPv4 tunneling driver

    [    1.385601] NET: Registered protocol family 17

    [    1.390606] Key type dns_resolver registered

    [    1.395119] omap_voltage_late_init: Voltage driver support not added

    [    1.405597] omap-gpmc 50000000.gpmc: GPMC revision 6.0

     

     

    .

    .

    .

    .

    [   18.705452] net eth0: ALE Table size 1024

    [   18.720742] net eth0: phy "4a101000.mdio:00" not found on slave 0, err -19

    [   18.727688] libphy: PHY  not found

    [   18.768488] hub 2-0:1.0: USB hub found

    [   18.772513] net eth0: phy "" not found on slave 1, err -19

    [   18.799012] hub 2-0:1.0: 1 port detected

    [   18.824583] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

    [   19.430923] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010

    thanks,

    Chandrashekar N B

    BootLog_U-boot_Linux.txt
    U-Boot SPL 2016.05-00118-gabc6b2a-dirty (Mar 04 2017 - 22:11:05)
    Trying to boot from NAND
    The Expected Linux image was not found. Please check your NAND configuration.
    Trying to start u-boot now...
    
    
    U-Boot 2016.05-00118-gabc6b2a-dirty (Mar 04 2017 - 21:39:58 +0530)
    
           Watchdog enabled
    I2C:   ready
    DRAM:  1 GiB
    NAND:  256 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Error - No Valid Environment Area found
    *** Warning - bad CRC, using default environment
    
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   eth0: ethernet@4a100000
    Warning: usb_ether MAC addresses don't match:
    Address in SROM is         de:ad:be:ef:00:01
    Address in environment is  68:c9:0b:73:09:1b
    , eth1: usb_ether
    Press SPACE to abort autoboot in 2 seconds
    Booting from nand ...
    
    NAND read: device 0 offset 0x80000, size 0x40000
     262144 bytes read: OK
    
    NAND read: device 0 offset 0x200000, size 0x800000
     8388608 bytes read: OK
    Kernel image @ 0x82000000 [ 0x000000 - 0x351c60 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff3000, end 8ffff0ac ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.4.19-gdb0b54cdad (root@adems) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #3 PREEMPT Thu Mar 2 12:32:02 IST 2017
    [    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] Machine model: TI AM335x EVM
    [    0.000000] cma: Reserved 24 MiB at 0xbe800000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260416
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1003936K/1048576K available (6619K kernel code, 314K rwdata, 2344K rodata, 264K init, 265K bss, 20064K reserved, 24576K cma-reserved, 237568K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc08c9004   (8965 kB)
    [    0.000000]       .init : 0xc08ca000 - 0xc090c000   ( 264 kB)
    [    0.000000]       .data : 0xc090c000 - 0xc095abd0   ( 315 kB)
    [    0.000000]        .bss : 0xc095abd0 - 0xc099d398   ( 266 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 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.000015] 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.000055] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000257] clocksource_probe: no matching clocksources found
    [    0.000474] Console: colour dummy device 80x30
    [    0.000504] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000513] This ensures that you still see kernel messages. Please
    [    0.000520] update your kernel commandline.
    [    0.000543] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.058795] pid_max: default: 32768 minimum: 301
    [    0.058965] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.058982] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.059843] Initializing cgroup subsys io
    [    0.059882] Initializing cgroup subsys memory
    [    0.059929] Initializing cgroup subsys devices
    [    0.059948] Initializing cgroup subsys freezer
    [    0.059965] Initializing cgroup subsys perf_event
    [    0.059981] Initializing cgroup subsys pids
    [    0.060014] CPU: Testing write buffer coherency: ok
    [    0.060469] Setting up static identity map for 0x80008200 - 0x80008258
    [    0.063245] devtmpfs: initialized
    [    0.079001] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.097583] omap_hwmod: debugss: _wait_target_disable failed
    [    0.154886] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.157441] pinctrl core: initialized pinctrl subsystem
    [    0.159189] NET: Registered protocol family 16
    [    0.161720] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.188856] cpuidle: using governor ladder
    [    0.218846] cpuidle: using governor menu
    [    0.224623] OMAP GPIO hardware version 0.1
    [    0.235045] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe
    [    0.237704] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.279841] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.284979] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.285166] media: Linux media interface: v0.10
    [    0.285251] Linux video capture interface: v2.00
    [    0.285315] pps_core: LinuxPPS API ver. 1 registered
    [    0.285325] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.285364] PTP clock support registered
    [    0.285442] EDAC MC: Ver: 3.0.0
    [    0.286875] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.287274] Advanced Linux Sound Architecture Driver Initialized.
    [    0.288795] clocksource: Switched to clocksource timer1
    [    0.302974] NET: Registered protocol family 2
    [    0.303935] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.304058] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.304168] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.304292] UDP hash table entries: 512 (order: 1, 8192 bytes)
    [    0.304328] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
    [    0.304522] NET: Registered protocol family 1
    [    0.305011] RPC: Registered named UNIX socket transport module.
    [    0.305030] RPC: Registered udp transport module.
    [    0.305039] RPC: Registered tcp transport module.
    [    0.305048] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.306160] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.308591] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.319624] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.320855] NFS: Registering the id_resolver key type
    [    0.320951] Key type id_resolver registered
    [    0.320963] Key type id_legacy registered
    [    0.321062] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.321450] jffs2: version 2.2. (NAND) � 2001-2006 Red Hat, Inc.
    [    0.325952] bounce: pool size: 64 pages
    [    0.326263] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [    0.326290] io scheduler noop registered
    [    0.326309] io scheduler deadline registered
    [    0.326524] io scheduler cfq registered (default)
    [    0.328196] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.411477] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.416734] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [    1.035904] console [ttyS0] enabled
    [    1.040925] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
    [    1.051131] [drm] Initialized drm 1.1.0 20060810
    [    1.058136] tilcdc 4830e000.lcdc: no encoders/connectors found
    [    1.073334] loop: module loaded
    [    1.079994] libphy: Fixed MDIO Bus: probed
    [    1.148878] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.155024] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    1.162306] libphy: 4a101000.mdio: probed
    [    1.166357] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver TI DP83867
    [    1.175597] cpsw 4a100000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property
    [    1.184032] cpsw 4a100000.ethernet: Detected MACID = 68:c9:0b:73:09:19
    [    1.192902] mousedev: PS/2 mouse device common for all mice
    [    1.199395] i2c /dev entries driver
    [    1.204235] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.212092] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.360782] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.373703] NET: Registered protocol family 10
    [    1.379965] sit: IPv6 over IPv4 tunneling driver
    [    1.385601] NET: Registered protocol family 17
    [    1.390606] Key type dns_resolver registered
    [    1.395119] omap_voltage_late_init: Voltage driver support not added
    [    1.405597] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.410958] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.418728] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
    [    1.425249] nand: Micron MT29F2G08ABAEAWP
    [    1.429332] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.436974] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.442449] 10 ofpart partitions found on MTD device 8000000.nand
    [    1.448575] Creating 10 MTD partitions on "8000000.nand":
    [    1.454031] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    1.461006] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    1.468420] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    1.475913] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    1.483259] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    1.490801] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    1.497970] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    1.505289] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    1.513294] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    1.523106] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [    1.639090] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.669930] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.676393] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.681642] vmmc: supplied by vbat
    [    1.719606] vdd_mpu: supplied by vbat
    [    1.726060] ubi0: attaching mtd9
    [    2.714484] ubi0: scanning is finished
    [    2.728314] ubi0: attached mtd9 (name "NAND.file-system", size 246 MiB)
    [    2.735080] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    2.742009] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    2.748742] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    2.755753] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
    [    2.761893] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    2.769166] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1634636836
    [    2.778341] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40
    [    2.787719] ubi0: background thread "ubi_bgt0d" started, PID 58
    [    2.794107] hctosys: unable to open rtc device (rtc0)
    [    2.803674] lis3_reg: disabling
    [    2.806864] wlan-en-regulator: disabling
    [    2.811279] ALSA device list:
    [    2.814273]   No soundcards found.
    [    2.828905] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 59
    [    2.857057] UBIFS (ubi0:0): recovery needed
    [    2.954840] UBIFS (ubi0:0): recovery completed
    [    2.959500] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    2.966935] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    2.976927] UBIFS (ubi0:0): FS size: 242905088 bytes (231 MiB, 1913 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [    2.987691] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [    2.993575] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 33E743D7-4D43-4A54-B4C7-7700F91F2C19, small LPT model
    [    3.006799] VFS: Mounted root (ubifs filesystem) on device 0:14.
    [    3.014411] devtmpfs: mounted
    [    3.017843] Freeing unused kernel memory: 264K (c08ca000 - c090c000)
    [    3.024265] This architecture does not have kernel memory protection.
    [    3.233200] systemd[1]: System time before build time, advancing clock.
    [    3.300211] random: systemd: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
    [    3.331964] random: systemd: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
    [    3.355146] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
    [    3.374901] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2016.08!
    
    [    3.400909] systemd[1]: Set hostname to <am335x-evm>.
    [    3.581957] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [    3.629933] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [    3.691608] random: systemd: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [    3.752551] random: systemd: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [    3.762593] random: systemd: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [    3.773200] random: systemd: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [    3.840507] random: systemd: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [    3.873014] random: systemd: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [    4.152645] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    4.209122] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    4.239740] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [    4.270820] systemd[1]: Created slice System Slice.
    [  OK  ] Created slice System Slice.
    [    4.301023] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    4.329299] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    4.359206] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Slices.
    [    4.379548] systemd[1]: Listening on Syslog Socket.
    [  OK  ] Listening on Syslog Socket.
    [    4.409442] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    4.439506] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    4.470885] systemd[1]: Created slice system-getty.slice.
    [  OK  ] Created slice system-getty.slice.
    [    4.499654] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    4.529615] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    4.565105] systemd[1]: Mounting Debug File System...
             Mounting Debug File System...
    [    4.618514] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    4.726901] systemd[1]: Mounting Temporary Directory...
             Mounting Temporary Directory...
    [    4.854488] systemd[1]: Starting Apply Kernel Variables...
             Starting Apply Kernel Variables...
    [    4.924209] systemd[1]: Starting Create list of required static device nodes for the current kernel...
             Starting Create list of required st... nodes for the current kernel...
    [    5.005432] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    5.044755] systemd[1]: Starting Setup Virtual Console...
             Starting Setup Virtual Console...
    [    5.105363] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    5.169469] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    5.199924] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    5.247921] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Paths.
    [    5.279816] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    5.336662] systemd[1]: Mounted Debug File System.
    [  OK  ] Mounted Debug File System.
    [    5.369611] systemd[1]: Mounted POSIX Message Queue File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [    5.389685] systemd[1]: Mounted Temporary Directory.
    [  OK  ] Mounted Temporary Directory.
    [    5.423529] systemd[1]: Started Apply Kernel Variables.
    [  OK  ] Started Apply Kernel Variables.
    [    5.461799] systemd[1]: Started Create list of required static device nodes for the current kernel.
    [  OK  ] Started Create list of required sta...ce nodes for the current kernel.
    [    5.501739] systemd[1]: Started Setup Virtual Console.
    [  OK  ] Started Setup Virtual Console.
    [    5.531746] systemd[1]: Started Remount Root and Kernel File Systems.
    [  OK  ] Started Remount Root and Kernel File Systems.
    [    5.560558] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
             Starting Flush Journal to Persistent Storage...
             Starting udev Coldplug all Devices...
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Started Create Static Device Nodes in /dev.
    [    7.265294] systemd-journald[93]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
             Starting udev Kernel Device Manager...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Started udev Kernel Device Manager.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
    [    9.549274] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    9.591593] 47401300.usb-phy supply vcc not found, using dummy regulator
    [    9.734803] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [    9.964540] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [  OK  ] Started udev Coldplug all Devices.
    [   10.178752] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [  OK  ] Found device /dev/ttyS0.
    [   10.672524] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [   10.760640] irq: no irq domain found for /ocp/pruss@4a300000/intc@4a320000 !
    [   10.768435] irq: no irq domain found for /ocp/pruss@4a300000/intc@4a320000 !
    [   11.025961]  remoteproc0: 4a334000.pru0 is available
    [   11.108170]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [   11.184389]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [   11.299847]  remoteproc0: Direct firmware load for am335x-pru0-fw failed with error -2
    [   11.307840]  remoteproc0: failed to load am335x-pru0-fw
    [   11.434521] pru-rproc 4a334000.pru0: booting the PRU core manually
             Starting Network Time Synchronization...
    [   11.458589]  remoteproc0: powering up 4a334000.pru0
             Starting Update UTMP about System Boot/Shutdown...[   11.589406]  remoteproc0: Direct firmware load for am335x-pru0-fw failed with error -2
    
    [   11.721196]  remoteproc0: request_firmware failed: -2
    [   11.726318] pru-rproc 4a334000.pru0: rproc_boot failed
    [   11.830598]  remoteproc0: releasing 4a334000.pru0
    [   11.835524] pru-rproc: probe of 4a334000.pru0 failed with error -2
    [   11.900500]  remoteproc0: 4a338000.pru1 is available
    [   11.905523]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [   12.120406]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [   12.145757] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [   12.302895]  remoteproc1: wkup_m3 is available
    [   12.307392]  remoteproc1: Note: remoteproc is still under development and considered experimental.
    [   12.317346]  remoteproc0: Direct firmware load for am335x-pru1-fw failed with error -2
    [   12.378979]  remoteproc0: failed to load am335x-pru1-fw
    [   12.384310] pru-rproc 4a338000.pru1: booting the PRU core manually
    [   12.459078]  remoteproc0: powering up 4a338000.pru1
    [   12.464092]  remoteproc0: Direct firmware load for am335x-pru1-fw failed with error -2
    [   12.526911]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [  OK  ] Started Network Time Synchronization.
    [   12.619411]  remoteproc0: request_firmware failed: -2
    [   12.624530] pru-rproc 4a338000.pru1: rproc_boot failed
    [   12.642864] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [   12.742697]  remoteproc0: releasing 4a338000.pru1
    [   12.747608] pru-rproc: probe of 4a338000.pru1 failed with error -2
    [   12.763965]  remoteproc1: powering up wkup_m3
    [   12.849805]  remoteproc1: Booting fw image am335x-pm-firmware.elf, size 217148
    [   12.857373]  remoteproc1: remote processor wkup_m3 is now up
    [   12.863085] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    [   12.917130] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [   13.736552] PM: bootloader does not support rtc-only!
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Found device /dev/ttyS3.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Reached target System Time Synchronized.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started Synchronize System and HW clocks.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting Permit User Sessions...
             Starting telnetd.service...
    [  OK  ] Started Kernel Logging Service.
    [  OK  ] Started System Logging Service.
             Starting Login Service...
    [  OK  ] Started D-Bus System Message Bus.
             Starting Network Service...
             Starting Print notice about GPLv3 packages...
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started telnetd.service.
    [   18.002046] usbcore: registered new interface driver usbfs
    [   18.007685] usbcore: registered new interface driver hub
    [   18.119316] usbcore: registered new device driver usb
    [  OK  ] Started Network Service.
    [   18.397155] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [   18.522971] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [   18.569732] hub 1-0:1.0: USB hub found
    [   18.612943] hub 1-0:1.0: 1 port detected
    [   18.650926] net eth0: initializing cpsw version 1.12 (0)
    [   18.656325] net eth0: initialized cpsw ale version 1.4
    [   18.691173] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [   18.697025] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [   18.705452] net eth0: ALE Table size 1024
    [   18.720742] net eth0: phy "4a101000.mdio:00" not found on slave 0, err -19
    [   18.727688] libphy: PHY  not found
    [   18.768488] hub 2-0:1.0: USB hub found
    [   18.772513] net eth0: phy "" not found on slave 1, err -19
    [   18.799012] hub 2-0:1.0: 1 port detected
    [   18.824583] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   19.430923] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            binutils
            dosfstools
    
    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.
    [  OK  ] Started Login Service.
    [  OK  ] Reached target Network.
             Starting Network Name Resolution...
             Starting thttpd.service...
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started thttpd.service.
    [  OK  ] Started Network Name Resolution.
             Starting rng-tools.service...
    [  OK  ] Started rng-tools.service.
             Starting thermal-zone-init.service...
    [  OK  ] Started thermal-zone-init.service.
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org am335x-evm ttyS0
    
    Arago 2016.08 am335x-evm ttyS0
    
    am335x-evm login: [   29.193946] random: nonblocking pool is initialized
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org am335x-evm ttyS0
    
    Arago 2016.08 am335x-evm ttyS0
    
    am335x-evm login:
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org am335x-evm ttyS0
    
    Arago 2016.08 am335x-evm ttyS0
    
    am335x-evm login:>

  • Could you please attach the DTS for the custom board?  Were any .dtsi files modified?

    Also please attach the results of the ethtool and ethtools -S commands.

    The error of the phy not found is indication of that the mdio driver is having trouble communicating with the PHY. The low voltage you found might have something to do with that. The PHY looks to be identified since the driver is printing out the TI driver name but the not found later on in the log is not good.

  • Hi,

    Attached is the .dts file we have used for our board. no modifications done in this from the evm dts file.

    also attached is the log of ethool

    thanks,

    ChandrashekarSE_AM3357_30Mar17.rar

  • The DP83867 PHY require some additional configuration. That needs to be enabled in the DTS file. This is described in the Documentation/dt-binding folder.

    Also other thing to check the phy id that is determined by the resistor strapping of the RX pins. From the logs you shared it seems its 0x0.

    So following patch should work for you:

    diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
    index e8c1edcac9e..26be4cc9f79 100644
    --- a/arch/arm/boot/dts/am335x-evm.dts
    +++ b/arch/arm/boot/dts/am335x-evm.dts
    @@ -8,6 +8,7 @@
     /dts-v1/;
     
     #include "am33xx.dtsi"
    +#include <dt-bindings/net/ti-dp83867.h>
     #include <dt-bindings/interrupt-controller/irq.h>
     
     / {
    @@ -708,6 +709,12 @@
         pinctrl-names = "default", "sleep";
         pinctrl-0 = <&davinci_mdio_default>;
         pinctrl-1 = <&davinci_mdio_sleep>;
    +        ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
    +        ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
    +        ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
    +    ti,strap-mode = <DP83867_4LEVEL_STRAP_MODE1>;
    +        ti,min-output-impedance;
    +
         status = "okay";
     };
     
    @@ -717,10 +724,9 @@
     };
     
     &cpsw_emac1 {
    -    phy_id = <&davinci_mdio>, <1>;
    +    phy_id = <&davinci_mdio>, <0>;
         phy-mode = "rgmii-txid";
     };
    -
     &tscadc {
         status = "okay";
         tsc {
    diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c
    index df43cf8b65f..6688fc242a2 100644
    --- a/drivers/net/phy/dp83867.c
    +++ b/drivers/net/phy/dp83867.c
    @@ -23,7 +23,7 @@
     #include <dt-bindings/net/ti-dp83867.h>
     
     #define DP83867_PHY_ID        0x2000a231
    -#define DP83867_DEVADDR        0x1f
    +#define DP83867_DEVADDR        0x0
     
     #define MII_DP83867_PHYCTRL    0x10
     #define MII_DP83867_MICR    0x12