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: Cannot change output clock for PHY-less connection

Part Number: DRA756
Other Parts Discussed in Thread: TDA2

Hi all,

There is a customed board with DRA756 chip, each peripheral works fine except for ethernet. After fixing no output clock problem (e2e.ti.com/.../3289760 with help from Santhana, clock of TXC is always 2.5MHz when booting to u-boot or booting to Linux. Below is some details about u-boot and Linux configuration.

Booting log of the whole process is here

3808.boot_log_20200424.log

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:  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 1 ms (226.6 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 177 ms (21.6 MiB/s)
99222 bytes read in 6 ms (15.8 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe4000, end 8ffff395 ... 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: LM 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 @eed58000 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: 1747808K/2077696K available (8192K kernel code, 346K rwdata, 2636K rodata, 2048K init, 282K bss, 34976K 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.000018] 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.000803] Console: colour dummy device 80x30
[    0.000821] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000829] This ensures that you still see kernel messages. Please
[    0.000835] update your kernel commandline.
[    0.000856] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[    0.000872] pid_max: default: 32768 minimum: 301
[    0.000978] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000992] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001519] CPU: Testing write buffer coherency: ok
[    0.001557] CPU0: Spectre v2: using ICIALLU workaround
[    0.001754] /cpus/cpu@0 missing clock-frequency property
[    0.001772] /cpus/cpu@1 missing clock-frequency property
[    0.001784] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.039867] Setting up static identity map for 0x80200000 - 0x80200060
[    0.059876] Hierarchical SRCU implementation.
[    0.080063] EFI services will not be available.
[    0.099935] smp: Bringing up secondary CPUs ...
[    0.170296] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.170301] CPU1: Spectre v2: using ICIALLU workaround
[    0.170401] smp: Brought up 1 node, 2 CPUs
[    0.170412] SMP: Total of 2 processors activated (24.59 BogoMIPS).
[    0.170420] CPU: All CPU(s) started in HYP mode.
[    0.170427] CPU: Virtualization extensions available.
[    0.170967] devtmpfs: initialized
[    0.188637] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
[    0.188978] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.189172] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.189190] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.194925] pinctrl core: initialized pinctrl subsystem
[    0.195394] DMI not present or invalid.
[    0.195647] NET: Registered protocol family 16
[    0.196795] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.197693] omap_hwmod: l3_main_2 using broken dt data from ocp
[    0.399006] cpuidle: using governor ladder
[    0.399039] cpuidle: using governor menu
[    0.407215] OMAP GPIO hardware version 0.1
[    0.426473] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_gpmc_pins, deferring probe
[    0.436211] No ATAGs?
[    0.436284] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.436298] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.436656] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.436668] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.437203] OMAP DMA hardware revision 0.0
[    0.446935] edma 43300000.edma: memcpy is disabled
[    0.450101] edma 43300000.edma: TI EDMA DMA engine driver
[    0.456763] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[    0.458022] ps_evm_3v3: supplied by evm_12v0
[    0.458338] evm_5v0: supplied by evm_12v0
[    0.461290] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[    0.461485] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[    0.461719] omap-iommu 58882000.mmu: 58882000.mmu registered
[    0.461958] omap-iommu 55082000.mmu: 55082000.mmu registered
[    0.462325] omap-iommu 41501000.mmu: 41501000.mmu registered
[    0.462536] omap-iommu 41502000.mmu: 41502000.mmu registered
[    0.464367] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c1_pins, deferring probe
[    0.464408] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c3_pins, deferring probe
[    0.464444] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c5_pins, deferring probe
[    0.464600] media: Linux media interface: v0.10
[    0.464635] Linux video capture interface: v2.00
[    0.464711] pps_core: LinuxPPS API ver. 1 registered
[    0.464720] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.464738] PTP clock support registered
[    0.464764] EDAC MC: Ver: 3.0.0
[    0.465042] dmi: Firmware registration failed.
[    0.465425] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[    0.465701] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
[    0.466042] Advanced Linux Sound Architecture Driver Initialized.
[    0.466826] clocksource: Switched to clocksource arch_sys_counter
[    0.474242] NET: Registered protocol family 2
[    0.474752] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.474816] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.474942] TCP: Hash tables configured (established 8192 bind 8192)
[    0.475008] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.475041] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.475161] NET: Registered protocol family 1
[    0.475442] RPC: Registered named UNIX socket transport module.
[    0.475452] RPC: Registered udp transport module.
[    0.475460] RPC: Registered tcp transport module.
[    0.475468] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.476675] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.476871] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.477922] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.481964] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.482455] NFS: Registering the id_resolver key type
[    0.482477] Key type id_resolver registered
[    0.482486] Key type id_legacy registered
[    0.482523] ntfs: driver 2.1.32 [Flags: R/O].
[    0.483858] bounce: pool size: 64 pages
[    0.483902] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.483912] io scheduler noop registered (default)
[    0.483921] io scheduler deadline registered
[    0.484012] io scheduler cfq registered
[    0.484021] io scheduler mq-deadline registered
[    0.484029] io scheduler kyber registered
[    0.488447] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[    0.489002] ti-iodelay 4844a000.padconf: Invalid Coarse delay count (0) (reg=0x00000000)
[    0.490736] dra7-pcie 51000000.pcie_ep: Linked as a consumer to phy-4a094000.pciephy.1
[    0.536188] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    0.538858] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 44, base_baud = 3000000) is a 8250
[    1.472430] console [ttyS0] enabled
[    1.476763] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 45, base_baud = 3000000) is a 8250
[    1.487389] omap_rng 48090000.rng: Random Number Generator ver. 20
[    1.496369] connector-hdmi connector@1: failed to find video source
[    1.513002] brd: module loaded
[    1.521492] loop: module loaded
[    1.528268] m25p80 spi0.0: n25q00 (131072 Kbytes)
[    1.533069] 10 ofpart partitions found on MTD device spi0.0
[    1.538693] Creating 10 MTD partitions on "spi0.0":
[    1.543596] 0x000000000000-0x000000010000 : "QSPI.SPL"
[    1.549394] 0x000000010000-0x000000020000 : "QSPI.SPL.backup1"
[    1.555835] 0x000000020000-0x000000030000 : "QSPI.SPL.backup2"
[    1.562298] 0x000000030000-0x000000040000 : "QSPI.SPL.backup3"
[    1.568747] 0x000000040000-0x000000140000 : "QSPI.u-boot"
[    1.574726] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
[    1.581350] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
[    1.587720] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
[    1.594760] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
[    1.600770] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
[    1.607791] libphy: Fixed MDIO Bus: probed
[    1.666866] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    1.674561] davinci_mdio 48485000.mdio: no live phy, scanning all
[    1.776838] davinci_mdio 48485000.mdio: timed out waiting for user access
[    1.883733] davinci_mdio 48485000.mdio: timed out waiting for idle
[    1.889980] davinci_mdio: probe of 48485000.mdio failed with error -5
[    1.897262] cpsw 48484000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property
[    1.905569] cpsw 48484000.ethernet: Detected MACID = 38:0b:3c:40:ea:52
[    1.912203] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
[    1.918606] cpsw 48484000.ethernet: ALE Table size 1024
[    1.923899] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
[    1.931793] cpsw 48484000.ethernet: cpsw: Detected MACID = 00:00:00:00:00:a0
[    1.940019] i2c /dev entries driver
[    1.944040] IR NEC protocol handler initialized
[    1.948625] IR RC5(x/sz) protocol handler initialized
[    1.953699] IR RC6 protocol handler initialized
[    1.958267] IR JVC protocol handler initialized
[    1.962817] IR Sony protocol handler initialized
[    1.967470] IR SANYO protocol handler initialized
[    1.972195] IR Sharp protocol handler initialized
[    1.976932] IR MCE Keyboard/mouse protocol handler initialized
[    1.982790] IR XMP protocol handler initialized
[    1.991365] sdhci: Secure Digital Host Controller Interface driver
[    1.997599] sdhci: Copyright(c) Pierre Ossman
[    2.002487] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.009370] sdhci-omap 4809c000.mmc: failed to set system capabilities
[    2.016500] sdhci-omap 480b4000.mmc: failed to set system capabilities
[    2.023815] ledtrig-cpu: registered to indicate activity on CPUs
[    2.033683] NET: Registered protocol family 10
[    2.038977] Segment Routing with IPv6
[    2.042707] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.049106] NET: Registered protocol family 17
[    2.053743] Key type dns_resolver registered
[    2.058223] omap_voltage_late_init: Voltage driver support not added
[    2.064604] Power Management for TI OMAP4+ devices.
[    2.069770] Registering SWP/SWPB emulation handler
[    2.086522] dmm 4e000000.dmm: workaround for errata i878 in use
[    2.094160] dmm 4e000000.dmm: initialized all PAT entries
[    2.100218] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    2.105384] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    2.112809] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[    2.119220] nand: Macronix MX30LF2G18AC
[    2.123075] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.130786] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[    2.136207] 10 ofpart partitions found on MTD device omap2-nand.0
[    2.142346] Creating 10 MTD partitions on "omap2-nand.0":
[    2.147787] 0x000000000000-0x000000020000 : "NAND.SPL"
[    2.153717] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[    2.160294] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[    2.166874] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[    2.173422] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[    2.180297] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[    2.187253] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[    2.193725] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[    2.200902] 0x000000200000-0x000000a00000 : "NAND.kernel"
[    2.214413] 0x000000a00000-0x000010000000 : "NAND.file-system"
[    2.452878] palmas 0-0058: IRQ missing: skipping irq request
[    2.487191] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
[    2.494119] SMPS123: supplied by regulator-dummy
[    2.501711] SMPS45: supplied by regulator-dummy
[    2.508275] SMPS6: supplied by regulator-dummy
[    2.514605] SMPS7: supplied by regulator-dummy
[    2.521080] SMPS8: supplied by regulator-dummy
[    2.527429] SMPS9: supplied by regulator-dummy
[    2.532972] LDO1: supplied by regulator-dummy
[    2.539399] LDO2: supplied by regulator-dummy
[    2.545131] random: fast init done
[    2.549082] LDO3: supplied by regulator-dummy
[    2.555322] LDO4: supplied by regulator-dummy
[    2.560528] LDO5: supplied by regulator-dummy
[    2.565713] LDO6: supplied by regulator-dummy
[    2.570905] LDO7: supplied by regulator-dummy
[    2.576076] LDO8: supplied by regulator-dummy
[    2.581260] LDO9: supplied by regulator-dummy
[    2.587700] LDOLN: supplied by regulator-dummy
[    2.594067] LDOUSB: supplied by regulator-dummy
[    2.603276] GPIO line 508 (CT_CP_HPD) hogged as output/high
[    2.609021] GPIO line 507 (LS_OE) hogged as output/high
[    2.614645] pcf857x 0-0020: probed
[    2.618699] pcf857x 0-0023: probed
[    2.622176] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[    2.657402] tmp102 2-0048: initialized
[    2.661667] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
[    2.682135] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
[    2.688468] DSS: OMAP DSS rev 6.1
[    2.692534] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
[    2.701035] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
[    2.711893] evm_3v3_sd: supplied by sysen1
[    2.776853] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
[    2.784641] evm_1v8: supplied by smps9
[    2.846853] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
[    2.861574] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.868379] [drm] No driver support for vblank timestamp query.
[    2.896790] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.909478] mmc0: new high speed SDHC card at address aaaa
[    2.915257] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    2.923717]  mmcblk0: p1 p2
[    3.017563] mmc1: new high speed MMC card at address 0001
[    3.023301] mmcblk1: mmc1:0001 DG4064 59.2 GiB 
[    3.028080] mmcblk1boot0: mmc1:0001 DG4064 partition 1 4.00 MiB
[    3.034272] mmcblk1boot1: mmc1:0001 DG4064 partition 2 4.00 MiB
[    3.040368] EDID block is all zeroes
[    3.044252] [drm] Enabling DMM ywrap scrolling
[    3.053479] mmcblk1rpmb: mmc1:0001 DG4064 partition 3 4.00 MiB
[    3.073747] Console: switching to colour frame buffer device 128x48
[    3.089853] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
[    3.096760] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[    3.104677] hctosys: unable to open rtc device (rtc0)
[    3.110451] vtt_fixed: supplied by evm_3v3_sd
[    3.115038] ldousb: disabling
[    3.118292] ALSA device list:
[    3.121268]   No soundcards found.
[    3.170945] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.179124] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.195507] devtmpfs: mounted
[    3.199379] Freeing unused kernel memory: 2048K
[    3.499116] systemd[1]: System time before build time, advancing clock.
[    3.540656] 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.562347] systemd[1]: Detected architecture arm.

Welcome to Arago 2018.10!

[    3.609988] systemd[1]: Set hostname to <dra7xx-evm>.
[    3.923474] random: systemd: uninitialized urandom read (16 bytes read)
[    3.930279] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    3.956953] random: systemd: uninitialized urandom read (16 bytes read)
[    3.965086] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    3.997136] random: systemd: uninitialized urandom read (16 bytes read)
[    4.004988] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    4.037314] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    4.068349] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    4.097041] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    4.137504] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Listening on Journal Socket.
[  OK  ] Listening on Process Core Dump Socket.
         Mounting Kernel Debug File System...
[  OK  ] Created slice system-getty.slice.
[    4.295953] EDID block is all zeroes
         Starting Remount Root and Kernel File Systems...
[    4.343659] 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  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Reached target Slices.
         Starting Load Kernel Modules...
         [    4.593279] cmemk: loading out-of-tree module taints kernel.
Starting Journal Service...
[    4.599927] CMEMK module: reference Linux version 4.14.79
[    4.607663] no physical memory specified
[    4.611629] cmemk initialized
[    4.622771] cryptodev: driver 1.9 loaded.
         Mounting POSIX Message Queue File System...
[  OK  ] Listening on Network Service Netlink Socket.
[  OK  ] Reached target Swap.
         Mounting Temporary Directory (/tmp)...
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Started Journal Service.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Load Kernel Modules.
         Mounting Kernel Configuration File System...
         Starting Apply Kernel Variables...
         Starting Create System Users...
         Starting Rebuild Hardware Database...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create System Users.
[    5.203712] systemd-journald[90]: 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.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
         Mounting /media/ram...
         Starting udev Kernel Device Manager...
[  OK  ] Mounted /var/volatile.
[  OK  ] Mounted /media/ram.
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
         Starting Rebuild Journal Catalog...
         Starting Rebuild Dynamic Linker Cache...
[  OK  ] Started udev Kernel Device Manager.
[  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 Update UTMP about System Boot/Shutdown.
[  OK  ] Started Rebuild Hardware Database.
         Starting udev Coldplug all Devices...
         Starting Update is Completed...
[  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.
         Starting Network Service...
[  OK  ] Listening on dropbear.socket.
[  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.
[    7.394744] at24 2-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[    7.402557] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[    7.402764] omap-des 480a5000.des: will run requests pump with realtime priority
[    7.409239] CAN device driver interface
[  OK  ] Reached target Sockets.
[    7.456397] ov1063x: probe of 2-0037 failed with error -121
[    7.476018] at24 2-0054: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[    7.492988] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=91)
[    7.493682] c_can_platform 48480000.can: c_can_platform device registered (regs=fa480000, irq=92)
[  OK  ] Reached target Basic System.
[  OK  ] Reached target Containers.
[    7.591538] omap_rtc 48838000.rtc: registered as rtc0
[    7.598920] at24 4-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[    7.600127] at24 4-0054: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[  OK  ] Started Periodic Command Scheduler.
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.[    7.680831] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin

         Starting Print notice about GPLv3 packages...
[    7.727067] vpe 489d0000.vpe: Device registered as /dev/video0
[    7.733405] SCSI subsystem initialized
[    7.746718] net eth0: initializing cpsw version 1.15 (0)
[    7.763998] random: crng init done
[    7.764002] random: 7 urandom warning(s) missed due to ratelimiting
[    7.767157] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[    7.827808] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.833647] vip 48970000.vip: loading firmware vpdma-1b8.bin
[    7.856901] vip 48970000.vip: VPDMA firmware loaded
[    7.890463] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    7.895964] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
[    7.985481] net eth1: initializing cpsw version 1.15 (0)
[    7.992822] libphy: PHY  not found
[    7.992829] net eth1: phy "" not found on slave 1, err -19
[    8.002976] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[    8.033268] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
[    8.040898] omap-aes 4b500000.aes: will run requests pump with realtime priority
[    8.103149] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
[    8.120067] omap-aes 4b700000.aes: will run requests pump with realtime priority
[    8.137504] [drm] Initialized pvr 1.14.3699939 20110701 for 56000000.gpu on minor 1
[  OK  ] Started System Logging Service.
         Starting TI IPC Daemon...
         Starting Login Service...
         Starting uim-sysfs.service...
[  OK  ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
[    8.337697] ahci 4a140000.sata: forcing port_map 0x0 -> 0x1
[    8.381367] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    8.434687] ahci 4a140000.sata: flags: 64bit ncq sntf pm led clo only pmp pio slum part ccc apst 
[  OK  ] Started Job spooling tools.
         Starting RPC Bind Service...
[  OK  ] Started D-Bus System Message Bus.
[    8.567674] scsi host0: ahci
[    8.600522] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 81
[    8.806904] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    8.814860] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.864731] extcon-usb-gpio: probe of extcon_usb2 failed with error -16
[    8.884273] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    8.958178] ata1: SATA link down (SStatus 0 SControl 300)
[    8.968261] NET: Registered protocol family 15
[  OK  ] Started Kernel Logging Service.
[    9.090791] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
[    9.114555] OF: /sound0/simple-audio-card,cpu: could not get #sound-dai-cells for /ocp/mcasp@48468000
[    9.114562] asoc-simple-card sound0: parse error -22
[    9.114578] asoc-simple-card: probe of sound0 failed with error -22
[  OK  ] Started Network Service.
[  OK  ] Started TI IPC Daemon.
[  OK  ] Started RPC Bind Service.
[  OK  ] Found device /dev[    9.256958] omap-hdmi-audio omap-hdmi-audio.0.auto: ASoC: no DMI vendor name!
/ttyS0.
[    9.272256] Initializing XFRM netlink socket
[  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 Permit User Sessions.
[  OK  ] Started Login Service.
[  OK  ] Started Lightning Fast Webserver With Light System Requirements.
[  OK  ] Started Enable and configure wl18xx bluetooth stack.
[  OK  ] Started Network Name Resolution.
[   10.695801] usbcore: registered new interface driver usbfs
[   10.710407] usbcore: registered new interface driver hub
[   10.725052] usbcore: registered new device driver usb
[   10.753614] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   10.761407] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[   10.788583] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
[   10.805182] xhci-hcd xhci-hcd.1.auto: irq 180, io mem 0x48890000
[   10.825054] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   10.832963] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.847879] usb usb1: Product: xHCI Host Controller
[   10.852791] usb usb1: Manufacturer: Linux 4.14.79-g3438de3474 xhci-hcd
[   10.876863] usb usb1: SerialNumber: xhci-hcd.1.auto
[   10.882242] hub 1-0:1.0: USB hub found
[   10.886423] hub 1-0:1.0: 1 port detected
[   10.897235] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   10.902770] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[   10.926863] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed
[   10.948104] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   10.965546] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[   10.977634] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.996306] usb usb2: Product: xHCI Host Controller
[   11.010360] usb usb2: Manufacturer: Linux 4.14.79-g3438de3474 xhci-hcd
[   11.025039] usb usb2: SerialNumber: xhci-hcd.1.auto
[   11.037776] hub 2-0:1.0: USB hub found
[   11.047057] 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..
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
         Starting Synchronize System and HW clocks...
[  OK  ] Started Synchronize System and HW clocks.
[  OK  ] Started uim-sysfs.service.
         Starting rc.pvr.service...
[   11.690792] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
[  OK  ] Started rc.pvr.service.
         Starting weston.service...
***************************************************************
***************************************************************
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 Print notice about GPLv3 packages.
[  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...
[  OK  ] Started gdbserverproxy.service.
         Starting matrix-gui-2.0.service...
[  OK  ] Started matrix-gui-2.0.service.
         Starting thermal-zone-init.service...
[  OK  ] Started thermal-zone-init.service.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

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

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

Arago 2018.10 dra7xx-evm ttyS0

dra7xx-evm login: 
  and ethtool related probing log is here
ethtool_20200424.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: 64
     Broadcast Tx Frames: 27
     Multicast Tx Frames: 37
     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: 12656
     Rx + Tx 64 Octet Frames: 0
     Rx + Tx 65-127 Octet Frames: 37
     Rx + Tx 128-255 Octet Frames: 0
     Rx + Tx 256-511 Octet Frames: 27
     Rx + Tx 512-1023 Octet Frames: 0
     Rx + Tx 1024-Up Octet Frames: 0
     Net Octets: 12656
     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: 64
     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: 64
     Tx DMA chan 0: busy_dequeue: 0
     Tx DMA chan 0: good_dequeue: 64
     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:~#
. And key registers value about mac is here
mac_reg_value_20200424.log
root@dra7xx-evm:/mnt# ./memread.sh
try to get 0x4A003650
10000
try to get 0x4A003654
10000
try to get 0x4A003658
10000
try to get 0x4A00365C
10000
try to get 0x4A003660
10000
try to get 0x4A003664
10000
try to get 0x4A003668
50000
try to get 0x4A00366C
50000
try to get 0x4A003670
50000
try to get 0x4A003674
50000
try to get 0x4A003678
50000
try to get 0x4A00367C
50000
root@dra7xx-evm:/mnt# omapconf read 0x48485288
00000000
omapconf: powerdm_deinit(): cpu not supported!!!
omapconf: clockdm_deinit(): cpu not supported!!!
root@dra7xx-evm:/mnt# omapconf read 0x48484D84
000000A1
omapconf: powerdm_deinit(): cpu not supported!!!
omapconf: clockdm_deinit(): cpu not supported!!!
root@dra7xx-evm:/mnt#
.

For u-boot, mac related configuration is here. mux_data.h is update with new pad configuration and pad IO delay. However, pad IO delay is genrated by TI pin mux tool and not changed.

For Linux configuration, mac related dts is shown below

Trails below are already been done but clock is still 2.5MHz.

  1. change linux dts, phy-mode = "rgmii-id", probing at linux terminal;
  2. change linux dts, change fixed-link.speed to 10, 100, 1000, , probing at linux terminal
  3. change uboot dts, add fixed-link and remove PHY properties and phy-mode = "rgmii-rxid" , probing at uboot terminal

Hope someone share me some insights. Thanks very much.

Best Regards,

Daniel

  • Hi Daniel,

    According to the TRM, the TXC is set to 2.5 MHz for 10 Mbps operation and 25 MHz for 100 Mbps operation.



    Can you check what is the value of SL_MACCONTROL[15] IFCTL_A bit?

    Regards,
    Vishal

  • Hi Vishal,

    Thanks for your answering this post and support.

    I have noticed your posted figure. But I am curious about the reason why TXC clock is always 2.5MHz, even though 10, 100, 1000MHz fix bit rate have been tried.

    The value of SL_MACCONTROL[15] IFCTL_A bti is 0, and its register value is 0x00A1. You can find more information by checking mac_reg_value_20200424.log file I posted in the topic.

    Besides, I am also curious about which registers decide TXC clock frequence. Then I dump clock tree of the customed board with omapconf ctt dump. And printed result is here 

    cct_custom_20200426.log
    DeviceName DRA75X_SR2.0
    0x4A005100 0x00000110
    0x4A005120 0x00000007
    0x4A00512C 0x00010A04
    0x4A005130 0x00000002
    0x4A00513C 0x00000204
    0x4A005140 0x0000023E
    0x4A005144 0x00000005
    0x4A005154 0x00000005
    0x4A005158 0x00000204
    0x4A00515C 0x00000006
    0x4A005160 0x00000007
    0x4A00516C 0x00803200
    0x4A005170 0x00000201
    0x4A00519C 0x00000000
    0x4A0051A0 0x00000007
    0x4A0051AC 0x00010A04
    0x4A0051B0 0x00000002
    0x4A0051DC 0x00000000
    0x4A0051E0 0x00000005
    0x4A0051EC 0x00800000
    0x4A0051F0 0x00000001
    0x4A0051F4 0x00000001
    0x4A005210 0x00000007
    0x4A00521C 0x00010A04
    0x4A005220 0x00000202
    0x4A005228 0x00000208
    0x4A005234 0x00000007
    0x4A005240 0x00004B01
    0x4A005244 0x00000001
    0x4A005248 0x00000003
    0x4A005254 0x00000000
    0x4A005284 0x00000005
    0x4A005290 0x00000000
    0x4A005294 0x00000001
    0x4A0052A4 0x00000000
    0x4A0052A8 0x00000007
    0x4A0052B4 0x0000FA04
    0x4A0052B8 0x00000204
    0x4A0052C0 0x00000228
    0x4A0052C4 0x00000208
    0x4A0052D8 0x00000007
    0x4A0052E4 0x00010A04
    0x4A0052E8 0x00000202
    0x4A005420 0x00070000
    0x4A005520 0x01070000
    0x4A005550 0x00030000
    0x4A005558 0x00030000
    0x4A005560 0x00030000
    0x4A005568 0x00030000
    0x4A005570 0x00030000
    0x4A005578 0x00030000
    0x4A005580 0x00030000
    0x4A005620 0x00070000
    0x4A005660 0x00070000
    0x4A0056A0 0x00070000
    0x4A005744 0x00020002
    0x4A005764 0x00000001
    0x4A008140 0x00000007
    0x4A00814C 0x00006004
    0x4A008150 0x00000804
    0x4A008158 0x00000003
    0x4A00815C 0x00000004
    0x4A008160 0x0000000A
    0x4A008164 0x00000002
    0x4A008180 0x00000007
    0x4A00818C 0x0401E009
    0x4A008190 0x00000202
    0x4A008200 0x00000007
    0x4A00820C 0x04004B00
    0x4A008210 0x0000040F
    0x4A00821C 0x00000101
    0x4A008728 0x00000001
    0x4A008778 0x00000001
    0x4A008780 0x00000001
    0x4A008920 0x00070000
    0x4A008B30 0x00000001
    0x4A008B38 0x00000001
    0x4A008B40 0x00000000
    0x4A008C00 0x00030000
    0x4A008E20 0x00030000
    0x4A008E28 0x00030000
    0x4A008E40 0x00030000
    0x4A008E50 0x01000001
    0x4A008F20 0x00070000
    0x4A008F28 0x00030000
    0x4A009020 0x00000001
    0x4A009028 0x00070000
    0x4A009030 0x00070000
    0x4A009120 0x00070000
    0x4A009130 0x00070000
    0x4A009220 0x0A000002
    0x4A009328 0x01040002
    0x4A009330 0x01040002
    0x4A009340 0x00040101
    0x4A009348 0x00070000
    0x4A009350 0x00070000
    0x4A009358 0x00070000
    0x4A009388 0x00000102
    0x4A0093B0 0x00040702
    0x4A0093B8 0x00070000
    0x4A0093D0 0x08000002
    0x4A0093E0 0x00000001
    0x4A0093E8 0x00000001
    0x4A0093F0 0x00000101
    0x4A009620 0x00030000
    0x4A009728 0x00030000
    0x4A009730 0x00030000
    0x4A009738 0x00030000
    0x4A009740 0x00030000
    0x4A009748 0x00030000
    0x4A009750 0x00030000
    0x4A009760 0x00030000
    0x4A009768 0x00030000
    0x4A009770 0x00030000
    0x4A009778 0x00030000
    0x4A009780 0x00020001
    0x4A009788 0x00030000
    0x4A009790 0x00030000
    0x4A009798 0x00030000
    0x4A0097A0 0x00020002
    0x4A0097A8 0x00030000
    0x4A0097B0 0x00030000
    0x4A0097B8 0x00030000
    0x4A0097C4 0x00030000
    0x4A0097C8 0x00030000
    0x4A0097D0 0x00030000
    0x4A0097D8 0x00030000
    0x4A0097F0 0x00030000
    0x4A0097F8 0x00030000
    0x4A009800 0x00030000
    0x4A009808 0x00030000
    0x4A009810 0x00020001
    0x4A009818 0x00030000
    0x4A009820 0x00030000
    0x4A009828 0x00030000
    0x4A009830 0x00030000
    0x4A009838 0x01030000
    0x4A009840 0x00010002
    0x4A009848 0x00010002
    0x4A009850 0x00030000
    0x4A009858 0x00030000
    0x4A009860 0x00030000
    0x4A009868 0x00030000
    0x4A009870 0x00030000
    0x4A009878 0x00030000
    0x4A009890 0x00030000
    0x4A009898 0x00030000
    0x4A0098A0 0x00030000
    0x4A0098A8 0x00030000
    0x4A0098B0 0x00030000
    0x4A0098B8 0x00030000
    0x4A0098C0 0x00000001
    0x4A0098C8 0x00030000
    0x4A0098D0 0x00030000
    0x4A0098E0 0x00030000
    0x4A0098E8 0x00030000
    0x4A0098F0 0x00030000
    0x4A0098F8 0x00030000
    0x4A009904 0x00030000
    0x4A009908 0x00030000
    0x4AE06108 0x00000000
    0x4AE0610C 0x00000000
    0x4AE06114 0x00000000
    0x4AE06118 0x00000000
    0x4AE06128 0x00000000
    0x4AE0612C 0x00000000
    0x4AE06130 0x00000000
    0x4AE06134 0x00000000
    0x4AE06138 0x00000000
    0x4AE06144 0x00000000
    0x4AE06148 0x00000000
    0x4AE0614C 0x00000000
    0x4AE06150 0x00000000
    0x4AE06154 0x00000000
    0x4AE06158 0x00000000
    0x4AE06164 0x00000000
    0x4AE06168 0x00000000
    0x4AE0616C 0x00000000
    0x4AE06170 0x00000000
    0x4AE06174 0x00000000
    0x4AE06178 0x00000000
    0x4AE06180 0x00000000
    0x4AE06184 0x00000000
    0x4AE06188 0x00000000
    0x4AE0618C 0x00000000
    0x4AE06190 0x00000000
    0x4AE06194 0x00000000
    0x4AE06198 0x00000000
    0x4AE0619C 0x00000000
    0x4AE061A0 0x00000000
    0x4AE061A4 0x00000000
    0x4AE061A8 0x00000000
    0x4AE061AC 0x00000000
    0x4AE061B0 0x00000000
    0x4AE061B4 0x00000000
    0x4AE061B8 0x00000000
    0x4AE061BC 0x00000000
    0x4AE061C0 0x00000000
    0x4AE061C8 0x00000000
    0x4AE061CC 0x00000000
    0x4AE061D0 0x00000000
    0x4AE061D4 0x00000000
    0x4AE061D8 0x00000000
    0x4AE061E0 0x00000000
    0x4AE07830 0x00030000
    0x4AE07838 0x00000001
    0x4AE07840 0x01000002
    0x4AE07878 0x00030000
    0x4AE07880 0x00030000
    0x4AE07888 0x00030000
    
    and hope this would help solving the problem.

    Thanks for your help and hope for your reply. Thanks a lot!

    Best Regards,

    Daniel

  • Hi Daniel,

    Sorry, I did not check those files.
    According to the register value, the interface is in 10 Mbps operation. What was the speed value in dts when this register value was dumped?





    Regards,
    Vishal

  • Hi Daniel,

    Noticed that GIG bit (bit 7) is set, indicating gigabit mode. Ignore the previous comment.

    Regards,
    Vishal

  • Can we do some basic tests on u-boot level?

    Could you get the value of SL_MACCONTROL register for various speed-mode settings in u-boot dts?
    (You can read the register value at u-boot console using md command)

  • Hi Vishal,

    Thanks for your reply.

    Under different speed sed in uboot dts file, results of SL_MACCONTROL are read as 0x00000000. Details are shown below :

    Hope for your reply and thanks for your support again.

    Best Regards,

    Daniel

  • Hi Daniel,

    Is Ethernet functional from u-boot?

    Regards,
    Vishal

  • Hi Vishal,

    Thanks for your quick reply.

    I cannot sure about this and Ethernet maybe not work during uboot. There maybe some missing during porting. Code created in board/ti/ and arch/arm/dts are zip here5873.dra7xx_customed.zip.

    Could you please help checking these files ? Thanks very much !

    And I notice that for mac node in Linux dts file shown below, there is pinctrl node. For uboot dts file, how to offer pinctrl information ? I also notice evm uboot dts file dra7-evm.dts does not include pinctrl for mac node. Shold I need to change uboot code or dts file based on the uploaded zip file?

    Best Regards,,

    Daniel

  • Hi Daniel,

    In case of u-boot the pinmux happens in board/ti/dra7xx/evm.c and board/ti/dra7xx/mux_data.h

    Is Ethernet functional on Linux Kernel?
    Can you do those experiments I asked for on Kernel instead of u-boot?



    Regards,
    Vishal

  • Hi Vishal,

    Thanks for your reply and support.

    I suppose Ethernet functional on Linux kernel. Mentioned in the topic, no clock output problem has been fixed with adding pinctrl node in Linux dts file. But I am nore whether Ethernet functional rightly on Linux kernel.

    Hope for your reply and thanks a lot.

    Best Regards,

    Daniel

  • Hi Daniel,

    Ideally pinmux should happen in u-boot. Both pinmux settings and IODELAY settings are done in u-boot.
    For current debug it's OK to continue with pinmux in kernel.

    Could you get the SL_MACCONTROL register details from kernel for different speed modes (10, 100, 1000)?


    Regards,
    Vishal

  • Hi Vishal,

    Thanks for your reply and explanation.

    Different speed in dts file is set and compiled with make dtbs command. For speed (10, 100, 1000), SL_MACCONTROL value is (0x00040021, 0x00008021, 0x000000A1). Details is shown below.

    --- Speed is 10Mbps---

    ---Speed is 100Mbps---

    ---Speed is 1000Mbps---

    Thanks for your support and hope for your reply.

    Best Regards,

    Daniel

  • Hi Daniel,

    SL_MACCONTROL registers look OK for speed modes selected in dts.

    Could you also check the register WR_RGMII_CTL (0x48485288) for different speed modes?


    Regards,
    Vishal

  • Hi Vishal,

    Thanks for your quick response and support.

    Register values WR_RGMII_CTL under different speed (10, 100, 1000) are both 0x00000000. Results are listed below.

    ---Speed is 10Mbps---

    ---Speed is 100Mbps---

    ---Speed is 1000Mbps---

    Thanks for your help and hope for your reply.

    Best Regards,

    Daniel

  • Hi Daniel,

    Could you also check the CTRL_CORE_CONTROL_IO_1 (0x4A002554) register values?

    Regards,
    Vishal

  • Hi Daniel,

    Could you test with below changes in Kernel and check the behavior?
    Please also check WR_RGMII_CTL register again after this change.

    diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 6bfd2db25924..64cc7e0d7d6d 100644
    --- a/drivers/net/ethernet/ti/cpsw.c
    +++ b/drivers/net/ethernet/ti/cpsw.c
    @@ -1168,6 +1168,8 @@ static void _cpsw_adjust_link(struct cpsw_slave *slave,
                    else if ((phy->speed == 10) && phy_interface_is_rgmii(phy))
                            mac_control |= BIT(18); /* In Band mode */
    
    +               mac_control |= BIT(18);
    +
                    if (priv->rx_pause)
                            mac_control |= BIT(3);
    

    Regards,
    Vishal

  • Hi Vishal,

    Thanks for your support and help. Sorry for this lately reply due to International Workers' Day in these days.

    Before applying your advice for changing kernel code, for CTRL_CONTROL_IO_1(0x4A002554) under varied speed, its value is always 0x0003302. Detailed results are here:

    ---speed is 10Mbps---

    ---speed is 100Mbps---

    ---speed is 1000Mbps---

    After changing kernel, code is shown below. However, there maybe two problems. At first, WR_RGMII_CTL(0x48485288) is still not change, which is 0x00000000. For second, I doubt whether newly added is executed or not. Because added cpsw_info print content is not found in boot log

    linux_bootlog_afterkernelchange_20200506.log
    reboot
             Stopping NFS status monitor for NFSv2/3 locking....
    [  OK          Stopping Session c1 of user root.
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
    [  OK  ] Stopped target Multi-User System.
             Stopping Job spooling tools...
             Stopping Hardware RNG Entropy Gatherer Daemon...
             Stopping strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf...
    [  OK  ] Stopped target Login Prompts.
             Stopping Serial Getty on ttyS0...
             Stopping Getty on tty1...
    [  OK  ] Stopped target Containers.
             Stopping Periodic Command Scheduler...
             Stopping System Logging Service...
             Stopping thermal-zone-init.service...
             Stopping Lightning Fast Webserver With Light System Requirements...
             Stopping Kernel Logging Service...
             Stopping D-Bus System Message Bus...
             Stopping User Manager for UID 0...
    [  OK  ] Stopped Kernel Logging Service.
    [  OK  ] Stopped Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Stopped strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
    [  OK  ] Stopped Job spooling tools.
    [  OK  ] Stopped System Logging Service.
    [  OK  ] Stopped TI IPC Daemon.
    [  OK  ] Stopped Periodic Command Scheduler.
    [  OK  ] Stopped Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
    [  OK  ] Stopped Serial Getty on ttyS0.
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Stopped thermal-zone-init.service.
    [  OK  ] Stopped Session c1 of user root.
             Stopping matrix-gui-2.0.service...
    [  OK  ] Removed slice User Slice of root.
             Stopping Login Service...
    [  OK  ] Removed slice system-getty.slice.
             Stopping Permit User Sessions...
    [  OK  ] Removed slice system-serial\x2dgetty.slice.
    [  OK  ] Stopped target Host and Network Name Lookups.
             Stopping Network Name Resolution...
             Stopping RPC Bind Service...
    [  OK  ] Stopped Login Service.
    [  OK  ] Stopped RPC Bind Service.
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped matrix-gui-2.0.service.
    [  OK  ] Stopped Permit User Sessions.
             Stopping gdbserverproxy.service...
    [  OK  ] Stopped target Network.
             Stopping Network Service...
    [  OK  ] Stopped gdbserverproxy.service.
             Stopping rng-tools.service...
    [  OK  ] Stopped rng-tools.service.
             Stopping thttpd.service...
    [  OK  ] Stopped Network Service.
    [  OK  ] Stopped thttpd.service.
             Stopping telnetd.service...
    [  OK  ] Stopped telnetd.service.
             Stopping weston.service...
    [  OK  ] Stopped weston.service.
    [  OK  ] Stopped target Remote File Systems.
             Stopping rc.pvr.service...
    [  OK  ] Stopped rc.pvr.service.
             Stopping uim-sysfs.service...
    [  OK  ] Stopped uim-sysfs.service.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Paths.
    [  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
    [  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Stopped target Sockets.
    [  OK  ] Closed RPCbind Server Activation Socket.
    [  OK  ] Closed dropbear.socket.
    [  OK  ] Closed Syslog Socket.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Stopped target System Initialization.
             Stopping Load/Save Random Seed...
             Stopping Network Time Synchronization...
    [  OK  ] Stopped Apply Kernel Variables.
    [  OK  ] Stopped Update is Completed.
    [  OK  ] Stopped Rebuild Dynamic Linker Cache.
    [  OK  ] Stopped Rebuild Journal Catalog.
    [  OK  ] Stopped Rebuild Hardware Database.
             Stopping Update UTMP about System Boot/Shutdown...
    [  OK  ] Stopped target Slices.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Update UTMP about System Boot/Shutdown.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /run/user/0...
             Unmounting /media/ram...
             Unmounting /var/volatile...
             Unmounting /run/media/mmcblk0p1...
             Unmounting Temporary Directory (/tmp)...
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Unmounted /run/media/mmcblk0p1.
    [  OK  ] Unmounted Temporary Directory (/tmp).
    [  OK  ] Stopped target Swap.
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped target Local File Systems (Pre).
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Stopped Create System Users.
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Reached target Shutdown.
    [  166.639592] watchdog: watchdog0: watchdog did not stop!
    [  166.651251] systemd-shutdow: 22 output lines suppressed due to ratelimiting
    [  166.714986] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [  166.730871] systemd-journald[92]: Received SIGTERM from PID 1 (systemd-shutdow).
    [  166.835229] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [  166.849052] systemd-shutdown[1]: Hardware watchdog 'OMAP Watchdog', version 0
    [  166.858458] systemd-shutdown[1]: Unmounting file systems.
    [  166.864246] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    [  166.902970] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [  166.916011] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    [  166.924024] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [  166.936920] systemd-shutdown[1]: All filesystems unmounted.
    [  166.942522] systemd-shutdown[1]: Deactivating swaps.
    [  166.947699] systemd-shutdown[1]: All swaps deactivated.
    [  166.952951] systemd-shutdown[1]: Detaching loop devices.
    [  167.025621] reboot: Restarting system
    
    U-Boot SPL 2018.01-00566-g0f1ad58-dirty (Apr 28 2020 - 11:19:56)
    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 28 2020 - 11:19:56 +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 -17123512
    
    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 0 ms
    Loaded env from uEnv.txt
    Importing environment from mmc0 ...
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    4010496 bytes read in 177 ms (21.6 MiB/s)
    99222 bytes read in 5 ms (18.9 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ffe4000, end 8ffff395 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.79-02515-g3438de3-dirty (leadmove@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #4 SMP PREEMPT Wed May 6 14:03:52 CST 2020
    [    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: LM 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 @eed58000 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: 1747808K/2077696K available (8192K kernel code, 346K rwdata, 2552K rodata, 2048K init, 282K bss, 34976K 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.000356] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000365] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000816] Console: colour dummy device 80x30
    [    0.000835] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000842] This ensures that you still see kernel messages. Please
    [    0.000849] update your kernel commandline.
    [    0.000871] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [    0.000885] pid_max: default: 32768 minimum: 301
    [    0.000992] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001005] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001533] CPU: Testing write buffer coherency: ok
    [    0.001570] CPU0: Spectre v2: using ICIALLU workaround
    [    0.001762] /cpus/cpu@0 missing clock-frequency property
    [    0.001780] /cpus/cpu@1 missing clock-frequency property
    [    0.001791] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.039869] Setting up static identity map for 0x80200000 - 0x80200060
    [    0.059881] Hierarchical SRCU implementation.
    [    0.080072] EFI services will not be available.
    [    0.099946] smp: Bringing up secondary CPUs ...
    [    0.170322] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.170327] CPU1: Spectre v2: using ICIALLU workaround
    [    0.170429] smp: Brought up 1 node, 2 CPUs
    [    0.170440] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [    0.170448] CPU: All CPU(s) started in HYP mode.
    [    0.170455] CPU: Virtualization extensions available.
    [    0.171004] devtmpfs: initialized
    [    0.188926] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
    [    0.189272] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.189465] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.189481] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.195234] pinctrl core: initialized pinctrl subsystem
    [    0.195708] DMI not present or invalid.
    [    0.195961] NET: Registered protocol family 16
    [    0.197102] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.198005] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.398126] cpuidle: using governor ladder
    [    0.398158] cpuidle: using governor menu
    [    0.406281] OMAP GPIO hardware version 0.1
    [    0.425356] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_gpmc_pins, deferring probe
    [    0.435051] No ATAGs?
    [    0.435123] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.435136] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.435490] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.435500] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.436031] OMAP DMA hardware revision 0.0
    [    0.445773] edma 43300000.edma: memcpy is disabled
    [    0.448990] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.455792] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [    0.457047] ps_evm_3v3: supplied by evm_12v0
    [    0.457366] evm_5v0: supplied by evm_12v0
    [    0.460332] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.460570] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.460810] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.461050] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.461413] omap-iommu 41501000.mmu: 41501000.mmu registered
    [    0.461627] omap-iommu 41502000.mmu: 41502000.mmu registered
    [    0.463335] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c1_pins, deferring probe
    [    0.463374] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c3_pins, deferring probe
    [    0.463410] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c5_pins, deferring probe
    [    0.463553] media: Linux media interface: v0.10
    [    0.463587] Linux video capture interface: v2.00
    [    0.463665] pps_core: LinuxPPS API ver. 1 registered
    [    0.463673] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.463691] PTP clock support registered
    [    0.463718] EDAC MC: Ver: 3.0.0
    [    0.464000] dmi: Firmware registration failed.
    [    0.464378] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.464652] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.464984] Advanced Linux Sound Architecture Driver Initialized.
    [    0.465771] clocksource: Switched to clocksource arch_sys_counter
    [    0.473205] NET: Registered protocol family 2
    [    0.473723] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.473787] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.473913] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.473980] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.474012] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.474131] NET: Registered protocol family 1
    [    0.474448] RPC: Registered named UNIX socket transport module.
    [    0.474458] RPC: Registered udp transport module.
    [    0.474466] RPC: Registered tcp transport module.
    [    0.474474] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.475680] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.475897] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.476921] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    0.480893] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.481371] NFS: Registering the id_resolver key type
    [    0.481398] Key type id_resolver registered
    [    0.481407] Key type id_legacy registered
    [    0.481446] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.482752] bounce: pool size: 64 pages
    [    0.482795] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.482805] io scheduler noop registered (default)
    [    0.482814] io scheduler deadline registered
    [    0.482903] io scheduler cfq registered
    [    0.482913] io scheduler mq-deadline registered
    [    0.482921] io scheduler kyber registered
    [    0.487247] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [    0.487803] ti-iodelay 4844a000.padconf: Invalid Coarse delay count (0) (reg=0x00000000)
    [    0.489549] dra7-pcie 51000000.pcie_ep: Linked as a consumer to phy-4a094000.pciephy.1
    [    0.535267] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.537926] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 44, base_baud = 3000000) is a 8250
    [    1.472188] console [ttyS0] enabled
    [    1.476532] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 45, base_baud = 3000000) is a 8250
    [    1.487145] omap_rng 48090000.rng: Random Number Generator ver. 20
    [    1.496157] connector-hdmi connector@1: failed to find video source
    [    1.512426] brd: module loaded
    [    1.520919] loop: module loaded
    [    1.527680] m25p80 spi0.0: n25q00 (131072 Kbytes)
    [    1.532484] 10 ofpart partitions found on MTD device spi0.0
    [    1.538106] Creating 10 MTD partitions on "spi0.0":
    [    1.543008] 0x000000000000-0x000000010000 : "QSPI.SPL"
    [    1.548796] 0x000000010000-0x000000020000 : "QSPI.SPL.backup1"
    [    1.555232] 0x000000020000-0x000000030000 : "QSPI.SPL.backup2"
    [    1.561706] 0x000000030000-0x000000040000 : "QSPI.SPL.backup3"
    [    1.568162] 0x000000040000-0x000000140000 : "QSPI.u-boot"
    [    1.574146] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
    [    1.580779] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
    [    1.587151] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
    [    1.594186] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
    [    1.600194] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
    [    1.607211] libphy: Fixed MDIO Bus: probed
    [    1.665808] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.673501] davinci_mdio 48485000.mdio: no live phy, scanning all
    [    1.775899] davinci_mdio 48485000.mdio: timed out waiting for user access
    [    1.882794] davinci_mdio 48485000.mdio: timed out waiting for idle
    [    1.889042] davinci_mdio: probe of 48485000.mdio failed with error -5
    [    1.896318] cpsw 48484000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property
    [    1.904626] cpsw 48484000.ethernet: Detected MACID = 38:0b:3c:40:ea:52
    [    1.911259] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
    [    1.917664] cpsw 48484000.ethernet: ALE Table size 1024
    [    1.922957] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.930848] cpsw 48484000.ethernet: cpsw: Detected MACID = 00:00:00:00:00:a0
    [    1.939062] i2c /dev entries driver
    [    1.943081] IR NEC protocol handler initialized
    [    1.947665] IR RC5(x/sz) protocol handler initialized
    [    1.952738] IR RC6 protocol handler initialized
    [    1.957306] IR JVC protocol handler initialized
    [    1.961855] IR Sony protocol handler initialized
    [    1.966507] IR SANYO protocol handler initialized
    [    1.971232] IR Sharp protocol handler initialized
    [    1.975971] IR MCE Keyboard/mouse protocol handler initialized
    [    1.981830] IR XMP protocol handler initialized
    [    1.990638] sdhci: Secure Digital Host Controller Interface driver
    [    1.996869] sdhci: Copyright(c) Pierre Ossman
    [    2.001762] sdhci-pltfm: SDHCI platform and OF driver helper
    [    2.008647] sdhci-omap 4809c000.mmc: failed to set system capabilities
    [    2.015807] sdhci-omap 480b4000.mmc: failed to set system capabilities
    [    2.023102] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.032953] NET: Registered protocol family 10
    [    2.038259] Segment Routing with IPv6
    [    2.041987] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    2.048386] NET: Registered protocol family 17
    [    2.053025] Key type dns_resolver registered
    [    2.057504] omap_voltage_late_init: Voltage driver support not added
    [    2.063888] Power Management for TI OMAP4+ devices.
    [    2.069052] Registering SWP/SWPB emulation handler
    [    2.085877] dmm 4e000000.dmm: workaround for errata i878 in use
    [    2.093424] dmm 4e000000.dmm: initialized all PAT entries
    [    2.099486] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    2.104652] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    2.112082] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
    [    2.118492] nand: Macronix MX30LF2G18AC
    [    2.122349] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    2.130061] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    2.135485] 10 ofpart partitions found on MTD device omap2-nand.0
    [    2.141622] Creating 10 MTD partitions on "omap2-nand.0":
    [    2.147065] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    2.153001] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    2.159576] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    2.166155] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    2.172699] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    2.179570] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    2.186535] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    2.192998] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    2.200173] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    2.213684] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [    2.452080] palmas 0-0058: IRQ missing: skipping irq request
    [    2.486118] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
    [    2.493026] SMPS123: supplied by regulator-dummy
    [    2.500598] SMPS45: supplied by regulator-dummy
    [    2.507194] SMPS6: supplied by regulator-dummy
    [    2.513531] SMPS7: supplied by regulator-dummy
    [    2.520029] SMPS8: supplied by regulator-dummy
    [    2.526352] SMPS9: supplied by regulator-dummy
    [    2.531901] LDO1: supplied by regulator-dummy
    [    2.538344] LDO2: supplied by regulator-dummy
    [    2.544449] random: fast init done
    [    2.547936] LDO3: supplied by regulator-dummy
    [    2.554195] LDO4: supplied by regulator-dummy
    [    2.559389] LDO5: supplied by regulator-dummy
    [    2.564557] LDO6: supplied by regulator-dummy
    [    2.569774] LDO7: supplied by regulator-dummy
    [    2.574949] LDO8: supplied by regulator-dummy
    [    2.580156] LDO9: supplied by regulator-dummy
    [    2.586612] LDOLN: supplied by regulator-dummy
    [    2.592947] LDOUSB: supplied by regulator-dummy
    [    2.601974] GPIO line 508 (CT_CP_HPD) hogged as output/high
    [    2.607719] GPIO line 507 (LS_OE) hogged as output/high
    [    2.613348] pcf857x 0-0020: probed
    [    2.617378] pcf857x 0-0023: probed
    [    2.620856] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    2.656349] tmp102 2-0048: initialized
    [    2.660613] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [    2.680588] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
    [    2.686915] DSS: OMAP DSS rev 6.1
    [    2.690980] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
    [    2.699480] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
    [    2.710332] evm_3v3_sd: supplied by sysen1
    [    2.775798] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
    [    2.783589] evm_1v8: supplied by smps9
    [    2.845796] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
    [    2.860319] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    2.867101] [drm] No driver support for vblank timestamp query.
    [    2.873203] [drm] Cannot find any crtc or sizes
    [    2.881790] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
    [    2.889638] hctosys: unable to open rtc device (rtc0)
    [    2.895316] vtt_fixed: supplied by evm_3v3_sd
    [    2.899039] mmc0: host does not support reading read-only switch, assuming write-enable
    [    2.901699] mmc0: new high speed SDHC card at address aaaa
    [    2.901942] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
    [    2.904192]  mmcblk0: p1 p2
    [    2.920733] ldousb: disabling
    [    2.923976] ALSA device list:
    [    2.924399] mmc1: new high speed MMC card at address 0001
    [    2.924631] mmcblk1: mmc1:0001 DG4064 59.2 GiB 
    [    2.932427] mmcblk1boot0: mmc1:0001 DG4064 partition 1 4.00 MiB
    [    2.932533] mmcblk1boot1: mmc1:0001 DG4064 partition 2 4.00 MiB
    [    2.932652] mmcblk1rpmb: mmc1:0001 DG4064 partition 3 4.00 MiB
    [    2.954711]   No soundcards found.
    [    2.973979] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.982189] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    2.997776] devtmpfs: mounted
    [    3.001614] Freeing unused kernel memory: 2048K
    [    3.301579] systemd[1]: System time before build time, advancing clock.
    [    3.343010] 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.364528] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2018.10!
    
    [    3.408926] systemd[1]: Set hostname to <dra7xx-evm>.
    [    3.722065] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.729035] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    3.800079] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.808504] systemd[1]: Created slice System Slice.
    [  OK  ] Created slice System Slice.
    [    3.836247] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.845307] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    3.876432] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    3.925893] [drm] Cannot find any crtc or sizes
    [    3.930606] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    3.975304] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    4.006709] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
             Mounting Kernel Debug File System...
    [  OK  ] Created slice system-getty.slice.
    [  OK  ] Listening on Syslog Socket.
    [  OK  ] Created slice User and Session Slice.
    [  OK  ] Reached target Slices.
    [  OK  ] Listening on Network Service Netlink Socket.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Reached target Paths.
    [  OK  ] Reached target Swap.
             Mounting Temporary Directory (/tmp)...
    [  OK  ] Listening on Journal Socket.
             Starting Create list of required st��ce nodes for the current kernel...
             Starting Load Kernel Modules...
             Starting Remount Root and Kernel File Systems...
    [    4.520080] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
             Starting Journal Service...
    [  OK  ] Listening on udev Kernel Socket.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Started Journal Service.
    [  OK  ] Started Create list of required sta��vice nodes for the current kernel.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting Rebuild Hardware Database...
             Starting Create System Users...
             Mounting Kernel Configuration File System...
             Starting Apply Kernel Variables...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Create System Users.
    [  OK  ] Started Apply Kernel Variables.
    [    5.084408] systemd-journald[93]: 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 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 Update UTMP about System Boot/Shutdown...
             Starting Network Time Synchronization...
    [  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.
    [    7.038444] at24 2-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    [  OK  ] Started Daily rotation of log files.
    [    7.072229] ov1063x: probe of 2-0037 failed with error -121
    [    7.086316] at24 2-0054: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    [    7.094713] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
    [    7.094939] omap-des 480a5000.des: will run requests pump with realtime priority
    [    7.119311] CAN device driver interface
    [    7.123591] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=91)
    [    7.124063] c_can_platform 48480000.can: c_can_platform device registered (regs=fa480000, irq=92)
    [  OK  ] Listening on dropbear.socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [    7.273579] omap_rtc 48838000.rtc: already running
    [    7.279853] omap_rtc 48838000.rtc: registered as rtc0
             Starting Network Service...
    [    7.289882] at24 4-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    [  OK  ] Listening on D-Bus System Message Bus Socket.[    7.322066] at24 4-0054: 256 byte 24c02 EEPROM, writable, 1 bytes/write
    
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [    7.389768] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
    [    7.427539] vpe 489d0000.vpe: Device registered as /dev/video0
    [  OK  ] Started Periodic Command Scheduler.
             Starting TI IPC Daemon...
    [    7.484681] vip 48970000.vip: loading firmware vpdma-1b8.bin
    [    7.515845] vip 48970000.vip: VPDMA firmware loaded
    [    7.531200] SCSI subsystem initialized
             Starting Print notice about GPLv3 packages...
             Starting uim-sysfs.service...
             Starting RPC Bind Service...
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Reached target Containers.
    [    7.601755] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    7.639107] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
    [  OK  ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
    [  OK  ] Started Kernel Logging Service.
    [  OK  ] Started System Logging Service.
    [    7.709135] random: crng init done
    [    7.712631] random: 7 urandom warning(s) missed due to ratelimiting
    [    7.787818] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
    [    7.798857] omap-aes 4b500000.aes: will run requests pump with realtime priority
    [    7.857987] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
    [    7.861551] omap-aes 4b700000.aes: will run requests pump with realtime priority
    [    7.863031] ahci 4a140000.sata: forcing port_map 0x0 -> 0x1
    [    7.863065] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    [    7.863072] ahci 4a140000.sata: flags: 64bit ncq sntf pm led clo only pmp pio slum part ccc apst 
    [    7.946779] scsi host0: ahci
    [    7.946978] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 81
    [    8.084108] NET: Registered protocol family 15
             Starting Login Service...
    [  OK  ] Started D-Bus System Message Bus.
    [    8.279149] ata1: SATA link down (SStatus 0 SControl 300)
    [    8.300137] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    8.479160] Initializing XFRM netlink socket
    [    8.517979] net eth1: initializing cpsw version 1.15 (0)
    [  OK  ] Started Job spooling tools.
    [    8.556857] libphy: PHY  not found
    [    8.560282] net eth1: phy "" not found on slave 1, err -19
    [  OK  ] Started Network Service.
    [  OK  ] Started TI IPC Daemon.
    [  OK  ] Started RPC Bind Service.
    [  OK  ] Found device /dev/ttyS0.
    [    8.702317] pvrsrvkm: loading out-of-tree module taints kernel.
    [    8.704825] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [    8.732146] net eth0: initializing cpsw version 1.15 (0)
    [    8.753374] extcon-usb-gpio: probe of extcon_usb2 failed with error -16
    [    8.803514] [drm] Initialized pvr 1.14.3699939 20110701 for 56000000.gpu on minor 1
    [    8.812571] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
    [    8.812582] omap-hdmi-audio omap-hdmi-audio.0.auto: ASoC: no DMI vendor name!
    [    8.960876] OF: /sound0/simple-audio-card,cpu: could not get #sound-dai-cells for /ocp/mcasp@48468000
    [    8.960884] asoc-simple-card sound0: parse error -22
    [    8.960900] asoc-simple-card: probe of sound0 failed with error -22
    [    9.114283] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
    [    9.233127] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Reached target Network.
             Starting Network Name Resolution...
             Starting Enable and configure wl18xx bluetooth stack...
             Starting Permit User Sessions...
             Starting Lightning Fast Webserver With Light System Requirements...
    [  OK  ] Started Login Service.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [  OK  ] Started Network Name Resolution.
    [   10.245855] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    [   10.258308] usbcore: registered new interface driver usbfs
    [   10.258348] usbcore: registered new interface driver hub
    [   10.258484] usbcore: registered new device driver usb
    [   10.292237] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   10.292258] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
    [   10.341468] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   10.370175] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
    [   10.386720] xhci-hcd xhci-hcd.1.auto: irq 180, io mem 0x48890000
    [   10.399819] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [   10.415614] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.433066] usb usb1: Product: xHCI Host Controller
    [   10.438006] usb usb1: Manufacturer: Linux 4.14.79-02515-g3438de3-dirty xhci-hcd
    [   10.463701] usb usb1: SerialNumber: xhci-hcd.1.auto
    [   10.478279] hub 1-0:1.0: USB hub found
    [   10.485099] hub 1-0:1.0: 1 port detected
    [   10.495352] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   10.509610] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
    [   10.528825] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed
    [   10.543994] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   10.563706] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [   10.581535] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.597550] usb usb2: Product: xHCI Host Controller
    [   10.602456] usb usb2: Manufacturer: Linux 4.14.79-02515-g3438de3-dirty xhci-hcd
    [   10.626008] usb usb2: SerialNumber: xhci-hcd.1.auto
    [   10.638129] hub 2-0:1.0: USB hub found
    [   10.646613] 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..
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started uim-sysfs.service.
    [  OK  ] Started Synchronize System and HW clocks.
             Starting rc.pvr.service...
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages[   11.277800] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    :
    	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 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...
    [  OK  ] Started gdbserverproxy.service.
             Starting matrix-gui-2.0.service...
    [  OK  ] Started matrix-gui-2.0.service.
             Starting thermal-zone-init.service...
    [  OK  ] Started thermal-zone-init.service.
    [  OK  ] Reached target Multi-User System.
             Starting Update UTMP about System Runlevel Changes...
    [  OK  ] Started Update UTMP about System Runlevel Changes.
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org dra7xx-evm ttyS0
    
    Arago 2018.10 dra7xx-evm ttyS0
    
    dra7xx-evm login: root
    root@dra7xx-evm:~# omapconf read 0x48485288
    00000000
    omapconf: powerdm_deinit(): cpu not supported!!!
    omapconf: clockdm_deinit(): cpu not supported!!!
    root@dra7xx-evm:~# 
    or dmsg.

    The approach I update linux kernel is here, which was verified with adding serial usb device module support. Therefore, I am sure kernel file is compile and updated.

    * modify makefile under tisdk path to avoid linux/.config file coverred

    * make linux and make linux_install

    * delete original linux kernel and lib/module filies, then copy with newly generated ones from install path

    Hope for your reply and thank very much!

    Best Regards,

    Daniel

  • Hi Daniel,

    Your procedure to update is correct.
    Could you try changing cpsw_info() to pr_err() and check the prints?

    The CTRL_CONTROL_IO_1 and SL_MACCONTROL register look ok.

    We need to move the pinmux to u-boot and also add iodelay values in u-boot and check the behavior.
    You can look at TI EVM example in u-boot (board_ti/dra7xx/evm.c, mux_data.h)

    Regards,
    Vishal




  • Hi Vishal,

    Thanks for your reply and guidance.

    For WR_RGMII_CTL, why the valus of this register under different are both 0x00000000 ? Is there any problem reflected by this ?

    For iodelay, the files I uploaded before and attached here (7752.dra7xx_customed.zip) again. As you can see, in zip file, mux_data.h and customed.c files contains iodelay related code, which are shown in below figures. The delays values are generated with TI pinmux tool, is there any need to compensate the values and how to do the compensation work ?

    For checking print in boot log, after changing cpsw_info to pr_err, it works and result is shown below.

    Thanks for your support and hope for your reply !

    Best Regards,

    Daniel

  • Does networking work for you in u-boot?

    setenv ipaddr 192.168.0.111
    => ping 192.168.0.110
    link up on port 1, speed 100, full duplex
    Using ethernet@046000000 device
    host 192.168.0.110 is alive

  • Hi Grygorii,

    Thanks very much for your advice and help.

    Some background needs to be declare right here. Below figure is posted in another thread mentioned in the topic. TDA2 is connected to Marvell Switch 88E6321(not 88EA6321) port 2. Switch chip is controlled by a MCU running bare-metal code without IP stack. And this local network is not connect to external network. For controlling switch, only port forwarding is achieved between port 5 and port 6. Due to network issue in TDA2 side, port forwarding function is still being verified between port 2 and port 5.

    When using ping command in u-boot, no signal can be found in EMAC_TXD0 by probing P2_RXD0 whether switch is enabled by MCU or not. So I suppose network is not working in u-boot.

    Best Regards,

    Daniel

  • Hi Daniel,

    Can you stop at u-boot and make sure the SL_MACCONTROL and other registers values for different speed mode?
    Is the clock still at 2.5 MHz at u-boot also?

  • hi Daniel,

     I've asked about u-boot, because it's usually easier to debug in u-boot, but if you need to load MCU FW or there are init races MCU vs DRA7 then it might be not a good choice.

    Following information you've provided in this thread, there are seems *no issues* in Kernel - all SW does what it should and CPSW side configured properly.

    But WR_RGMII_CTL is 0 and RGMII link not established (RGMII vs RGMII). 

    There is one thing I'd like to ask you to try/verify - pull up/down configuration  of RGMII pins.

    Note. DRA7 SW design assume pins have to be configured by u-boot only - not Linux Kernel. 

  • Hi Vishal,

    Thanks for your reply.

    There is no clock output. Under different emac speed, {0x48484D84, 0x48485288, 0x4A002554} are identical and equal to {0x00000000, 0x00000000, 0x00003302}.

    In before measurement, 2.5MHz clock is caused by the process of booting to Linux kernel and reboot to u-boot phase. So, at this time, I just stop at u-boot without booting to Linux kernel. Besides, swith chip is well configured and port connected to DRA756 chip is also configured.

    Then, I check pinmux registers at uboot for EVMX777G-01-40-00 (evm board) and the customed board. It seems that emac is not configured during uboot.

    figure - pinmux reg of the customed board

    figure - reg value of evm board

    I think problem maybe located at u-boot. And It hope more advices related to u-boot. Thanks very much !

    --- 20200515 progress with whole night locating problem ---

    For evm board, after executing uboot/driver/net/cpsw.c -> cpsw_gmii_sel_dra7xx -> writel(reg, priv->data.gmii_sel), EMAC[0]_TXC is able to output clock. But for out customed board, there is no clock at all when running over the same location.

    Then reg and reg write value are compared, which are both {0x4a002554, 3302}.

    So, could you please share any insights about what leads no clock output ? Thanks again.

    Best Regards,

    Daniel

  • Hi Grygorii,

    Glad to see your reply and thankful for your advice.

    In MCU power on sequence, MCU powers on DRA7 after configuring serial port and switch chip. There should be no races for MCU vs DRA7. However, your reply remind me of the importance about switch clock. In posted content or test result, switch clock is not enable. Then I enable switch input clock and do some tests shown below and found interesting results:

    * switch port 2 connects to DRA7

    Result or confusion I want to share with you.

    * uboot surely has problem of configuring emac, because there is no clock output when directing booting to uboot instead of rebooting to uboot

    * when enable input clock for switch, emac output clock is 25MHz after Starting kernels... and then it change to 2.5MHz after init cpsw. However, when disable switch input clock, emac output clock keep at 2.5MHz after Starting kernels...

    * Should switch to be well configured before powering on DRA7 or before DRA7 configuring CPSW module ?

    Thanks for your insights and hope for your reply again !

    Best Regards,

    Daniel

  • Clock not being set in u-boot is discussed in new ticket
    https://e2e.ti.com/support/processors/f/791/t/906069

  • Hi Daniel,

    The u-boot no clock issue was root caused to pin mux not being done in u-boot (calibrate_iodelay API failure)
    This needs to be root caused as the IO lines will have problems without proper iodelay recalibration.

    Regards,
    Vishal