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.

[AM335x]ping fail in Kernel using RMII

Dear Team,

My customer is working on board bring-up and found network PING failed in kernel although there was no issue in uboot to have ping.

e.g. in uboot, there was no issue in their network and successfully get image through TFTP. But, after linux boot-up completed, network was disconnected and failed to do PING. their log is in below. They are using DP83848JSQ 10/100 ethernet PHY.

~~~~~~~~~~

Configuring network interfaces... [   27.042394] net eth0: initializing cpsw version 1.12 (0)

[   27.051511] libphy: PHY 4a101000.mdio:00 not found

[   27.056370] net eth0: phy 4a101000.mdio:00 not found on slave 0

[   27.063407] tlv320aic3x-codec 1-001b: Failed to get supply 'IOVDD': -517

[   27.070206] tlv320aic3x-codec 1-001b: Failed to request supplies: -517

[   27.077451] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517

[   27.086375] cpu cpu0: cpu0 clock notifier not ready, retry

[   27.092711] davinci_evm sound: ASoC: CODEC DAI tlv320aic3x-hifi not registered

[   27.100028] davinci_evm sound: snd_soc_register_card failed (-517)

[   27.107327] omap_hsmmc 48060000.mmc: Got CD GPIO

[   27.151324] net eth0: phy found : id is : 0x20005c90

udhcpc (v1.23.1) started

Sending discover...

[   29.151599] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

Sending discover...

Sending discover...

No lease, forking to background

~~~~~~~~~~~

They also found GMII_SEL register(0x44E10650) was '0x000000C5' in below.

.

So, they would like to check DTS file in below. Could you please check below and let me know your advice?

--- x:\works\temp\src\kernel_iot\arch\arm\boot\dts\am335x-evm.dts          2016-01-28 22:32:45.000000000 +-0900
+++ x:\works\kigw\src\kernel_iot\arch\arm\boot\dts\am335x-evm.dts         2016-02-01 23:10:24.000000000 +-0900
@@ -327,12 +327,38 @@
                                       0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
                                       0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
                                       0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
                                       0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
                         >;
            };
+          
+           cpsw_kaon_kigw: cpsw_kaon_kigw {
+                         pinctrl-single,pins = <
+                                      0x10c ( PIN_INPUT_PULLDOWN | MUX_MODE1 ) /* (J18) gmii1_crs.rmii1_crs_dv */
+                                      0x110 ( PIN_INPUT_PULLDOWN | MUX_MODE1 ) /* (K19) gmii1_rxer.rmii1_rxer */
+                                      0x114 ( PIN_OUTPUT_PULLDOWN | MUX_MODE1 ) /* (K17) gmii1_txen.rmii1_txen */
+                                      0x128 ( PIN_OUTPUT_PULLDOWN | MUX_MODE1 ) /* (L18) gmii1_txd0.rmii1_txd0 */
+                                      0x124 ( PIN_OUTPUT_PULLDOWN | MUX_MODE1 ) /* (M18) gmii1_txd1.rmii1_txd1 */
+                                      0x140 ( PIN_INPUT_PULLDOWN | MUX_MODE1 ) /* (P18) gmii1_rxd0.rmii1_rxd0 */
+                                      0x13c ( PIN_INPUT_PULLDOWN | MUX_MODE1 ) /* (P19) gmii1_rxd1.rmii1_rxd1 */
+                                      0x144 ( PIN_INPUT_PULLDOWN | MUX_MODE0 ) /* (K18) rmii1_refclk.rmii1_refclk */
+                         >;
+           };
+          
+           cpsw_kaon_kigw_sleep: cpsw_kaon_kigw_sleep {
+                         pinctrl-single,pins = <
+                                      0x10c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (J18) gmii1_crs.rmii1_crs_dv */
+                                      0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (K19) gmii1_rxer.rmii1_rxer */
+                                      0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (K17) gmii1_txen.rmii1_txen */
+                                      0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (L18) gmii1_txd0.rmii1_txd0 */
+                                      0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (M18) gmii1_txd1.rmii1_txd1 */
+                                      0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (P18) gmii1_rxd0.rmii1_rxd0 */
+                                      0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (P19) gmii1_rxd1.rmii1_rxd1 */
+                                      0x144 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (K18) rmii1_refclk.rmii1_refclk */
+                         >;
+           };
 
             davinci_mdio_default: davinci_mdio_default {
                         pinctrl-single,pins = <
                                       /* MDIO */
                                       0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)   /* mdio_data.mdio_data */
                                       0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)                       /* mdio_clk.mdio_clk */
@@ -802,32 +828,43 @@
                         };
            };
};
 
 &mac {
            pinctrl-names = "default", "sleep";
+/* delete original GP-EVM Config.
            pinctrl-0 = <&cpsw_default>;
            pinctrl-1 = <&cpsw_sleep>;
+*/
+           /* for the KIGW config - RMII mode */
+           pinctrl-0 = <&cpsw_kaon_kigw>;
+           pinctrl-1 = <&cpsw_kaon_kigw_sleep>;
            status = "okay";
};
 
 &davinci_mdio {
            pinctrl-names = "default", "sleep";
            pinctrl-0 = <&davinci_mdio_default>;
            pinctrl-1 = <&davinci_mdio_sleep>;
            status = "okay";
};
 
 &cpsw_emac0 {
            phy_id = <&davinci_mdio>, <0>;
-            phy-mode = "rgmii-txid";
+           /* phy-mode = "rgmii-txid"; */
+           phy-mode = "rmii";
};
 
 &cpsw_emac1 {
            phy_id = <&davinci_mdio>, <1>;
-            phy-mode = "rgmii-txid";
+           /* phy-mode = "rgmii-txid"; */
+           phy-mode = "rmii";
+};
+
+&phy_sel {
+           rmii-clock-ext;
};
 
 &tscadc {
            status = "okay";
            tsc {
                         ti,wires = <4>;

Thanks and Best Regards,

SI.

 
  • Hi,

    Which kernel version is this? From the log I see that MDIO fails to find a PHY on eth0. I suggest they change:

    0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */

    to:

    0x14c (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */

    In general, since you say this is working in U-boot, they should check their pinmux settings in .dts against those in U-boot. They should also check that some pinmux data does not get overwritten by other entries in .dts.
  • Hi Biser,

    Thanks for your immediate response.

    Unfortunately they observed same failure in ethernet even with your suggestion.

    Could you please check their log attached?

    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.1.6-g52c4aa7 (youngchan@la) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) ) #1 PREEMPT Tue Feb 2 20:32:10 KST 2016
    [    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 0x8d000000
    [    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: 64960
    [    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: 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: 225692K/262144K available (6247K kernel code, 254K rwdata, 2096K rodata, 260K init, 229K bss, 11876K reserved, 24576K 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 - 0xff000000   ( 744 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 - 0xc082e05c   (8345 kB)
    [    0.000000]       .init : 0xc082f000 - 0xc0870000   ( 260 kB)
    [    0.000000]       .data : 0xc0870000 - 0xc08afb28   ( 255 kB)
    [    0.000000]        .bss : 0xc08b2000 - 0xc08eb7f8   ( 230 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Additional per-CPU info printed with stalls.
    [    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.000021] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000048] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000063] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000314] Console: colour dummy device 80x30
    [    0.000350] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000359] This ensures that you still see kernel messages. Please
    [    0.000366] update your kernel commandline.
    [    0.000392] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.118864] pid_max: default: 32768 minimum: 301
    [    0.119002] Security Framework initialized
    [    0.119078] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119093] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.120056] Initializing cgroup subsys blkio
    [    0.120089] Initializing cgroup subsys memory
    [    0.120149] Initializing cgroup subsys devices
    [    0.120170] Initializing cgroup subsys freezer
    [    0.120189] Initializing cgroup subsys perf_event
    [    0.120226] CPU: Testing write buffer coherency: ok
    [    0.120767] Setting up static identity map for 0x80008200 - 0x80008270
    [    0.122902] devtmpfs: initialized
    [    0.136563] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.149554] omap_hwmod: tptc0 using broken dt data from edma
    [    0.149726] omap_hwmod: tptc1 using broken dt data from edma
    [    0.149871] omap_hwmod: tptc2 using broken dt data from edma
    [    0.155228] omap_hwmod: debugss: _wait_target_disable failed
    [    0.219617] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.222680] pinctrl core: initialized pinctrl subsystem
    [    0.224442] NET: Registered protocol family 16
    [    0.227545] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.258868] cpuidle: using governor ladder
    [    0.288853] cpuidle: using governor menu
    [    0.293760] OMAP GPIO hardware version 0.1
    [    0.303644] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nand_pins_default, deferring probe
    [    0.306517] No ATAGs?
    [    0.306554] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.350529] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.355678] vgaarb: loaded
    [    0.356409] SCSI subsystem initialized
    [    0.357178] pps_core: LinuxPPS API ver. 1 registered
    [    0.357192] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.357237] PTP clock support registered
    [    0.358385] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.358689] Advanced Linux Sound Architecture Driver Initialized.
    [    0.359971] Switched to clocksource timer1
    [    0.374531] NET: Registered protocol family 2
    [    0.375666] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.375712] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.375751] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.375879] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.375905] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.376127] NET: Registered protocol family 1
    [    0.376665] RPC: Registered named UNIX socket transport module.
    [    0.376684] RPC: Registered udp transport module.
    [    0.376693] RPC: Registered tcp transport module.
    [    0.376702] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.377916] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    0.377981] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.380875] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.381002] audit: initializing netlink subsys (disabled)
    [    0.381110] audit: type=2000 audit(0.380:1): initialized
    [    0.391711] VFS: Disk quotas dquot_6.6.0
    [    0.392006] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.395080] NFS: Registering the id_resolver key type
    [    0.395181] Key type id_resolver registered
    [    0.395195] Key type id_legacy registered
    [    0.395295] jffs2: version 2.2. (NAND) (SUMMARY)  �� 2001-2006 Red Hat, Inc.
    [    0.398847] NET: Registered protocol family 38
    [    0.398949] io scheduler noop registered
    [    0.398970] io scheduler deadline registered
    [    0.399053] io scheduler cfq registered (default)
    [    0.400602] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.403330] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    0.404794] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.409679] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a 8250
    [    1.046764] console [ttyS0] enabled
    [    1.051652] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 156, base_baud = 3000000) is a 8250
    [    1.061758] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 157, base_baud = 3000000) is a 8250
    [    1.071790] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 158, base_baud = 3000000) is a 8250
    [    1.081961] [drm] Initialized drm 1.1.0 20060810
    [    1.101869] brd: module loaded
    [    1.112328] loop: module loaded
    [    1.116718] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.126483] mousedev: PS/2 mouse device common for all mice
    [    1.132236] i2c /dev entries driver
    [    1.250652] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.257170] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.269763] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.277751]  remoteproc0: wkup_m3 is available
    [    1.282476]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.291593]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.302351]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    1.313404] oprofile: using arm/armv7
    [    1.317596] Initializing XFRM netlink socket
    [    1.322083]  remoteproc0: Falling back to user helper
    [    1.327437] NET: Registered protocol family 17
    [    1.332087] NET: Registered protocol family 15
    [    1.336720] Key type dns_resolver registered
    [    1.341580] omap_voltage_late_init: Voltage driver support not added
    [    1.348599] ThumbEE CPU extension supported.
    [    1.353112] Registering SWP/SWPB emulation handler
    [    1.361452] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.366651] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.374843] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xaa
    [    1.381401] nand: Micron MT29F2G08ABBEAH4
    [    1.385439] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.393112] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.398569] 10 ofpart partitions found on MTD device 8000000.nand
    [    1.404721] Creating 10 MTD partitions on "8000000.nand":
    [    1.410181] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    1.416978] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    1.424281] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    1.431533] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    1.438726] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    1.446097] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    1.453116] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    1.460172] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    1.467910] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    1.477542] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [    1.574934] ubi0: attaching mtd9
    [    2.554751] ubi0: scanning is finished
    [    2.581737] ubi0: volume 0 ("rootfs") re-sized from 1652 to 1924 LEBs
    [    2.589328] ubi0: attached mtd9 (name "NAND.file-system", size 246 MiB)
    [    2.596076] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    2.603011] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    2.609744] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    2.616761] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
    [    2.622902] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    2.630181] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1152929796
    [    2.639356] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40
    [    2.648737] ubi0: background thread "ubi_bgt0d" started, PID 55
    [    2.740020] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    2.746172] davinci_mdio 4a101000.mdio: detected phy mask fffffffd
    [    2.771041] libphy: 4a101000.mdio: probed
    [    2.775101] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver unknown
    [    2.791091] cpsw 4a100000.ethernet: Detected MACID = a0:f6:fd:37:df:34
    [    2.810253] hctosys: unable to open rtc device (rtc0)
    [    2.830225] wlan-en-regulator: disabling
    [    2.834205] lis3_reg: disabling
    [    2.837361] vbat: disabling
    [    2.850142] ALSA device list:
    [    2.853132]   No soundcards found.
    [    2.880149] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 58
    [    2.941823] UBIFS (ubi0:0): start fixing up free space
    [   13.643488] UBIFS (ubi0:0): free space fixup complete
    [   13.667368] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [   13.674894] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [   13.684890] UBIFS (ubi0:0): FS size: 242905088 bytes (231 MiB, 1913 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [   13.695656] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [   13.701548] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID B55A07D8-EB61-4FA5-8136-54921DCCAEAA, small LPT model
    [   13.714825] VFS: Mounted root (ubifs filesystem) on device 0:14.
    [   13.722478] devtmpfs: mounted
    [   13.726031] Freeing unused kernel memory: 260K (c082f000 - c0870000)
    INIT: version 2.88 booting
    Error opening /dev/fb0: No such file or directory
    Starting udev
    [   14.520568] udevd[85]: starting version 182
    [   15.443958] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [   15.502733] 47401300.usb-phy supply vcc not found, using dummy regulator
    [   15.795313] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [   16.008718] PM: bootloader does not support rtc-only!
    [   16.159284] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [   16.351724] cpufreq: ondemand governor failed, too long transition latency of HW, fallback to performance governor
    [   16.681980]  remoteproc0: powering up wkup_m3
    [   16.687691]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 219803
    [   16.720630]  remoteproc0: remote processor wkup_m3 is now up
    [   16.720666] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    bootlogd: cannot allocate pseudo tty: No such file or directory
    [   19.891534] random: dd urandom read with 31 bits of entropy available
    Populating dev cache
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1729: No soundcards found...
    Wed Oct  7 18:51:05 UTC 2015
    INIT: Entering runlevel: 5
    Configuring network interfaces... [   22.891675] net eth0: initializing cpsw version 1.12 (0)
    [   22.900564] libphy: PHY 4a101000.mdio:00 not found
    [   22.905390] net eth0: phy 4a101000.mdio:00 not found on slave 0
    [   22.990437] net eth0: phy found : id is : 0x20005c90
    udhcpc (v1.23.1) started
    Sending discover...
    [   24.990793] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Starting system message bus: dbus.
    Starting telnet daemon.
    Starting rpcbind daemon...[   33.691863] NET: Registered protocol family 10
    done.
    starting statd: done
    Starting syslogd/klogd: done
    Starting thttpd.
    Enabling thermal zones...
    /etc/rc5.d/S98thermal-zone-init: line 7: /sys/class/thermal/thermal_zone*/mode: No such file or directory
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org am335x-evm /dev/ttyO0
    
    Arago 2015.09 am335x-evm /dev/ttyO0
    
    am335x-evm login: root
    root@am335x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr A0:F6:FD:37:DF:34
              inet6 addr: fe80::a2f6:fdff:fe37:df34/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:1412 (1.3 KiB)
              Interrupt:170
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:10 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

    And also, they confirmed pinmux settings between mux.c of uboot and dts file.

    Their SW is Processor SDK v2.0.

    Thanks and Best Regards,

    SI.

  • Are they using pre-emptive kernel? This is not supported prior to RT-Linux SDK release.
  • No. They are not using RT-Linux kernel. they are using normal Linux Kernel of SDK2.0

    Thanks and Best Regards,
    SI.
  • Biser,

    Their SW is processor SDK Linux 2.0.1.7, and normal Linux kernel(not RT kernel) as I said before.

    They found MDIO clock was different between U-Boot and Kernel as below, and are thinking they should block gigabit setting in the kernel as their PHY is 10/100, but couldn't. Could you please check if there is additional checked for 10/100 PHY in Kernel?

    UBOOT:

    Kernel :

    Thanks and Best Regards,

    SI.

  • Hi Biser,

    Have you checked this issue?

    Could you please check attached their DTS file also?

    /*
     * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License version 2 as
     * published by the Free Software Foundation.
     */
    /dts-v1/;
    
    #include "am33xx.dtsi"
    #include <dt-bindings/interrupt-controller/irq.h>
    
    / {
    	model = "TI AM335x EVM";
    	compatible = "ti,am335x-evm", "ti,am33xx";
    
    	memory {
    		device_type = "memory";
    		reg = <0x80000000 0x10000000>; /* 256 MB */
    	};
    
    	vbat: fixedregulator@0 {
    		compatible = "regulator-fixed";
    		regulator-name = "vbat";
    		regulator-min-microvolt = <5000000>;
    		regulator-max-microvolt = <5000000>;
    		regulator-boot-on;
    	};
    
    	lis3_reg: fixedregulator@1 {
    		compatible = "regulator-fixed";
    		regulator-name = "lis3_reg";
    		regulator-boot-on;
    	};
    
    	wlan_en_reg: fixedregulator@2 {
    		compatible = "regulator-fixed";
    		regulator-name = "wlan-en-regulator";
    		regulator-min-microvolt = <3300000>;
    		regulator-max-microvolt = <3300000>;
    
    		/* WLAN_EN GPIO for this board - Bank3, pin9 */
    		gpio = <&gpio3 9 0>;
    
    		/* WLAN card specific delay */
    		startup-delay-us = <70000>;
    		enable-active-high;
    	};
    
    	btwilink {
    		compatible = "btwilink";
    	};
    };
    
    &am33xx_pinmux {
        pinctrl-names = "default";
       jtag_pins_default: jtag_pins_default {
           pinctrl-single,pins = <
               0x1d0 ( PIN_INPUT | MUX_MODE0 ) /* (C14) TMS.TMS */
               0x1d4 ( PIN_INPUT | MUX_MODE0 ) /* (B13) TDI.TDI */
               0x1d8 ( PIN_OUTPUT | MUX_MODE0 ) /* (A14) TDO.TDO */
               0x1dc ( PIN_INPUT | MUX_MODE0 ) /* (B14) TCK.TCK */
               0x1e0 ( PIN_INPUT | MUX_MODE0 ) /* (A13) nTRST.nTRST */
               0x1e4 ( PIN_INPUT | MUX_MODE0 ) /* (A15) EMU0.EMU0 */
               0x1e8 ( PIN_INPUT | MUX_MODE0 ) /* (D14) EMU1.EMU1 */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       jtag_pins_sleep: jtag_pins_sleep {
           pinctrl-single,pins = <
               0x1d0 (PIN_INPUT_PULLDOWN ) /* (C14) TMS.TMS */
               0x1d4 (PIN_INPUT_PULLDOWN ) /* (B13) TDI.TDI */
               0x1d8 (PIN_INPUT_PULLDOWN ) /* (A14) TDO.TDO */
               0x1dc (PIN_INPUT_PULLDOWN ) /* (B14) TCK.TCK */
               0x1e0 (PIN_INPUT_PULLDOWN ) /* (A13) nTRST.nTRST */
               0x1e4 (PIN_INPUT_PULLDOWN ) /* (A15) EMU0.EMU0 */
               0x1e8 (PIN_INPUT_PULLDOWN ) /* (D14) EMU1.EMU1 */
           >;
       };
    
       gpio0_pins_default: gpio0_pins_default {
           pinctrl-single,pins = <
               0x1b0 ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (C15) xdma_event_intr0.gpio0[19] */
               0x24 ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (W16) gpmc_ad9.gpio0[23] */
               0x28 ( PIN_OUTPUT | MUX_MODE7 ) /* (T12) gpmc_ad10.gpio0[26] */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       gpio0_pins_sleep: gpio0_pins_sleep {
           pinctrl-single,pins = <
               0x1b0 (PIN_INPUT_PULLDOWN ) /* (C15) xdma_event_intr0.gpio0[19] */
               0x24 (PIN_INPUT_PULLDOWN ) /* (W16) gpmc_ad9.gpio0[23] */
               0x28 (PIN_INPUT_PULLDOWN ) /* (T12) gpmc_ad10.gpio0[26] */
           >;
       };
    
       gpio1_pins_default: gpio1_pins_default {
           pinctrl-single,pins = <
               0x78 ( PIN_OUTPUT | MUX_MODE7 ) /* (V18) gpmc_be1n.gpio1[28] */
               0x80 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (V14) gpmc_csn1.gpio1[30] */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       gpio1_pins_sleep: gpio1_pins_sleep {
           pinctrl-single,pins = <
               0x78 (PIN_INPUT_PULLDOWN ) /* (V18) gpmc_be1n.gpio1[28] */
               0x80 (PIN_INPUT_PULLDOWN ) /* (V14) gpmc_csn1.gpio1[30] */
           >;
       };
    
       gpio2_pins_default: gpio2_pins_default {
           pinctrl-single,pins = <
               0x88 ( PIN_OUTPUT | MUX_MODE7 ) /* (U17) gpmc_csn3.gpio2[0] */
               0x8c ( PIN_OUTPUT | MUX_MODE7 ) /* (V16) gpmc_clk.gpio2[1] */
               0xa0 ( PIN_OUTPUT | MUX_MODE7 ) /* (U1) lcd_data0.gpio2[6] */
               ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (U7) lcd_vsync.gpio2[22] */
               0xe4 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (T7) lcd_hsync.gpio2[23] */
               0xe8 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (W5) lcd_pclk.gpio2[24] */
               0xec ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (W7) lcd_ac_bias_en.gpio2[25] */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       gpio2_pins_sleep: gpio2_pins_sleep {
           pinctrl-single,pins = <
               0x88 (PIN_INPUT_PULLDOWN ) /* (U17) gpmc_csn3.gpio2[0] */
               0x8c (PIN_INPUT_PULLDOWN ) /* (V16) gpmc_clk.gpio2[1] */
               0xa0 (PIN_INPUT_PULLDOWN ) /* (U1) lcd_data0.gpio2[6] */
               0xe0 (PIN_INPUT_PULLDOWN ) /* (U7) lcd_vsync.gpio2[22] */
               0xe4 (PIN_INPUT_PULLDOWN ) /* (T7) lcd_hsync.gpio2[23] */
               0xe8 (PIN_INPUT_PULLDOWN ) /* (W5) lcd_pclk.gpio2[24] */
               0xec (PIN_INPUT_PULLDOWN ) /* (W7) lcd_ac_bias_en.gpio2[25] */
           >;
       };
    
       gpio3_pins_default: gpio3_pins_default {
           pinctrl-single,pins = <
               0x108 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (J19) gmii1_col.gpio3[0] */
               0x118 ( PIN_OUTPUT | MUX_MODE7 ) /* (L19) gmii1_rxdv.gpio3[4] */
               0x12c ( PIN_OUTPUT | MUX_MODE7 ) /* (N19) gmii1_txclk.gpio3[9] */
               0x130 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (M19) gmii1_rxclk.gpio3[10] */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       gpio3_pins_sleep: gpio3_pins_sleep {
           pinctrl-single,pins = <
               0x108 (PIN_INPUT_PULLDOWN ) /* (J19) gmii1_col.gpio3[0] */
               0x118 (PIN_INPUT_PULLDOWN ) /* (L19) gmii1_rxdv.gpio3[4] */
               0x12c (PIN_INPUT_PULLDOWN ) /* (N19) gmii1_txclk.gpio3[9] */
               0x130 (PIN_INPUT_PULLDOWN ) /* (M19) gmii1_rxclk.gpio3[10] */
           >;
       };
    
       nand_pins_default: nand_pins_default {
           pinctrl-single,pins = <
               0x1c ( PIN_INPUT | MUX_MODE0 ) /* (W15) gpmc_ad7.gpmc_ad7 */
               0x18 ( PIN_INPUT | MUX_MODE0 ) /* (U14) gpmc_ad6.gpmc_ad6 */
               0x14 ( PIN_INPUT | MUX_MODE0 ) /* (W14) gpmc_ad5.gpmc_ad5 */
               0x10 ( PIN_INPUT | MUX_MODE0 ) /* (V13) gpmc_ad4.gpmc_ad4 */
               0xc ( PIN_INPUT | MUX_MODE0 ) /* (W13) gpmc_ad3.gpmc_ad3 */
               0x8 ( PIN_INPUT | MUX_MODE0 ) /* (V12) gpmc_ad2.gpmc_ad2 */
               0x4 ( PIN_INPUT | MUX_MODE0 ) /* (V9) gpmc_ad1.gpmc_ad1 */
               0x0 ( PIN_INPUT | MUX_MODE0 ) /* (W10) gpmc_ad0.gpmc_ad0 */
               0x70 ( PIN_INPUT | MUX_MODE0 ) /* (R15) gpmc_wait0.gpmc_wait0 */
               0x74 ( PIN_OUTPUT | MUX_MODE0 ) /* (W18) gpmc_wpn.gpmc_wpn */
               0x7c ( PIN_OUTPUT | MUX_MODE0 ) /* (W8) gpmc_csn0.gpmc_csn0 */
               0x90 ( PIN_OUTPUT | MUX_MODE0 ) /* (V10) gpmc_advn_ale.gpmc_advn_ale */
               0x94 ( PIN_OUTPUT | MUX_MODE0 ) /* (W9) gpmc_oen_ren.gpmc_oen_ren */
               0x98 ( PIN_OUTPUT | MUX_MODE0 ) /* (U8) gpmc_wen.gpmc_wen */
               0x9c ( PIN_OUTPUT | MUX_MODE0 ) /* (V8) gpmc_be0n_cle.gpmc_be0n_cle */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       nand_pins_sleep: nand_pins_sleep {
           pinctrl-single,pins = <
               0x1c ( PIN_INPUT_PULLDOWN ) /* (W15) gpmc_ad7.gpmc_ad7 */
               0x18 ( PIN_INPUT_PULLDOWN ) /* (U14) gpmc_ad6.gpmc_ad6 */
               0x14 ( PIN_INPUT_PULLDOWN ) /* (W14) gpmc_ad5.gpmc_ad5 */
               0x10 ( PIN_INPUT_PULLDOWN ) /* (V13) gpmc_ad4.gpmc_ad4 */
               0xc ( PIN_INPUT_PULLDOWN ) /* (W13) gpmc_ad3.gpmc_ad3 */
               0x8 ( PIN_INPUT_PULLDOWN ) /* (V12) gpmc_ad2.gpmc_ad2 */
               0x4 ( PIN_INPUT_PULLDOWN ) /* (V9) gpmc_ad1.gpmc_ad1 */
               0x0 ( PIN_INPUT_PULLDOWN ) /* (W10) gpmc_ad0.gpmc_ad0 */
               0x70 ( PIN_INPUT_PULLDOWN ) /* (R15) gpmc_wait0.gpmc_wait0 */
               0x74 ( PIN_INPUT_PULLDOWN ) /* (W18) gpmc_wpn.gpmc_wpn */
               0x7c ( PIN_INPUT_PULLDOWN ) /* (W8) gpmc_csn0.gpmc_csn0 */
               0x90 ( PIN_INPUT_PULLDOWN ) /* (V10) gpmc_advn_ale.gpmc_advn_ale */
               0x94 ( PIN_INPUT_PULLDOWN ) /* (W9) gpmc_oen_ren.gpmc_oen_ren */
               0x98 ( PIN_INPUT_PULLDOWN ) /* (U8) gpmc_wen.gpmc_wen */
               0x9c ( PIN_INPUT_PULLDOWN ) /* (V8) gpmc_be0n_cle.gpmc_be0n_cle */
           >;
       };
    
       mdio_pins_default: mdio_pins_default {
           pinctrl-single,pins = <
               0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_clk.mdio_clk */
               0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       mdio_pins_sleep: mdio_pins_sleep {
           pinctrl-single,pins = <
               0x14c ( PIN_INPUT_PULLDOWN ) /* (R19) mdio_clk.mdio_clk */
               0x148 ( PIN_INPUT_PULLDOWN ) /* (P17) mdio_data.mdio_data */
           >;
       };
    
       rmii_pins_default: rmii_pins_default {
           pinctrl-single,pins = <
               0x10c (PIN_INPUT_PULLDOWN | MUX_MODE1)  /* mii1_crs.rmii1_crs */
               0x110 (PIN_INPUT_PULLUP | MUX_MODE1)    /* mii1_rxerr.rmii1_rxerr */
               0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txen.rmii1_txen */
               0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd1.rmii1_txd1 */
               0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd0.rmii1_txd0 */
               0x13c (PIN_INPUT_PULLUP | MUX_MODE1)    /* mii1_rxd1.rmii1_rxd1 */
               0x140 (PIN_INPUT_PULLUP | MUX_MODE1)    /* mii1_rxd0.rmii1_rxd0 */
               0x144 (PIN_INPUT_PULLDOWN | MUX_MODE0)  /* rmii1_ref_clk.rmii_ref_clk */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       rmii_pins_sleep: rmii_pins_sleep {
           pinctrl-single,pins = <
               0x10c ( PIN_INPUT_PULLDOWN ) /* (J18) gmii1_crs.rmii1_crs_dv */
               0x110 ( PIN_INPUT_PULLDOWN ) /* (K19) gmii1_rxer.rmii1_rxer */
               0x114 ( PIN_INPUT_PULLDOWN ) /* (K17) gmii1_txen.rmii1_txen */
               0x128 ( PIN_INPUT_PULLDOWN ) /* (L18) gmii1_txd0.rmii1_txd0 */
               0x124 ( PIN_INPUT_PULLDOWN ) /* (M18) gmii1_txd1.rmii1_txd1 */
               0x140 ( PIN_INPUT_PULLDOWN ) /* (P18) gmii1_rxd0.rmii1_rxd0 */
               0x13c ( PIN_INPUT_PULLDOWN ) /* (P19) gmii1_rxd1.rmii1_rxd1 */
               0x144 ( PIN_INPUT_PULLDOWN ) /* (K18) rmii1_refclk.rmii1_refclk */
           >;
       };
    
       wlan_sdio_pins_default: wlan_sdio_pins_default {
           pinctrl-single,pins = <
               0x100 ( PIN_INPUT | MUX_MODE0 ) /* (G19) mmc0_clk.mmc0_clk */
               0x104 ( PIN_OUTPUT | MUX_MODE0 ) /* (G17) mmc0_cmd.mmc0_cmd */
               0xfc ( PIN_INPUT | MUX_MODE0 ) /* (G18) mmc0_dat0.mmc0_dat0 */
               0xf8 ( PIN_INPUT | MUX_MODE0 ) /* (H17) mmc0_dat1.mmc0_dat1 */
               0xf4 ( PIN_INPUT | MUX_MODE0 ) /* (H18) mmc0_dat2.mmc0_dat2 */
               0xf0 ( PIN_INPUT | MUX_MODE0 ) /* (H19) mmc0_dat3.mmc0_dat3 */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       wlan_sdio_pins_sleep: wlan_sdio_pins_sleep {
           pinctrl-single,pins = <
               0x100 ( PIN_INPUT_PULLDOWN ) /* (G19) mmc0_clk.mmc0_clk */
               0x104 ( PIN_INPUT_PULLDOWN ) /* (G17) mmc0_cmd.mmc0_cmd */
               0xfc ( PIN_INPUT_PULLDOWN ) /* (G18) mmc0_dat0.mmc0_dat0 */
               0xf8 ( PIN_INPUT_PULLDOWN ) /* (H17) mmc0_dat1.mmc0_dat1 */
               0xf4 ( PIN_INPUT_PULLDOWN ) /* (H18) mmc0_dat2.mmc0_dat2 */
               0xf0 ( PIN_INPUT_PULLDOWN ) /* (H19) mmc0_dat3.mmc0_dat3 */
           >;
       };
    
       i2c0_pins_default: i2c0_pins_default {
           pinctrl-single,pins = <
               0x18c ( PIN_INPUT | MUX_MODE0 ) /* (B19) I2C0_SCL.I2C0_SCL */
               0x188 ( PIN_INPUT | MUX_MODE0 ) /* (C18) I2C0_SDA.I2C0_SDA */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       i2c0_pins_sleep: i2c0_pins_sleep {
           pinctrl-single,pins = <
               0x18c ( PIN_INPUT_PULLDOWN ) /* (B19) I2C0_SCL.I2C0_SCL */
               0x188 ( PIN_INPUT_PULLDOWN ) /* (C18) I2C0_SDA.I2C0_SDA */
           >;
       };
    
       usb0_pins_default: usb0_pins_default {
       pinctrl-single,pins = <
               0x21c ( PIN_OUTPUT | MUX_MODE0 ) /* (G16) USB0_DRVVBUS.USB0_DRVVBUS */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       usb0_pins_sleep: usb0_pins_sleep {
           pinctrl-single,pins = <
               0x21c ( PIN_INPUT_PULLDOWN ) /* (G16) USB0_DRVVBUS.USB0_DRVVBUS */
           >;
       };
    
       spi0_pins_default: spi0_pins_default {
           pinctrl-single,pins = <
               0x150 ( PIN_INPUT | MUX_MODE0 ) /* (A18) spi0_sclk.spi0_sclk */
               0x154 ( PIN_INPUT | MUX_MODE0 ) /* (B18) spi0_d0.spi0_d0 */
               0x158 ( PIN_INPUT | MUX_MODE0 ) /* (B17) spi0_d1.spi0_d1 */
               0x15c ( PIN_OUTPUT | MUX_MODE0 ) /* (A17) spi0_cs0.spi0_cs0 */
               0x160 ( PIN_OUTPUT | MUX_MODE0 ) /* (B16) spi0_cs1.spi0_cs1 */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       spi0_pins_sleep: spi0_pins_sleep {
           pinctrl-single,pins = <
               0x150 ( PIN_INPUT_PULLDOWN ) /* (A18) spi0_sclk.spi0_sclk */
               0x154 ( PIN_INPUT_PULLDOWN ) /* (B18) spi0_d0.spi0_d0 */
               0x158 ( PIN_INPUT_PULLDOWN ) /* (B17) spi0_d1.spi0_d1 */
               0x15c ( PIN_INPUT_PULLDOWN ) /* (A17) spi0_cs0.spi0_cs0 */
               0x160 ( PIN_INPUT_PULLDOWN ) /* (B16) spi0_cs1.spi0_cs1 */
           >;
       };
    
       uart0_pins_default: uart0_pins_default {
       pinctrl-single,pins = <
               0x170 ( PIN_INPUT | MUX_MODE0 ) /* (E19) uart0_rxd.uart0_rxd */
               0x174 ( PIN_OUTPUT | MUX_MODE0 ) /* (F17) uart0_txd.uart0_txd */
               0x168 ( PIN_INPUT | MUX_MODE0 ) /* (F19) uart0_ctsn.uart0_ctsn */
               0x16c ( PIN_OUTPUT | MUX_MODE0 ) /* (F18) uart0_rtsn.uart0_rtsn */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       uart0_pins_sleep: uart0_pins_sleep {
           pinctrl-single,pins = <
               0x170 ( PIN_INPUT_PULLDOWN ) /* (E19) uart0_rxd.uart0_rxd */
               0x174 ( PIN_INPUT_PULLDOWN ) /* (F17) uart0_txd.uart0_txd */
               0x168 ( PIN_INPUT_PULLDOWN ) /* (F19) uart0_ctsn.uart0_ctsn */
               0x16c ( PIN_INPUT_PULLDOWN ) /* (F18) uart0_rtsn.uart0_rtsn */
           >;
       };
    
       uart1_pins_default: uart1_pins_default {
           pinctrl-single,pins = <
               0x180 ( PIN_INPUT | MUX_MODE0 ) /* (D18) uart1_rxd.uart1_rxd */
               0x184 ( PIN_OUTPUT | MUX_MODE0 ) /* (C19) uart1_txd.uart1_txd */
               0x178 ( PIN_INPUT | MUX_MODE0 ) /* (E17) uart1_ctsn.uart1_ctsn */
               0x17c ( PIN_OUTPUT | MUX_MODE0 ) /* (D19) uart1_rtsn.uart1_rtsn */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       uart1_pins_sleep: uart1_pins_sleep {
           pinctrl-single,pins = <
               0x180 ( PIN_INPUT_PULLDOWN ) /* (D18) uart1_rxd.uart1_rxd */
               0x184 ( PIN_INPUT_PULLDOWN ) /* (C19) uart1_txd.uart1_txd */
               0x178 ( PIN_INPUT_PULLDOWN ) /* (E17) uart1_ctsn.uart1_ctsn */
               0x17c ( PIN_INPUT_PULLDOWN ) /* (D19) uart1_rtsn.uart1_rtsn */
           >;
       };
    
       uart3_pins_default: uart3_pins_default {
           pinctrl-single,pins = <
               0x134 ( PIN_INPUT | MUX_MODE1 ) /* (N17) gmii1_rxd3.uart3_rxd */
               0x138 ( PIN_OUTPUT | MUX_MODE1 ) /* (N16) gmii1_rxd2.uart3_txd */
               0xc8 ( PIN_INPUT | MUX_MODE6 ) /* (U5) lcd_data10.uart3_ctsn */
               0xcc ( PIN_OUTPUT | MUX_MODE6 ) /* (V5) lcd_data11.uart3_rtsn */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       uart3_pins_sleep: uart3_pins_sleep {
           pinctrl-single,pins = <
               0x134 ( PIN_INPUT_PULLDOWN ) /* (N17) gmii1_rxd3.uart3_rxd */
               0x138 ( PIN_INPUT_PULLDOWN ) /* (N16) gmii1_rxd2.uart3_txd */
               0xc8 ( PIN_INPUT_PULLDOWN ) /* (U5) lcd_data10.uart3_ctsn */
               0xcc ( PIN_INPUT_PULLDOWN ) /* (V5) lcd_data11.uart3_rtsn */
           >;
       };
    
       uart4_pins_default: uart4_pins_default {
           pinctrl-single,pins = <
               0x11c ( PIN_INPUT | MUX_MODE3 ) /* (M17) gmii1_txd3.uart4_rxd */
               0x120 ( PIN_OUTPUT | MUX_MODE3 ) /* (N18) gmii1_txd2.uart4_txd */
               0xd0 ( PIN_INPUT | MUX_MODE6 ) /* (V6) lcd_data12.uart4_ctsn */
               0xd4 ( PIN_OUTPUT | MUX_MODE6 ) /* (U6) lcd_data13.uart4_rtsn */
           >;
       };
    
       /* Optional sleep pin settings. Must manually enter values in the below skeleton. */
       uart4_pins_sleep: uart4_pins_sleep {
           pinctrl-single,pins = <
               0x11c ( PIN_INPUT_PULLDOWN ) /* (M17) gmii1_txd3.uart4_rxd */
               0x120 ( PIN_INPUT_PULLDOWN ) /* (N18) gmii1_txd2.uart4_txd */
               0xd0 ( PIN_INPUT_PULLDOWN ) /* (V6) lcd_data12.uart4_ctsn */
               0xd4 ( PIN_INPUT_PULLDOWN ) /* (U6) lcd_data13.uart4_rtsn */
           >;
       };
    };
    
    &uart0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&uart0_pins_default>;
    
    	status = "okay";
    };
    
    &uart1 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart1_pins_default>;
    	pinctrl-1 = <&uart1_pins_sleep>;
    
    	status = "okay";
    };
    
    &uart3 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart3_pins_default>;
    	pinctrl-1 = <&uart3_pins_sleep>;
    
    	status = "okay";
    };
    
    &uart4 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart4_pins_default>;
    	pinctrl-1 = <&uart4_pins_sleep>;
    
    	status = "okay";
    };
    
    &i2c0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&i2c0_pins_default>;
    };
    
    &usb {
    	status = "okay";
    };
    
    &usb_ctrl_mod {
    	status = "okay";
    };
    
    &usb0_phy {
    	status = "okay";
    };
    
    &cppi41dma  {
    	status = "okay";
    };
    
    &elm {
    	status = "okay";
    };
    
    &gpmc {
    	status = "okay";
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&nand_pins_default>;
    	pinctrl-1 = <&nand_pins_sleep>;
    	ranges = <0 0 0x08000000 0x1000000>;	/* CS0: 16MB for NAND */
    	nand@0,0 {
    		compatible = "ti,omap2-nand";
    		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
    		interrupt-parent = <&intc>;
    		interrupts = <100>;
    		ready-gpio = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
    		ti,nand-ecc-opt = "bch8";
    		ti,elm-id = <&elm>;
    		nand-bus-width = <8>;
    		gpmc,device-width = <1>;
    		gpmc,sync-clk-ps = <0>;
    		gpmc,cs-on-ns = <0>;
    		gpmc,cs-rd-off-ns = <44>;
    		gpmc,cs-wr-off-ns = <44>;
    		gpmc,adv-on-ns = <6>;
    		gpmc,adv-rd-off-ns = <34>;
    		gpmc,adv-wr-off-ns = <44>;
    		gpmc,we-on-ns = <0>;
    		gpmc,we-off-ns = <40>;
    		gpmc,oe-on-ns = <0>;
    		gpmc,oe-off-ns = <54>;
    		gpmc,access-ns = <64>;
    		gpmc,rd-cycle-ns = <82>;
    		gpmc,wr-cycle-ns = <82>;
    		gpmc,bus-turnaround-ns = <0>;
    		gpmc,cycle2cycle-delay-ns = <0>;
    		gpmc,clk-activation-ns = <0>;
    		gpmc,wr-access-ns = <40>;
    		gpmc,wr-data-mux-bus-ns = <0>;
    		/* MTD partition table */
    		/* All SPL-* partitions are sized to minimal length
    		 * which can be independently programmable. For
    		 * NAND flash this is equal to size of erase-block */
    		#address-cells = <1>;
    		#size-cells = <1>;
    		partition@0 {
    			label = "NAND.SPL";
    			reg = <0x00000000 0x000020000>;
    		};
    		partition@1 {
    			label = "NAND.SPL.backup1";
    			reg = <0x00020000 0x00020000>;
    		};
    		partition@2 {
    			label = "NAND.SPL.backup2";
    			reg = <0x00040000 0x00020000>;
    		};
    		partition@3 {
    			label = "NAND.SPL.backup3";
    			reg = <0x00060000 0x00020000>;
    		};
    		partition@4 {
    			label = "NAND.u-boot-spl-os";
    			reg = <0x00080000 0x00040000>;
    		};
    		partition@5 {
    			label = "NAND.u-boot";
    			reg = <0x000C0000 0x00100000>;
    		};
    		partition@6 {
    			label = "NAND.u-boot-env";
    			reg = <0x001C0000 0x00020000>;
    		};
    		partition@7 {
    			label = "NAND.u-boot-env.backup1";
    			reg = <0x001E0000 0x00020000>;
    		};
    		partition@8 {
    			label = "NAND.kernel";
    			reg = <0x00200000 0x00800000>;
    		};
    		partition@9 {
    			label = "NAND.file-system";
    			reg = <0x00A00000 0x0F600000>;
    		};
    	};
    };
    
    &mac {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&rmii_pins_default>;
    	pinctrl-1 = <&rmii_pins_sleep>;
    	status = "okay";
    };
    
    &davinci_mdio {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&mdio_pins_default>;
    	pinctrl-1 = <&mdio_pins_sleep>;
    	status = "okay";
    };
    
    &cpsw_emac0 {
    	phy_id = <&davinci_mdio>, <0>;
    	phy-mode = "rmii";
    };
    
    &cpsw_emac1 {
    	phy_id = <&davinci_mdio>, <1>;
    	phy-mode = "rmii";
    };
    
    &phy_sel {
        rmii-clock-ext;
    };
    
    &mmc1 {
    	dmas = <&edma 12
    		&edma 13>;
    	dma-names = "tx", "rx";
    	status = "okay";
    	vmmc-supply = <&wlan_en_reg>;
    	bus-width = <4>;
    	pinctrl-names = "default";
        pinctrl-0 = <&wlan_sdio_pins_default>;
    	pinctrl-1 = <&wlan_sdio_pins_sleep>;
    	ti,non-removable;
    	ti,needs-special-hs-handling;
    	cap-power-off-card;
    	keep-power-in-suspend;
    
    	#address-cells = <1>;
    	#size-cells = <0>;
    	wlcore: wlcore@2 {
    		compatible = "ti,wl1835";
    		reg = <2>;
    		interrupt-parent = <&gpio3>;
    		interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
    		ref-clock-frequency = <38400000>;
    	};
    };
    
    &edma {
    	ti,edma-xbar-event-map = /bits/ 16 <1 12
    					    2 13>;
    };
    
    &sham {
    	status = "okay";
    };
    
    &aes {
    	status = "okay";
    };
    
    &wkup_m3_ipc {
    	ti,scale-data-fw = "am335x-evm-scale-data.bin";
    };
    
    &rtc {
    	system-power-controller;
    };
    
    &sgx {
    	status = "okay";
    };
    

    Thanks and Best Regards,

    SI.

  • I have forwarded this to the Ethernet experts. They will reply here when feedback is available.
  • Dear Team,

    Please check attached latest log.

    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.1.6-g52c4aa7 (lee@dy) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) ) #6 PREEMPT Thu Feb 4 17:55:30 KST 2016
    [    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 0x8d000000
    [    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: 64960
    [    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: 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: 225680K/262144K available (6247K kernel code, 254K rwdata, 2096K rodata, 260K init, 229K bss, 11888K reserved, 24576K 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 - 0xff000000   ( 744 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 - 0xc082e05c   (8345 kB)
    [    0.000000]       .init : 0xc082f000 - 0xc0870000   ( 260 kB)
    [    0.000000]       .data : 0xc0870000 - 0xc08af868   ( 255 kB)
    [    0.000000]        .bss : 0xc08b2000 - 0xc08eb7f8   ( 230 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Additional per-CPU info printed with stalls.
    [    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.000021] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000047] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000062] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000316] Console: colour dummy device 80x30
    [    0.000351] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000360] This ensures that you still see kernel messages. Please
    [    0.000367] update your kernel commandline.
    [    0.000393] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.118874] pid_max: default: 32768 minimum: 301
    [    0.119010] Security Framework initialized
    [    0.119084] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119098] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.120062] Initializing cgroup subsys blkio
    [    0.120096] Initializing cgroup subsys memory
    [    0.120155] Initializing cgroup subsys devices
    [    0.120177] Initializing cgroup subsys freezer
    [    0.120196] Initializing cgroup subsys perf_event
    [    0.120232] CPU: Testing write buffer coherency: ok
    [    0.120771] Setting up static identity map for 0x80008200 - 0x80008270
    [    0.122914] devtmpfs: initialized
    [    0.138148] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.150851] omap_hwmod: tptc0 using broken dt data from edma
    [    0.151021] omap_hwmod: tptc1 using broken dt data from edma
    [    0.151162] omap_hwmod: tptc2 using broken dt data from edma
    [    0.156483] omap_hwmod: debugss: _wait_target_disable failed
    [    0.221452] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.224439] pinctrl core: initialized pinctrl subsystem
    [    0.226279] NET: Registered protocol family 16
    [    0.229571] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.258879] cpuidle: using governor ladder
    [    0.288865] cpuidle: using governor menu
    [    0.293699] OMAP GPIO hardware version 0.1
    [    0.304437] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [    0.308242] No ATAGs?
    [    0.308278] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.360978] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.366447] vgaarb: loaded
    [    0.367137] SCSI subsystem initialized
    [    0.367851] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.367929] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
    [    0.368154] pps_core: LinuxPPS API ver. 1 registered
    [    0.368167] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.368214] PTP clock support registered
    [    0.369468] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.369817] Advanced Linux Sound Architecture Driver Initialized.
    [    0.371015] Switched to clocksource timer1
    [    0.385878] NET: Registered protocol family 2
    [    0.387015] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.387063] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.387102] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.387232] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.387258] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.387494] NET: Registered protocol family 1
    [    0.388031] RPC: Registered named UNIX socket transport module.
    [    0.388051] RPC: Registered udp transport module.
    [    0.388060] RPC: Registered tcp transport module.
    [    0.388069] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.389294] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    0.389361] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.392375] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.392499] audit: initializing netlink subsys (disabled)
    [    0.392608] audit: type=2000 audit(0.390:1): initialized
    [    0.403618] VFS: Disk quotas dquot_6.6.0
    [    0.403940] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.407153] NFS: Registering the id_resolver key type
    [    0.407258] Key type id_resolver registered
    [    0.407270] Key type id_legacy registered
    [    0.407367] jffs2: version 2.2. (NAND) (SUMMARY)  �� 2001-2006 Red Hat, Inc.
    [    0.410922] NET: Registered protocol family 38
    [    0.411174] io scheduler noop registered
    [    0.411197] io scheduler deadline registered
    [    0.411281] io scheduler cfq registered (default)
    [    0.412789] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.415938] backlight supply power not found, using dummy regulator
    [    0.417757] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    0.419308] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.424613] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a 8250
    [    1.093897] console [ttyS0] enabled
    [    1.098751] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 156, base_baud = 3000000) is a 8250
    [    1.109072] [drm] Initialized drm 1.1.0 20060810
    [    1.114437] panel panel: pins are not configured
    [    1.121190] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.127858] [drm] No driver support for vblank timestamp query.
    [    1.189299] Console: switching to colour frame buffer device 100x30
    [    1.202709] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    1.208313] tilcdc 4830e000.lcdc: registered panic notifier
    [    1.241055] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [    1.262484] brd: module loaded
    [    1.272985] loop: module loaded
    [    1.277481] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.287345] mousedev: PS/2 mouse device common for all mice
    [    1.293107] i2c /dev entries driver
    [    1.411779] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.418314] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.429482] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.437840]  remoteproc0: wkup_m3 is available
    [    1.442588]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.451774]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.462577]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    1.475073] oprofile: using arm/armv7
    [    1.479261] Initializing XFRM netlink socket
    [    1.483763]  remoteproc0: Falling back to user helper
    [    1.489163] NET: Registered protocol family 17
    [    1.493815] NET: Registered protocol family 15
    [    1.498459] Key type dns_resolver registered
    [    1.503328] omap_voltage_late_init: Voltage driver support not added
    [    1.510406] ThumbEE CPU extension supported.
    [    1.514923] Registering SWP/SWPB emulation handler
    [    1.523319] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.528518] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.536835] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xaa
    [    1.543391] nand: Micron MT29F2G08ABBEAH4
    [    1.547428] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.555133] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.560590] 10 ofpart partitions found on MTD device 8000000.nand
    [    1.566747] Creating 10 MTD partitions on "8000000.nand":
    [    1.572340] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    1.579249] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    1.586554] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    1.593765] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    1.600943] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    1.608403] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    1.615517] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    1.622692] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    1.630520] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    1.640287] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [    1.739622] i2c i2c-0: of_i2c: modalias failure on /ocp/i2c@44e0b000/tps@2d
    [    1.746771] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.754342] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    1.761427] ubi0: attaching mtd9
    [    2.913732] ubi0: scanning is finished
    [    2.929122] ubi0: attached mtd9 (name "NAND.file-system", size 246 MiB)
    [    2.935996] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    2.942952] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    2.949687] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    2.956702] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
    [    2.962846] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    2.970107] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 359923890
    [    2.979220] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40
    [    2.988600] ubi0: background thread "ubi_bgt0d" started, PID 57
    [    2.996333] > > > davinci_mdio_probe: enter @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    [    3.003936] > > > davinci_mdio_probe_dt: bus_freq(200000)
    [    3.009379] > > > davinci_mdio_probe: data->bus->id(4a101000.mdio)> > > mdiobus_register: bus->id(4a101000.mdio)
    [    3.081065] davinci_mdio 4a101000.mdio: > > > davinci_mdio_reset: davinci mdio revision 1.6
    [    3.089479] davinci_mdio 4a101000.mdio: detected phy mask fffffffd
    [    3.097806] libphy: 4a101000.mdio: probed
    [    3.102014] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver TI DP83848
    [    3.110334] > > > davinci_mdio_probe: leave @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    [    3.118601] > > > cpsw_phy_sel_probe: set rmii_clock_external
    [    3.124826] cpsw 4a100000.ethernet: Detected MACID = a0:f6:fd:37:f7:25
    [    3.133125] hctosys: unable to open rtc device (rtc0)
    [    3.143381] wlan-en-regulator: disabling
    [    3.147360] lis3_reg: disabling
    [    3.150518] vbat: disabling
    [    3.153578] ALSA device list:
    [    3.156565]   No soundcards found.
    [    3.171108] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 60
    [    3.204474] UBIFS (ubi0:0): recovery needed
    [    3.291634] UBIFS (ubi0:0): recovery completed
    [    3.296282] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    3.303772] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    3.313770] UBIFS (ubi0:0): FS size: 242905088 bytes (231 MiB, 1913 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [    3.324535] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [    3.330413] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID C5B80A29-1A4C-48F5-8E14-E9A55D12ECFD, small LPT model
    [    3.342664] VFS: Mounted root (ubifs filesystem) on device 0:15.
    [    3.349739] devtmpfs: mounted
    [    3.353356] Freeing unused kernel memory: 260K (c082f000 - c0870000)
    INIT: version 2.88 booting
    Starting udev
    udev: Not using udev cache because of changes detected in the following files:
    udev:     /proc/version /proc/cmdline /proc/devices
    udev:     lib/udev/rules.d/* etc/udev/rules.d/*
    udev: The udev cache will be regenerated. To identify the detected changes,
    udev: compare the cached sysconf at   /etc/udev/cache.data
    udev: against the current sysconf at  /dev/shm/udev.cache
    [    4.272802] udevd[92]: starting version 182
    [    5.505913] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    5.750890] input: matrix_keypad@0 as /devices/platform/matrix_keypad@0/input/input0
    [    5.791578] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    5.863483] 47401300.usb-phy supply vcc not found, using dummy regulator
    [    5.890377] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input1
    [    6.016347] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [    6.299836] PM: bootloader does not support rtc-only!
    [    6.306347] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    6.326934] tsl2550 1-0039: standard operating mode
    [    6.451777] tsl2550: probe of 1-0039 failed with error -121
    [    6.599042] cpufreq: ondemand governor failed, too long transition latency of HW, fallback to performance governor
    [    6.641422] lm75: probe of 1-0048 failed with error -121
    [    6.993908]  remoteproc0: powering up wkup_m3
    [    6.999753]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 219803
    [    7.021349] lis3lv02d: unknown sensor type 0x87
    [    7.026136] lis3lv02d_i2c: probe of 1-0018 failed with error -22
    [    7.059060]  remoteproc0: remote processor wkup_m3 is now up
    [    7.059093] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    [    7.143834] input: volume_keys@0 as /devices/platform/volume_keys@0/input/input2
    [   10.951562] usbcore: registered new interface driver usbfs
    [   10.958563] usbcore: registered new interface driver hub
    [   10.965816] usbcore: registered new device driver usb
    [   11.196995] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [   11.203153] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [   11.211409] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [   11.218272] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   11.225579] usb usb1: Product: MUSB HDRC host driver
    [   11.230592] usb usb1: Manufacturer: Linux 4.1.6-g52c4aa7 musb-hcd
    [   11.236761] usb usb1: SerialNumber: musb-hdrc.0.auto
    [   11.244090] hub 1-0:1.0: USB hub found
    [   11.247994] hub 1-0:1.0: 1 port detected
    [   11.290472] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [   11.296423] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [   11.304629] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [   11.311519] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   11.318796] usb usb2: Product: MUSB HDRC host driver
    [   11.323979] usb usb2: Manufacturer: Linux 4.1.6-g52c4aa7 musb-hcd
    [   11.330141] usb usb2: SerialNumber: musb-hdrc.1.auto
    [   11.337301] hub 2-0:1.0: USB hub found
    [   11.341313] hub 2-0:1.0: 1 port detected
    [   11.498232] random: nonblocking pool is initialized
    bootlogd: cannot allocate pseudo tty: No such file or directory
    Populating dev cache
    [   11.955386] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1729: No soundcards found...
    Wed Oct  7 18:51:05 UTC 2015
    INIT: Entering runlevel: 5
    Configuring network interfaces... [   13.254025] net eth0: initializing cpsw version 1.12 (0)
    [   13.263005] libphy: PHY 4a101000.mdio:00 not found
    [   13.267855] net eth0: phy 4a101000.mdio:00 not found on slave 0
    [   13.352985] net eth0: phy found : id is : 0x20005c90
    [   13.358092] > > > Enter cpsw_gmii_sel_am3352
    [   13.362510] > > > cpsw_gmii_sel_am3352: set AM33XX_GMII_SEL_MODE_RMII
    [   13.369010] > > > cpsw_gmii_sel_am3352: AM33XX_GMII_SEL_RMII2_IO_CLK_EN
    udhcpc (v1.23.1) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Starting system message bus: dbus.
    Starting telnet daemon.
    Starting rpcbind daemon...[   24.142524] NET: Registered protocol family 10
    [   24.155746] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    done.
    starting statd: done
    Starting syslogd/klogd: done
    Starting thttpd.
    Enabling thermal zones...

    I found they did not implement DP83848 PHY driver, and they ported DP83848 PHY driver using below.

    -       http://lxr.free-electrons.com/source/drivers/net/phy/dp83848.c

    Even after this, they still failed to connect Ethernet in the kernel. Please check attached log file and let me know what is the issue.

    Thanks and Best Regards,

    SI.

  • From looking at the latest log file...

    The MDIO bus scan is showing that it found a PHY with address 1

    [ 3.097806] libphy: 4a101000.mdio: probed
    [ 3.102014] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver TI DP83848

    eth0 is defined in the DTS as saying it should be connected with a PHY with address 0

    The cpsw says that it cant' find a PHY at 0
    &cpsw_emac0 {
    phy_id = <&davinci_mdio>, <0>;
    - phy-mode = "rgmii-txid";
    + /* phy-mode = "rgmii-txid"; */
    + phy-mode = "rmii";
    };

    Configuring network interfaces... [ 22.891675] net eth0: initializing cpsw version 1.12 (0)
    [ 22.900564] libphy: PHY 4a101000.mdio:00 not found
    [ 22.905390] net eth0: phy 4a101000.mdio:00 not found on slave 0
    [ 22.990437] net eth0: phy found : id is : 0x20005c90

    What I can't explain at the moment is that this message indicates the PHY is up.
    [ 24.990793] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

    If there is only mac in the system set the the phy id address to 1 for eth0 and see if the link comes up.

    phy_id = <&davinci_mdio>, <1>;
  • Hi Schuyler Patton,

    Thanks for your immediate response.

    They are using ZCE package and eth1 should be disabled in ZCE package, right?
    Could you please let me know how they can disable eth1 in their Linux?

    Thanks and Best Regards,
    SI.
  • Hi Schuyler Patton,

    Thanks to your comment, they solved the issue after setting eth0 to address 1 from 0.

    Thanks for your help!.

    Thanks and Best Regards,
    SI.