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.

DRA756: No output clock for PHY-less connection

Part Number: DRA756

Hi all,

We have a customed DRA756 board and try to make its peripherals work well. Till now, all peripherals can work except for ethernet mac. For the mac, its connection is shown below:

In order to solve this, we try to locate problem. Then we found that RGMII[0]_TXC(W9) should have clock output signal during u-boot stage but not found, compared with TDA2Ex-17 Vision EVM Kit.

mux_data.h has been updated with pin mux tool. Below file is boot log of u-boot

dra756_boot.log
U-Boot SPL 2018.01-00573-g2a8cb4c-dirty (Feb 26 2020 - 08:57:19)
DRA756-GP ES2.0
Trying to boot from MMC1
no pinctrl state for default mode
MMC Device 1 not found
*** Warning - No MMC card found, using default environment



U-Boot 2018.01-00573-g2a8cb4c-dirty (Feb 26 2020 - 08:57:19 +0800)

CPU  : DRA756-GP ES2.0
Model: TI DRA756
Board: DRA756 REDRAM:  2 GiB

NAND:  0 MiB
MMC:   OMAP SD/MMC: 0
MMC Device 1 not found
*** Warning - No MMC card found, using default environment

In:    serial@4806a000
Out:   serial@4806a000
Err:   serial@4806a000

invalid mmc device
Net:   
PHY reset timed out

Warning: ethernet@48484000 using MAC address from ROM
eth0: ethernet@48484000

Hit any key to stop autoboot:  4  3  2  1  0 
 
switch to partitions #0, OK
mmc0 is current device

SD/MMC found on device 0

** Unable to read file boot.scr **

232 bytes read in 3 ms (75.2 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...

switch to partitions #0, OK
mmc0 is current device

SD/MMC found on device 0

4014592 bytes read in 178 ms (21.5 MiB/s)

98700 bytes read in 9 ms (10.5 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe4000, end 8ffff18b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.79-g3438de3474 (oe-user@oe-host) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 SMP PREEMPT Thu Jan 31 10:19:19 UTC 2019
[    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: DRA756
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
[    0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
[    0.000000] OF: reserved mem: initialized node ipu1-memory@9d000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, size 8 MiB
[    0.000000] OF: reserved mem: initialized node dsp2-memory@9f000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 128 MiB at 0x00000000b0000000
[    0.000000] OMAP4: Map 0x00000000fed00000 to fe600000 for dram barrier
[    0.000000] DRA752 ES2.0
[    0.000000] percpu: Embedded 15 pages/cpu @eed59000 s31372 r8192 d21876 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 517696
[    0.000000] Kernel command line: console=ttyO0,115200n8 elevator=noop root=/dev/mmcblk0p2 rw rootwait earlyprintk fixrtc omapdrm.num_crtc=2 consoleblank=0 cma=128M@0xB0000000 rootfstype=ext4 snd.slots_reserved=1,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: 1747812K/2077696K available (8192K kernel code, 346K rwdata, 2636K rodata, 2048K init, 282K bss, 34972K reserved, 294912K cma-reserved, 1160192K 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 - 0xc0a00000   (10208 kB)
[    0.000000]       .init : 0xc0e00000 - 0xc1000000   (2048 kB)
[    0.000000]       .data : 0xc1000000 - 0xc1056b58   ( 347 kB)
[    0.000000]        .bss : 0xc1058000 - 0xc109eba0   ( 283 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] OMAP clockevent source: timer1 at 32786 Hz
[    0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[    0.000017] Switching to timer-based delay loop, resolution 162ns
[    0.000350] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[    0.000359] OMAP clocksource: 32k_counter at 32768 Hz
[    0.000808] Console: colour dummy device 80x30
[    0.000827] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000834] This ensures that you still see kernel messages. Please
[    0.000841] update your kernel commandline.
[    0.000862] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[    0.000877] pid_max: default: 32768 minimum: 301
[    0.000982] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000995] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001522] CPU: Testing write buffer coherency: ok
[    0.001560] CPU0: Spectre v2: using ICIALLU workaround
[    0.001752] /cpus/cpu@0 missing clock-frequency property
[    0.001769] /cpus/cpu@1 missing clock-frequency property
[    0.001781] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.039873] Setting up static identity map for 0x80200000 - 0x80200060
[    0.059880] Hierarchical SRCU implementation.
[    0.080072] EFI services will not be available.
[    0.099941] smp: Bringing up secondary CPUs ...
[    0.170309] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.170314] CPU1: Spectre v2: using ICIALLU workaround
[    0.170413] smp: Brought up 1 node, 2 CPUs
[    0.170425] SMP: Total of 2 processors activated (24.59 BogoMIPS).
[    0.170433] CPU: All CPU(s) started in HYP mode.
[    0.170440] CPU: Virtualization extensions available.
[    0.170978] devtmpfs: initialized
[    0.188604] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
[    0.188944] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.189137] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.189154] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.194884] pinctrl core: initialized pinctrl subsystem
[    0.195345] DMI not present or invalid.
[    0.195600] NET: Registered protocol family 16
[    0.196759] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.197630] omap_hwmod: l3_main_2 using broken dt data from ocp
[    0.398659] cpuidle: using governor ladder
[    0.398692] cpuidle: using governor menu
[    0.406851] OMAP GPIO hardware version 0.1
[    0.426115] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_gpmc_pins, deferring probe
[    0.435946] No ATAGs?
[    0.436017] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.436030] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.436383] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.436393] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.436926] OMAP DMA hardware revision 0.0
[    0.446603] edma 43300000.edma: memcpy is disabled
[    0.449807] edma 43300000.edma: TI EDMA DMA engine driver
[    0.456510] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[    0.457764] ps_evm_3v3: supplied by evm_12v0
[    0.458087] evm_5v0: supplied by evm_12v0
[    0.461066] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[    0.461261] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[    0.461511] omap-iommu 58882000.mmu: 58882000.mmu registered
[    0.461744] omap-iommu 55082000.mmu: 55082000.mmu registered
[    0.462113] omap-iommu 41501000.mmu: 41501000.mmu registered
[    0.462320] omap-iommu 41502000.mmu: 41502000.mmu registered
[    0.464164] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c1_pins, deferring probe
[    0.464205] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c3_pins, deferring probe
[    0.464241] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c5_pins, deferring probe
[    0.464393] media: Linux media interface: v0.10
[    0.464427] Linux video capture interface: v2.00
[    0.464508] pps_core: LinuxPPS API ver. 1 registered
[    0.464516] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.464535] PTP clock support registered
[    0.464561] EDAC MC: Ver: 3.0.0
[    0.464844] dmi: Firmware registration failed.
[    0.465219] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[    0.465498] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
[    0.465835] Advanced Linux Sound Architecture Driver Initialized.
[    0.466612] clocksource: Switched to clocksource arch_sys_counter
[    0.474062] NET: Registered protocol family 2
[    0.474573] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.474636] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.474762] TCP: Hash tables configured (established 8192 bind 8192)
[    0.474830] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.474863] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.474981] NET: Registered protocol family 1
[    0.475264] RPC: Registered named UNIX socket transport module.
[    0.475273] RPC: Registered udp transport module.
[    0.475281] RPC: Registered tcp transport module.
[    0.475289] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.476503] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.476714] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.477739] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.481787] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.482283] NFS: Registering the id_resolver key type
[    0.482309] Key type id_resolver registered
[    0.482318] Key type id_legacy registered
[    0.482356] ntfs: driver 2.1.32 [Flags: R/O].
[    0.483685] bounce: pool size: 64 pages
[    0.483725] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.483736] io scheduler noop registered (default)
[    0.483745] io scheduler deadline registered
[    0.483831] io scheduler cfq registered
[    0.483841] io scheduler mq-deadline registered
[    0.483849] io scheduler kyber registered
[    0.488211] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[    0.488793] ti-iodelay 4844a000.padconf: Invalid Coarse delay count (0) (reg=0x00000000)
[    0.490587] dra7-pcie 51000000.pcie_ep: Linked as a consumer to phy-4a094000.pciephy.1
[    0.535935] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    0.538605] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 44, base_baud = 3000000) is a 8250
[    1.472140] console [ttyS0] enabled
[    1.476458] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 45, base_baud = 3000000) is a 8250
[    1.487090] omap_rng 48090000.rng: Random Number Generator ver. 20
[    1.496081] connector-hdmi connector@1: failed to find video source
[    1.512373] brd: module loaded
[    1.520892] loop: module loaded
[    1.527655] m25p80 spi0.0: n25q00 (131072 Kbytes)
[    1.532458] 10 ofpart partitions found on MTD device spi0.0
[    1.538083] Creating 10 MTD partitions on "spi0.0":
[    1.542987] 0x000000000000-0x000000010000 : "QSPI.SPL"
[    1.548797] 0x000000010000-0x000000020000 : "QSPI.SPL.backup1"
[    1.555231] 0x000000020000-0x000000030000 : "QSPI.SPL.backup2"
[    1.561704] 0x000000030000-0x000000040000 : "QSPI.SPL.backup3"
[    1.568146] 0x000000040000-0x000000140000 : "QSPI.u-boot"
[    1.574132] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
[    1.580756] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
[    1.587132] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
[    1.594171] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
[    1.600191] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
[    1.607223] libphy: Fixed MDIO Bus: probed
[    1.666649] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    1.674341] davinci_mdio 48485000.mdio: no live phy, scanning all
[    1.776620] davinci_mdio 48485000.mdio: timed out waiting for user access
[    1.883514] davinci_mdio 48485000.mdio: timed out waiting for idle
[    1.889761] davinci_mdio: probe of 48485000.mdio failed with error -5
[    1.897025] cpsw 48484000.ethernet: Invalid slave[1] phy_id property
[    1.903412] cpsw 48484000.ethernet: Detected MACID = 38:0b:3c:40:ea:52
[    1.910047] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
[    1.916432] cpsw 48484000.ethernet: ALE Table size 1024
[    1.921744] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
[    1.929651] cpsw 48484000.ethernet: cpsw: Detected MACID = 00:00:00:00:00:a0
[    1.937887] i2c /dev entries driver
[    1.941912] IR NEC protocol handler initialized
[    1.946462] IR RC5(x/sz) protocol handler initialized
[    1.951567] IR RC6 protocol handler initialized
[    1.956118] IR JVC protocol handler initialized
[    1.960685] IR Sony protocol handler initialized
[    1.965323] IR SANYO protocol handler initialized
[    1.970063] IR Sharp protocol handler initialized
[    1.974788] IR MCE Keyboard/mouse protocol handler initialized
[    1.980662] IR XMP protocol handler initialized
[    1.989461] sdhci: Secure Digital Host Controller Interface driver
[    1.995669] sdhci: Copyright(c) Pierre Ossman
[    2.000610] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.007562] sdhci-omap 4809c000.mmc: failed to set system capabilities
[    2.014684] sdhci-omap 480b4000.mmc: failed to set system capabilities
[    2.022006] ledtrig-cpu: registered to indicate activity on CPUs
[    2.031870] NET: Registered protocol family 10
[    2.037162] Segment Routing with IPv6
[    2.040890] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.047292] NET: Registered protocol family 17
[    2.051938] Key type dns_resolver registered
[    2.056387] omap_voltage_late_init: Voltage driver support not added
[    2.062797] Power Management for TI OMAP4+ devices.
[    2.067963] Registering SWP/SWPB emulation handler
[    2.085016] dmm 4e000000.dmm: workaround for errata i878 in use
[    2.092641] dmm 4e000000.dmm: initialized all PAT entries
[    2.098696] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    2.103863] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    2.111296] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[    2.117705] nand: Macronix MX30LF2G18AC
[    2.121562] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.129273] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[    2.134695] 10 ofpart partitions found on MTD device omap2-nand.0
[    2.140834] Creating 10 MTD partitions on "omap2-nand.0":
[    2.146263] 0x000000000000-0x000000020000 : "NAND.SPL"
[    2.152213] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[    2.158793] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[    2.165349] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[    2.171920] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[    2.178779] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[    2.185722] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[    2.192218] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[    2.199399] 0x000000200000-0x000000a00000 : "NAND.kernel"
[    2.212910] 0x000000a00000-0x000010000000 : "NAND.file-system"
[    2.451598] palmas 0-0058: IRQ missing: skipping irq request
[    2.486957] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
[    2.493862] SMPS123: supplied by regulator-dummy
[    2.501460] SMPS45: supplied by regulator-dummy
[    2.508041] SMPS6: supplied by regulator-dummy
[    2.514329] SMPS7: supplied by regulator-dummy
[    2.520802] SMPS8: supplied by regulator-dummy
[    2.527170] SMPS9: supplied by regulator-dummy
[    2.532700] LDO1: supplied by regulator-dummy
[    2.539139] LDO2: supplied by regulator-dummy
[    2.545321] random: fast init done
[    2.548780] LDO3: supplied by regulator-dummy
[    2.555009] LDO4: supplied by regulator-dummy
[    2.560214] LDO5: supplied by regulator-dummy
[    2.565393] LDO6: supplied by regulator-dummy
[    2.570582] LDO7: supplied by regulator-dummy
[    2.575750] LDO8: supplied by regulator-dummy
[    2.580941] LDO9: supplied by regulator-dummy
[    2.587381] LDOLN: supplied by regulator-dummy
[    2.593729] LDOUSB: supplied by regulator-dummy
[    2.602699] GPIO line 508 (CT_CP_HPD) hogged as output/high
[    2.608445] GPIO line 507 (LS_OE) hogged as output/high
[    2.614067] pcf857x 0-0020: probed
[    2.618102] pcf857x 0-0023: probed
[    2.621580] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[    2.657204] tmp102 2-0048: initialized
[    2.661491] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
[    2.681940] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
[    2.688272] DSS: OMAP DSS rev 6.1
[    2.692325] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
[    2.700823] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
[    2.711653] evm_3v3_sd: supplied by sysen1
[    2.776641] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
[    2.784431] evm_1v8: supplied by smps9
[    2.846637] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
[    2.860713] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.867476] [drm] No driver support for vblank timestamp query.
[    2.873539] [drm] Cannot find any crtc or sizes
[    2.879151] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[    2.887098] hctosys: unable to open rtc device (rtc0)
[    2.892822] vtt_fixed: supplied by evm_3v3_sd
[    2.897418] ldousb: disabling
[    2.898606] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.901253] mmc0: new high speed SDHC card at address aaaa
[    2.901486] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    2.903453]  mmcblk0: p1 p2
[    2.921474] ALSA device list:
[    2.924452]   No soundcards found.
[    2.935147] mmc1: new high speed MMC card at address 0001
[    2.940847] mmcblk1: mmc1:0001 DG4064 59.2 GiB 
[    2.945698] mmcblk1boot0: mmc1:0001 DG4064 partition 1 4.00 MiB
[    2.951981] mmcblk1boot1: mmc1:0001 DG4064 partition 2 4.00 MiB
[    2.958130] mmcblk1rpmb: mmc1:0001 DG4064 partition 3 4.00 MiB
[    2.969654] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.977815] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.993179] devtmpfs: mounted
[    2.997028] Freeing unused kernel memory: 2048K
[    3.294894] systemd[1]: System time before build time, advancing clock.
[    3.335275] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN default-hierarchy=hybrid)
[    3.356992] systemd[1]: Detected architecture arm.

Welcome to Arago 2018.10!

[    3.409526] systemd[1]: Set hostname to <dra7xx-evm>.
[    3.719004] random: systemd: uninitialized urandom read (16 bytes read)
[    3.725776] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    3.757103] random: systemd: uninitialized urandom read (16 bytes read)
[    3.764055] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    3.796780] random: systemd: uninitialized urandom read (16 bytes read)
[    3.805515] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    3.836843] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    3.876936] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[    3.916910] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    3.936749] [drm] Cannot find any crtc or sizes
[    3.946821] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Process Core Dump Socket.
[  OK  ] Created slice System Slice.
         Starting Load Kernel Modules...
         Mounting POSIX Message Queue File System...
[    4.084942] cmemk: loading out-of-tree module taints kernel.
[    4.091460] CMEMK module: reference Linux version 4.14.79
[    4.097401] no physical memory specified
[    4.101347] cmemk initialized
[  OK  ] Created slice system-getty.slice.
[    4.112375] cryptodev: driver 1.9 loaded.
         Mounting Kernel Debug File System...
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Reached target Slices.
[  OK  ] Reached target Swap.
         Mounting Temporary Directory (/tmp)...
[  OK  ] Listening on udev Kernel Socket.
         Starting Journal Service...
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Remount Root and Kernel File Systems...
[    4.438959] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Started Journal Service.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Rebuild Hardware Database...
         Starting Create System Users...
         Starting Apply Kernel Variables...
         Mounting Kernel Configuration File System...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Create System Users.
[  OK  ] Started Apply Kernel Variables.
[    4.963675] systemd-journald[87]: Received request to flush runtime journal from PID 1
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Create Static Device Nodes in /dev.
         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...
         Starting Rebuild Journal Catalog...
         Starting Rebuild Dynamic Linker Cache...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Started Rebuild Journal Catalog.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Rebuild Dynamic Linker Cache.
[  OK  ] Started Rebuild Hardware Database.
         Starting udev Coldplug all Devices...
         Starting Update is Completed...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Update is Completed.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Reached target Timers.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
         Starting Network Service...
[  OK  ] Listening on dropbear.socket.
[    6.969478] ov1063x: probe of 2-0037 failed with error -121
[  OK  ] Reached target Sockets.
[    6.991353] at24 2-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[    7.004854] at24 2-0054: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[  OK  ] Reached target Basic System.
[    7.057320] CAN device driver interface
[  OK  ] Started Kernel Logging Service.
[    7.071568] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=91)
[    7.100307] at24 4-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[    7.100724] at24 4-0054: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[    7.189419] c_can_platform 48480000.can: c_can_platform device registered (regs=fa480000, irq=92)
[    7.200614] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[    7.204728] omap-des 480a5000.des: will run requests pump with realtime priority
[    7.240891] omap_rtc 48838000.rtc: already running
[    7.241333] omap_rtc 48838000.rtc: registered as rtc0
[    7.281297] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
[    7.307017] vpe 489d0000.vpe: Device registered as /dev/video0
[    7.363223] vip 48970000.vip: loading firmware vpdma-1b8.bin
[    7.386656] vip 48970000.vip: VPDMA firmware loaded
         Starting TI IPC Daemon...
[    7.465283] SCSI subsystem initialized
[  OK  ] Started Periodic Command Scheduler.
[    7.513272] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
         [    7.542167] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
Starting Login Service...
[  OK  ] Reached target Containers.
[  OK  ] Started Job spooling tools.
         Starting Print notice about GPLv3 packages...
[    7.660127] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
[  OK  ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
         Starting RPC Bind Service...
[  OK  ] Started D-Bus System Message Bus.
[    7.686136] omap-aes 4b500000.aes: will run requests pump with realtime priority
[    7.791530] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
[    7.814142] omap-aes 4b700000.aes: will run requests pump with realtime priority
[    7.845111] ahci 4a140000.sata: forcing port_map 0x0 -> 0x1
[    7.852569] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    7.906056] ahci 4a140000.sata: flags: 64bit ncq sntf pm led clo only pmp pio slum part ccc apst 
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
         Starting uim-sysfs.service...
[  OK  ] Started System Logging Service.
[  OK  ] Started Network Service.
[  OK  ] Started TI IPC Daemon.
[    8.013019] net eth1: initializing cpsw version 1.15 (0)
[    8.019773] scsi host0: ahci
[    8.020037] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 81
[    8.032460] [drm] Initialized pvr 1.14.3699939 20110701 for 56000000.gpu on minor 1
[    8.062905] random: crng init done
[    8.062909] random: 7 urandom warning(s) missed due to ratelimiting
[    8.102255] NET: Registered protocol family 15
[  OK  ] Started RPC Bind Service.
[  OK  ] Found device /dev/ttyS0.
[    8.348701] ata1: SATA link down (SStatus 0 SControl 300)
[    8.350634] libphy: PHY  not found
[    8.350641] net eth1: phy "" not found on slave 1, err -19
[    8.380219] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[    8.403450] net eth0: initializing cpsw version 1.15 (0)
[    8.424481] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[    8.455694] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    8.461224] Initializing XFRM netlink socket
[    8.669718] extcon-usb-gpio: probe of extcon_usb2 failed with error -16
[    8.711775] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
[    8.764712] omap-hdmi-audio omap-hdmi-audio.0.auto: ASoC: no DMI vendor name!
[    8.864717] OF: /sound0/simple-audio-card,cpu: could not get #sound-dai-cells for /ocp/mcasp@48468000
[    8.901495] asoc-simple-card sound0: parse error -22
[    8.938192] asoc-simple-card: probe of sound0 failed with error -22
[    9.446682] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[    9.456572] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Reached target Network.
         Starting Enable and configure wl18xx bluetooth stack...
         Starting Permit User Sessions...
         Starting Lightning Fast Webserver With Light System Requirements...
         Starting Network Name Resolution...
[  OK  ] Started Login Service.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
         Starting Synchronize System and HW clocks...
[  OK  ] Started Lightning Fast Webserver With Light System Requirements.
[  OK  ] Started Enable and configure wl18xx bluetooth stack.
[  OK  ] Started Synchronize System and HW clocks.
[  OK  ] Started Network Name Resolution.
[   10.280380] usbcore: registered new interface driver usbfs
[   10.290649] usbcore: registered new interface driver hub
[   10.299522] usbcore: registered new device driver usb
[   10.326037] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   10.333900] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[   10.348896] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
[   10.362876] xhci-hcd xhci-hcd.1.auto: irq 180, io mem 0x48890000
[   10.370682] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   10.382882] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.391846] usb usb1: Product: xHCI Host Controller
[   10.398025] usb usb1: Manufacturer: Linux 4.14.79-g3438de3474 xhci-hcd
[   10.406302] usb usb1: SerialNumber: xhci-hcd.1.auto
[   10.418871] hub 1-0:1.0: USB hub found
[   10.422820] hub 1-0:1.0: 1 port detected
[   10.430334] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   10.445948] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[   10.463381] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed
[   10.482879] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   10.499879] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[   10.516247] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.534255] usb usb2: Product: xHCI Host Controller
[   10.545227] usb usb2: Manufacturer: Linux 4.14.79-g3438de3474 xhci-hcd
[   10.560189] usb usb2: SerialNumber: xhci-hcd.1.auto
[   10.575344] hub 2-0:1.0: USB hub found
[   10.584887] hub 2-0:1.0: 1 port detected
[  OK  ] Reached target Sound Card.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started NFS status monitor for NFSv2/3 locking..
***************************************************************
***************************************************************
NOTICE: This file system contains the following GPLv3 packages:
	autoconf
	bash-dev
	bash
	binutils-dev
	binutils
	bison-dev
	bison
	cifs-utils
	cpio
	cpp-symlinks
	cpp
	dosfstools
	elfutils-dev
	elfutils
	g++-symlinks
	g++
	gawk
	gcc-symlinks
	gcc
	gdb
	gdbc6x
	gdbserver
	gettext
	glmark2
	gstreamer1.0-libav
	gzip
	libasm1
	libcairo-perf-utils
	libdw1
	libelf1
	libgdbm-compat4
	libgdbm-dev
	libgdbm4
	libgettextlib
	libgettextsrc
	libgmp10
	libidn11
	libmpc3
	libmpfr4
	libreadline-dev
	libreadline7
	libunistring2
	m4-dev
	m4
	make
	nettle
	parted
	python3-pycairo
	swig-dev
	swig
	which

If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution.  This can be done using
the opkg remove command.  i.e.:
    opkg remove <package>
Where <package> is the name printed in the list above

NOTE: If the package is a dependency of another package you
      will be notified of the dependent packages.  You should
      use the --force-removal-of-dependent-packages option to
      also remove the dependent packages as well
***************************************************************
***************************************************************
[  OK  ] Started uim-sysfs.service.
[  OK  ] Started Print notice about GPLv3 packages.
         Starting rc.pvr.service...
[   11.425487] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
[  OK  ] Started rc.pvr.service.
         Starting weston.service...
[  OK  ] Started weston.service.
         Starting telnetd.service...
[  OK  ] Started telnetd.service.
         Starting thttpd.service...
[  OK  ] Started thttpd.service.
         Starting rng-tools.service...
[  OK  ] Started rng-tools.service.

 _____                    _____           _         _   
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
              |___|                    |___|            

Arago Project http://arago-project.org dra7xx-evm ttyS0

Arago 2018.10 dra7xx-evm ttyS0

dra7xx-evm login: 
and device tree description in u-boot folder about the mac is below. Is there anything we need to change in dts or u-boot code ? Thanks for your great help.

&mac {
	status = "okay";
	dual_emac;
	/*mac-address = [00 03 35 00 00 ff];*/
};

&cpsw_emac0 {
	status = "okay";
	phy_id = <&davinci_mdio>, <2>;
	phy-mode = "rgmii";
	dual_emac_res_vlan = <1>;
	/*
	fixed-link {
		speed = <1000>;
		full-duplex;
	};*/
};

&cpsw_emac1 {
	status = "okay";
	phy_id = <&davinci_mdio>, <3>;
	phy-mode = "rgmii";
	dual_emac_res_vlan = <2>;
};

		mac: ethernet@48484000 {
			compatible = "ti,dra7-cpsw","ti,cpsw";
			ti,hwmods = "gmac";
			clocks = <&gmac_main_clk>, <&gmac_rft_clk_mux>;
			clock-names = "fck", "cpts";
			cpdma_channels = <8>;
			ale_entries = <1024>;
			bd_ram_size = <0x2000>;
			mac_control = <0x20>;
			slaves = <2>;
			active_slave = <0>;
			cpts_clock_mult = <0x784CFE14>;
			cpts_clock_shift = <29>;
			reg = <0x48484000 0x1000
			       0x48485200 0x2E00>;
			#address-cells = <1>;
			#size-cells = <1>;

			/*
			 * Do not allow gating of cpsw clock as workaround
			 * for errata i877. Keeping internal clock disabled
			 * causes the device switching characteristics
			 * to degrade over time and eventually fail to meet
			 * the data manual delay time/skew specs.
			 */
			ti,no-idle;

			/*
			 * rx_thresh_pend
			 * rx_pend
			 * tx_pend
			 * misc_pend
			 */
			interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>;
			ranges;
			syscon = <&scm_conf>;
			status = "disabled";

			davinci_mdio: mdio@48485000 {
				compatible = "ti,cpsw-mdio","ti,davinci_mdio";
				#address-cells = <1>;
				#size-cells = <0>;
				ti,hwmods = "davinci_mdio";
				bus_freq = <1000000>;
				reg = <0x48485000 0x100>;
			};

			cpsw_emac0: slave@48480200 {
				/* Filled in by U-Boot */
				mac-address = [ 00 00 00 00 00 00 ];
			};

			cpsw_emac1: slave@48480300 {
				/* Filled in by U-Boot */
				mac-address = [ 00 00 00 00 00 00 ];
			};
            
			phy_sel: cpsw-phy-sel@4a002554 {
				compatible = "ti,dra7xx-cpsw-phy-sel";
				reg= <0x4a002554 0x4>;
				reg-names = "gmii-sel";
			};
			/*nop_phy {
				compatible = "nop-phy";
				#phy-cells = <0>;
			};*/
		};

Best Regards,

Daniel

  • Hi Daniel,

    One obvious change which you can make to avoid " [    1.897025] cpsw 48484000.ethernet: Invalid slave[1] phy_id property " is removing

    phy_id = <&davinci_mdio>, <2>;

    in your cpsw_emac0 property.

    Fixed link properties are described under Documentation/devicetree/bindings/net/fixed-link.txt. Please ensure your configuration matches with it.

    And also can you please attach ethtool statistics by running below command in your board's command prompt.

    ethtool -S eth0

    Regards

    Santhana Bharathi

  • Hi Santhana,

    Thanks for your quick reply and help. One possible missing notation is that the dts code I pasted in question is from u-boot instead of Linux.

    Then I have modified dts in u-boot and Linux with your suggestion. After modification, I compiled u-boot and Linux dts, then u-boot files (MLO and u-boot.img) and Linux dts have been replace. For result,  RGMII[0]_TXC(W9) still does not output clock signal during the whole booting process. Boot file including ethtool statistics is attached here

    bootlog_20200320_1609.log
    U-Boot SPL 2018.01-00573-g2a8cb4c-dirty (Mar 02 2020 - 15:58:55)
    DRA756-GP ES2.0
    Trying to boot from MMC1
    no pinctrl state for default mode
    MMC Device 1 not found
    *** Warning - No MMC card found, using default environment
    
    
    
    U-Boot 2018.01-00573-g2a8cb4c-dirty (Mar 02 2020 - 15:58:55 +0800)
    
    CPU  : DRA756-GP ES2.0
    Model: TI DRA756
    Board: DRA756 ADAS REDRAM:  2 GiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0
    MMC Device 1 not found
    *** Warning - No MMC card found, using default environment
    
    In:    serial@4806a000
    Out:   serial@4806a000
    Err:   serial@4806a000
    invalid mmc device
    Net:   
    Could not get PHY for ethernet@48484000: addr -17126840
    
    Warning: ethernet@48484000 using MAC address from ROM
    eth0: ethernet@48484000
    
    Hit any key to stop autoboot:  4  3  2  1  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file boot.scr **
    232 bytes read in 3 ms (75.2 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc0 ...
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    4014592 bytes read in 178 ms (21.5 MiB/s)
    98661 bytes read in 8 ms (11.8 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ffe4000, end 8ffff164 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.79-g3438de3474 (oe-user@oe-host) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 SMP PREEMPT Thu Jan 31 10:19:19 UTC 2019
    [    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt: Machine model: DRA756
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
    [    0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
    [    0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node ipu1-memory@9d000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, size 8 MiB
    [    0.000000] OF: reserved mem: initialized node dsp2-memory@9f000000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 128 MiB at 0x00000000b0000000
    [    0.000000] OMAP4: Map 0x00000000fed00000 to fe600000 for dram barrier
    [    0.000000] DRA752 ES2.0
    [    0.000000] percpu: Embedded 15 pages/cpu @eed59000 s31372 r8192 d21876 u61440
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 517696
    [    0.000000] Kernel command line: console=ttyO0,115200n8 elevator=noop root=/dev/mmcblk0p2 rw rootwait earlyprintk fixrtc omapdrm.num_crtc=2 consoleblank=0 cma=128M@0xB0000000 rootfstype=ext4 snd.slots_reserved=1,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: 1747812K/2077696K available (8192K kernel code, 346K rwdata, 2636K rodata, 2048K init, 282K bss, 34972K reserved, 294912K cma-reserved, 1160192K 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 - 0xc0a00000   (10208 kB)
    [    0.000000]       .init : 0xc0e00000 - 0xc1000000   (2048 kB)
    [    0.000000]       .data : 0xc1000000 - 0xc1056b58   ( 347 kB)
    [    0.000000]        .bss : 0xc1058000 - 0xc109eba0   ( 283 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000] 	Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [    0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
    [    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [    0.000017] Switching to timer-based delay loop, resolution 162ns
    [    0.000347] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000356] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000804] Console: colour dummy device 80x30
    [    0.000822] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000829] This ensures that you still see kernel messages. Please
    [    0.000836] update your kernel commandline.
    [    0.000858] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [    0.000874] pid_max: default: 32768 minimum: 301
    [    0.000980] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000993] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001518] CPU: Testing write buffer coherency: ok
    [    0.001554] CPU0: Spectre v2: using ICIALLU workaround
    [    0.001750] /cpus/cpu@0 missing clock-frequency property
    [    0.001768] /cpus/cpu@1 missing clock-frequency property
    [    0.001780] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.039872] Setting up static identity map for 0x80200000 - 0x80200060
    [    0.059878] Hierarchical SRCU implementation.
    [    0.080067] EFI services will not be available.
    [    0.099938] smp: Bringing up secondary CPUs ...
    [    0.170305] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.170310] CPU1: Spectre v2: using ICIALLU workaround
    [    0.170411] smp: Brought up 1 node, 2 CPUs
    [    0.170421] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [    0.170429] CPU: All CPU(s) started in HYP mode.
    [    0.170437] CPU: Virtualization extensions available.
    [    0.170984] devtmpfs: initialized
    [    0.188544] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
    [    0.188886] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.189078] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.189095] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.194840] pinctrl core: initialized pinctrl subsystem
    [    0.195299] DMI not present or invalid.
    [    0.195552] NET: Registered protocol family 16
    [    0.196710] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.197587] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.398513] cpuidle: using governor ladder
    [    0.398547] cpuidle: using governor menu
    [    0.406697] OMAP GPIO hardware version 0.1
    [    0.425919] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_gpmc_pins, deferring probe
    [    0.435730] No ATAGs?
    [    0.435801] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.435815] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.436170] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.436181] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.436712] OMAP DMA hardware revision 0.0
    [    0.446395] edma 43300000.edma: memcpy is disabled
    [    0.449585] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.456292] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [    0.457544] ps_evm_3v3: supplied by evm_12v0
    [    0.457869] evm_5v0: supplied by evm_12v0
    [    0.460824] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.461023] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.461268] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.461502] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.461870] omap-iommu 41501000.mmu: 41501000.mmu registered
    [    0.462076] omap-iommu 41502000.mmu: 41502000.mmu registered
    [    0.463901] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c1_pins, deferring probe
    [    0.463941] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c3_pins, deferring probe
    [    0.463976] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c5_pins, deferring probe
    [    0.464128] media: Linux media interface: v0.10
    [    0.464162] Linux video capture interface: v2.00
    [    0.464243] pps_core: LinuxPPS API ver. 1 registered
    [    0.464252] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.464270] PTP clock support registered
    [    0.464297] EDAC MC: Ver: 3.0.0
    [    0.464573] dmi: Firmware registration failed.
    [    0.464959] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.465239] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.465578] Advanced Linux Sound Architecture Driver Initialized.
    [    0.466363] clocksource: Switched to clocksource arch_sys_counter
    [    0.473801] NET: Registered protocol family 2
    [    0.474318] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.474382] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.474508] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.474576] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.474609] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.474730] NET: Registered protocol family 1
    [    0.475042] RPC: Registered named UNIX socket transport module.
    [    0.475052] RPC: Registered udp transport module.
    [    0.475060] RPC: Registered tcp transport module.
    [    0.475067] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.476268] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.476484] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.477501] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    0.481549] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.482039] NFS: Registering the id_resolver key type
    [    0.482067] Key type id_resolver registered
    [    0.482076] Key type id_legacy registered
    [    0.482114] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.483453] bounce: pool size: 64 pages
    [    0.483497] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.483506] io scheduler noop registered (default)
    [    0.483515] io scheduler deadline registered
    [    0.483603] io scheduler cfq registered
    [    0.483612] io scheduler mq-deadline registered
    [    0.483620] io scheduler kyber registered
    [    0.487970] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [    0.488552] ti-iodelay 4844a000.padconf: Invalid Coarse delay count (0) (reg=0x00000000)
    [    0.490346] dra7-pcie 51000000.pcie_ep: Linked as a consumer to phy-4a094000.pciephy.1
    [    0.535602] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.538269] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 44, base_baud = 3000000) is a 8250
    [    1.471809] console [ttyS0] enabled
    [    1.476131] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 45, base_baud = 3000000) is a 8250
    [    1.486754] omap_rng 48090000.rng: Random Number Generator ver. 20
    [    1.495743] connector-hdmi connector@1: failed to find video source
    [    1.512374] brd: module loaded
    [    1.520868] loop: module loaded
    [    1.527628] m25p80 spi0.0: n25q00 (131072 Kbytes)
    [    1.532429] 10 ofpart partitions found on MTD device spi0.0
    [    1.538053] Creating 10 MTD partitions on "spi0.0":
    [    1.542958] 0x000000000000-0x000000010000 : "QSPI.SPL"
    [    1.548774] 0x000000010000-0x000000020000 : "QSPI.SPL.backup1"
    [    1.555209] 0x000000020000-0x000000030000 : "QSPI.SPL.backup2"
    [    1.561675] 0x000000030000-0x000000040000 : "QSPI.SPL.backup3"
    [    1.568113] 0x000000040000-0x000000140000 : "QSPI.u-boot"
    [    1.574096] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
    [    1.580725] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
    [    1.587094] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
    [    1.594128] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
    [    1.600150] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
    [    1.607174] libphy: Fixed MDIO Bus: probed
    [    1.666401] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.674093] davinci_mdio 48485000.mdio: no live phy, scanning all
    [    1.776529] davinci_mdio 48485000.mdio: timed out waiting for user access
    [    1.883423] davinci_mdio 48485000.mdio: timed out waiting for idle
    [    1.889670] davinci_mdio: probe of 48485000.mdio failed with error -5
    [    1.896934] cpsw 48484000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property
    [    1.905241] cpsw 48484000.ethernet: Detected MACID = 38:0b:3c:40:ea:52
    [    1.911873] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
    [    1.918276] cpsw 48484000.ethernet: ALE Table size 1024
    [    1.923570] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.931470] cpsw 48484000.ethernet: cpsw: Detected MACID = 00:00:00:00:00:a0
    [    1.939681] i2c /dev entries driver
    [    1.943713] IR NEC protocol handler initialized
    [    1.948295] IR RC5(x/sz) protocol handler initialized
    [    1.953368] IR RC6 protocol handler initialized
    [    1.957936] IR JVC protocol handler initialized
    [    1.962486] IR Sony protocol handler initialized
    [    1.967139] IR SANYO protocol handler initialized
    [    1.971864] IR Sharp protocol handler initialized
    [    1.976602] IR MCE Keyboard/mouse protocol handler initialized
    [    1.982459] IR XMP protocol handler initialized
    [    1.991248] sdhci: Secure Digital Host Controller Interface driver
    [    1.997481] sdhci: Copyright(c) Pierre Ossman
    [    2.002398] sdhci-pltfm: SDHCI platform and OF driver helper
    [    2.009322] sdhci-omap 4809c000.mmc: failed to set system capabilities
    [    2.016472] sdhci-omap 480b4000.mmc: failed to set system capabilities
    [    2.023760] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.033637] NET: Registered protocol family 10
    [    2.038936] Segment Routing with IPv6
    [    2.042666] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    2.049070] NET: Registered protocol family 17
    [    2.053716] Key type dns_resolver registered
    [    2.058193] omap_voltage_late_init: Voltage driver support not added
    [    2.064577] Power Management for TI OMAP4+ devices.
    [    2.069742] Registering SWP/SWPB emulation handler
    [    2.086731] dmm 4e000000.dmm: workaround for errata i878 in use
    [    2.094301] dmm 4e000000.dmm: initialized all PAT entries
    [    2.100359] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    2.105525] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    2.112974] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
    [    2.119387] nand: Macronix MX30LF2G18AC
    [    2.123242] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    2.130954] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    2.136394] 10 ofpart partitions found on MTD device omap2-nand.0
    [    2.142514] Creating 10 MTD partitions on "omap2-nand.0":
    [    2.147956] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    2.153890] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    2.160475] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    2.167032] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    2.173586] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    2.180448] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    2.187389] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    2.193849] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    2.201031] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    2.214566] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [    2.453224] palmas 0-0058: IRQ missing: skipping irq request
    [    2.486707] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
    [    2.493609] SMPS123: supplied by regulator-dummy
    [    2.501172] SMPS45: supplied by regulator-dummy
    [    2.507736] SMPS6: supplied by regulator-dummy
    [    2.514026] SMPS7: supplied by regulator-dummy
    [    2.520501] SMPS8: supplied by regulator-dummy
    [    2.526853] SMPS9: supplied by regulator-dummy
    [    2.532409] LDO1: supplied by regulator-dummy
    [    2.538848] LDO2: supplied by regulator-dummy
    [    2.545100] LDO3: supplied by regulator-dummy
    [    2.549538] random: fast init done
    [    2.554750] LDO4: supplied by regulator-dummy
    [    2.559934] LDO5: supplied by regulator-dummy
    [    2.565092] LDO6: supplied by regulator-dummy
    [    2.570280] LDO7: supplied by regulator-dummy
    [    2.575443] LDO8: supplied by regulator-dummy
    [    2.580634] LDO9: supplied by regulator-dummy
    [    2.587097] LDOLN: supplied by regulator-dummy
    [    2.593443] LDOUSB: supplied by regulator-dummy
    [    2.602442] GPIO line 508 (CT_CP_HPD) hogged as output/high
    [    2.608187] GPIO line 507 (LS_OE) hogged as output/high
    [    2.613810] pcf857x 0-0020: probed
    [    2.617849] pcf857x 0-0023: probed
    [    2.621325] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    2.656936] tmp102 2-0048: initialized
    [    2.661209] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [    2.681614] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
    [    2.687950] DSS: OMAP DSS rev 6.1
    [    2.692010] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
    [    2.700516] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
    [    2.711355] evm_3v3_sd: supplied by sysen1
    [    2.776389] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
    [    2.784178] evm_1v8: supplied by smps9
    [    2.846390] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
    [    2.860505] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    2.867267] [drm] No driver support for vblank timestamp query.
    [    2.873330] [drm] Cannot find any crtc or sizes
    [    2.878945] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
    [    2.886835] hctosys: unable to open rtc device (rtc0)
    [    2.892596] vtt_fixed: supplied by evm_3v3_sd
    [    2.897197] ldousb: disabling
    [    2.898382] mmc0: host does not support reading read-only switch, assuming write-enable
    [    2.901040] mmc0: new high speed SDHC card at address aaaa
    [    2.901274] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
    [    2.903235]  mmcblk0: p1 p2
    [    2.921252] ALSA device list:
    [    2.924230]   No soundcards found.
    [    2.934906] mmc1: new high speed MMC card at address 0001
    [    2.940563] mmcblk1: mmc1:0001 DG4064 59.2 GiB 
    [    2.945357] mmcblk1boot0: mmc1:0001 DG4064 partition 1 4.00 MiB
    [    2.951546] mmcblk1boot1: mmc1:0001 DG4064 partition 2 4.00 MiB
    [    2.957789] mmcblk1rpmb: mmc1:0001 DG4064 partition 3 4.00 MiB
    [    2.979426] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.987643] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    3.003309] devtmpfs: mounted
    [    3.007644] Freeing unused kernel memory: 2048K
    [    3.307877] systemd[1]: System time before build time, advancing clock.
    [    3.348882] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN default-hierarchy=hybrid)
    [    3.370380] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2018.10!
    
    [    3.419523] systemd[1]: Set hostname to <dra7xx-evm>.
    [    3.730554] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.737689] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    3.766561] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.780884] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    3.816540] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.825252] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    3.856526] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    3.886850] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    3.926476] [drm] Cannot find any crtc or sizes
    [    3.926662] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    3.966489] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Listening on udev Kernel Socket.
    [  OK  ] Listening on Syslog Socket.
    [  OK  ] Reached target Swap.
    [  OK  ] Created slice System Slice.
    [  OK  ] Reached target Slices.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-getty.slice.
             Starting Load Kernel Modules...
             Starting Remount Root and Kernel File Systems...
    [    4.322423] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [    4.327987] cmemk: loading out-of-tree module taints kernel.
    [    4.328690] CMEMK module: reference Linux version 4.14.79
    [    4.329207] no physical memory specified
    [    4.329220] cmemk initialized
             Mounting Temporary Directory (/tmp)...
    [    4.361608] cryptodev: driver 1.9 loaded.
             Mounting POSIX Message Queue File System...
             Starting Journal Service...
             Mounting Kernel Debug File System...
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Started Journal Service.
    [  OK  ] Started Load Kernel Modules.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting Rebuild Hardware Database...
             Starting Create System Users...
             Starting Apply Kernel Variables...
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Create System Users.
    [  OK  ] Started Apply Kernel Variables.
             Starting Create Static Device Nodes in /dev...
    [    5.009444] systemd-journald[91]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Create Static Device Nodes in /dev.
             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 Rebuild Dynamic Linker Cache...
             Starting Rebuild Journal Catalog...
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Rebuild Journal Catalog.
    [  OK  ] Started Rebuild Dynamic Linker Cache.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Rebuild Hardware Database.
             Starting Update is Completed...
             Starting udev Coldplug all Devices...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Update is Completed.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on dropbear.socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             [    7.093248] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
    Starting RPC Bind Service...
    [    7.109690] at24 2-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    [    7.110035] at24 2-0054: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    [    7.123793] ov1063x: probe of 2-0037 failed with error -121
    [    7.176788] at24 4-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    [    7.177933] at24 4-0054: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    [    7.182202] CAN device driver interface
    [  OK  ] Started strongSwan IPsec IKEv1/IKEv2 daemon u[    7.269062] omap-des 480a5000.des: will run requests pump with realtime priority
    sing ipsec.conf.
    [    7.304808] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=91)
    [    7.319111] c_can_platform 48480000.can: c_can_platform device registered (regs=fa480000, irq=92)
    [    7.332565] omap_rtc 48838000.rtc: already running
    [  OK  ] Started System Logging Service.
    [    7.341912] omap_rtc 48838000.rtc: registered as rtc0
             [    7.375411] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
    Starting Print notice about GPLv3 packages...
    [    7.416878] vpe 489d0000.vpe: Device registered as /dev/video0
             Starting uim-sysfs.service...
             Starting Login Service...
    [  OK  ] Reached target Containers.
             Starting TI IPC Daemon...
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [    7.477346] vip 48970000.vip: loading firmware vpdma-1b8.bin
    [    7.506419] vip 48970000.vip: VPDMA firmware loaded
    [  OK  ] Started D-Bus System Message Bus.
    [    7.555289] random: crng init done
    [    7.558931] random: 7 urandom warning(s) missed due to ratelimiting
    [    7.643844] SCSI subsystem initialized
    [    7.664168] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    7.683344] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
    [    7.796111] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
    [    7.810180] omap-aes 4b500000.aes: will run requests pump with realtime priority
    [  OK  ] Started Kernel Logging Service.
    [  OK  ] Started Job spooling tools.
             Starting Network Service...
    [  OK  ] Started Periodic Command Scheduler.
    [    7.961179] NET: Registered protocol family 15
    [  OK  ] Started RPC Bind Service.
    [    7.979420] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
    [  OK  ] Started TI IPC Daemon.
    [    8.000679] omap-aes 4b700000.aes: will run requests pump with realtime priority
    [  OK  ] Found device /dev/ttyS0.
    [    8.047546] ahci 4a140000.sata: forcing port_map 0x0 -> 0x1
    [    8.055930] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    [    8.116259] net eth1: initializing cpsw version 1.15 (0)
    [    8.119272] libphy: PHY  not found
    [    8.119277] net eth1: phy "" not found on slave 1, err -19
    [    8.174541] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [    8.218773] net eth0: initializing cpsw version 1.15 (0)
    [    8.223982] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
    [    8.263866] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    8.397063] Initializing XFRM netlink socket
    [  OK  ] Started Network Service.
    [    8.520422] ahci 4a140000.sata: flags: 64bit ncq sntf pm led clo only pmp pio slum part ccc apst 
    [    8.689770] scsi host0: ahci
    [    8.696165] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 81
    [    8.776608] [drm] Initialized pvr 1.14.3699939 20110701 for 56000000.gpu on minor 1
    [    8.900166] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
    [    8.949164] omap-hdmi-audio omap-hdmi-audio.0.auto: ASoC: no DMI vendor name!
    [    8.969547] extcon-usb-gpio: probe of extcon_usb2 failed with error -16
    [    9.026686] OF: /sound0/simple-audio-card,cpu: could not get #sound-dai-cells for /ocp/mcasp@48468000
    [    9.026698] asoc-simple-card sound0: parse error -22
    [    9.026722] asoc-simple-card: probe of sound0 failed with error -22
    [    9.099632] ata1: SATA link down (SStatus 0 SControl 300)
    [    9.286416] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
    [    9.294631] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [  OK  ] Started Login Service.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Reached target Network.
             Starting Lightning Fast Webserver With Light System Requirements...
             Starting Permit User Sessions...
             Starting Enable and configure wl18xx bluetooth stack...
             Starting Network Name Resolution...
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [  OK  ] Started Synchronize System and HW clocks.
    [  OK  ] Started Network Name Resolution.
    [   10.483631] usbcore: registered new interface driver usbfs
    [   10.497148] usbcore: registered new interface driver hub
    [   10.515636] usbcore: registered new device driver usb
    [   10.542466] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   10.552788] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
    [   10.572504] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
    [   10.591327] xhci-hcd xhci-hcd.1.auto: irq 180, io mem 0x48890000
    [   10.606072] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [   10.621845] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.641066] usb usb1: Product: xHCI Host Controller
    [   10.645974] usb usb1: Manufacturer: Linux 4.14.79-g3438de3474 xhci-hcd
    [   10.667088] usb usb1: SerialNumber: xhci-hcd.1.auto
    [   10.682023] hub 1-0:1.0: USB hub found
    [   10.689386] hub 1-0:1.0: 1 port detected
    [   10.701798] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   10.712820] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
    [   10.731516] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed
    [   10.749566] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   10.769934] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [   10.785744] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.801353] usb usb2: Product: xHCI Host Controller
    [   10.806257] usb usb2: Manufacturer: Linux 4.14.79-g3438de3474 xhci-hcd
    [   10.830377] usb usb2: SerialNumber: xhci-hcd.1.auto
    [   10.845557] hub 2-0:1.0: USB hub found
    [   10.854987] hub 2-0:1.0: 1 port detected
    [  OK  ] Started uim-sysfs.service.
    [  OK  ] Reached target Sound Card.
             Starting rc.pvr.service...
    [  OK  ] Reached target Host and Network Name Lookups.
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
    	autoconf
    	bash-dev
    	bash
    	binutils-dev
    	binutils
    	bison-dev
    	bison
    	cifs-utils
    	cpio
    	cpp-symlinks
    	cpp
    	dosfstools
    	elfutils-dev
    	elfutils
    	g++-symlinks
    	g++
    	gawk
    	gcc-symlinks
    	gcc
    	gdb
    	gdbc6x
    	gdbserver
    	gettext
    	glmark2
    	gstreamer1.0-libav
    	gzip
    	libasm1
    	libcairo-perf-utils
    	libdw1
    	libelf1
    	libgdbm-compat4
    	libgdbm-dev
    	libgdbm4
    	libget[   11.452751] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    textlib
    	libgettextsrc
    	libgmp10
    	libidn11
    	libmpc3
    	libmpfr4
    	libreadline-dev
    	libreadline7
    	libunistring2
    	m4-dev
    	m4
    	make
    	nettle
    	parted
    	python3-pycairo
    	swig-dev
    	swig
    	which
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [  OK  ] Started rc.pvr.service.
    [  OK  ] Started Print notice about GPLv3 packages.
             Starting weston.service...
    [  OK  ] Started weston.service.
             Starting telnetd.service...
    [  OK  ] Started telnetd.service.
             Starting thttpd.service...
    [  OK  ] Started thttpd.service.
             Starting rng-tools.service...
    [  OK  ] Started rng-tools.service.
             Starting gdbserverproxy.service...
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org dra7xx-evm ttyS0
    
    Arago 2018.10 dra7xx-evm ttyS0
    
    dra7xx-evm login: root
    root@dra7xx-evm:~# ethtool -S tto   eth0
    NIC statistics:
         Good Rx Frames: 0
         Broadcast Rx Frames: 0
         Multicast Rx Frames: 0
         Pause Rx Frames: 0
         Rx CRC Errors: 0
         Rx Align/Code Errors: 0
         Oversize Rx Frames: 0
         Rx Jabbers: 0
         Undersize (Short) Rx Frames: 0
         Rx Fragments: 0
         Rx Octets: 0
         Good Tx Frames: 29
         Broadcast Tx Frames: 7
         Multicast Tx Frames: 22
         Pause Tx Frames: 0
         Deferred Tx Frames: 0
         Collisions: 0
         Single Collision Tx Frames: 0
         Multiple Collision Tx Frames: 0
         Excessive Collisions: 0
         Late Collisions: 0
         Tx Underrun: 0
         Carrier Sense Errors: 0
         Tx Octets: 4434
         Rx + Tx 64 Octet Frames: 0
         Rx + Tx 65-127 Octet Frames: 22
         Rx + Tx 128-255 Octet Frames: 0
         Rx + Tx 256-511 Octet Frames: 7
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 4434
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 1
         Rx DMA chan 0: tail_enqueue: 127
         Rx DMA chan 0: pad_enqueue: 0
         Rx DMA chan 0: misqueued: 0
         Rx DMA chan 0: desc_alloc_fail: 0
         Rx DMA chan 0: pad_alloc_fail: 0
         Rx DMA chan 0: runt_receive_buf: 0
         Rx DMA chan 0: runt_transmit_bu: 0
         Rx DMA chan 0: empty_dequeue: 0
         Rx DMA chan 0: busy_dequeue: 0
         Rx DMA chan 0: good_dequeue: 0
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 29
         Tx DMA chan 0: tail_enqueue: 0
         Tx DMA chan 0: pad_enqueue: 0
         Tx DMA chan 0: misqueued: 0
         Tx DMA chan 0: desc_alloc_fail: 0
         Tx DMA chan 0: pad_alloc_fail: 0
         Tx DMA chan 0: runt_receive_buf: 0
         Tx DMA chan 0: runt_transmit_bu: 0
         Tx DMA chan 0: empty_dequeue: 29
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 29
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@dra7xx-evm:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP AUI BNC MII FIBRE ]
            Supported link modes:   100baseT/Full
            Supported pause frame use: Symmetric Receive-only
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  100baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  100baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Link partner advertised FEC modes: Not reported
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: yes
    root@dra7xx-evm:~#
    

    Ethernet mac related dts code in u-boot is shown below :

    &mac {
    	status = "okay";
    	dual_emac;
    	/*mac-address = [00 03 35 00 00 ff];*/
    };
    
    &cpsw_emac0 {
    	status = "okay";
    	/*phy_id = <&davinci_mdio>, <2>;*/
    	phy-mode = "rgmii";
    	dual_emac_res_vlan = <1>;
    	fixed-link {
    	      speed = <100>;
    	      full-duplex;
    	};
    };
    
    &cpsw_emac1 {
    	status = "okay";
    	/*phy_id = <&davinci_mdio>, <3>;*/
    	phy-mode = "rgmii";
    	dual_emac_res_vlan = <2>;
    };
    
    		mac: ethernet@48484000 {
    			compatible = "ti,dra7-cpsw","ti,cpsw";
    			ti,hwmods = "gmac";
    			clocks = <&gmac_main_clk>, <&gmac_rft_clk_mux>;
    			clock-names = "fck", "cpts";
    			cpdma_channels = <8>;
    			ale_entries = <1024>;
    			bd_ram_size = <0x2000>;
    			mac_control = <0x20>;
    			slaves = <2>;
    			active_slave = <0>;
    			cpts_clock_mult = <0x784CFE14>;
    			cpts_clock_shift = <29>;
    			reg = <0x48484000 0x1000
    			       0x48485200 0x2E00>;
    			#address-cells = <1>;
    			#size-cells = <1>;
    
    			/*
    			 * Do not allow gating of cpsw clock as workaround
    			 * for errata i877. Keeping internal clock disabled
    			 * causes the device switching characteristics
    			 * to degrade over time and eventually fail to meet
    			 * the data manual delay time/skew specs.
    			 */
    			ti,no-idle;
    
    			/*
    			 * rx_thresh_pend
    			 * rx_pend
    			 * tx_pend
    			 * misc_pend
    			 */
    			interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>,
    				     <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
    				     <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>,
    				     <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>;
    			ranges;
    			syscon = <&scm_conf>;
    			status = "disabled";
    
    			davinci_mdio: mdio@48485000 {
    				compatible = "ti,cpsw-mdio","ti,davinci_mdio";
    				#address-cells = <1>;
    				#size-cells = <0>;
    				ti,hwmods = "davinci_mdio";
    				bus_freq = <1000000>;
    				reg = <0x48485000 0x100>;
    			};
    
    			cpsw_emac0: slave@48480200 {
    				/* Filled in by U-Boot */
    				mac-address = [ 00 00 00 00 00 00 ];
    			};
    
    			cpsw_emac1: slave@48480300 {
    				/* Filled in by U-Boot */
    				mac-address = [ 00 00 00 00 00 00 ];
    			};
                
    			phy_sel: cpsw-phy-sel@4a002554 {
    				compatible = "ti,dra7xx-cpsw-phy-sel";
    				reg= <0x4a002554 0x4>;
    				reg-names = "gmii-sel";
    			};
    			/*nop_phy {
    				compatible = "nop-phy";
    				#phy-cells = <0>;
    			};*/
    		};

    Ethernet mac related dts code in Linux is shown below :

    &mac {
    	status = "okay"; 
    	dual_emac;
    };
    
    &cpsw_emac0 {
    	/*phy_id = ""; <&davinci_mdio>, <2>;*/
            mac-address = [ 00 00 00 00 00 0a ];
            fixed-link = <0 1 100 0 0>;
    	phy-mode = "rgmii";
    	dual_emac_res_vlan = <1>;
    };
    
    &cpsw_emac1 {
    	/*phy_id = ""; <&davinci_mdio>, <3>;*/
    	mac-address = [ 00 00 00 00 00 a0 ];
            phy-mode = "rgmii";
    	dual_emac_res_vlan = <2>;
    };
    /*
    &davinci_mdio {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&davinci_mdio_default>;
    	pinctrl-1 = <&davinci_mdio_sleep>;
    };*/

    Thanks for your support and hope for your reply.

    Best Regards,

    Daniel

  • Hi Daniel,

    Sorry for the delay in response. I am in discussion about this issue with our Linux driver expert.

    Will get back to you by tomorrow.

    Thank you

    Regards

    Santhana Bharathi

  • Hi Santhana,

    Thanks for your keeping this question in mind. I need to sync some progress with you.

    In these days, I check pinmux reg content in EVMX777G-01-40-00 (below 1st fig.) and customed board (below 2nd fig.), then I found GMAC related pinmux is empty. Therefore, I try to configure GMAC pinmux in u-boot or Linux dts. For u-boot, it seems we may need to modify code instead of changing dts. For Linux dts, it works at some degree.

    For Linux dts, we add below content in &mac node and &cpsw_emac0, and content of &cpsw_default and &cpsw_sleep is from dra7-evm.dts.

    &mac { 
     status = "okay"; 
     pinctrl-names = "default", "sleep";
     pinctrl-0 = <&cpsw_default>; 
     pinctrl-1 = <&cpsw_sleep>; 
     dual_emac; 
    };
    &cpsw_emac0 {
        /*phy_id = ""; <&davinci_mdio>, <2>;*/
            mac-address = [ 00 00 00 00 00 0a ];
        phy-mode = "rgmii";
        dual_emac_res_vlan = <1>;
            fixed-link {
                speed = <100>;
                full-duplex;
            };
    };

    Then we found pinmux reg is change as below figure. Differences are from MODESELECT and weak Pull Up/Down bits. Besides, output clock of RGMII[0]_TXC(W9) is 2.5MHz shown in below oscil. figure. 

    And I execute ethtool related command.

    root@dra7xx-evm:~# ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 0
         Broadcast Rx Frames: 0
         Multicast Rx Frames: 0
         Pause Rx Frames: 0
         Rx CRC Errors: 0
         Rx Align/Code Errors: 0
         Oversize Rx Frames: 0
         Rx Jabbers: 0
         Undersize (Short) Rx Frames: 0
         Rx Fragments: 0
         Rx Octets: 0
         Good Tx Frames: 43
         Broadcast Tx Frames: 14
         Multicast Tx Frames: 29
         Pause Tx Frames: 0
         Deferred Tx Frames: 0
         Collisions: 0
         Single Collision Tx Frames: 0
         Multiple Collision Tx Frames: 0
         Excessive Collisions: 0
         Late Collisions: 0
         Tx Underrun: 0
         Carrier Sense Errors: 0
         Tx Octets: 7426
         Rx + Tx 64 Octet Frames: 0
         Rx + Tx 65-127 Octet Frames: 29
         Rx + Tx 128-255 Octet Frames: 0
         Rx + Tx 256-511 Octet Frames: 14
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 7426
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 1
         Rx DMA chan 0: tail_enqueue: 127
         Rx DMA chan 0: pad_enqueue: 0
         Rx DMA chan 0: misqueued: 0
         Rx DMA chan 0: desc_alloc_fail: 0
         Rx DMA chan 0: pad_alloc_fail: 0
         Rx DMA chan 0: runt_receive_buf: 0
         Rx DMA chan 0: runt_transmit_bu: 0
         Rx DMA chan 0: empty_dequeue: 0
         Rx DMA chan 0: busy_dequeue: 0
         Rx DMA chan 0: good_dequeue: 0
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 42
         Tx DMA chan 0: tail_enqueue: 1
         Tx DMA chan 0: pad_enqueue: 0
         Tx DMA chan 0: misqueued: 1
         Tx DMA chan 0: desc_alloc_fail: 0
         Tx DMA chan 0: pad_alloc_fail: 0
         Tx DMA chan 0: runt_receive_buf: 0
         Tx DMA chan 0: runt_transmit_bu: 0
         Tx DMA chan 0: empty_dequeue: 42
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 43
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@dra7xx-evm:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP AUI BNC MII FIBRE ]
            Supported link modes:   100baseT/Full
            Supported pause frame use: Symmetric Receive-only
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  100baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  100baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Link partner advertised FEC modes: Not reported
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: yes
    root@dra7xx-evm:~#
    

    So, there are several question:

    1 how to configure GMAC pinmux in u-boot code

    2 why pinmux still not same after using EVM pinctrl info

    3 why output clock is not 25MHz

    Hope for your reply and thanks very much.

    Best Regards,

    Daniel

  • Hi Daniel,

    Thanks for the update.

    For your questions 2 &3, can you please try changing the phy-mode in your DT entry as below:

    phy-mode = "rgmii-id";

    Regards

    Santhana Bharathi.

  • Hi Santhana,

    Thanks for your support.

    I changed the dts file and double confirmed its generated dtb in TF card.

    However, freq. is still 2.5MHz and oscil. figure stiil the same. Below is ethtool related result and for your information. Thanks.

    root@dra7xx-evm:/boot# ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 0
         Broadcast Rx Frames: 0
         Multicast Rx Frames: 0
         Pause Rx Frames: 0
         Rx CRC Errors: 0
         Rx Align/Code Errors: 0
         Oversize Rx Frames: 0
         Rx Jabbers: 0
         Undersize (Short) Rx Frames: 0
         Rx Fragments: 0
         Rx Octets: 0
         Good Tx Frames: 33
         Broadcast Tx Frames: 9
         Multicast Tx Frames: 24
         Pause Tx Frames: 0
         Deferred Tx Frames: 0
         Collisions: 0
         Single Collision Tx Frames: 0
         Multiple Collision Tx Frames: 0
         Excessive Collisions: 0
         Late Collisions: 0
         Tx Underrun: 0
         Carrier Sense Errors: 0
         Tx Octets: 5290
         Rx + Tx 64 Octet Frames: 0
         Rx + Tx 65-127 Octet Frames: 24
         Rx + Tx 128-255 Octet Frames: 0
         Rx + Tx 256-511 Octet Frames: 9
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 5290
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 1
         Rx DMA chan 0: tail_enqueue: 127
         Rx DMA chan 0: pad_enqueue: 0
         Rx DMA chan 0: misqueued: 0
         Rx DMA chan 0: desc_alloc_fail: 0
         Rx DMA chan 0: pad_alloc_fail: 0
         Rx DMA chan 0: runt_receive_buf: 0
         Rx DMA chan 0: runt_transmit_bu: 0
         Rx DMA chan 0: empty_dequeue: 0
         Rx DMA chan 0: busy_dequeue: 0
         Rx DMA chan 0: good_dequeue: 0
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 33
         Tx DMA chan 0: tail_enqueue: 0
         Tx DMA chan 0: pad_enqueue: 0
         Tx DMA chan 0: misqueued: 0
         Tx DMA chan 0: desc_alloc_fail: 0
         Tx DMA chan 0: pad_alloc_fail: 0
         Tx DMA chan 0: runt_receive_buf: 0
         Tx DMA chan 0: runt_transmit_bu: 0
         Tx DMA chan 0: empty_dequeue: 33
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 33
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@dra7xx-evm:/boot# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP AUI BNC MII FIBRE ]
            Supported link modes:   100baseT/Full
            Supported pause frame use: Symmetric Receive-only
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  100baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  100baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Link partner advertised FEC modes: Not reported
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: yes
    root@dra7xx-evm:/boot#
    

    Thanks for your support and hope for your reply.

    Best Regards,

    Daniel

  • Hi Daniel,

    Even though the ethtool says 100Mbps as link speed, there are chances for that not being reflected in the register configuration.

    So can you please check the values of below registers using "omapconf read <address>" from your linux terminal.

    WR_RGMII_CTL: 0x4848 5288

    SL_MACCONTROL: 0x4848 4D84

    Thank you

    Regards

    Santhana Bharathi

  • Hi Santhana,

    Sorry for late reply and thanks for your suggesion. Below is read result:

    Thanks for your continued support and help. Hope for your reply.

    Best Regards,

    Daniel

  • Hi Santhanan,

    Thanks for your insight for us. I double check SL_MACCONTROL and  WR_RGMII_CTL.

    From User Guide 24.10.4.8.7.3.3 (below figure), when SL_MACCONTROL.EXT_EN is set 1, Link Statuss, Duplexity and Speed are configured with in-band data from RXD[3:0]. However, for SL_MACCONTROL, it is 0x8021 and EXT_EN equals to 0, which is conflict with "EXT_EN should be 1 for RGMII interface". Therefore, some questions are shown below:

    1 For RGMII in GMAC0 in our design, should EXT_EN bit be 1 ?

    2 When RGMII interface is used, is in-band data from RXD[3:0] necessary for configuration ?

    Thanks for your support and hope for your reply.

    Best Regards,

    Daniel

  • Hi Daniel,

    Thanks for getting back with the register values. From your SL_MACCONTROL register value it is clear that your MAC is operating in "Forced Mode of Operation" (Link status is up always) and operating in 100Mbps mode(GIG bit field is 0, and IFCTL_A bit field is 0). So there are no issues in your MAC configuration.

    1 For RGMII in GMAC0 in our design, should EXT_EN bit be 1 ?

    It is not necessary, in MAC to MAC configuration as in your setup, link parameters are known already. So it is suggested to use Forced mode compared to In-band mode of operation.

    2 When RGMII interface is used, is in-band data from RXD[3:0] necessary for configuration ?

    No. In-band data from RXD[3:0] is necessary only when you configure MAC to operate in In-band mode(EXT_EN set to 1).

    Thank you

    Regards

    Santhana Bharathi

  • Hi Santhana,

    Thanks for your useful reply and help.

    SL_MACCONTROL reg. value is 0x00008021, which means IFCTL_A(bit:15) is 1 and GIG_FORCE(bit:17) is 0. My questions are below:

    1 Need GIG_FORCE to be set with 1 to enter "Forced mode" ?

    2 And how to enter "Forced mode" by chaning Linux dts?

    Hope for your reply and thanks very much !

    Best Regards,

    Daniel

  • Hi Daniel,

    Please find answers for your queries below.

    1.  Need GIG_FORCE to be set with 1 to enter "Forced mode" ?

    GIG_FORCE bit is not related to Forced mode of operation. This bit is used to force the CPGMAC_SL into gigabit mode if the input GMII_MTCLK has been stopped by the PHY.

    So, you need not set this bit to 1.

    2.  And how to enter "Forced mode" by chaning Linux dts?

    Forced mode is taken care by setting fixed-link property in dts file. Based on your earlier dts file, I see it to be enabled.

    So to summarize, I see that your MAC control registers are configured correctly to operate in 100Mbps, Full-duplex in forced mode of operation. And also your PAD configurations are correctly configured to use RGMII clock and data lines.

    Can you please try changing the link speed to 10Mbps and 1Gbps in your dts file and checking the clock frequency respectively. Ideally you should get 2.5Mhz & 125Mhz respectively.

    Thank you

    Regards

    Santhana Bharathi

  • Hi Santhana,

    Thanks for your reply and explanation. I have tried 10Mbps and 1Gbps, but the clock freq. is still 2.5MHz. Results are shown below :

    For 10Mbps, modified dts file is changed shown in below figure.

    And ethtool related result is here

    try_fixlink_10.log
    root@dra7xx-evm:~# ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 0
         Broadcast Rx Frames: 0
         Multicast Rx Frames: 0
         Pause Rx Frames: 0
         Rx CRC Errors: 0
         Rx Align/Code Errors: 0
         Oversize Rx Frames: 0
         Rx Jabbers: 0
         Undersize (Short) Rx Frames: 0
         Rx Fragments: 0
         Rx Octets: 0
         Good Tx Frames: 0
         Broadcast Tx Frames: 0
         Multicast Tx Frames: 0
         Pause Tx Frames: 0
         Deferred Tx Frames: 0
         Collisions: 0
         Single Collision Tx Frames: 0
         Multiple Collision Tx Frames: 0
         Excessive Collisions: 0
         Late Collisions: 0
         Tx Underrun: 0
         Carrier Sense Errors: 33
         Tx Octets: 0
         Rx + Tx 64 Octet Frames: 0
         Rx + Tx 65-127 Octet Frames: 0
         Rx + Tx 128-255 Octet Frames: 0
         Rx + Tx 256-511 Octet Frames: 0
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 228
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 1
         Rx DMA chan 0: tail_enqueue: 127
         Rx DMA chan 0: pad_enqueue: 0
         Rx DMA chan 0: misqueued: 0
         Rx DMA chan 0: desc_alloc_fail: 0
         Rx DMA chan 0: pad_alloc_fail: 0
         Rx DMA chan 0: runt_receive_buf: 0
         Rx DMA chan 0: runt_transmit_bu: 0
         Rx DMA chan 0: empty_dequeue: 0
         Rx DMA chan 0: busy_dequeue: 0
         Rx DMA chan 0: good_dequeue: 0
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 32
         Tx DMA chan 0: tail_enqueue: 1
         Tx DMA chan 0: pad_enqueue: 0
         Tx DMA chan 0: misqueued: 1
         Tx DMA chan 0: desc_alloc_fail: 0
         Tx DMA chan 0: pad_alloc_fail: 0
         Tx DMA chan 0: runt_receive_buf: 0
         Tx DMA chan 0: runt_transmit_bu: 0
         Tx DMA chan 0: empty_dequeue: 32
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 33
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@dra7xx-evm:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP AUI BNC MII FIBRE ]
            Supported link modes:   Not reported
            Supported pause frame use: Symmetric Receive-only
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  Not reported
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  10baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Link partner advertised FEC modes: Not reported
            Speed: 10Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: yes
    root@dra7xx-evm:~#
    
    . The checked clock freq. is shown below.

    For 1Gbps, dts file is changed like this

    And ethtool result is here

    try_fixlink_1000.log
    root@dra7xx-evm:~# ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 0
         Broadcast Rx Frames: 0
         Multicast Rx Frames: 0
         Pause Rx Frames: 0
         Rx CRC Errors: 0
         Rx Align/Code Errors: 0
         Oversize Rx Frames: 0
         Rx Jabbers: 0
         Undersize (Short) Rx Frames: 0
         Rx Fragments: 0
         Rx Octets: 0
         Good Tx Frames: 43
         Broadcast Tx Frames: 14
         Multicast Tx Frames: 29
         Pause Tx Frames: 0
         Deferred Tx Frames: 0
         Collisions: 0
         Single Collision Tx Frames: 0
         Multiple Collision Tx Frames: 0
         Excessive Collisions: 0
         Late Collisions: 0
         Tx Underrun: 0
         Carrier Sense Errors: 0
         Tx Octets: 7446
         Rx + Tx 64 Octet Frames: 0
         Rx + Tx 65-127 Octet Frames: 29
         Rx + Tx 128-255 Octet Frames: 0
         Rx + Tx 256-511 Octet Frames: 14
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 7446
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 1
         Rx DMA chan 0: tail_enqueue: 127
         Rx DMA chan 0: pad_enqueue: 0
         Rx DMA chan 0: misqueued: 0
         Rx DMA chan 0: desc_alloc_fail: 0
         Rx DMA chan 0: pad_alloc_fail: 0
         Rx DMA chan 0: runt_receive_buf: 0
         Rx DMA chan 0: runt_transmit_bu: 0
         Rx DMA chan 0: empty_dequeue: 0
         Rx DMA chan 0: busy_dequeue: 0
         Rx DMA chan 0: good_dequeue: 0
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 43
         Tx DMA chan 0: tail_enqueue: 0
         Tx DMA chan 0: pad_enqueue: 0
         Tx DMA chan 0: misqueued: 0
         Tx DMA chan 0: desc_alloc_fail: 0
         Tx DMA chan 0: pad_alloc_fail: 0
         Tx DMA chan 0: runt_receive_buf: 0
         Tx DMA chan 0: runt_transmit_bu: 0
         Tx DMA chan 0: empty_dequeue: 43
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 43
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@dra7xx-evm:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP AUI BNC MII FIBRE ]
            Supported link modes:   1000baseT/Half 1000baseT/Full
            Supported pause frame use: Symmetric Receive-only
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  1000baseT/Half 1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  1000baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Link partner advertised FEC modes: Not reported
            Speed: 1000Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: yes
    root@dra7xx-evm:~#
    
    . The clock freq. figure is shown below

    Thanks for your support and hope for your reply. Thanks very much !

    Best Regards,

    Daniel

  • Hi Daniel,

    Two things i would suggest here are :

    1.  As per u-boot code fixed-link has to be added under mac node and PHY properties are to be removed.
    &mac {
         status = "okay";
         dual_emac;
    
         fixed-link {
               speed = <100>;
               full-duplex;
         };
    

    In general, interface should be up and running after this (in u-boot). Please confirm this from u-boot prompt

         2. rgmiin_rxc must be externally delayed relative to the data and control pins. TXC is delayed internally before being driven to the rgmiin_txc pin. This internal delay is always enabled. So try phy-mode = "rgmii-rxid"; (remote part should also follow this cfg).

    And also since the thread is about getting clock signal on PHY less connection, and it seems resolved, can you please create new thread for clock frequency issue. This is for easier tracking and closure.

    Thank you

    Regards

    Santhana Bharathi

  • Hi Santhana,

    Thanks for your reply and help.

    I've changed mac configuration in uboot dts file shown as below

    However, I manually interrupt boot process (boot log here

    boot_log_20200424.log
    U-Boot SPL 2018.01-00566-g0f1ad58-dirty (Apr 24 2020 - 15:39:42)
    DRA756-GP ES2.0
    Trying to boot from MMC1
    no pinctrl state for default mode
    MMC Device 1 not found
    *** Warning - No MMC card found, using default environment
    
    
    
    U-Boot 2018.01-00566-g0f1ad58-dirty (Apr 24 2020 - 15:39:42 +0800)
    
    CPU  : DRA756-GP ES2.0
    Model: TI DRA756
    Board: DRA756 REDRAM:  2 GiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0
    MMC Device 1 not found
    *** Warning - No MMC card found, using default environment
    
    In:    serial@4806a000
    Out:   serial@4806a000
    Err:   serial@4806a000
    invalid mmc device
    Net:   Could not get PHY for ethernet@48484000: addr -17123512
    
    Warning: ethernet@48484000 using MAC address from ROM
    eth0: ethernet@48484000
    Hit any key to stop autoboot:  0
    ) and suspend at u-boot phase

    However, TXC clock freq. is still 2.5MHz in the below figure.

    Then I'd like to open an another thread for the timing problem. Thanks very much for your great help and advices in these days. Hope you take care in the epidemic period and thanks again !

    Best Regards,

    Daniel