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.

DRA821U: Activating CPSW5G Linux Native Ethernet for SGMII, RMII

Part Number: DRA821U
Other Parts Discussed in Thread: DRA821

Tool/software:

Hi DRA821U Champ !

"How to enable CPSw5g linux native ethernet for SGMII, RMII on DRA821"

Regarding the original thread, Tanmay has been followed up via the E2E thread, 

I tried to reach him via messaging, But he is not available this week.

Can you please check the original thread and provide appropriate action helpful?

Thanks.

Best Regards,

Jack

  • Hi,

    From previous/older threads, I could see you are using SDK 9.0.

    Please refer to below FAQ, for enabling Native Linux Driver for CPSW5G.
    e2e.ti.com/.../faq-how-do-i-bring-brought-up-ethernet-interfaces-for-main-domain-cpswng-in-linux-from-sdk-version-9-0-and-above

    Also, Update the device tree as per required interface.

    Please share the Linux Log, if you are facing any issues.

    Best Regards,
    Sudheer

  • Hi

    You want to apply Native Ethernet in SDK version 9.01.
    The H/W configuration is as follows.

    Ti Ethernet PHY is connected to CPSW5G with SGMII type.

    The DTS file is defined as follows.

    &serdes_ln_ctrl {
        idle-states = <J7200_SERDES0_LANE0_IP3_UNUSED>, <J7200_SERDES0_LANE1_QSGMII_LANE4>,
                  <J7200_SERDES0_LANE2_QSGMII_LANE1>, <J7200_SERDES0_LANE3_USB>;
    };
    
    &serdes0 {
        #address-cells = <1>;
        #size-cells = <0>;
    
        serdes0_sgmii_link: phy@1 {
            reg = <1>;
            cdns,num-lanes = <2>;
            #phy-cells = <0>;
            cdns,phy-type = <PHY_TYPE_SGMII>;
            resets = <&serdes_wiz0 2>, <&serdes_wiz0 3>;
        };
    
        serdes0_usb_link: phy@2 {
            reg = <3>;
            cdns,num-lanes = <1>;
            #phy-cells = <0>;
            cdns,phy-type = <PHY_TYPE_USB3>;
            resets = <&serdes_wiz0 4>;
        };
    };
    
    &cpsw0 {
        status = "okay";
        pinctrl-names = "default";
    };
    
    &cpsw5g_mdio {
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_eth_phy_pins_default>;
        reset-post-delay-us = <120000>;
    
        cpsw5g_phy0: ethernet-phy@5 {
            reg = <5>;
        };
    
        cpsw5g_phy3: ethernet-phy@6 {
            reg = <6>;
        };
    
    };
    
    &cpsw0_port1 {
        status = "okay";
        phy-mode = "sgmii";
        phy-handle = <&cpsw5g_phy0>;
        phys = <&cpsw0_phy_gmii_sel 1>;
    };
    
    &cpsw0_port2 {
        status = "disabled";
    };
    
    &cpsw0_port3 {
        status = "disabled";
    };
    
    &cpsw0_port4 {
        status = "okay";
        phy-mode = "sgmii";
        phy-handle = <&cpsw5g_phy3>;
        phys = <&cpsw0_phy_gmii_sel 4>, <&serdes0_sgmii_link>;
        phy-names = "portmode", "serdes-phy";
    };

    Link-up operation was confirmed after Kernel booting was completed.(only 1000BaseT1)

    root@tgu:~# ifconfig eth1 up
    [701958.613917] mv88q2221_config speed 1000 ----------
    [701958.627919] PHY 5: rev B0 for initial PHY
    [701958.896501] >> Link Status: Down
    [701958.898464] >> Latched Link Status 1: Down
    [701958.901732] >> Real Time Link Status: Down
    [701958.904165] >> Latched Link Status 2: Down
    [701958.906274] >> Master/Slave: Master
    [701958.908061] >> Speed: GE/1000
    [701958.909599] am65-cpsw-nuss c000000.ethernet eth1: PHY [c000f00.mdio:05] driver [mv88q2221] (irq=POLL)
    [701958.914261] am65-cpsw-nuss c000000.ethernet eth1: configuring for phy/sgmii link mode
    root@tgu:~# ifconfig eth2 up
    [701965.190464] mv88q2221_config speed 1000 ----------
    [701965.203916] PHY 6: rev B0 for initial PHY
    [701965.472492] >> Link Status: Down
    [701965.474455] >> Latched Link Status 1: Down
    [701965.477721] >> Real Time Link Status: Down
    [701965.480148] >> Latched Link Status 2: Down
    [701965.482257] >> Master/Slave: Master
    [701965.484045] >> Speed: GE/1000
    [701965.485582] am65-cpsw-nuss c000000.ethernet eth2: PHY [c000f00.mdio:06] driver [mv88q2221] (irq=POLL)
    [701965.490245] am65-cpsw-nuss c000000.ethernet eth2: configuring for phy/sgmii link mode
    root@tgu:~#

    However, traffic does not become TX/RX.

    The register 0x0506E000 requested by Tanmay is as below.

    root@tgu:~# devmem2 0x0506E000
    /dev/mem opened.
    Memory mapped at address 0xffff9300a000.
    Read at address  0x0506E000 (0xffff9300a000): 0x00C30011
    root@tgu:~#

    The boot log is as below.

    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 6.6.32 (dhkim@autodev70-ubuntu22-04) (aarch64-oe-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #4 SMP PREEMPT Tue Oct 22 13:13:13 KST 2024
    [    0.000000] KASLR disabled due to lack of seed
    [    0.000000] Machine model: Texas Instruments K3 J7200 SoC
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] OF: reserved mem: 0x000000009e800000..0x000000009fffffff (24576 KiB) nomap non-reusable optee@9e800000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a0000000..0x00000000a00fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a0000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a0100000..0x00000000a0ffffff (15360 KiB) nomap non-reusable r5f-memory@a0100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a1000000..0x00000000a10fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a1000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a1100000..0x00000000a1ffffff (15360 KiB) nomap non-reusable r5f-memory@a1100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a2000000..0x00000000a20fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a2000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a2100000..0x00000000a2ffffff (15360 KiB) nomap non-reusable r5f-memory@a2100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a3000000..0x00000000a30fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a3000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a3100000..0x00000000a3ffffff (15360 KiB) nomap non-reusable r5f-memory@a3100000
    [    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a47fffff (8192 KiB) nomap non-reusable ipc-memories@a4000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 2 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-virtual-eth-queues@a5000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a5000000..0x00000000a51fffff (2048 KiB) nomap non-reusable r5f-virtual-eth-queues@a5000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5200000, size 30 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-virtual-eth-buffers@a5200000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a5200000..0x00000000a6ffffff (30720 KiB) nomap non-reusable r5f-virtual-eth-buffers@a5200000
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
    [    0.000000]   node   0: [mem 0x000000009e800000-0x00000000a47fffff]
    [    0.000000]   node   0: [mem 0x00000000a4800000-0x00000000a4ffffff]
    [    0.000000]   node   0: [mem 0x00000000a5000000-0x00000000a6ffffff]
    [    0.000000]   node   0: [mem 0x00000000a7000000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] cma: Reserved 32 MiB at 0x00000000fe000000 on node -1
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.4
    [    0.000000] percpu: Embedded 20 pages/cpu s43176 r8192 d30552 u81920
    [    0.000000] pcpu-alloc: s43176 r8192 d30552 u81920 alloc=20*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: Spectre-v3a
    [    0.000000] CPU features: detected: Spectre-BHB
    [    0.000000] CPU features: detected: ARM erratum 1742098
    [    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Kernel command line: console=ttyS2,230400n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=28ae4bbe-9112-da46-b07b-5e10e8893239 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: area num 2.
    [    0.000000] software IO TLB: mapped [mem 0x00000000fa000000-0x00000000fe000000] (64MB)
    [    0.000000] Memory: 3864392K/4194304K available (11520K kernel code, 1322K rwdata, 3792K rodata, 2432K init, 420K bss, 297144K reserved, 32768K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU event tracing is enabled.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
    [    0.000000]  Trampoline variant of Tasks RCU enabled.
    [    0.000000]  Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 960 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000880040000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880050000
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.004299] Console: colour dummy device 80x25
    [    0.006617] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.012012] pid_max: default: 32768 minimum: 301
    [    0.014470] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.018312] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.022834] cacheinfo: Unable to detect cache hierarchy for CPU 0
    [    0.026424] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.030104] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.034136] rcu: Hierarchical SRCU implementation.
    [    0.036608] rcu:     Max phase no-delay instances is 1000.
    [    0.039656] Platform MSI: msi-controller@1820000 domain created
    [    0.042793] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.047577] EFI services will not be available.
    [    0.050047] smp: Bringing up secondary CPUs ...
    [    0.056983] Detected PIPT I-cache on CPU1
    [    0.057015] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.057029] GICv3: CPU1: using allocated LPI pending table @0x0000000880060000
    [    0.057063] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.057120] smp: Brought up 1 node, 2 CPUs
    [    0.071946] SMP: Total of 2 processors activated.
    [    0.074377] CPU features: detected: 32-bit EL0 Support
    [    0.077027] CPU features: detected: CRC32 instructions
    [    0.079724] CPU: All CPU(s) started at EL2
    [    0.081836] alternatives: applying system-wide alternatives
    [    0.085577] devtmpfs: initialized
    [    0.091141] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.096193] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [    0.100248] pinctrl core: initialized pinctrl subsystem
    [    0.103266] DMI not present or invalid.
    [    0.105573] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.109040] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.112802] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.116924] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.121242] thermal_sys: Registered thermal governor 'step_wise'
    [    0.121246] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.124362] cpuidle: using governor menu
    [    0.129806] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.133336] ASID allocator initialised with 65536 entries
    [    0.138980] platform 4301c000.pinctrl: Fixed dependency cycle(s) with /bus@100000/bus@28380000/pinctrl@4301c000/wkup_gpio_pins_default
    [    0.147638] platform 11c000.pinctrl: Fixed dependency cycle(s) with /bus@100000/pinctrl@11c000/gpio_pins_default
    [    0.154866] Modules: 27856 pages in range for non-PLT usage
    [    0.154870] Modules: 519376 pages in range for PLT usage
    [    0.158196] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.164437] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.167679] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.171181] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.174415] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.177916] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.181149] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.184650] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.188633] k3-chipinfo 43000014.chipid: Family:J7200 rev:SR2.0 JTAGID[0x1bb6d02f] Detected
    [    0.193256] iommu: Default domain type: Translated
    [    0.195728] iommu: DMA domain TLB invalidation policy: strict mode
    [    0.199056] SCSI subsystem initialized
    [    0.201081] libata version 3.00 loaded.
    [    0.201361] pps_core: LinuxPPS API ver. 1 registered
    [    0.203922] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.208652] PTP clock support registered
    [    0.210690] EDAC MC: Ver: 3.0.0
    [    0.212548] scmi_core: SCMI protocol bus registered
    [    0.215217] FPGA manager framework
    [    0.217486] clocksource: Switched to clocksource arch_sys_counter
    [    0.224016] NET: Registered PF_INET protocol family
    [    0.226829] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.232131] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    0.236592] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.240603] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.244825] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
    [    0.249853] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.253378] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.256914] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.260745] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.264022] RPC: Registered named UNIX socket transport module.
    [    0.267094] RPC: Registered udp transport module.
    [    0.269523] RPC: Registered tcp transport module.
    [    0.271947] RPC: Registered tcp-with-tls transport module.
    [    0.274779] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.278108] NET: Registered PF_XDP protocol family
    [    0.280590] PCI: CLS 0 bytes, default 64
    [    0.283244] Initialise system trusted keyrings
    [    0.285665] workingset: timestamp_bits=46 max_order=20 bucket_order=0
    [    0.289145] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.292314] NFS: Registering the id_resolver key type
    [    0.294940] Key type id_resolver registered
    [    0.297097] Key type id_legacy registered
    [    0.299178] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.302640] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.319779] Key type asymmetric registered
    [    0.321896] Asymmetric key parser 'x509' registered
    [    0.324437] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.328337] io scheduler mq-deadline registered
    [    0.330685] io scheduler kyber registered
    [    0.334390] pinctrl-single 4301c000.pinctrl: 120 pins, size 480
    [    0.337800] pinctrl-single 11c000.pinctrl: 173 pins, size 692
    [    0.343920] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.352130] loop: module loaded
    [    0.353959] megasas: 07.725.01.00-rc1
    [    0.357689] tun: Universal TUN/TAP device driver, 1.6
    [    0.360552] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    0.363828] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.366899] sky2: driver version 1.30
    [    0.369303] VFIO - User Level meta-driver version: 0.3
    [    0.372242] i2c_dev: i2c /dev entries driver
    [    0.375050] sdhci: Secure Digital Host Controller Interface driver
    [    0.378256] sdhci: Copyright(c) Pierre Ossman
    [    0.380638] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.383973] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.387219] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.391376] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.395805] optee: probing for conduit method.
    [    0.398122] optee: revision 4.0 (2a5b1d12)
    [    0.406497] optee: dynamic shared memory is enabled
    [    0.411357] optee: initialized driver
    [    0.413966] Initializing XFRM netlink socket
    [    0.416186] NET: Registered PF_PACKET protocol family
    [    0.418849] Key type dns_resolver registered
    [    0.424120] registered taskstats version 1
    [    0.426329] Loading compiled-in X.509 certificates
    [    0.434956] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0009 '9.1.2--v09.01.02 (Kool Koala)')
    [    0.461529] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
    [    0.464950] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
    [    0.468232] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
    [    0.471623] pca953x 3-0021: supply vcc not found, using dummy regulator
    [    0.475123] pca953x 3-0021: using no AI
    [    0.497544] pca953x 3-0021: failed writing register
    [    0.500116] pca953x: probe of 3-0021 failed with error -121
    [    0.503154] pca953x 3-0022: supply vcc not found, using dummy regulator
    [    0.506625] pca953x 3-0022: using AI
    [    0.508533] pca953x 3-0022: failed writing register
    [    0.511113] pca953x: probe of 3-0022 failed with error -121
    [    0.514027] omap_i2c 2000000.i2c: bus 3 rev0.12 at 300 kHz
    [    0.517306] omap_i2c 2010000.i2c: bus 4 rev0.12 at 100 kHz
    [    0.520541] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz
    [    0.523751] omap_i2c 2030000.i2c: bus 6 rev0.12 at 100 kHz
    [    0.526959] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
    [    0.530159] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz
    [    0.533340] omap_i2c 2060000.i2c: bus 9 rev0.12 at 100 kHz
    [    0.536299] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
    [    0.541372] ti-sci-intr bus@100000:interrupt-controller@a00000: Interrupt Router 131 domain created
    [    0.546133] ti-sci-intr 310e0000.interrupt-controller: Interrupt Router 213 domain created
    [    0.550551] ti-sci-inta 33d00000.msi-controller: Interrupt Aggregator domain 209 created
    [    0.557498] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,32] sci-dev-id:235
    [    0.562501] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    0.565920] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66349100, num_proxies:64
    [    0.572605] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[120,200] sci-dev-id:211
    [    0.577777] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    0.581194] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66349100, num_proxies:64
    [    0.585656] 42300000.serial: ttyS0 at MMIO 0x42300000 (irq = 258, base_baud = 3000000) is a 8250
    [    0.590948] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 259, base_baud = 6000000) is a 8250
    [    0.596054] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 260, base_baud = 3000000) is a 8250
    [    0.600553] printk: console [ttyS2] enabled
    [    0.604804] printk: bootconsole [ns16550a0] disabled
    [    0.614055] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 261, base_baud = 3000000) is a 8250
    [    0.618951] 2820000.serial: ttyS4 at MMIO 0x2820000 (irq = 262, base_baud = 3000000) is a 8250
    [    0.623832] 2830000.serial: ttyS5 at MMIO 0x2830000 (irq = 263, base_baud = 3000000) is a 8250
    [    0.628722] 2850000.serial: ttyS7 at MMIO 0x2850000 (irq = 264, base_baud = 3000000) is a 8250
    [    0.633607] 2860000.serial: ttyS8 at MMIO 0x2860000 (irq = 265, base_baud = 3000000) is a 8250
    [    0.638506] 2890000.serial: ttyS9 at MMIO 0x2890000 (irq = 266, base_baud = 3000000) is a 8250
    [    0.643365] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    0.813489] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 20000
    [    0.817909] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver unknown
    [    0.821946] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    0.828423] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    0.832035] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    0.835309] pps pps0: new PPS source ptp0
    [    0.837470] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
    [    0.843146] davinci_mdio c000f00.mdio: Configuring MDIO in manual mode
    [    0.885509] davinci_mdio c000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    0.897402] davinci_mdio c000f00.mdio: phy[5]: device c000f00.mdio:05, driver mv88q2221
    [    0.901415] davinci_mdio c000f00.mdio: phy[6]: device c000f00.mdio:06, driver mv88q2221
    [    0.905437] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 5 quirks:00000000
    [    0.911869] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    0.915068] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    0.918208] am65-cpsw-nuss c000000.ethernet: initialized cpsw ale version 1.4
    [    0.921773] am65-cpsw-nuss c000000.ethernet: ALE Table size 512
    [    0.925088] am65-cpsw-nuss c000000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
    [    0.931438] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
    [    0.951511] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc8900
    [    0.960843] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc8900
    [    0.964263] mmc0: CQHCI version 5.10
    [    0.977427] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [    0.983407] ti-udma 31150000.dma-controller: Channels: 50 (tchan: 25, rchan: 25, gp-rflow: 8)
    [    0.989162] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    1.004383] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
    [    1.008162] Wi-Fi enable : invalid of gpio -2
    [    1.084293] mmc0: Command Queue Engine enabled
    [    1.086531] mmc0: new HS400 MMC card at address 0001
    [    1.089396] mmcblk0: mmc0:0001 8GUF4R 7.28 GiB
    [    1.104014]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13
    [    1.107864] mmcblk0boot0: mmc0:0001 8GUF4R 31.9 MiB
    [    1.111147] mmcblk0boot1: mmc0:0001 8GUF4R 31.9 MiB
    [    1.114376] mmcblk0rpmb: mmc0:0001 8GUF4R 4.00 MiB, chardev (240:0)
    [    1.165536] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 20000
    [    1.177652] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver unknown
    [    1.181835] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    1.188376] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    1.191997] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    1.195320] pps pps0: new PPS source ptp1
    [    1.200781] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
    [    1.220111] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    1.228526] davinci_mdio c000f00.mdio: Configuring MDIO in manual mode
    [    1.269497] davinci_mdio c000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.289384] davinci_mdio c000f00.mdio: phy[5]: device c000f00.mdio:05, driver mv88q2221
    [    1.293451] davinci_mdio c000f00.mdio: phy[6]: device c000f00.mdio:06, driver mv88q2221
    [    1.297558] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 5 quirks:00000000
    [    1.304253] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    1.310581] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    1.313749] am65-cpsw-nuss c000000.ethernet: initialized cpsw ale version 1.4
    [    1.317328] am65-cpsw-nuss c000000.ethernet: ALE Table size 512
    [    1.320720] am65-cpsw-nuss c000000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
    [    1.342319] am65-cpsw-nuss c000000.ethernet: set new flow-id-base 60
    [    1.353338] mmc1: CQHCI version 5.10
    [    1.355016] input: gpio_keys as /devices/platform/gpio_keys/input/input0
    [    1.365448] clk: Disabling unused clocks
    [    1.396651] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    1.400438] Wi-Fi enable with gpio
    [    1.458486] EXT4-fs (mmcblk0p6): recovery complete
    [    1.462109] EXT4-fs (mmcblk0p6): mounted filesystem d3ff6ae8-2165-48cb-a082-d11de1ac0433 r/w with ordered data mode. Quota mode: disabled.
    [    1.468889] VFS: Mounted root (ext4 filesystem) on device 179:6.
    [    1.477864] mmc1: new ultra high speed SDR104 SDIO card at address 0001
    [    1.481649] devtmpfs: mounted
    [    1.484762] Freeing unused kernel memory: 2432K
    [    1.487127] Run /sbin/preinit as init process
    [    1.489305]   with arguments:
    [    1.489309]     /sbin/preinit
    [    1.489312]   with environment:
    [    1.489314]     HOME=/
    [    1.489317]     TERM=linux
    [    1.573509] EXT4-fs (mmcblk0p6): re-mounted d3ff6ae8-2165-48cb-a082-d11de1ac0433 r/w. Quota mode: disabled.
    [    1.619009] EXT4-fs (mmcblk0p2): recovery complete
    [    1.621855] EXT4-fs (mmcblk0p2): mounted filesystem 26ae07bd-f993-4f79-b777-f0c1533b3fea r/w with ordered data mode. Quota mode: disabled.
    [    1.705014] systemd[1]: System time before build time, advancing clock.
    [    1.736311] NET: Registered PF_INET6 protocol family
    [    1.745213] Segment Routing with IPv6
    [    1.747384] In-situ OAM (IOAM) with IPv6
    [    1.775472] systemd[1]: systemd 250.5+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
    [    1.791616] systemd[1]: Detected architecture arm64.
    [    1.841859] systemd[1]: Hostname set to <tgu>.
    [    1.928271] block mmcblk0: the capability attribute has been deprecated.
    [    2.308842] systemd[1]: vehicle-manager.service: Failed to open /etc/systemd/system/vehicle-manager.service: No such file or directory
    [    2.315716] systemd[1]: uds-manager.service: Failed to open /etc/systemd/system/uds-manager.service: No such file or directory
    [    2.336225] systemd[1]: redis.service: Failed to open /etc/systemd/system/redis.service: No such file or directory
    [    2.342871] systemd[1]: ntpd.service: Failed to open /etc/systemd/system/ntpd.service: No such file or directory
    [    2.349145] systemd[1]: Configuration file /etc/systemd/system/mount-partition.service is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    2.368295] systemd[1]: j1939manager-db.service: Failed to open /etc/systemd/system/j1939manager-db.service: No such file or directory
    [    2.374418] systemd[1]: j1939-c-manager.service: Failed to open /etc/systemd/system/j1939-c-manager.service: No such file or directory
    [    2.380711] systemd[1]: isotp-manager.service: Failed to open /etc/systemd/system/isotp-manager.service: No such file or directory
    [    2.402217] systemd[1]: file-downloader.service: Failed to open /etc/systemd/system/file-downloader.service: No such file or directory
    [    2.408395] systemd[1]: fault-manager.service: Failed to open /etc/systemd/system/fault-manager.service: No such file or directory
    [    2.415980] systemd[1]: data-collector.service: Failed to open /etc/systemd/system/data-collector.service: No such file or directory
    [    2.423259] systemd[1]: /etc/systemd/system/bootcount_reset.service:8: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
    [    2.467231] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
    [    2.523941] systemd[1]: Queued start job for default target Multi-User System.
    [    2.578202] systemd[1]: Created slice Slice /system/getty.
    [    2.595627] systemd[1]: Created slice Slice /system/modprobe.
    [    2.614702] systemd[1]: Created slice Slice /system/serial-getty.
    [    2.630473] systemd[1]: Created slice Slice /system/syslog-ng.
    [    2.646432] systemd[1]: Created slice User and Session Slice.
    [    2.661835] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [    2.677685] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [    2.693920] systemd[1]: Reached target Path Units.
    [    2.709625] systemd[1]: Reached target Remote File Systems.
    [    2.725644] systemd[1]: Reached target Slice Units.
    [    2.741674] systemd[1]: Reached target Swaps.
    [    2.792984] systemd[1]: Listening on RPCbind Server Activation Socket.
    [    2.809789] systemd[1]: Reached target RPC Port Mapper.
    [    2.831500] systemd[1]: Listening on Process Core Dump Socket.
    [    2.845957] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    2.864501] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
    [    2.870435] systemd[1]: Listening on Journal Socket (/dev/log).
    [    2.886345] systemd[1]: Listening on Journal Socket.
    [    2.902325] systemd[1]: Listening on udev Control Socket.
    [    2.918015] systemd[1]: Listening on udev Kernel Socket.
    [    2.934060] systemd[1]: Listening on User Database Manager Socket.
    [    2.973877] systemd[1]: Mounting Huge Pages File System...
    [    2.993721] systemd[1]: Mounting POSIX Message Queue File System...
    [    3.012312] systemd[1]: Mounting Kernel Debug File System...
    [    3.030091] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
    [    3.061884] systemd[1]: Mounting Temporary Directory /tmp...
    [    3.082749] systemd[1]: Starting Create List of Static Device Nodes...
    [    3.102365] systemd[1]: Starting Load Kernel Module configfs...
    [    3.122265] systemd[1]: Starting Load Kernel Module drm...
    [    3.140380] systemd[1]: Starting Load Kernel Module fuse...
    [    3.178134] systemd[1]: Starting RPC Bind...
    [    3.193806] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
    [    3.212747] systemd[1]: Starting Journal Service...
    [    3.258747] systemd[1]: Starting Load Kernel Modules...
    [    3.274407] systemd[1]: Starting Generate network units from Kernel command line...
    [    3.306613] systemd[1]: Starting Remount Root and Kernel File Systems...
    [    3.320263] systemd[1]: Starting Coldplug All udev Devices...
    [    3.337804] EXT4-fs (mmcblk0p6): re-mounted d3ff6ae8-2165-48cb-a082-d11de1ac0433 r/w. Quota mode: disabled.
    [    3.347800] systemd[1]: Started RPC Bind.
    [    3.363346] systemd[1]: Mounted Huge Pages File System.
    [    3.381988] systemd[1]: Started Journal Service.
    [    3.617392] systemd-journald[143]: Received client request to flush runtime journal.
    [    4.265212] systemd-journald[143]: Oldest entry in /run/log/journal/acc5e771bf004dc6bd1168332aa4e395/system.journal is older than the configured file retention duration (1month), suggesting rotation.
    [    4.294069] systemd-journald[143]: /run/log/journal/acc5e771bf004dc6bd1168332aa4e395/system.journal: Journal header limits reached or header out-of-date, rotating.
    [    4.333734] random: crng init done
    [    4.358334] CAN device driver interface
    [    4.394078] m_can_platform 2701000.can: m_can device registered (irq=534, version=32)
    [    4.430825] m_can_platform 2741000.can: m_can device registered (irq=535, version=32)
    [    4.473614] ti-udma 285c0000.dma-controller: chan1: is running!
    [    4.485367] m_can_platform 27a1000.can: m_can device registered (irq=538, version=32)
    [    4.497010] dbus-broker-lau[196]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
    [    4.504239] inv-mpu-iio-i2c 0-0068: supply inven,vdd_ana not found, using dummy regulator
    [    4.514854] m_can_platform 27c1000.can: m_can device registered (irq=542, version=32)
    [    4.523403] inv-mpu-iio-i2c 0-0068: supply inven,vcc_i2c not found, using dummy regulator
    [    4.523630] m_can_platform 27d1000.can: m_can device registered (irq=543, version=32)
    [    4.538859] rtc rtc0: Power loss detected, invalid time
    [    4.571101] m_can_platform 2691000.can: m_can device registered (irq=544, version=32)
    [    4.593207] rtc-pcf85063 0-0051: registered as rtc0
    [    4.647546] inv_mpu: inv_mpu_probe: power on here.
    [    4.682603] rtc rtc0: Power loss detected, invalid time
    [    4.695845] hbmc-am654: probe of 47034000.hyperbus failed with error -22
    [    4.704630] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    4.736312] inv_mpu: inv_mpu_probe: power on.
    [    4.761462] mhi_init Quectel_Linux_PCIE_MHI_Driver_V1.3.5.3
    [    4.766547] rtc-pcf85063 0-0051: hctosys: unable to read the hardware clock
    [    4.819908] platform 41000000.r5f: configured R5F for IPC-only mode
    [    4.828233] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    4.845296] EXT4-fs (mmcblk0p4): warning: mounting fs with errors, running e2fsck is recommended
    [    4.859195] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [    4.871176] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
    [    4.880140] EXT4-fs (mmcblk0p4): recovery complete
    [    4.889524] inv_mpu: id name = icm42600
    [    4.894978] EXT4-fs (mmcblk0p4): mounted filesystem 1e1be5aa-7d44-46ca-9b25-c26646b100e2 r/w with ordered data mode. Quota mode: disabled.
    [    4.927268] mlan: unknown parameter 'drvdbg' ignored
    [    4.952195] platform 41000000.r5f: assigned reserved memory node r5f-dma-memory@a0000000
    [    4.958511] remoteproc remoteproc0: 41000000.r5f is available
    [    4.961453] remoteproc remoteproc0: attaching to 41000000.r5f
    [    4.967099] platform 41000000.r5f: R5F core initialized in IPC-only mode
    [    4.973070] rproc-virtio rproc-virtio.1.auto: assigned reserved memory node r5f-dma-memory@a0000000
    [    4.977824] rproc-virtio rproc-virtio.1.auto: registered virtio0 (type 7)
    [    4.981223] remoteproc remoteproc0: remote processor 41000000.r5f is now attached
    [    4.987062] inv_mpu: whoami= 6c
    [    5.030853] platform 41400000.r5f: configured R5F for remoteproc mode
    [    5.033153] am65-cpsw-nuss 46000000.ethernet eth0: PHY [46000f00.mdio:00] driver [Generic PHY] (irq=POLL)
    [    5.043550] am65-cpsw-nuss 46000000.ethernet eth0: configuring for phy/rmii link mode
    [    5.096606] EXT4-fs (mmcblk0p9): recovery complete
    [    5.109162] EXT4-fs (mmcblk0p9): mounted filesystem 1638c01d-988f-46ca-9579-e6eed5b5943f r/w with ordered data mode. Quota mode: disabled.
    [    5.154909] platform 41400000.r5f: assigned reserved memory node r5f-dma-memory@a1000000
    [    5.174660] inv_mpu: inv_mpu_initialize: initialize result is 0....
    [    5.185628] inv_mpu: wakeup_source is created successfully
    [    5.185636] inv-mpu-iio-i2c 0-0068: icm42600 ma-kernel-10.3.1 is ready to go!
    [    5.185640] inv_mpu: Data read from FIFO
    [    5.211901] EXT4-fs (mmcblk0p10): recovery complete
    [    5.211914] EXT4-fs (mmcblk0p10): mounted filesystem 1a8c541b-1a31-487c-9064-6c44e5a81936 r/w with ordered data mode. Quota mode: disabled.
    [    5.242576] remoteproc remoteproc1: 41400000.r5f is available
    [    5.244044] remoteproc remoteproc1: powering up 41400000.r5f
    [    5.244140] remoteproc remoteproc1: Booting fw image j7200-mcu-r5f0_1-fw, size 73624
    [    5.244318] platform 41400000.r5f: module-reset deassert failed, ret = -19
    [    5.244324] platform 41400000.r5f: unable to enable cores for TCM loading, ret = -19
    [    5.244328] remoteproc remoteproc1: can't prepare rproc 41400000.r5f: -19
    [    5.359685] EXT4-fs (mmcblk0p12): recovery complete
    [    5.359700] EXT4-fs (mmcblk0p12): mounted filesystem 2b659433-ecaa-4420-8e2f-a75f68802807 r/w with ordered data mode. Quota mode: disabled.
    [    5.407324] EXT4-fs (mmcblk0p13): recovery complete
    [    5.410900] EXT4-fs (mmcblk0p13): mounted filesystem b682d58a-9e6f-45b2-8481-fb238e066efa r/w with ordered data mode. Quota mode: disabled.
    [    5.787975] usbcore: registered new interface driver usbfs
    [    5.804951] usbcore: registered new interface driver hub
    [    5.817723] usbcore: registered new device driver usb
    [    6.001989] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [    6.007721] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
    [    6.015074] xhci-hcd xhci-hcd.2.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000008010
    [    6.020036] xhci-hcd xhci-hcd.2.auto: irq 549, io mem 0x06010000
    [    6.044982] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [    6.065256] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
    [    6.071461] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
    [    6.082278] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
    [    6.087006] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    6.094519] usb usb1: Product: xHCI Host Controller
    [    6.096965] usb usb1: Manufacturer: Linux 6.6.32 xhci-hcd
    [    6.100120] usb usb1: SerialNumber: xhci-hcd.2.auto
    [    6.103755] hub 1-0:1.0: USB hub found
    [    6.106966] hub 1-0:1.0: 1 port detected
    [    6.109298] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    6.115999] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06
    [    6.120760] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    6.124503] usb usb2: Product: xHCI Host Controller
    [    6.127772] usb usb2: Manufacturer: Linux 6.6.32 xhci-hcd
    [    6.130705] usb usb2: SerialNumber: xhci-hcd.2.auto
    [    6.133557] hub 2-0:1.0: USB hub found
    [    6.135543] hub 2-0:1.0: 1 port detected
    [    7.030040] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
    [    7.051659] usb 2-1: LPM exit latency is zeroed, disabling LPM.
    [    7.058554] usb 2-1: New USB device found, idVendor=2c7c, idProduct=0801, bcdDevice= 5.04
    [    7.070143] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    7.074359] usb 2-1: Product: RM520N-GL
    [    7.076282] usb 2-1: Manufacturer: Quectel
    [    7.078961] usb 2-1: SerialNumber: b33e6c18
    [    7.090599] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [    7.126884] usbcore: registered new interface driver cdc_wdm
    [    7.130720] usbcore: registered new interface driver option
    [    7.137708] usbserial: USB Serial support registered for GSM modem (1-port)
    [    7.142289] qmi_wwan 2-1:1.4: cdc-wdm0: USB WDM device
    [    7.146917] qmi_wwan 2-1:1.4 wwan0: register 'qmi_wwan' at usb-xhci-hcd.2.auto-1, WWAN/QMI device, 0e:12:47:c3:54:30
    [    7.154653] option 2-1:1.0: GSM modem (1-port) converter detected
    [    7.157783] usbcore: registered new interface driver qmi_wwan
    [    7.163221] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
    [    7.168657] option 2-1:1.1: GSM modem (1-port) converter detected
    [    7.173314] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
    [    7.178193] usbcore: registered new interface driver qmi_wwan_q
    [    7.183427] option 2-1:1.2: GSM modem (1-port) converter detected
    [    7.187888] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
    [    7.192620] option 2-1:1.3: GSM modem (1-port) converter detected
    [    7.196998] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
    [    7.249525] k3_r5_rproc bus@100000:bus@28380000:r5fss@41000000: Timed out waiting for 41400000.r5f core to power up!
    [    7.259995] platform 5c00000.r5f: configured R5F for remoteproc mode
    [    7.264044] platform 5c00000.r5f: assigned reserved memory node r5f-dma-memory@a2000000
    [    7.269662] remoteproc remoteproc2: 5c00000.r5f is available
    [    7.273998] remoteproc remoteproc2: powering up 5c00000.r5f
    [    7.276879] remoteproc remoteproc2: Booting fw image j7200-main-r5f0_0-fw, size 73624
    [    7.283081] platform 5d00000.r5f: configured R5F for remoteproc mode
    [    7.286878] rproc-virtio rproc-virtio.3.auto: assigned reserved memory node r5f-dma-memory@a2000000
    [    7.291522] platform 5d00000.r5f: assigned reserved memory node r5f-dma-memory@a3000000
    [    7.296409] rproc-virtio rproc-virtio.3.auto: registered virtio1 (type 7)
    [    7.300021] remoteproc remoteproc3: 5d00000.r5f is available
    [    7.303210] remoteproc remoteproc2: remote processor 5c00000.r5f is now up
    [    7.307879] remoteproc remoteproc3: powering up 5d00000.r5f
    [    7.311059] remoteproc remoteproc3: Booting fw image j7200-main-r5f0_1-fw, size 73624
    [    7.317389] rproc-virtio rproc-virtio.4.auto: assigned reserved memory node r5f-dma-memory@a3000000
    [    7.328495] rproc-virtio rproc-virtio.4.auto: registered virtio2 (type 7)
    [    7.334145] remoteproc remoteproc3: remote processor 5d00000.r5f is now up
    [    7.360746] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    7.365356] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    7.369075] virtio_rpmsg_bus virtio2: rpmsg host is online
    [    7.372681] virtio_rpmsg_bus virtio2: creating channel ti.ipc4.ping-pong addr 0xd
    [    7.376603] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xe
    [    7.380283] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
    [    7.384341] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe
    [    7.394406] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xd
    [    7.398305] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xe
    [   10.240378] export_store: invalid GPIO 472
    [   10.245850] unexport_store: invalid GPIO 472
    [   10.259510] export_store: invalid GPIO 397
    [   10.266538] unexport_store: invalid GPIO 397
    [   10.281640] export_store: invalid GPIO 377
    [   10.290431] unexport_store: invalid GPIO 377
    [   13.502804] can: controller area network core
    [   13.505040] NET: Registered PF_CAN protocol family
    [   13.528363] can: SAE J1939
    [   33.544829] m_can_platform 2741000.can can2: j1939_tp_rxtimer: 0x00000000b29d3512: Timeout. Failed to send simple message.
    [   70.316666] export_store: invalid GPIO 472
    [   70.318794] unexport_store: invalid GPIO 472
    [   70.322696] export_store: invalid GPIO 397
    [   70.324805] unexport_store: invalid GPIO 397
    [   70.327783] export_store: invalid GPIO 377
    [   70.329931] unexport_store: invalid GPIO 377
    root@tgu:~# 

    Which part do I need to modify to make traffic TXRX possible?

    Best Regards,
    Dohyeon.kim

  • HI,

    >>     serdes0_usb_link: phy@2 {
            reg = <3>;

    Above use phy@3 as SerDes lane 3 is used.

    >> phy-names = "portmode", "serdes-phy";

    Change the above to "phy-names = "portmode", "serdes";
    As per TI SDK 9.1 It check the serdes name for serdes configuration.

    Also, make sure SerDes configuration disabled from u-boot.
    By default SerDes0 configured from u-boot for PCIe + QSGMII.

    Also, note that SDK 9.1 doesn't support C45 mode for MDIO.
    Due to MDIO Errata i2329, MDIO is operating in Manual mode using bit-bang, It support only C22, C45 is not supported.

    Best Regards,
    Sudheer

  • HI,

    I applied your modification, but the packet is not TX/RX.

    Is there a way to confirm that PHY and MAC are connected by SGMII type?

     

    Best Regards,

    Dohyeon.kim

  • Hi,

    Can you please u-boot and Linux terminal Logs?

    Also, can you please CPSW SGMII Port register.

    Status Registers: 0x0C000114 + 0x100 * (x) //x is Port number : 0,1,2,3.
    Control Registers: 0x0C000110h + 0x100 * (x) 
    MR ADV Register: 0x0C000118h + 0x100 * (x) 

    Also, SerDes Lane Control registers:
    Lane0: 0x00104080
    Lane1: 0x00104084
    Lane2: 0x00104088
    Lane3: 0x0010408C

    Also, ENET Port control registers:
    Port-1: 0x00104044
    Port-2: 0x00104048
    Port-3: 0x0010404C
    Port-4: 0x00104050

    Also, SerDes PLL lock status:
    0x0506E000

    Best Regards,
    Sudheer

  • HI,

    I'm sorry for the late response.

    The results of the relevant register inquiry are as follows.

    Status Registers

    root@tgu:~# devmem2 0x0C000114 w
    /dev/mem opened.
    Memory mapped at address 0xffff83aae000.
    Read at address 0x0C000114 (0xffff83aae114): 0x00000031
    root@tgu:~# devmem2 0x0C000214 w
    /dev/mem opened.
    Memory mapped at address 0xffffb3575000.
    Read at address 0x0C000214 (0xffffb3575214): 0x00000022
    root@tgu:~# devmem2 0x0C000314 w
    /dev/mem opened.
    Memory mapped at address 0xffffb9732000.
    Read at address 0x0C000314 (0xffffb9732314): 0x0000002A
    root@tgu:~# devmem2 0x0C000414 w
    /dev/mem opened.
    Memory mapped at address 0xffffa33e1000.
    Read at address 0x0C000414 (0xffffa33e1414): 0x00000031

    Control Registers

    root@tgu:~# devmem2 0x0C000110 w
    /dev/mem opened.
    Memory mapped at address 0xffffbe0be000.
    Read at address 0x0C000110 (0xffffbe0be110): 0x00000000
    root@tgu:~# devmem2 0x0C000210 w
    /dev/mem opened.
    Memory mapped at address 0xffffb1f23000.
    Read at address 0x0C000210 (0xffffb1f23210): 0x00000000
    root@tgu:~# devmem2 0x0C000310 w
    /dev/mem opened.
    Memory mapped at address 0xffff91fca000.
    Read at address 0x0C000310 (0xffff91fca310): 0x00000000
    root@tgu:~# devmem2 0x0C000410 w
    /dev/mem opened.
    Memory mapped at address 0xffff88522000.
    Read at address 0x0C000410 (0xffff88522410): 0x00000000

    MR ADV Registers

    root@tgu:~# devmem2 0x0C000118 w
    /dev/mem opened.
    Memory mapped at address 0xffff94181000.
    Read at address 0x0C000118 (0xffff94181118): 0x00000000
    root@tgu:~# devmem2 0x0C000218 w
    /dev/mem opened.
    Memory mapped at address 0xffffbd3f5000.
    Read at address 0x0C000218 (0xffffbd3f5218): 0x00000000
    root@tgu:~# devmem2 0x0C000318 w
    /dev/mem opened.
    Memory mapped at address 0xffff8c42d000.
    Read at address 0x0C000318 (0xffff8c42d318): 0x00000000
    root@tgu:~# devmem2 0x0C000418 w
    /dev/mem opened.
    Memory mapped at address 0xffff8af46000.
    Read at address 0x0C000418 (0xffff8af46418): 0x00000000

    SerDes Lane Control registers

    root@tgu:~# devmem2 0x00104080 w
    /dev/mem opened.
    Memory mapped at address 0xffff98c1f000.
    Read at address 0x00104080 (0xffff98c1f080): 0x00000002
    root@tgu:~# devmem2 0x00104084 w
    /dev/mem opened.
    Memory mapped at address 0xffff8dae3000.
    Read at address 0x00104084 (0xffff8dae3084): 0x00000000
    root@tgu:~# devmem2 0x00104088 w
    /dev/mem opened.
    Memory mapped at address 0xffff9e8b5000.
    Read at address 0x00104088 (0xffff9e8b5088): 0x00000000
    root@tgu:~# devmem2 0x0010408c w
    /dev/mem opened.
    Memory mapped at address 0xffff85610000.
    Read at address 0x0010408C (0xffff8561008c): 0x00000002

    ENET Port control registers

    root@tgu:~# devmem2 0x00104044 w
    /dev/mem opened.
    Memory mapped at address 0xffffb23de000.
    Read at address 0x00104044 (0xffffb23de044): 0x00000003
    root@tgu:~# devmem2 0x00104048 w
    /dev/mem opened.
    Memory mapped at address 0xffff8c1ee000.
    Read at address 0x00104048 (0xffff8c1ee048): 0x00000002
    root@tgu:~# devmem2 0x0010404c w
    /dev/mem opened.
    Memory mapped at address 0xffff7fff2000.
    Read at address 0x0010404C (0xffff7fff204c): 0x00000002
    root@tgu:~# devmem2 0x00104050 w
    /dev/mem opened.
    Memory mapped at address 0xffffb9aa1000.
    Read at address 0x00104050 (0xffffb9aa1050): 0x00000003

    SerDes PLL lock status

    root@tgu:~# devmem2 0x0506E000 w
    /dev/mem opened.
    Memory mapped at address 0xffff8591f000.
    Read at address 0x0506E000 (0xffff8591f000): 0x00C30011

    Best Regards,

    Dohyeon.kim

  • Hi,

    From register dump it seems like SerDes PLL is locked.
    CPSW Ports-1, 4 are configured in SGMII mode.
    SerDes Lane controls are also as per connection i.e. Lane-1, Lane-2 in SGMII and Lane-3 in USB.

    From CPSW SGMII status registers, it seems like Auto-negotiation is not completed.
    Also, from CPSW SGMII control registers Auto-negotiation is not enabled.

    Can you please check whether am65-cpsw-nuss driver is configured for SGMII by adding prints in Driver.
    Also, I could not observe any logs from Port-1, port-4 with PHYs 5,6  Link Up from your log.

    Change the above to "phy-names = "portmode", "serdes";
    As per TI SDK 9.1 It check the serdes name for serdes configuration.

    Can you please share the Linux log after above change.

    Best Regards,
    Sudheer

  • Hi,

    The kernel log is as follows.
    [    0.026000] U-Boot SPL 2023.04 (Nov 28 2024 - 13:11:51 +0900)
    Trying to boot from MMC1
    [    0.291000] Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.9(release):803903ea3-dirty
    NOTICE:  BL31: Built : 07:33:39, Dec 21 2023
    I/TC:
    I/TC: OP-TEE version: 4.0.0 (gcc version 11.4.0 (GCC)) #1 Fri Oct 20 18:29:31 UTC 2023 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.2--v09.01.02 (Kool Koala)')
    I/TC: HUK Initialized
    I/TC: Activated SA2UL device
    I/TC: Fixing SA2UL firewall owner for GP device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    I/TC: Primary CPU switching to normal world boot
    Trying to boot from MMC1
    
    
    [503785.870000] U-Boot 2023.04 (Nov 28 2024 - 13:11:42 +0900)
    
    [503785.873000] SoC:   J7200 SR2.0 GP
    [503785.875000] DRAM:  4 GiB
    [503785.908000] tgu: wifipower enable
    [503785.911000] MCU reset
    [503785.913000] MCU SYS set HIGH
    [503785.914000] MCU SYS ENALE set LOW
    [503785.916000] PHY reset
    [503786.918000] CELL reset
    [503787.420000] SPI reset
    Core:  89 devices, 31 uclasses, devicetree: separate
    Flash: 0 Bytes
    [503787.925000] MMC:   mmc@4f80000: 0, mmc@4fb0000: 1
    [env_relocate] env load
    Loading Environment from MMC... OK
    env import success
    WATCHDOG disable
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    [503788.077000] Net:   [503788.081000] eth0: ethernet@46000000port@1
    [503788.084000] Hit any key to stop autoboot:  0
    [503788.173000] switch to partitions #0, OK
    [503788.175000] mmc0(part 0) is current device
    SD/MMC found on device 0
    k3_r5f_rproc r5f@41000000: Core 1 is already in use. No rproc commands work
    Failed to load '/lib/firmware/j7200-main-r5f0_0-fw'
    Failed to load '/lib/firmware/j7200-main-r5f0_1-fw'
    [503788.396000] 19638784 bytes read in 111 ms (168.7 MiB/s)
    [503788.406000] 56929 bytes read in 6 ms (9 MiB/s)
    Working FDT set to 88000000
    [503788.410000] ## Flattened Device Tree blob at 88000000
    [503788.413000]    Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
    [503788.425000]    Loading Device Tree to 000000008feef000, end 000000008fffffff ... OK
    Working FDT set to 8feef000
    
    [503788.433000] Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 6.6.32 (dhkim@autodev70-ubuntu22-04) (aarch64-oe-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #4 SMP PREEMPT Tue Oct 22 13:13:13 KST 2024
    [    0.000000] KASLR disabled due to lack of seed
    [    0.000000] Machine model: Texas Instruments K3 J7200 SoC
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] OF: reserved mem: 0x000000009e800000..0x000000009fffffff (24576 KiB) nomap non-reusable optee@9e800000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a0000000..0x00000000a00fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a0000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a0100000..0x00000000a0ffffff (15360 KiB) nomap non-reusable r5f-memory@a0100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a1000000..0x00000000a10fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a1000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a1100000..0x00000000a1ffffff (15360 KiB) nomap non-reusable r5f-memory@a1100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a2000000..0x00000000a20fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a2000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a2100000..0x00000000a2ffffff (15360 KiB) nomap non-reusable r5f-memory@a2100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a3000000..0x00000000a30fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a3000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a3100000..0x00000000a3ffffff (15360 KiB) nomap non-reusable r5f-memory@a3100000
    [    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a47fffff (8192 KiB) nomap non-reusable ipc-memories@a4000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 2 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-virtual-eth-queues@a5000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a5000000..0x00000000a51fffff (2048 KiB) nomap non-reusable r5f-virtual-eth-queues@a5000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5200000, size 30 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-virtual-eth-buffers@a5200000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a5200000..0x00000000a6ffffff (30720 KiB) nomap non-reusable r5f-virtual-eth-buffers@a5200000
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
    [    0.000000]   node   0: [mem 0x000000009e800000-0x00000000a47fffff]
    [    0.000000]   node   0: [mem 0x00000000a4800000-0x00000000a4ffffff]
    [    0.000000]   node   0: [mem 0x00000000a5000000-0x00000000a6ffffff]
    [    0.000000]   node   0: [mem 0x00000000a7000000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] cma: Reserved 32 MiB at 0x00000000fe000000 on node -1
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.4
    [    0.000000] percpu: Embedded 20 pages/cpu s43176 r8192 d30552 u81920
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: Spectre-v3a
    [    0.000000] CPU features: detected: Spectre-BHB
    [    0.000000] CPU features: detected: ARM erratum 1742098
    [    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Kernel command line: console=ttyS2,230400n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=28ae4bbe-9112-da46-b07b-5e10e8893239 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: area num 2.
    [    0.000000] software IO TLB: mapped [mem 0x00000000fa000000-0x00000000fe000000] (64MB)
    [    0.000000] Memory: 3864392K/4194304K available (11520K kernel code, 1322K rwdata, 3792K rodata, 2432K init, 420K bss, 297144K reserved, 32768K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU event tracing is enabled.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
    [    0.000000]  Trampoline variant of Tasks RCU enabled.
    [    0.000000]  Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 960 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000880040000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880050000
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.004287] Console: colour dummy device 80x25
    [    0.006604] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.011998] pid_max: default: 32768 minimum: 301
    [    0.014456] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.018294] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.022810] cacheinfo: Unable to detect cache hierarchy for CPU 0
    [    0.026390] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.030073] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.034095] rcu: Hierarchical SRCU implementation.
    [    0.036566] rcu:     Max phase no-delay instances is 1000.
    [    0.039583] Platform MSI: msi-controller@1820000 domain created
    [    0.042723] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.047513] EFI services will not be available.
    [    0.049968] smp: Bringing up secondary CPUs ...
    I/TC: Secondary CPU 1 initializing
    I/TC: Secondary CPU 1 switching to normal world boot
    [    0.056893] Detected PIPT I-cache on CPU1
    [    0.056923] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.056938] GICv3: CPU1: using allocated LPI pending table @0x0000000880060000
    [    0.056971] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.057032] smp: Brought up 1 node, 2 CPUs
    [    0.071857] SMP: Total of 2 processors activated.
    [    0.074287] CPU features: detected: 32-bit EL0 Support
    [    0.076936] CPU features: detected: CRC32 instructions
    [    0.079630] CPU: All CPU(s) started at EL2
    [    0.081742] alternatives: applying system-wide alternatives
    [    0.085513] devtmpfs: initialized
    [    0.091045] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.096097] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [    0.100162] pinctrl core: initialized pinctrl subsystem
    [    0.103249] DMI not present or invalid.
    [    0.105678] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.109147] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.112909] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.117033] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.121348] thermal_sys: Registered thermal governor 'step_wise'
    [    0.121352] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.124467] cpuidle: using governor menu
    [    0.129909] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.133441] ASID allocator initialised with 65536 entries
    [    0.138894] platform 4301c000.pinctrl: Fixed dependency cycle(s) with /bus@100000/bus@28380000/pinctrl@4301c000/wkup_gpio_pins_default
    [    0.147519] platform 11c000.pinctrl: Fixed dependency cycle(s) with /bus@100000/pinctrl@11c000/gpio_pins_default
    [    0.154709] Modules: 27856 pages in range for non-PLT usage
    [    0.154714] Modules: 519376 pages in range for PLT usage
    [    0.158020] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.164285] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.167518] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.171026] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.174259] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.177762] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.180995] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.184498] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.188470] k3-chipinfo 43000014.chipid: Family:J7200 rev:SR2.0 JTAGID[0x1bb6d02f] Detected
    [    0.193085] iommu: Default domain type: Translated
    [    0.195557] iommu: DMA domain TLB invalidation policy: strict mode
    [    0.198913] SCSI subsystem initialized
    [    0.201195] pps_core: LinuxPPS API ver. 1 registered
    [    0.203768] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.208502] PTP clock support registered
    [    0.210540] EDAC MC: Ver: 3.0.0
    [    0.212390] scmi_core: SCMI protocol bus registered
    [    0.215061] FPGA manager framework
    [    0.217309] clocksource: Switched to clocksource arch_sys_counter
    [    0.223819] NET: Registered PF_INET protocol family
    [    0.226668] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.232054] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    0.236494] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.240499] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.244731] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
    [    0.249762] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.253291] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.256826] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.260652] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.263912] RPC: Registered named UNIX socket transport module.
    [    0.266982] RPC: Registered udp transport module.
    [    0.269411] RPC: Registered tcp transport module.
    [    0.271835] RPC: Registered tcp-with-tls transport module.
    [    0.274666] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.277996] NET: Registered PF_XDP protocol family
    [    0.280478] PCI: CLS 0 bytes, default 64
    [    0.283198] Initialise system trusted keyrings
    [    0.285634] workingset: timestamp_bits=46 max_order=20 bucket_order=0
    [    0.289106] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.292259] NFS: Registering the id_resolver key type
    [    0.294896] Key type id_resolver registered
    [    0.297054] Key type id_legacy registered
    [    0.299138] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.302600] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.319781] Key type asymmetric registered
    [    0.321900] Asymmetric key parser 'x509' registered
    [    0.324445] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.328352] io scheduler mq-deadline registered
    [    0.330698] io scheduler kyber registered
    [    0.334432] pinctrl-single 4301c000.pinctrl: 120 pins, size 480
    [    0.337864] pinctrl-single 11c000.pinctrl: 173 pins, size 692
    [    0.344015] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.352309] loop: module loaded
    [    0.354169] megasas: 07.725.01.00-rc1
    [    0.357915] tun: Universal TUN/TAP device driver, 1.6
    [    0.360781] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    0.364055] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.367140] sky2: driver version 1.30
    [    0.369525] VFIO - User Level meta-driver version: 0.3
    [    0.372438] i2c_dev: i2c /dev entries driver
    [    0.375209] sdhci: Secure Digital Host Controller Interface driver
    [    0.378409] sdhci: Copyright(c) Pierre Ossman
    [    0.380831] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.384167] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.387412] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.391588] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.396035] optee: probing for conduit method.
    I/TC: Reserved shared memory is enabled
    I/TC: Dynamic shared memory is enabled
    I/TC: Normal World virtualization support is disabled
    I/TC: Asynchronous notifications are disabled
    [    0.398354] optee: revision 4.0 (2a5b1d12)
    [    0.406740] optee: dynamic shared memory is enabled
    [    0.411604] optee: initialized driver
    [    0.414201] Initializing XFRM netlink socket
    [    0.416423] NET: Registered PF_PACKET protocol family
    [    0.419097] Key type dns_resolver registered
    [    0.424341] registered taskstats version 1
    [    0.426536] Loading compiled-in X.509 certificates
    [    0.435204] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0009 '9.1.2--v09.01.02 (Kool Koala)')
    [    0.462190] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
    [    0.465592] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
    [    0.468822] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
    [    0.472207] pca953x 3-0021: supply vcc not found, using dummy regulator
    [    0.475702] pca953x 3-0021: using no AI
    [    0.501367] pca953x 3-0021: failed writing register
    [    0.503963] pca953x: probe of 3-0021 failed with error -121
    [    0.506946] pca953x 3-0022: supply vcc not found, using dummy regulator
    [    0.510416] pca953x 3-0022: using AI
    [    0.512323] pca953x 3-0022: failed writing register
    [    0.514902] pca953x: probe of 3-0022 failed with error -121
    [    0.517811] omap_i2c 2000000.i2c: bus 3 rev0.12 at 300 kHz
    [    0.521077] omap_i2c 2010000.i2c: bus 4 rev0.12 at 100 kHz
    [    0.524347] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz
    [    0.527543] omap_i2c 2030000.i2c: bus 6 rev0.12 at 100 kHz
    [    0.530745] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
    [    0.533947] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz
    [    0.537128] omap_i2c 2060000.i2c: bus 9 rev0.12 at 100 kHz
    [    0.540088] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
    [    0.545167] ti-sci-intr bus@100000:interrupt-controller@a00000: Interrupt Router 131 domain created
    [    0.549929] ti-sci-intr 310e0000.interrupt-controller: Interrupt Router 213 domain created
    [    0.554350] ti-sci-inta 33d00000.msi-controller: Interrupt Aggregator domain 209 created
    [    0.561150] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,32] sci-dev-id:235
    [    0.566164] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    0.569589] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66349100, num_proxies:64
    [    0.576279] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[120,200] sci-dev-id:211
    [    0.581445] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    0.584862] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66349100, num_proxies:64
    [    0.589296] 42300000.serial: ttyS0 at MMIO 0x42300000 (irq = 258, base_baud = 3000000) is a 8250
    [    0.594479] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 259, base_baud = 6000000) is a 8250
    [    0.599695] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 260, base_baud = 3000000) is a 8250
    [    0.604206] printk: console [ttyS2] enabled
    [    0.604206] printk: console [ttyS2] enabled
    [    0.608459] printk: bootconsole [ns16550a0] disabled
    [    0.608459] printk: bootconsole [ns16550a0] disabled
    [    0.617943] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 261, base_baud = 3000000) is a 8250
    [    0.622810] 2820000.serial: ttyS4 at MMIO 0x2820000 (irq = 262, base_baud = 3000000) is a 8250
    [    0.627695] 2830000.serial: ttyS5 at MMIO 0x2830000 (irq = 263, base_baud = 3000000) is a 8250
    [    0.632575] 2850000.serial: ttyS7 at MMIO 0x2850000 (irq = 264, base_baud = 3000000) is a 8250
    [    0.637483] 2860000.serial: ttyS8 at MMIO 0x2860000 (irq = 265, base_baud = 3000000) is a 8250
    [    0.642375] 2890000.serial: ttyS9 at MMIO 0x2890000 (irq = 266, base_baud = 3000000) is a 8250
    [    0.647204] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    0.817314] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 20000
    [    0.821718] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver unknown
    [    0.825752] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    0.832231] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    0.835843] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    0.839105] pps pps0: new PPS source ptp0
    [    0.841255] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
    [    0.847013] davinci_mdio c000f00.mdio: Configuring MDIO in manual mode
    [    0.889316] davinci_mdio c000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    0.901186] davinci_mdio c000f00.mdio: phy[5]: device c000f00.mdio:05, driver mv88q2221
    [    0.905205] davinci_mdio c000f00.mdio: phy[6]: device c000f00.mdio:06, driver mv88q2221
    [    0.909231] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 5 quirks:00000000
    [    0.915694] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    0.920130] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
    [    0.925812] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc8900
    [    0.929164] mmc0: CQHCI version 5.10
    [    0.929582] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc8900
    [    0.939727] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [    0.945711] ti-udma 31150000.dma-controller: Channels: 50 (tchan: 25, rchan: 25, gp-rflow: 8)
    [    0.951508] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    0.966941] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
    [    0.971138] Wi-Fi enable : invalid of gpio -2
    [    1.048111] mmc0: Command Queue Engine enabled
    [    1.050349] mmc0: new HS400 MMC card at address 0001
    [    1.053226] mmcblk0: mmc0:0001 8GUF4R 7.28 GiB
    [    1.061963]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13
    [    1.066024] mmcblk0boot0: mmc0:0001 8GUF4R 31.9 MiB
    [    1.069122] mmcblk0boot1: mmc0:0001 8GUF4R 31.9 MiB
    [    1.072470] mmcblk0rpmb: mmc0:0001 8GUF4R 4.00 MiB, chardev (240:0)
    [    1.121366] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 20000
    [    1.132825] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver unknown
    [    1.136884] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    1.143391] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    1.147539] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    1.151215] pps pps0: new PPS source ptp1
    [    1.157507] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
    [    1.179235] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    1.186813] davinci_mdio c000f00.mdio: Configuring MDIO in manual mode
    [    1.229358] davinci_mdio c000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.249621] davinci_mdio c000f00.mdio: phy[5]: device c000f00.mdio:05, driver mv88q2221
    [    1.253656] davinci_mdio c000f00.mdio: phy[6]: device c000f00.mdio:06, driver mv88q2221
    [    1.257721] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 5 quirks:00000000
    [    1.264216] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    1.267494] am65-cpsw-nuss c000000.ethernet: Use random MAC address
    [    1.270641] am65-cpsw-nuss c000000.ethernet: initialized cpsw ale version 1.4
    [    1.274209] am65-cpsw-nuss c000000.ethernet: ALE Table size 512
    [    1.286206] am65-cpsw-nuss c000000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
    [    1.301832] am65-cpsw-nuss c000000.ethernet: set new flow-id-base 60
    [    1.313109] mmc1: CQHCI version 5.10
    [    1.314012] input: gpio_keys as /devices/platform/gpio_keys/input/input0
    [    1.318770] clk: Disabling unused clocks
    [    1.356357] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    1.360204] Wi-Fi enable with gpio
    [    1.365909] EXT4-fs (mmcblk0p6): mounted filesystem c2a0d38c-486e-4d05-879b-5016e000b9db r/w with ordered data mode. Quota mode: disabled.
    [    1.372252] VFS: Mounted root (ext4 filesystem) on device 179:6.
    [    1.384122] devtmpfs: mounted
    [    1.387264] Freeing unused kernel memory: 2432K
    [    1.389640] Run /sbin/preinit as init process
    [    1.435716] mmc1: new ultra high speed SDR104 SDIO card at address 0001
    PREINIT: Start
    [    1.481330] EXT4-fs (mmcblk0p6): re-mounted c2a0d38c-486e-4d05-879b-5016e000b9db r/w. Quota mode: disabled.
    [    1.528983] EXT4-fs (mmcblk0p2): mounted filesystem 26ae07bd-f993-4f79-b777-f0c1533b3fea r/w with ordered data mode. Quota mode: disabled.
    PREINIT: done; starting </sbin/init>
    [    1.615580] systemd[1]: System time before build time, advancing clock.
    [    1.646398] NET: Registered PF_INET6 protocol family
    [    1.657207] Segment Routing with IPv6
    [    1.659115] In-situ OAM (IOAM) with IPv6
    [    1.677784] systemd[1]: systemd 250.5+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
    [    1.693736] systemd[1]: Detected architecture arm64.
    
    Welcome to tgu 00.09!
    
    [    1.753949] systemd[1]: Hostname set to <tgu>.
    [    1.851019] block mmcblk0: the capability attribute has been deprecated.
    [    2.216345] systemd[1]: vehicle-manager.service: Failed to open /etc/systemd/system/vehicle-manager.service: No such file or directory
    [    2.223074] systemd[1]: uds-manager.service: Failed to open /etc/systemd/system/uds-manager.service: No such file or directory
    [    2.240530] systemd[1]: redis.service: Failed to open /etc/systemd/system/redis.service: No such file or directory
    [    2.246901] systemd[1]: ntpd.service: Failed to open /etc/systemd/system/ntpd.service: No such file or directory
    [    2.252930] systemd[1]: Configuration file /etc/systemd/system/mount-partition.service is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    2.266326] systemd[1]: j1939manager-db.service: Failed to open /etc/systemd/system/j1939manager-db.service: No such file or directory
    [    2.272431] systemd[1]: j1939-c-manager.service: Failed to open /etc/systemd/system/j1939-c-manager.service: No such file or directory
    [    2.278507] systemd[1]: isotp-manager.service: Failed to open /etc/systemd/system/isotp-manager.service: No such file or directory
    [    2.291074] systemd[1]: file-downloader.service: Failed to open /etc/systemd/system/file-downloader.service: No such file or directory
    [    2.297179] systemd[1]: fault-manager.service: Failed to open /etc/systemd/system/fault-manager.service: No such file or directory
    [    2.303785] systemd[1]: data-collector.service: Failed to open /etc/systemd/system/data-collector.service: No such file or directory
    [    2.310395] systemd[1]: /etc/systemd/system/bootcount_reset.service:8: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
    [    2.335941] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
    [    2.366267] systemd[1]: Queued start job for default target Multi-User System.
    [    2.404535] systemd[1]: Created slice Slice /system/getty.
    [  OK  ] Created slice Slice /system/getty.
    [    2.424575] systemd[1]: Created slice Slice /system/modprobe.
    [  OK  ] Created slice Slice /system/modprobe.
    [    2.435835] systemd[1]: Created slice Slice /system/serial-getty.
    [  OK  ] Created slice Slice /system/serial-getty.
    [    2.461643] systemd[1]: Created slice Slice /system/syslog-ng.
    [  OK  ] Created slice Slice /system/syslog-ng.
    [    2.473443] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    2.489518] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password …ts to Console Directory Watch.
    [    2.505513] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R…uests to Wall Directory Watch.
    [    2.521550] systemd[1]: Reached target Path Units.
    [  OK  ] Reached target Path Units.
    [    2.537440] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    2.553486] systemd[1]: Reached target Slice Units.
    [  OK  ] Reached target Slice Units.
    [    2.569492] systemd[1]: Reached target Swaps.
    [  OK  ] Reached target Swaps.
    [    2.622139] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    2.637611] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    2.659368] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    2.673772] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    2.692254] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
    [    2.698158] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    2.714166] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    2.730114] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    2.745838] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    2.761890] systemd[1]: Listening on User Database Manager Socket.
    [  OK  ] Listening on User Database Manager Socket.
    [    2.801718] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    2.821604] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    2.840023] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    2.857913] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
    [    2.885789] systemd[1]: Mounting Temporary Directory /tmp...
             Mounting Temporary Directory /tmp...
    [    2.906698] systemd[1]: Starting Create List of Static Device Nodes...
             Starting Create List of Static Device Nodes...
    [    2.926123] systemd[1]: Starting Load Kernel Module configfs...
             Starting Load Kernel Module configfs...
    [    2.944223] systemd[1]: Starting Load Kernel Module drm...
             Starting Load Kernel Module drm...
    [    2.965768] systemd[1]: Starting Load Kernel Module fuse...
             Starting Load Kernel Module fuse...
    [    3.003407] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    3.017868] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
    [    3.029927] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    3.092376] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    3.125978] systemd[1]: Starting Generate network units from Kernel command line...
             Starting Generate network …ts from Kernel command line...
    [    3.153969] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    3.176361] systemd[1]: Starting Coldplug All udev Devices...
             Starting Coldplug All udev Devices...
    [    3.182830] EXT4-fs (mmcblk0p6): re-mounted c2a0d38c-486e-4d05-879b-5016e000b9db r/w. Quota mode: disabled.
    [    3.192829] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    3.205911] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Mounted Huge Pages File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted Temporary Directory /tmp.
    [  OK  ] Finished Create List of Static Device Nodes.
    [  OK  ] Finished Load Kernel Module configfs.
    [  OK  ] Finished Load Kernel Module drm.
    [  OK  ] Finished Load Kernel Module fuse.
    [  OK  ] Finished Load Kernel Modules.
    [  OK  ] Finished Generate network units from Kernel command line.
    [  OK  ] Finished Remount Root and Kernel File Systems.
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
    [    3.444166] systemd-journald[141]: Received client request to flush runtime journal.
             Starting Apply Kernel Variables...
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Finished Flush Journal to Persistent Storage.
    [  OK  ] Finished Apply Kernel Variables.
    [  OK  ] Finished Create Static Device Nodes in /dev.
    [  OK  ] Reached target Preparation for Local File Systems.
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting Rule-based Manage…for Device Events and Files...
    [  OK  ] Finished Coldplug All udev Devices.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Rule-based Manager for Device Events and Files.
    [  OK  ] Finished Create Volatile Files and Directories.
             Starting Network Name Resolution...
             Starting Network Time Synchronization...
             Starting Record System Boot/Shutdown in UTMP...
    [  OK  ] Finished Record System Boot/Shutdown in UTMP.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Host and Network Name Lookups.
    [    4.057404] random: crng init done
    [  OK  ] Finished Load/Save Random Seed.
    [    4.089895] CAN device driver interface
    [    4.097858] systemd-journald[141]: Oldest entry in /run/log/journal/acc5e771bf004dc6bd1168332aa4e395/system.journal is older than the configured file retention duration (1month), suggesting rotation.
    [  OK  ] Started Network Time Synchronization.
    [    4.112774] systemd-journald[141]: /run/log/journal/acc5e771bf004dc6bd1168332aa4e395/system.journal: Journal header limits reached or header out-of-date, rotating.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Reached target Timer Units.
    [    4.162472] m_can_platform 2701000.can: m_can device registered (irq=534, version=32)
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [    4.171309] m_can_platform 2741000.can: m_can device registered (irq=535, version=32)
    [    4.179628] m_can_platform 27a1000.can: m_can device registered (irq=536, version=32)
    [    4.206688] m_can_platform 27c1000.can: m_can device registered (irq=537, version=32)
    [    4.214899] ti-udma 285c0000.dma-controller: chan1: is running!
    [  OK  ] Listening on dropbear.socket.
    [    4.237080] m_can_platform 27d1000.can: m_can device registered (irq=541, version=32)
    [  OK  ] Reached target Socket Units.
    [    4.261397] rtc-pcf85063 0-0051: registered as rtc0
    [    4.265996] inv-mpu-iio-i2c 0-0068: supply inven,vdd_ana not found, using dummy regulator
             Starting D-Bus System Message Bus...
    [    4.279113] hbmc-am654: probe of 47034000.hyperbus failed with error -22
    [    4.294742] m_can_platform 2691000.can: m_can device registered (irq=543, version=32)
    [  OK  ] Found device /dev/ttyS2.
    [    4.299021] rtc-pcf85063 0-0051: setting system clock to 2024-12-04T00:17:51 UTC (1733271471)
    
    [    4.312341] inv-mpu-iio-i2c 0-0068: supply inven,vcc_i2c not found, using dummy regulator
    [    4.317276] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    4.323655] inv_mpu: inv_mpu_probe: power on here.
    [    4.334132] inv_mpu: inv_mpu_probe: power on.
    [    4.337752] platform 41000000.r5f: configured R5F for IPC-only mode
    [  OK  ] Started D-Bus System Message Bus.
    [    4.352812] platform 41000000.r5f: assigned reserved memory node r5f-dma-memory@a0000000
    [    4.359821] dbus-broker-lau[193]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
    [    4.385115] remoteproc remoteproc0: 41000000.r5f is available
    [  OK  ] Reached target Basic System.
    [    4.401829] remoteproc remoteproc0: attaching to 41000000.r5f
    [    4.406380] platform 41000000.r5f: R5F core initialized in IPC-only mode
             Starting Enable and configure CAN1 interface...
    [    4.423469] rproc-virtio rproc-virtio.1.auto: assigned reserved memory node r5f-dma-memory@a0000000
             Starting Enable and configure CAN2 interface...
    [    4.448545] inv_mpu: id name = icm42600
             Starting Enable and configure CAN3 interface...
    [    4.476186] inv_mpu: whoami= 6c
             Starting Enable and configure CAN4 interface...
    [    4.495540] rproc-virtio rproc-virtio.1.auto: registered virtio0 (type 7)
             Starting Enable and configure CAN5 interface...
             Starting Enable and configure CAN6 interface...
             Starting Print notice about GPLv3 packages...
             Starting IPv6 Packet Filtering Framework...
    [    4.558931] remoteproc remoteproc0: remote processor 41000000.r5f is now attached
    grep: /var/lib/opkg/info/*.control: No such file or directory
             Starting IPv4 Packet Filtering Framework...
    [    4.577171] platform 41400000.r5f: configured R5F for remoteproc mode
    [  OK  ] Started irqbalance daemon.
    [    4.599945] platform 41400000.r5f: assigned reserved memory node r5f-dma-memory@a1000000
             Starting Insmod kernel moudule...
             Starting Mount partition...
    [  OK  ] Started TGU SW interface services.
             Starting ETH0 MAC ADDRESS configure interface...
    [    4.654727] mhi_init Quectel_Linux_PCIE_MHI_Driver_V1.3.5.3
             Starting ETH1 MAC ADDRESS configure interface...
             Starting WIFI MAC ADDRESS configure interface...
    [    4.697408] inv_mpu: inv_mpu_initialize: initialize result is 0....
    [    4.703672] remoteproc remoteproc1: 41400000.r5f is available
    [  OK  ] Started AP status  Check Service.
    [    4.716004] EXT4-fs (mmcblk0p4): warning: mounting fs with errors, running e2fsck is recommended
    [    4.734485] remoteproc remoteproc1: powering up 41400000.r5f
    [    4.736428] EXT4-fs (mmcblk0p4): mounted filesystem 1e1be5aa-7d44-46ca-9b25-c26646b100e2 r/w with ordered data mode. Quota mode: disabled.
    [    4.743682] remoteproc remoteproc1: Booting fw image j7200-mcu-r5f0_1-fw, size 73624
    [    4.746036] inv_mpu: wakeup_source is created successfully
    [    4.750302] platform 41400000.r5f: module-reset deassert failed, ret = -19
    [    4.750307] platform 41400000.r5f: unable to enable cores for TCM loading, ret = -19
    [    4.750311] remoteproc remoteproc1: can't prepare rproc 41400000.r5f: -19
    [    4.758779] cfg80211: Loading compiled-in X.509 certificates for regulatory database
             Starting User Login Management...
    [  OK  ] Started TEE Supplicant.
    [    4.804324] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
             Starting telnetd.service...
    [    4.810115] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
             Starting WIFI MAC ADDRESS configure interface...
    [    4.834799] inv-mpu-iio-i2c 0-0068: icm42600 ma-kernel-10.3.1 is ready to go!
    [  OK  ] Started Enable and configure CAN1 interface.
    [  OK  ] Started Enable and configure CAN2 interface.
    [  OK  ] Started Enable and configure CAN3 interface.
    [    4.881236] mlan: unknown parameter 'drvdbg' ignored
    [    4.882252] EXT4-fs (mmcblk0p9): mounted filesystem f23d6ef9-6bb2-4a7f-bc5c-c0a84062fac0 r/w with ordered data mode. Quota mode: disabled.
    [  OK  ] Started Enable and configure CAN4 interface.
    [  OK  ] Started Enable and configure CAN5 interface.
    [    4.920045] am65-cpsw-nuss 46000000.ethernet eth0: PHY [46000f00.mdio:00] driver [Generic PHY] (irq=POLL)
    [    4.934212] am65-cpsw-nuss 46000000.ethernet eth0: configuring for phy/rmii link mode
    [  OK  ] Started Enable and configure CAN6 interface.
    [    4.944014] inv_mpu: Data read from FIFO
    [  OK  ] Finished Print notice about GPLv3 packages.
    [    4.966643] EXT4-fs (mmcblk0p10): mounted filesystem 1a8c541b-1a31-487c-9064-6c44e5a81936 r/w with ordered data mode. Quota mode: disabled.
    [  OK  ] Finished IPv6 Packet Filtering Framework.
    [  OK  ] Finished IPv4 Packet Filtering Framework.
    [  OK  ] Started ETH0 MAC ADDRESS configure interface.
    [  OK  ] Started telnetd.service.
    [FAILED] Failed to start WIFI MAC ADDRESS configure interface.
    See 'systemctl status uplink-rctgu.service' for details.
    [    5.084803] EXT4-fs (mmcblk0p12): mounted filesystem 2b659433-ecaa-4420-8e2f-a75f68802807 r/w with ordered data mode. Quota mode: disabled.
    [    5.169283] EXT4-fs (mmcblk0p13): mounted filesystem b682d58a-9e6f-45b2-8481-fb238e066efa r/w with ordered data mode. Quota mode: disabled.
    [  OK  ] Finished Mount partition.
    [  OK  ] Started User Login Management.
    [  OK  ] Reached target Preparation for Network.
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Network is Online.
             Starting LSB: network benchmark...
    [    5.414584] usbcore: registered new interface driver usbfs
    [  OK  ] Started Netperf Benchmark Server.
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting System Logger Daemon "default" instance...
             Starting syslog.service...
    [    5.482725] usbcore: registered new interface driver hub
    [    5.487835] usbcore: registered new device driver usb
             Starting Permit User Sessions...
    [  OK  ] Started LSB: network benchmark.
    [  OK  ] Finished Permit User Sessions.
    [    5.577646] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [    5.580412] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
    [    5.590066] xhci-hcd xhci-hcd.2.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000008010
    [    5.602194] xhci-hcd xhci-hcd.2.auto: irq 549, io mem 0x06010000
    [    5.607562] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [  OK  ] Started System Logger Daemon "default" instance.
    [    5.613778] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
    [    5.622015] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
    [    5.625434] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
    [  OK  ] Started syslog.service.
    [    5.632809] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.637486] usb usb1: Product: xHCI Host Controller
    [    5.639927] usb usb1: Manufacturer: Linux 6.6.32 xhci-hcd
    [    5.649440] usb usb1: SerialNumber: xhci-hcd.2.auto
    [    5.657938] hub 1-0:1.0: USB hub found
    [  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
    [    5.663186] hub 1-0:1.0: 1 port detected
    [    5.668826] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    5.674108] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06
    [    5.682187] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.686165] usb usb2: Product: xHCI Host Controller
    [    5.688607] usb usb2: Manufacturer: Linux 6.6.32 xhci-hcd
    [    5.691821] usb usb2: SerialNumber: xhci-hcd.2.auto
    [  OK  ] Started Getty on tty1.
    [    5.697615] hub 2-0:1.0: USB hub found
    [    5.700877] hub 2-0:1.0: 1 port detected
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Reached target Login Prompts.
             Starting u-boot bootount reset...
             Starting Synchronize System and HW clocks...
             Starting thermal-zone-init.service...
    [  OK  ] Finished Synchronize System and HW clocks.
    [  OK  ] Started WIFI MAC ADDRESS configure interface.
    [  OK  ] Started Insmod kernel moudule.
    [  OK  ] Finished u-boot bootount reset.
    [  OK  ] Started thermal-zone-init.service.
             Starting Enable coredump...
             Starting redis service and opt package set path...
             Starting Load/Save RF Kill Switch Status...
    [  OK  ] Started Enable coredump.
    [  OK  ] Started Load/Save RF Kill Switch Status.
             Starting Redis In-Memory Data Store...
    [  OK  ] Started Redis In-Memory Data Store.
    [    6.757395] k3_r5_rproc bus@100000:bus@28380000:r5fss@41000000: Timed out waiting for 41400000.r5f core to power up!
    [    6.766835] platform 5c00000.r5f: configured R5F for remoteproc mode
    [    6.773753] platform 5c00000.r5f: assigned reserved memory node r5f-dma-memory@a2000000
    [    6.778641] remoteproc remoteproc2: 5c00000.r5f is available
    [    6.782932] remoteproc remoteproc2: powering up 5c00000.r5f
    [    6.787008] remoteproc remoteproc2: Booting fw image j7200-main-r5f0_0-fw, size 73624
    [    6.792835] platform 5d00000.r5f: configured R5F for remoteproc mode
    [    6.796308] rproc-virtio rproc-virtio.3.auto: assigned reserved memory node r5f-dma-memory@a2000000
    [    6.802509] platform 5d00000.r5f: assigned reserved memory node r5f-dma-memory@a3000000
    [    6.808859] rproc-virtio rproc-virtio.3.auto: registered virtio1 (type 7)
    [    6.815042] remoteproc remoteproc3: 5d00000.r5f is available
    [    6.818643] remoteproc remoteproc2: remote processor 5c00000.r5f is now up
    [    6.824679] remoteproc remoteproc3: powering up 5d00000.r5f
    [    6.828142] remoteproc remoteproc3: Booting fw image j7200-main-r5f0_1-fw, size 73624
    [    6.836108] rproc-virtio rproc-virtio.4.auto: assigned reserved memory node r5f-dma-memory@a3000000
    [    6.845531] rproc-virtio rproc-virtio.4.auto: registered virtio2 (type 7)
    [    6.848937] remoteproc remoteproc3: remote processor 5d00000.r5f is now up
    [    6.868538] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    6.872900] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    6.875733] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xd
    [    6.879663] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xe
    [    6.883351] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xd
    [    6.887243] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xe
    [    6.894755] virtio_rpmsg_bus virtio2: rpmsg host is online
    [    6.899014] virtio_rpmsg_bus virtio2: creating channel ti.ipc4.ping-pong addr 0xd
    [    6.903505] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xe
    [    6.981811] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
             Starting Redis In-Memory Data Store for J1939 Manager...
    [  OK  ] Started Redis In-Memory Data Store for J1939 Manager.
             Starting Network Time Service...
    [  OK  ] Started Network Time Service.
    [  OK  ] Started save redis db abou…key input, gps, cell info etc.
    [    9.813517] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
    [    9.835443] usb 2-1: LPM exit latency is zeroed, disabling LPM.
    [    9.846462] usb 2-1: New USB device found, idVendor=2c7c, idProduct=0801, bcdDevice= 5.04
    [    9.851660] export_store: invalid GPIO 472
    [    9.857512] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    9.857875] unexport_store: invalid GPIO 472
    [    9.865429] usb 2-1: Product: RM520N-GL
    [    9.867692] usb 2-1: Manufacturer: Quectel
    [    9.873217] usb 2-1: SerialNumber: b33e6c18
    [    9.880628] export_store: invalid GPIO 397
    [    9.884361] unexport_store: invalid GPIO 397
    [    9.893487] export_store: invalid GPIO 377
    [    9.895669] unexport_store: invalid GPIO 377
    [    9.943388] usbcore: registered new interface driver cdc_wdm
    [    9.948244] usbcore: registered new interface driver option
    [    9.953110] usbserial: USB Serial support registered for GSM modem (1-port)
    [    9.960621] qmi_wwan 2-1:1.4: cdc-wdm0: USB WDM device
    [    9.972210] qmi_wwan 2-1:1.4 wwan0: register 'qmi_wwan' at usb-xhci-hcd.2.auto-1, WWAN/QMI device, ca:93:b2:ea:20:72
    [    9.984770] usbcore: registered new interface driver qmi_wwan
    [    9.994806] option 2-1:1.0: GSM modem (1-port) converter detected
    [   10.001254] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
    [   10.005790] usbcore: registered new interface driver qmi_wwan_q
    [   10.010525] option 2-1:1.1: GSM modem (1-port) converter detected
    [   10.013943] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
    [   10.018708] option 2-1:1.2: GSM modem (1-port) converter detected
    [   10.022039] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
    [   10.026677] option 2-1:1.3: GSM modem (1-port) converter detected
    [   10.030745] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
    [  OK  ] Started save redis db abou…key input, gps, cell info etc.
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project tgu -
    
    tgu 00.09 tgu -
    
    tgu login:

    Best Regards,

    Dohyeon.kim

  • Hi,

    I could not see PHY5,6 Link from Logs.

    >>     serdes0_usb_link: phy@2 {
            reg = <3>;

    Above use phy@3 as SerDes lane 3 is used.

    >> phy-names = "portmode", "serdes-phy";

    Change the above to "phy-names = "portmode", "serdes";

    Can you please add "phy-names" for Port-1 as well.

    Also, can you please share below command log.
    #ifconfig -a

    Best Regards,
    Sudheer

  • Hi,

    Isn't the below item of the log I attached before a PHY detected log?

    [ 0.901186] davinci_mdio c000f00.mdio: phy[5]: device c000f00.mdio:05, driver mv88q2221
    [ 0.905205] davinci_mdio c000f00.mdio: phy[6]: device c000f00.mdio:06, driver mv88q2221

    What log do I need regarding PHY?

    root@tgu:~# ifconfig -a
    can1      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              UP RUNNING NOARP  MTU:16  Metric:1
              RX packets:0 errors:0 dropped:2 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:22
    
    can2      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              UP RUNNING NOARP  MTU:16  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:25
    
    can3      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              UP RUNNING NOARP  MTU:16  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:28
    
    can4      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              UP RUNNING NOARP  MTU:16  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:30
    
    can5      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              UP RUNNING NOARP  MTU:72  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:31
    
    can6      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              UP RUNNING NOARP  MTU:72  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:32
    
    eth0      Link encap:Ethernet  HWaddr A0:B0:C0:D0:E0:F0
              inet addr:192.168.218.254  Bcast:0.0.0.0  Mask:255.255.255.0
              inet6 addr: fe80::a2b0:c0ff:fed0:e0f0/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:53 errors:0 dropped:0 overruns:0 frame:0
              TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:3388 (3.3 KiB)  TX bytes:1752 (1.7 KiB)
    
    eth1      Link encap:Ethernet  HWaddr 22:DE:27:A9:5C:4A
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    eth2      Link encap:Ethernet  HWaddr 4A:38:66:1A:98:D0
              inet6 addr: fe80::4838:66ff:fe1a:98d0/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:1105 (1.0 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:48702 errors:0 dropped:0 overruns:0 frame:0
              TX packets:48702 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:3108351 (2.9 MiB)  TX bytes:3108351 (2.9 MiB)
    root@tgu:~# ifconfig eth1 up
    [  620.922265] mv88q2221_config speed 1000 ----------
    [  620.935149] PHY 5: rev B0 for initial PHY
    [  621.203735] >> Link Status: Down
    [  621.205660] >> Latched Link Status 1: Down
    [  621.208886] >> Real Time Link Status: Down
    [  621.211285] >> Latched Link Status 2: Down
    [  621.213355] >> Master/Slave: Master
    [  621.215098] >> Speed: GE/1000
    [  621.216592] am65-cpsw-nuss c000000.ethernet eth1: PHY [c000f00.mdio:05] driver [mv88q2221] (irq=POLL)
    [  621.221228] am65-cpsw-nuss c000000.ethernet eth1: configuring for phy/sgmii link mode
    root@tgu:~# ifconfig eth2 up
    [  624.868760] mv88q2221_config speed 1000 ----------
    [  624.883222] PHY 6: rev B0 for initial PHY
    [  625.151812] >> Link Status: Up
    [  625.153698] >> Latched Link Status 1: Down
    [  625.156933] >> Real Time Link Status: Up
    [  625.159257] >> Latched Link Status 2: Up
    [  625.161235] >> Master/Slave: Master
    [  625.162979] >> Speed: GE/1000
    [  625.164472] am65-cpsw-nuss c000000.ethernet eth2: PHY [c000f00.mdio:06] driver [mv88q2221] (irq=POLL)
    [  625.169092] am65-cpsw-nuss c000000.ethernet eth2: configuring for phy/sgmii link mode
    root@tgu:~# [  625.230622] am65-cpsw-nuss c000000.ethernet eth2: Link is Up - 1Gbps/Full - flow control off
    
    root@tgu:~# ethtool eth1
    Settings for eth1:
            Supported ports: [  ]
            Supported link modes:   100baseT1/Full
                                    1000baseT1/Full
            Supported pause frame use: Symmetric
            Supports auto-negotiation: No
            Supported FEC modes: Not reported
            Advertised link modes:  100baseT1/Full
                                    1000baseT1/Full
            Advertised pause frame use: Symmetric
            Advertised auto-negotiation: No
            Advertised FEC modes: Not reported
            Speed: 1000Mb/s
            Duplex: Full
            Auto-negotiation: off
            Port: Twisted Pair
            PHYAD: 5
            Transceiver: external
            MDI-X: Unknown
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x000020f7 (8439)
                                   drv probe link ifdown ifup rx_err tx_err hw
            Link detected: no
            SQI: 0/15
    root@tgu:~#
    root@tgu:~# ethtool eth2
    Settings for eth2:
            Supported ports: [  ]
            Supported link modes:   100baseT1/Full
                                    1000baseT1/Full
            Supported pause frame use: Symmetric
            Supports auto-negotiation: No
            Supported FEC modes: Not reported
            Advertised link modes:  100baseT1/Full
                                    1000baseT1/Full
            Advertised pause frame use: Symmetric
            Advertised auto-negotiation: No
            Advertised FEC modes: Not reported
            Speed: 1000Mb/s
            Duplex: Full
            Auto-negotiation: off
            Port: Twisted Pair
            PHYAD: 6
            Transceiver: external
            MDI-X: Unknown
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x000020f7 (8439)
                                   drv probe link ifdown ifup rx_err tx_err hw
            Link detected: yes
            SQI: 15/15
    root@tgu:~#

    Best Regards,

    Dohyeon.kim

  • Hi,

    What log do I need regarding PHY?

    I have expected logs like below. PHY configured in sgmii mode and Link Up.
    [  625.164472] am65-cpsw-nuss c000000.ethernet eth2: PHY [c000f00.mdio:06] driver [mv88q2221] (irq=POLL)
    [  625.169092] am65-cpsw-nuss c000000.ethernet eth2: configuring for phy/sgmii link mode
    root@tgu:~# [  625.230622] am65-cpsw-nuss c000000.ethernet eth2: Link is Up - 1Gbps/Full - flow control off

    If MAC Port-4 is connected to external device?
    After Port Link Up, I could see tx packet count from eth2 ifconfig log.

    Can you please check ping by connecting Port-4 to DHCP network.
    Also, check for CPSW statistics for confirmation of packets Transmission and reception to Port4.
    #ethtool -S eth2

    Also, I can observer PHY-5 is not Link Up so, it can't communicate to external network.

    Best Regards,
    Sudheer

  • Hi,

    I understand it as the picture below.
    Is there any misunderstanding?

    DRA821 eth2 IP address: 192.168.200.1/24
    PC IP address: 192.168.200.254/24

    On PC, wireshark is as below.

    On DRA821 eth2 tcpdump

    On DRA821 ethtool -S eth2

    root@tgu:~# ethtool -S eth2
    NIC statistics:
         p0_rx_good_frames: 582
         p0_rx_broadcast_frames: 457
         p0_rx_multicast_frames: 125
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 38771
         p0_tx_good_frames: 0
         p0_tx_broadcast_frames: 0
         p0_tx_multicast_frames: 0
         p0_tx_octets: 0
         p0_tx_64B_frames: 459
         p0_tx_65_to_127B_frames: 123
         p0_tx_128_to_255B_frames: 0
         p0_tx_256_to_511B_frames: 0
         p0_tx_512_to_1023B_frames: 0
         p0_tx_1024B_frames: 0
         p0_net_octets: 38771
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 0
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 0
         rx_broadcast_frames: 0
         rx_multicast_frames: 0
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 0
         ale_overrun_drop: 0
         rx_octets: 0
         tx_good_frames: 582
         tx_broadcast_frames: 457
         tx_multicast_frames: 125
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 38771
         tx_64B_frames: 459
         tx_65_to_127B_frames: 123
         tx_128_to_255B_frames: 0
         tx_256_to_511B_frames: 0
         tx_512_to_1023B_frames: 0
         tx_1024B_frames: 0
         net_octets: 38771
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 0
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 0
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 0
         ale_unknown_ucast_bytes: 0
         ale_unknown_mcast: 0
         ale_unknown_mcast_bytes: 0
         ale_unknown_bcast: 0
         ale_unknown_bcast_bytes: 0
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 582
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 38771
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    root@tgu:~# 

    I don't think the packet is TX/RX from MAC to PHY in DRA821.
    Is there a problem with the connection of SGMII type?

    Please check.

    Best Regards,

    Dohyeon.kim

  • Hi,

    I understand it as the picture below.
    Is there any misunderstanding?

    No, It was clear and fine.

    On DRA821 eth2 tcpdump

    On DRA821 to view the packet you can use below command.
    # tcpdump -i eth2 -XX

    I don't think the packet is TX/RX from MAC to PHY in DRA821

    From statistics dump, it seems eth2 Tx packet count is increasing but Rx packet count is 0. I.e. No packet received to MAC Port.

    Best Regards,
    Sudheer

  • Hi,

    Since the statistics of ethtool are obtained from MAC, it cannot be determined that the packet was TX until PHY.

    When tested by setting the PHY's local loopback function, it does not become packet RX.
    When remote loopback was set, the packet TXed on the PC was RX normally.
    It seems that there is a problem with the "MAC <-SGMII-> PHY" configuration.
    Please support how I can debug that part.

    Best Regards,

    Dohyeon.kim

  • Hi,

    Since the statistics of ethtool are obtained from MAC, it cannot be determined that the packet was TX until PHY.

    yes, As Link is Up for the interface Network stack pushes the packets to Driver and based on ALE packets will be sent from MAC Port.
    Not guarantee that, these will be sent out from PHY.

    When tested by setting the PHY's local loopback function, it does not become packet RX.

    Ideally it should becomes Rx, as Loopback is enabled. At least Rx statistics of MAC should increase if PHY to MAC connection is fine.

    When remote loopback was set, the packet TXed on the PC was RX normally.

    Here, you are setting this from PC side or TI SOC side.
    I could see an Media converter in between your setup. Have you tied PHY5, PHY6 loopback or what?

    It seems that there is a problem with the "MAC <-SGMII-> PHY" configuration

    SerDes is configured for SGMII and PLL is also locked. We need to check from CPSW driver side for Port mode configuration.
    We have observed debug prints as Port is configured in SGMII mode.

    From CPSW SGMII status registers, it seems like Auto-negotiation is not completed.
    Also, from CPSW SGMII control registers Auto-negotiation is not enabled.

    Can you please dump CPSW SGMII Status registers, Advertise register and SGMII control registers?

    Best Regards,
    Sudheer

  • Hi,

    This is what I previously posted in my reply.
    Do you need additional register information?

    SGMII Status Registers

    root@tgu:~# devmem2 0x0C000114 w
    /dev/mem opened.
    Memory mapped at address 0xffff83aae000.
    Read at address 0x0C000114 (0xffff83aae114): 0x00000031
    root@tgu:~# devmem2 0x0C000214 w
    /dev/mem opened.
    Memory mapped at address 0xffffb3575000.
    Read at address 0x0C000214 (0xffffb3575214): 0x00000022
    root@tgu:~# devmem2 0x0C000314 w
    /dev/mem opened.
    Memory mapped at address 0xffffb9732000.
    Read at address 0x0C000314 (0xffffb9732314): 0x0000002A
    root@tgu:~# devmem2 0x0C000414 w
    /dev/mem opened.
    Memory mapped at address 0xffffa33e1000.
    Read at address 0x0C000414 (0xffffa33e1414): 0x00000031

    SGMII Control Registers

    root@tgu:~# devmem2 0x0C000110 w
    /dev/mem opened.
    Memory mapped at address 0xffffbe0be000.
    Read at address 0x0C000110 (0xffffbe0be110): 0x00000000
    root@tgu:~# devmem2 0x0C000210 w
    /dev/mem opened.
    Memory mapped at address 0xffffb1f23000.
    Read at address 0x0C000210 (0xffffb1f23210): 0x00000000
    root@tgu:~# devmem2 0x0C000310 w
    /dev/mem opened.
    Memory mapped at address 0xffff91fca000.
    Read at address 0x0C000310 (0xffff91fca310): 0x00000000
    root@tgu:~# devmem2 0x0C000410 w
    /dev/mem opened.
    Memory mapped at address 0xffff88522000.
    Read at address 0x0C000410 (0xffff88522410): 0x00000000

    SGMII MR ADV Registers

    root@tgu:~# devmem2 0x0C000118 w
    /dev/mem opened.
    Memory mapped at address 0xffff94181000.
    Read at address 0x0C000118 (0xffff94181118): 0x00000000
    root@tgu:~# devmem2 0x0C000218 w
    /dev/mem opened.
    Memory mapped at address 0xffffbd3f5000.
    Read at address 0x0C000218 (0xffffbd3f5218): 0x00000000
    root@tgu:~# devmem2 0x0C000318 w
    /dev/mem opened.
    Memory mapped at address 0xffff8c42d000.
    Read at address 0x0C000318 (0xffff8c42d318): 0x00000000
    root@tgu:~# devmem2 0x0C000418 w
    /dev/mem opened.
    Memory mapped at address 0xffff8af46000.
    Read at address 0x0C000418 (0xffff8af46418): 0x00000000

    Best Regards,

    Dohyeon.kim

  • Hi,

    From CPSW SGMII status registers, it seems like Auto-negotiation is not completed.
    Also, from CPSW SGMII control registers Auto-negotiation is not enabled.

    I have commented earlier to check SGMII Control register is not enabled for Auto-negotiation, at the same Advertise register also zeros.
    Please check the same after Link Up.

    Best Regards,
    Sudheer

  • Hi,

    When inquiring after eth1 and eth2 link up, it is as follows.


    SGMII control register

    root@tgu:~# devmem2 0x0C000110 w
    /dev/mem opened.
    Memory mapped at address 0xffff8c54e000.
    Read at address 0x0C000110 (0xffff8c54e110): 0x00000001
    root@tgu:~# devmem2 0x0C000210 w
    /dev/mem opened.
    Memory mapped at address 0xffffa3686000.
    Read at address 0x0C000210 (0xffffa3686210): 0x00000000
    root@tgu:~# devmem2 0x0C000310 w
    /dev/mem opened.
    Memory mapped at address 0xffff9da42000.
    Read at address 0x0C000310 (0xffff9da42310): 0x00000000
    root@tgu:~# devmem2 0x0C000410 w
    /dev/mem opened.
    Memory mapped at address 0xffff8bcac000.
    Read at address 0x0C000410 (0xffff8bcac410): 0x00000001
    root@tgu:~#

    SGMII status register

    root@tgu:~# devmem2 0x0C000114 w
    /dev/mem opened.
    Memory mapped at address 0xffffabbcc000.
    Read at address 0x0C000114 (0xffffabbcc114): 0x0000003D
    root@tgu:~# devmem2 0x0C000214 w
    /dev/mem opened.
    Memory mapped at address 0xffff990b4000.
    Read at address 0x0C000214 (0xffff990b4214): 0x00000022
    root@tgu:~# devmem2 0x0C000314 w
    /dev/mem opened.
    Memory mapped at address 0xffffa909b000.
    Read at address 0x0C000314 (0xffffa909b314): 0x0000002A
    root@tgu:~# devmem2 0x0C000414 w
    /dev/mem opened.
    Memory mapped at address 0xffff89d72000.
    Read at address 0x0C000414 (0xffff89d72414): 0x0000003D
    root@tgu:~#

    SGMII MR ADV register

    root@tgu:~# devmem2 0x0C000118 w
    /dev/mem opened.
    Memory mapped at address 0xffff9bbc8000.
    Read at address 0x0C000118 (0xffff9bbc8118): 0x00000001
    root@tgu:~# devmem2 0x0C000218 w
    /dev/mem opened.
    Memory mapped at address 0xffffa184b000.
    Read at address 0x0C000218 (0xffffa184b218): 0x00000000
    root@tgu:~# devmem2 0x0C000318 w
    /dev/mem opened.
    Memory mapped at address 0xffff92fd0000.
    Read at address 0x0C000318 (0xffff92fd0318): 0x00000000
    root@tgu:~# devmem2 0x0C000418 w
    /dev/mem opened.
    Memory mapped at address 0xffffa3542000.
    Read at address 0x0C000418 (0xffffa3542418): 0x00000001
    root@tgu:~#

    Best Regards,

    Dohyeon.kim

  • Hi, 

    Thank you sharing the log, let me check and get back to you soon. 

    Best Regards, 

    Sudheer

  • Hi,

    From the above register log, It seems Auto-negotiation enabled from SGMII Control register.
    Also, Completed from SGMII status registrars, PLL is also locked.

    Can you please check CPSW statistics while running ping, any error or drop frames?

    Best Regards,
    Sudheer

  • Hi, 

    Tell me the command or register that can check CPSW statistics

    Best Regards,

    Dohyeon.kim

  • Hi,

    Tell me the command or register that can check CPSW statistics

    # ethtool -S <eth2>

    You can use interface name of ports in eth2. Above will dump statistics corresponding to interface/port.

    Also, can you please dump following clock information.

    CPSW5G clock dump
    #k3conf dump clock 19

    SerDes clock dump
    #k3conf dump clock 292

    Best Regards,
    Sudheer

  • Hi,

    I'm sorry for the late response.

    Please refer to the contents inquiry below.

    root@tgu:~# ifconfig eth2
    eth2      Link encap:Ethernet  HWaddr F2:62:74:8D:1C:1B
              inet addr:192.168.200.1  Bcast:192.168.200.255  Mask:255.255.255.0
              inet6 addr: fe80::f062:74ff:fe8d:1c1b/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:798 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:34330 (33.5 KiB)
    
    root@tgu:~# ethtool -S eth2
    NIC statistics:
         p0_rx_good_frames: 798
         p0_rx_broadcast_frames: 774
         p0_rx_multicast_frames: 24
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 51466
         p0_tx_good_frames: 0
         p0_tx_broadcast_frames: 0
         p0_tx_multicast_frames: 0
         p0_tx_octets: 0
         p0_tx_64B_frames: 776
         p0_tx_65_to_127B_frames: 22
         p0_tx_128_to_255B_frames: 0
         p0_tx_256_to_511B_frames: 0
         p0_tx_512_to_1023B_frames: 0
         p0_tx_1024B_frames: 0
         p0_net_octets: 51466
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 0
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 0
         rx_broadcast_frames: 0
         rx_multicast_frames: 0
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 0
         ale_overrun_drop: 0
         rx_octets: 0
         tx_good_frames: 798
         tx_broadcast_frames: 774
         tx_multicast_frames: 24
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 51466
         tx_64B_frames: 776
         tx_65_to_127B_frames: 22
         tx_128_to_255B_frames: 0
         tx_256_to_511B_frames: 0
         tx_512_to_1023B_frames: 0
         tx_1024B_frames: 0
         net_octets: 51466
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 0
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 0
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 0
         ale_unknown_ucast_bytes: 0
         ale_unknown_mcast: 0
         ale_unknown_mcast_bytes: 0
         ale_unknown_bcast: 0
         ale_unknown_bcast_bytes: 0
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 798
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 51466
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    root@tgu:~# k3conf dump clock 19
    |------------------------------------------------------------------------------|
    | VERSION INFO                                                                 |
    |------------------------------------------------------------------------------|
    | K3CONF | (version 0.3-nogit built Fri Oct 06 12:20:16 UTC 2023)              |
    | SoC    | J7200 SR2.0                                                         |
    | SYSFW  | ABI: 3.1 (firmware version 0x0009 '9.1.2--v09.01.02 (Kool Koala))') |
    |------------------------------------------------------------------------------|
    
    |------------------------------------------------------------------------------------------------------------------------------------|
    | Device ID | Clock ID | Clock Name                                                              | Status          | Clock Frequency |
    |------------------------------------------------------------------------------------------------------------------------------------|
    |    19     |     0    | DEV_CPSW0_MDIO_MDCLK_O                                                  | CLK_STATE_READY | 0               |
    |    19     |     1    | DEV_CPSW0_GMII3_MT_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |     2    | DEV_CPSW0_GMII2_MR_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |     3    | DEV_CPSW0_SERDES4_RXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |     4    | DEV_CPSW0_CPTS_GENF0                                                    | CLK_STATE_READY | 0               |
    |    19     |     5    | DEV_CPSW0_PRE_RGMII4_TCLK                                               | CLK_STATE_READY | 0               |
    |    19     |     6    | DEV_CPSW0_RGMII3_RXC_I                                                  | CLK_STATE_READY | 0               |
    |    19     |     7    | DEV_CPSW0_RGMII4_RXC_I                                                  | CLK_STATE_READY | 0               |
    |    19     |     8    | DEV_CPSW0_PRE_RGMII3_TCLK                                               | CLK_STATE_READY | 0               |
    |    19     |     9    | DEV_CPSW0_RGMII1_RXC_I                                                  | CLK_STATE_READY | 0               |
    |    19     |    10    | DEV_CPSW0_RGMII_MHZ_250_CLK                                             | CLK_STATE_READY | 250000000       |
    |    19     |    11    | DEV_CPSW0_GMII4_MT_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    13    | DEV_CPSW0_GMII3_MR_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    14    | DEV_CPSW0_SERDES4_RXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    15    | DEV_CPSW0_CPTS_RFT_CLK                                                  | CLK_STATE_READY | 200000000       |
    |    19     |    16    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_HSDIV4_16FFT_MAIN_3_HSDIVOUT1_CLK         | CLK_STATE_READY | 200000000       |
    |    19     |    17    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_POSTDIV2_16FFT_MAIN_0_HSDIVOUT6_CLK       | CLK_STATE_READY | 200000000       |
    |    19     |    18    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_BOARD_0_MCU_CPTS0_RFT_CLK_OUT             | CLK_STATE_READY | 0               |
    |    19     |    19    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_BOARD_0_CPTS0_RFT_CLK_OUT                 | CLK_STATE_READY | 0               |
    |    19     |    20    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_BOARD_0_MCU_EXT_REFCLK0_OUT               | CLK_STATE_READY | 0               |
    |    19     |    21    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_BOARD_0_EXT_REFCLK1_OUT                   | CLK_STATE_READY | 0               |
    |    19     |    22    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_WIZ16B8M4CT2_MAIN_1_IP2_LN0_TXMCLK        | CLK_STATE_READY | 0               |
    |    19     |    23    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_WIZ16B8M4CT2_MAIN_1_IP2_LN1_TXMCLK        | CLK_STATE_READY | 0               |
    |    19     |    24    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_WIZ16B8M4CT2_MAIN_1_IP2_LN2_TXMCLK        | CLK_STATE_READY | 0               |
    |    19     |    25    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_WIZ16B8M4CT2_MAIN_1_IP2_LN3_TXMCLK        | CLK_STATE_READY | 0               |
    |    19     |    30    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_HSDIV4_16FFT_MCU_2_HSDIVOUT1_CLK          | CLK_STATE_READY | 500000000       |
    |    19     |    31    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_K3_PLL_CTRL_WRAP_MAIN_0_CHIP_DIV1_CLK_CLK | CLK_STATE_READY | 500000000       |
    |    19     |    32    | DEV_CPSW0_SERDES1_TXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    33    | DEV_CPSW0_CPPI_CLK_CLK                                                  | CLK_STATE_READY | 320000000       |
    |    19     |    34    | DEV_CPSW0_SERDES2_RXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    35    | DEV_CPSW0_SERDES1_RXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    36    | DEV_CPSW0_GMII_RFT_CLK                                                  | CLK_STATE_READY | 125000000       |
    |    19     |    37    | DEV_CPSW0_SERDES1_TXMCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    38    | DEV_CPSW0_SERDES1_REFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    39    | DEV_CPSW0_RMII_MHZ_50_CLK                                               | CLK_STATE_READY | 0               |
    |    19     |    40    | DEV_CPSW0_GMII4_MR_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    41    | DEV_CPSW0_RGMII_MHZ_50_CLK                                              | CLK_STATE_READY | 50000000        |
    |    19     |    42    | DEV_CPSW0_SERDES3_TXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    43    | DEV_CPSW0_SERDES3_RXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    45    | DEV_CPSW0_PRE_RGMII2_TCLK                                               | CLK_STATE_READY | 0               |
    |    19     |    46    | DEV_CPSW0_SERDES2_TXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    47    | DEV_CPSW0_SERDES1_RXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    48    | DEV_CPSW0_SERDES1_TXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    49    | DEV_CPSW0_RGMII2_RXC_I                                                  | CLK_STATE_READY | 0               |
    |    19     |    50    | DEV_CPSW0_SERDES2_TXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    51    | DEV_CPSW0_PRE_RGMII1_TCLK                                               | CLK_STATE_READY | 0               |
    |    19     |    52    | DEV_CPSW0_RGMII_MHZ_5_CLK                                               | CLK_STATE_READY | 5000000         |
    |    19     |    53    | DEV_CPSW0_GMII2_MT_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    54    | DEV_CPSW0_SERDES4_TXMCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    55    | DEV_CPSW0_SERDES3_TXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    56    | DEV_CPSW0_SERDES2_TXMCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    57    | DEV_CPSW0_GMII1_MR_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    58    | DEV_CPSW0_SERDES4_REFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    59    | DEV_CPSW0_SERDES3_TXMCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    60    | DEV_CPSW0_SERDES2_REFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    61    | DEV_CPSW0_SERDES3_REFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    62    | DEV_CPSW0_SERDES3_RXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    63    | DEV_CPSW0_GMII1_MT_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    64    | DEV_CPSW0_SERDES2_RXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    66    | DEV_CPSW0_SERDES4_TXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    67    | DEV_CPSW0_SERDES4_TXFCLK                                                | CLK_STATE_READY | 0               |
    |------------------------------------------------------------------------------------------------------------------------------------|
    
    root@tgu:~#
    root@tgu:~# k3conf dump clock 19
    |------------------------------------------------------------------------------|
    | VERSION INFO                                                                 |
    |------------------------------------------------------------------------------|
    | K3CONF | (version 0.3-nogit built Fri Oct 06 12:20:16 UTC 2023)              |
    | SoC    | J7200 SR2.0                                                         |
    | SYSFW  | ABI: 3.1 (firmware version 0x0009 '9.1.2--v09.01.02 (Kool Koala))') |
    |------------------------------------------------------------------------------|
    
    |------------------------------------------------------------------------------------------------------------------------------------|
    | Device ID | Clock ID | Clock Name                                                              | Status          | Clock Frequency |
    |------------------------------------------------------------------------------------------------------------------------------------|
    |    19     |     0    | DEV_CPSW0_MDIO_MDCLK_O                                                  | CLK_STATE_READY | 0               |
    |    19     |     1    | DEV_CPSW0_GMII3_MT_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |     2    | DEV_CPSW0_GMII2_MR_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |     3    | DEV_CPSW0_SERDES4_RXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |     4    | DEV_CPSW0_CPTS_GENF0                                                    | CLK_STATE_READY | 0               |
    |    19     |     5    | DEV_CPSW0_PRE_RGMII4_TCLK                                               | CLK_STATE_READY | 0               |
    |    19     |     6    | DEV_CPSW0_RGMII3_RXC_I                                                  | CLK_STATE_READY | 0               |
    |    19     |     7    | DEV_CPSW0_RGMII4_RXC_I                                                  | CLK_STATE_READY | 0               |
    |    19     |     8    | DEV_CPSW0_PRE_RGMII3_TCLK                                               | CLK_STATE_READY | 0               |
    |    19     |     9    | DEV_CPSW0_RGMII1_RXC_I                                                  | CLK_STATE_READY | 0               |
    |    19     |    10    | DEV_CPSW0_RGMII_MHZ_250_CLK                                             | CLK_STATE_READY | 250000000       |
    |    19     |    11    | DEV_CPSW0_GMII4_MT_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    13    | DEV_CPSW0_GMII3_MR_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    14    | DEV_CPSW0_SERDES4_RXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    15    | DEV_CPSW0_CPTS_RFT_CLK                                                  | CLK_STATE_READY | 200000000       |
    |    19     |    16    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_HSDIV4_16FFT_MAIN_3_HSDIVOUT1_CLK         | CLK_STATE_READY | 200000000       |
    |    19     |    17    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_POSTDIV2_16FFT_MAIN_0_HSDIVOUT6_CLK       | CLK_STATE_READY | 200000000       |
    |    19     |    18    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_BOARD_0_MCU_CPTS0_RFT_CLK_OUT             | CLK_STATE_READY | 0               |
    |    19     |    19    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_BOARD_0_CPTS0_RFT_CLK_OUT                 | CLK_STATE_READY | 0               |
    |    19     |    20    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_BOARD_0_MCU_EXT_REFCLK0_OUT               | CLK_STATE_READY | 0               |
    |    19     |    21    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_BOARD_0_EXT_REFCLK1_OUT                   | CLK_STATE_READY | 0               |
    |    19     |    22    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_WIZ16B8M4CT2_MAIN_1_IP2_LN0_TXMCLK        | CLK_STATE_READY | 0               |
    |    19     |    23    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_WIZ16B8M4CT2_MAIN_1_IP2_LN1_TXMCLK        | CLK_STATE_READY | 0               |
    |    19     |    24    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_WIZ16B8M4CT2_MAIN_1_IP2_LN2_TXMCLK        | CLK_STATE_READY | 0               |
    |    19     |    25    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_WIZ16B8M4CT2_MAIN_1_IP2_LN3_TXMCLK        | CLK_STATE_READY | 0               |
    |    19     |    30    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_HSDIV4_16FFT_MCU_2_HSDIVOUT1_CLK          | CLK_STATE_READY | 500000000       |
    |    19     |    31    | DEV_CPSW0_CPTS_RFT_CLK_PARENT_K3_PLL_CTRL_WRAP_MAIN_0_CHIP_DIV1_CLK_CLK | CLK_STATE_READY | 500000000       |
    |    19     |    32    | DEV_CPSW0_SERDES1_TXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    33    | DEV_CPSW0_CPPI_CLK_CLK                                                  | CLK_STATE_READY | 320000000       |
    |    19     |    34    | DEV_CPSW0_SERDES2_RXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    35    | DEV_CPSW0_SERDES1_RXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    36    | DEV_CPSW0_GMII_RFT_CLK                                                  | CLK_STATE_READY | 125000000       |
    |    19     |    37    | DEV_CPSW0_SERDES1_TXMCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    38    | DEV_CPSW0_SERDES1_REFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    39    | DEV_CPSW0_RMII_MHZ_50_CLK                                               | CLK_STATE_READY | 0               |
    |    19     |    40    | DEV_CPSW0_GMII4_MR_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    41    | DEV_CPSW0_RGMII_MHZ_50_CLK                                              | CLK_STATE_READY | 50000000        |
    |    19     |    42    | DEV_CPSW0_SERDES3_TXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    43    | DEV_CPSW0_SERDES3_RXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    45    | DEV_CPSW0_PRE_RGMII2_TCLK                                               | CLK_STATE_READY | 0               |
    |    19     |    46    | DEV_CPSW0_SERDES2_TXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    47    | DEV_CPSW0_SERDES1_RXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    48    | DEV_CPSW0_SERDES1_TXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    49    | DEV_CPSW0_RGMII2_RXC_I                                                  | CLK_STATE_READY | 0               |
    |    19     |    50    | DEV_CPSW0_SERDES2_TXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    51    | DEV_CPSW0_PRE_RGMII1_TCLK                                               | CLK_STATE_READY | 0               |
    |    19     |    52    | DEV_CPSW0_RGMII_MHZ_5_CLK                                               | CLK_STATE_READY | 5000000         |
    |    19     |    53    | DEV_CPSW0_GMII2_MT_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    54    | DEV_CPSW0_SERDES4_TXMCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    55    | DEV_CPSW0_SERDES3_TXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    56    | DEV_CPSW0_SERDES2_TXMCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    57    | DEV_CPSW0_GMII1_MR_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    58    | DEV_CPSW0_SERDES4_REFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    59    | DEV_CPSW0_SERDES3_TXMCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    60    | DEV_CPSW0_SERDES2_REFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    61    | DEV_CPSW0_SERDES3_REFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    62    | DEV_CPSW0_SERDES3_RXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    63    | DEV_CPSW0_GMII1_MT_CLK                                                  | CLK_STATE_READY | 25000000        |
    |    19     |    64    | DEV_CPSW0_SERDES2_RXFCLK                                                | CLK_STATE_READY | 0               |
    |    19     |    66    | DEV_CPSW0_SERDES4_TXCLK                                                 | CLK_STATE_READY | 0               |
    |    19     |    67    | DEV_CPSW0_SERDES4_TXFCLK                                                | CLK_STATE_READY | 0               |
    |------------------------------------------------------------------------------------------------------------------------------------|
    
    root@tgu:~#

    Best Regards,

    Dohyeon.kim

  • Hi,

    From Statistics I can see no Rx frames from MAC Port. It mean no frames received to MAC.

    SerDes clock dump
    #k3conf dump clock 292

    Can you provide the SerDes clock dump as well.

    Best Regards,
    Sudheer

  • Hi,

    Please refer to "SerDes clock dump" below.

    root@tgu:~# k3conf dump clock 292
    |------------------------------------------------------------------------------|
    | VERSION INFO                                                                 |
    |------------------------------------------------------------------------------|
    | K3CONF | (version 0.3-nogit built Fri Oct 06 12:20:16 UTC 2023)              |
    | SoC    | J7200 SR2.0                                                         |
    | SYSFW  | ABI: 3.1 (firmware version 0x0009 '9.1.2--v09.01.02 (Kool Koala))') |
    |------------------------------------------------------------------------------|
    
    |----------------------------------------------------------------------------------------------------------------------------------|
    | Device ID | Clock ID | Clock Name                                                            | Status          | Clock Frequency |
    |----------------------------------------------------------------------------------------------------------------------------------|
    |   292     |     1    | DEV_SERDES_10G1_IP3_LN1_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |     3    | DEV_SERDES_10G1_IP2_LN2_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |     4    | DEV_SERDES_10G1_IP1_LN0_TXMCLK                                        | CLK_STATE_READY | 0               |
    |   292     |     6    | DEV_SERDES_10G1_IP3_LN3_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |     9    | DEV_SERDES_10G1_IP2_LN2_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    10    | DEV_SERDES_10G1_IP1_LN0_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    11    | DEV_SERDES_10G1_CLK                                                   | CLK_STATE_READY | 125000000       |
    |   292     |    13    | DEV_SERDES_10G1_IP1_LN3_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    14    | DEV_SERDES_10G1_IP1_LN1_TXMCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    15    | DEV_SERDES_10G1_IP2_LN0_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    16    | DEV_SERDES_10G1_IP2_LN2_TXMCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    19    | DEV_SERDES_10G1_IP3_LN1_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    21    | DEV_SERDES_10G1_IP2_LN3_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    22    | DEV_SERDES_10G1_IP1_LN2_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    24    | DEV_SERDES_10G1_IP2_LN1_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    25    | DEV_SERDES_10G1_IP2_LN1_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    29    | DEV_SERDES_10G1_IP1_LN2_TXMCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    32    | DEV_SERDES_10G1_IP2_LN1_TXMCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    33    | DEV_SERDES_10G1_IP2_LN1_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    34    | DEV_SERDES_10G1_IP1_LN1_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    38    | DEV_SERDES_10G1_IP1_LN2_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    40    | DEV_SERDES_10G1_IP2_LN1_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    41    | DEV_SERDES_10G1_IP2_LN0_TXMCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    42    | DEV_SERDES_10G1_IP2_LN3_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    43    | DEV_SERDES_10G1_IP2_LN2_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    44    | DEV_SERDES_10G1_IP2_LN2_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    45    | DEV_SERDES_10G1_IP1_LN1_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    49    | DEV_SERDES_10G1_IP1_LN0_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    52    | DEV_SERDES_10G1_IP1_LN1_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    55    | DEV_SERDES_10G1_IP1_LN0_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    56    | DEV_SERDES_10G1_IP3_LN3_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    59    | DEV_SERDES_10G1_IP2_LN3_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    61    | DEV_SERDES_10G1_IP2_LN0_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    62    | DEV_SERDES_10G1_IP2_LN3_TXMCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    63    | DEV_SERDES_10G1_IP1_LN1_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    65    | DEV_SERDES_10G1_IP1_LN3_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    66    | DEV_SERDES_10G1_IP3_LN1_TXMCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    67    | DEV_SERDES_10G1_IP2_LN2_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    73    | DEV_SERDES_10G1_IP3_LN1_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    74    | DEV_SERDES_10G1_IP3_LN1_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    75    | DEV_SERDES_10G1_IP1_LN3_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    77    | DEV_SERDES_10G1_IP1_LN0_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    80    | DEV_SERDES_10G1_IP1_LN2_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    81    | DEV_SERDES_10G1_IP2_LN0_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    82    | DEV_SERDES_10G1_IP2_LN0_RXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    85    | DEV_SERDES_10G1_CORE_REF_CLK                                          | CLK_STATE_READY | 100000000       |
    |   292     |    86    | DEV_SERDES_10G1_CORE_REF_CLK_PARENT_GLUELOGIC_HFOSC0_CLKOUT           | CLK_STATE_READY | 25000000        |
    |   292     |    87    | DEV_SERDES_10G1_CORE_REF_CLK_PARENT_BOARD_0_HFOSC1_CLK_OUT            | CLK_STATE_READY | 0               |
    |   292     |    88    | DEV_SERDES_10G1_CORE_REF_CLK_PARENT_HSDIV4_16FFT_MAIN_3_HSDIVOUT4_CLK | CLK_STATE_READY | 125000000       |
    |   292     |    89    | DEV_SERDES_10G1_CORE_REF_CLK_PARENT_HSDIV4_16FFT_MAIN_2_HSDIVOUT4_CLK | CLK_STATE_READY | 100000000       |
    |   292     |    92    | DEV_SERDES_10G1_IP1_LN3_TXMCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    95    | DEV_SERDES_10G1_IP2_LN3_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |    96    | DEV_SERDES_10G1_IP3_LN3_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |    98    | DEV_SERDES_10G1_IP3_LN3_REFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   100    | DEV_SERDES_10G1_IP2_LN1_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   102    | DEV_SERDES_10G1_IP3_LN1_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   104    | DEV_SERDES_10G1_IP1_LN1_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |   107    | DEV_SERDES_10G1_IP3_LN3_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   108    | DEV_SERDES_10G1_IP1_LN3_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   109    | DEV_SERDES_10G1_IP2_LN3_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   111    | DEV_SERDES_10G1_IP1_LN0_TXCLK                                         | CLK_STATE_READY | 0               |
    |   292     |   112    | DEV_SERDES_10G1_IP2_LN0_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   113    | DEV_SERDES_10G1_IP1_LN2_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   118    | DEV_SERDES_10G1_IP1_LN2_TXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   124    | DEV_SERDES_10G1_IP1_LN3_RXFCLK                                        | CLK_STATE_READY | 0               |
    |   292     |   126    | DEV_SERDES_10G1_IP3_LN3_TXMCLK                                        | CLK_STATE_READY | 0               |
    |----------------------------------------------------------------------------------------------------------------------------------|
    
    root@tgu:~#

    Best Regards,

    Dohyeon.kim

  • Hi,

    Clock of SerDes also seems to be fine.

    Can you check with below SerDes clock update, whether any Rx packet count is increasing or not?


    Note:
    After making above change, please rebuild linux-dtb and use updated dtbo.


    Also, check from PHY side, if any statistics available for Tx & Rx packet count.

    Best Regards,
    Sudheer

  • Hi,

    I applied it as below, but the RX count does not increase.

    root@tgu:~# ifconfig eth2
    eth2      Link encap:Ethernet  HWaddr D2:DD:98:8E:51:18
              inet addr:192.168.200.1  Bcast:192.168.200.255  Mask:255.255.255.0
              inet6 addr: fe80::d0dd:98ff:fe8e:5118/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:513 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:22316 (21.7 KiB)
    
    root@tgu:~# ifconfig eth2
    eth2      Link encap:Ethernet  HWaddr D2:DD:98:8E:51:18
              inet addr:192.168.200.1  Bcast:192.168.200.255  Mask:255.255.255.0
              inet6 addr: fe80::d0dd:98ff:fe8e:5118/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:514 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:22358 (21.8 KiB)
    
    root@tgu:~# ifconfig eth2
    eth2      Link encap:Ethernet  HWaddr D2:DD:98:8E:51:18
              inet addr:192.168.200.1  Bcast:192.168.200.255  Mask:255.255.255.0
              inet6 addr: fe80::d0dd:98ff:fe8e:5118/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:514 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:22358 (21.8 KiB)
    
    root@tgu:~# ethtool -S eth2
    NIC statistics:
         p0_rx_good_frames: 537
         p0_rx_broadcast_frames: 515
         p0_rx_multicast_frames: 22
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 34754
         p0_tx_good_frames: 0
         p0_tx_broadcast_frames: 0
         p0_tx_multicast_frames: 0
         p0_tx_octets: 0
         p0_tx_64B_frames: 517
         p0_tx_65_to_127B_frames: 20
         p0_tx_128_to_255B_frames: 0
         p0_tx_256_to_511B_frames: 0
         p0_tx_512_to_1023B_frames: 0
         p0_tx_1024B_frames: 0
         p0_net_octets: 34754
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 0
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 0
         rx_broadcast_frames: 0
         rx_multicast_frames: 0
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 0
         ale_overrun_drop: 0
         rx_octets: 0
         tx_good_frames: 537
         tx_broadcast_frames: 515
         tx_multicast_frames: 22
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 34754
         tx_64B_frames: 517
         tx_65_to_127B_frames: 20
         tx_128_to_255B_frames: 0
         tx_256_to_511B_frames: 0
         tx_512_to_1023B_frames: 0
         tx_1024B_frames: 0
         net_octets: 34754
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 0
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 0
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 0
         ale_unknown_ucast_bytes: 0
         ale_unknown_mcast: 0
         ale_unknown_mcast_bytes: 0
         ale_unknown_bcast: 0
         ale_unknown_bcast_bytes: 0
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 537
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 34754
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    root@tgu:~#

    Best Regards,

    Dohyeon.kim

  • Hi,

    Have you confirmed from PHY side if Tx & Rx is okay? by reading PHY statistics if any exists.

    Also, can you please check the data sent from CPSW is receiving at peer side by running Wire-shark in remote side, as we are observing Tx packets statistics from MAC.

    Best Regards,
    Sudheer

  • Hi,

    PHY does not have a statistical register.
    When I check wireshark on the connected PC, there is nothing packet RX.

    Best Regards,

    Dohyeon.kim

  • Hi,

    Have you confirmed Media converter to Remote PC, Link is up?
    Can you able to make external loop-back at media converter side from remote PC and observe the Tx packets reaching receiving back or not?
    Also, is PHY is configured properly for SGMII interface?

    Can you please confirm from Media converter and PHY side.

    Best Regards,
    Sudheer

  • Hi,

    Currently, as shown in the diagram below, when remote loopback is configured, I can verify that packets transmitted (TX) from my PC are received (RX).

    When local loopback is set, no packet is RX.

    When using EthFW, packet TX/RX is normally performed.

    Best Regards,

    Dohyeon.kim

  • Hi,

    When using EthFW, packet TX/RX is normally performed.

    What do you mean here, using ETHFW you are successfully above to transmit and receive.

    Can you please cross check ETHFW is not loaded when configured for native Linux driver? can you please check any difference in PHY configuration in ETHFW & Linux Driver.

    Best Regards,
    Sudheer

  • Hi,

    When I disable Native Ethernet (use EthFW), Packet TX/RX works fine.

    EthFW's deactivation setting was confirmed as follows.

    root@tgu:~# cat /sys/kernel/debug/remoteproc/remoteproc0/trace0
    Sciclient_boardCfgRm init Passed
    DM Built On: Oct 31 2023 18:10:42
    Sciserver Version: v2023.10.0.0-SYSFW_09.01.02.01-1-g40182
    RM_PM_HAL Version: v09.01.02+
    Starting Sciserver..... PASSED
    IPC_echo_test (core : mcu1_0) .....
    mcu1_0 <--> mcu2_0, Ping- 10000, pong - 10000 completed
    mcu1_0 <--> mcu2_1, Ping- 10000, pong - 10000 completed
    root@tgu:~# cat /sys/kernel/debug/remoteproc/remoteproc1/trace0
    cat: can't open '/sys/kernel/debug/remoteproc/remoteproc1/trace0': No such file or directory
    root@tgu:~# cat /sys/kernel/debug/remoteproc/remoteproc2/trace0
    IPC_echo_test (core : mcu2_0) .....
    mcu2_0 <--> mcu2_1, Ping- 10000, pong - 10000 completed
    mcu2_0 <--> mcu1_0, Ping- 10000, pong - 10000 completed
    root@tgu:~# cat /sys/kernel/debug/remoteproc/remoteproc3/trace0
    IPC_echo_test (core : mcu2_1) .....
    mcu2_1 <--> mcu2_0, Ping- 10000, pong - 10000 completed
    mcu2_1 <--> mcu1_0, Ping- 10000, pong - 10000 completed
    root@tgu:~#

    EthFW's PHY driver and Native linux driver are the same.

    Is there any problem with setting SGMII on AP?

    Best Regards,

    Dohyeon.kim

  • Hi,

    When I disable Native Ethernet (use EthFW), Packet TX/RX works fine.

    SerDes is configured by Linux right? by default SerDes is configured from u-boot/Linux. ETHFW will not configure the SerDes.

    EthFW's PHY driver and Native linux driver are the same.

    Have you verified PHY registers configuration?

    Is there any problem with setting SGMII on AP?

    No, by default SGMII supported from Linux side.

    Can you check SGMII control register & status registers in ETHFW case and Native Linux driver and share with us.

    Best Regards,
    Sudheer

  • Hi,

    Please refer to the table below.

    Native Ethernet EthFW
    Control register root@tgu:~# devmem2 0x0C000110 w
    /dev/mem opened.
    Memory mapped at address 0xffff8c54e000.
    Read at address 0x0C000110 (0xffff8c54e110): 0x00000001
    root@tgu:~# devmem2 0x0C000210 w
    /dev/mem opened.
    Memory mapped at address 0xffffa3686000.
    Read at address 0x0C000210 (0xffffa3686210): 0x00000000
    root@tgu:~# devmem2 0x0C000310 w
    /dev/mem opened.
    Memory mapped at address 0xffff9da42000.
    Read at address 0x0C000310 (0xffff9da42310): 0x00000000
    root@tgu:~# devmem2 0x0C000410 w
    /dev/mem opened.
    Memory mapped at address 0xffff8bcac000.
    Read at address 0x0C000410 (0xffff8bcac410): 0x00000001
    root@tgu:~#
    root@tgu:~# devmem2 0x0C000110 w
    /dev/mem opened.
    Memory mapped at address 0xffffa5c28000.
    Read at address 0x0C000110 (0xffffa5c28110): 0x00000000
    root@tgu:~# devmem2 0x0C000210 w
    /dev/mem opened.
    Memory mapped at address 0xffffb00b6000.
    Read at address 0x0C000210 (0xffffb00b6210): 0x00000000
    root@tgu:~# devmem2 0x0C000310 w
    /dev/mem opened.
    Memory mapped at address 0xffffbf1af000.
    Read at address 0x0C000310 (0xffffbf1af310): 0x00000000
    root@tgu:~# devmem2 0x0C000410 w
    /dev/mem opened.
    Memory mapped at address 0xffffb8917000.
    Read at address 0x0C000410 (0xffffb8917410): 0x00000000
    root@tgu:~#
    Status register root@tgu:~# devmem2 0x0C000114 w
    /dev/mem opened.
    Memory mapped at address 0xffffabbcc000.
    Read at address 0x0C000114 (0xffffabbcc114): 0x0000003D
    root@tgu:~# devmem2 0x0C000214 w
    /dev/mem opened.
    Memory mapped at address 0xffff990b4000.
    Read at address 0x0C000214 (0xffff990b4214): 0x00000022
    root@tgu:~# devmem2 0x0C000314 w
    /dev/mem opened.
    Memory mapped at address 0xffffa909b000.
    Read at address 0x0C000314 (0xffffa909b314): 0x0000002A
    root@tgu:~# devmem2 0x0C000414 w
    /dev/mem opened.
    Memory mapped at address 0xffff89d72000.
    Read at address 0x0C000414 (0xffff89d72414): 0x0000003D
    root@tgu:~#
    root@tgu:~# devmem2 0x0C000114 w
    /dev/mem opened.
    Memory mapped at address 0xffff9ef20000.
    Read at address 0x0C000114 (0xffff9ef20114): 0x00000031
    root@tgu:~# devmem2 0x0C000214 w
    /dev/mem opened.
    Memory mapped at address 0xffff89ae1000.
    Read at address 0x0C000214 (0xffff89ae1214): 0x00000000
    root@tgu:~# devmem2 0x0C000314 w
    /dev/mem opened.
    Memory mapped at address 0xffffafc19000.
    Read at address 0x0C000314 (0xffffafc19314): 0x00000028
    root@tgu:~# devmem2 0x0C000414 w
    /dev/mem opened.
    Memory mapped at address 0xffff8e916000.
    Read at address 0x0C000414 (0xffff8e916414): 0x00000031
    root@tgu:~#
    Ability register root@tgu:~# devmem2 0x0C000118 w
    /dev/mem opened.
    Memory mapped at address 0xffff9bbc8000.
    Read at address 0x0C000118 (0xffff9bbc8118): 0x00000001
    root@tgu:~# devmem2 0x0C000218 w
    /dev/mem opened.
    Memory mapped at address 0xffffa184b000.
    Read at address 0x0C000218 (0xffffa184b218): 0x00000000
    root@tgu:~# devmem2 0x0C000318 w
    /dev/mem opened.
    Memory mapped at address 0xffff92fd0000.
    Read at address 0x0C000318 (0xffff92fd0318): 0x00000000
    root@tgu:~# devmem2 0x0C000418 w
    /dev/mem opened.
    Memory mapped at address 0xffffa3542000.
    Read at address 0x0C000418 (0xffffa3542418): 0x00000001
    root@tgu:~#
    root@tgu:~# devmem2 0x0C000118 w
    /dev/mem opened.
    Memory mapped at address 0xffff839f5000.
    Read at address 0x0C000118 (0xffff839f5118): 0x00009801
    root@tgu:~# devmem2 0x0C000218 w
    /dev/mem opened.
    Memory mapped at address 0xffffa8491000.
    Read at address 0x0C000218 (0xffffa8491218): 0x00000000
    root@tgu:~# devmem2 0x0C000318 w
    /dev/mem opened.
    Memory mapped at address 0xffff9a59b000.
    Read at address 0x0C000318 (0xffff9a59b318): 0x00000000
    root@tgu:~# devmem2 0x0C000418 w
    /dev/mem opened.
    Memory mapped at address 0xffffac149000.
    Read at address 0x0C000418 (0xffffac149418): 0x00009801
    root@tgu:~#

    Best Regards,

    Dohyeon.kim

  • Hi,

    When I disable Native Ethernet (use EthFW), Packet TX/RX works fine.

    SerDes is configured by Linux right? by default SerDes is configured from u-boot/Linux. ETHFW will not configure the SerDes.

    Can you please confirm, SerDes configuration in case ETHFW application.

    EthFW's PHY driver and Native linux driver are the same.

    Have you verified PHY registers configuration?

    Have you confirmed PHY registers?

    Also, can you change the "ADVERTISE_SGMII" in am65-cpsw-nuss driver to 0x9801 instead of 0x1 and check once.

    Best Regards,
    Sudheer

  • Hi,

    Can you please confirm, SerDes configuration in case ETHFW application.

    => Where should I check EthFW's configuration?

    Have you confirmed PHY registers?

    => I checked the register related to Link, and they both had the same value. I'll check the rest of the register as well.

    Also, can you change the "ADVERTISE_SGMII" in am65-cpsw-nuss driver to 0x9801 instead of 0x1 and check once.

    => I checked by setting AM65_CPSW_SGMII_MR_ADV_ABILITY_REG to 0x9801 in am65-cpsw-nuss.c as below, but it doesn't work TX/RX.

    Best Regards,

    Dohyeon.kim

  • Hi,

    Can you please confirm, SerDes configuration in case ETHFW application.

    => Where should I check EthFW's configuration?

    I am asking who is configured the SerDes, is it ETHFW or U-boot or Linux.
    By default TI SDK enables SerDes for QSGMII + PCIe. as per your use case SerDes should be configured in USB + SGMII
    If SerDes is configure form U-boot/Linux then no issue with SerDes configuration even in Native Linux Driver mode.

    Have you confirmed PHY registers?

    => I checked the register related to Link, and they both had the same value. I'll check the rest of the register as well.

    If PHY side Link is Up means, it might be link up with Link partner.
    Please check the PHY configuration registers, whether it is enabled SGMII mode or not.

    Also, can you change the "ADVERTISE_SGMII" in am65-cpsw-nuss driver to 0x9801 instead of 0x1 and check once.

    => I checked by setting AM65_CPSW_SGMII_MR_ADV_ABILITY_REG to 0x9801 in am65-cpsw-nuss.c as below, but it doesn't work TX/RX.

    If still you are not observing Rx packet counts means, then mostly issue with PHY.
    MAC side we configured the register values are as expected, Also if SerDes configured form U-boot/Linux in working case as Native Linux Driver use-case then SerDes side also no issue.
    Only variable will be PHY Driver using in case of ETHFW vs Native Linux Driver.

    Best Regards,
    Sudheer

  • Hi,

    When I disabled Native Ethernet (when EthFW is applied), the DTS in Kernel is set as follows.

    Kernel DTS has no settings for CPSW5G.

    &serdes_ln_ctrl {
            idle-states = <J7200_SERDES0_LANE0_IP3_UNUSED>, <J7200_SERDES0_LANE1_QSGMII_LANE4>,
                          <J7200_SERDES0_LANE2_QSGMII_LANE1>, <J7200_SERDES0_LANE3_USB>;
    };
    
    &serdes0 {
            #address-cells = <1>;
            #size-cells = <0>;
    
            serdes0_sgmii_link: phy@1 {
                    reg = <1>;
                    cdns,num-lanes = <2>;
                    #phy-cells = <0>;
                    cdns,phy-type = <PHY_TYPE_SGMII>;
                    resets = <&serdes_wiz0 2>, <&serdes_wiz0 3>;
            };
    
            serdes0_usb_link: phy@2 {
                    reg = <3>;
                    cdns,num-lanes = <1>;
                    #phy-cells = <0>;
                    cdns,phy-type = <PHY_TYPE_USB3>;
                    resets = <&serdes_wiz0 4>;
            };
    };
    
    

    I have checked the SGMII control, SGMII status, and SGMII advertise registers in the PHY but could not find any errors.

    I think register comparison is possible next week when EthFW activation.

    Since the PHY driver used in EthFW has been applied to the Kernel, I expect there to be no differences. However, I will dump all the registers and compare them next week.

    Best Regards,

    Dohyeon.kim

  • Hi,

    When I disabled Native Ethernet (when EthFW is applied), the DTS in Kernel is set as follows.

    Kernel DTS has no settings for CPSW5G.

    It seems you are configuring the SerDes from Linux even in case of ETHFW.
    So, SerDes wise there should not be any change required as ETHFW case SGMII is working as expected.

    We have also confirmed CPSW port registers, SGMII control and Status registers Link us up from MAC side.

    So, only variable to confirm is PHY driver. In case of ETHFW PHY will be configured from PDK enet module and PHY driver has to be integrated into it.
    Please re-confirm the PHY driver used in ETHFW and Native Linux is same or not, also the PHY configuration.

    I think register comparison is possible next week when EthFW activation.

    Since the PHY driver used in EthFW has been applied to the Kernel, I expect there to be no differences. However, I will dump all the registers and compare them next week.

    Please check and let us know the update.

    Best Regards,
    Sudheer

  • Hi,

    The PHY ID (eth1 <-> eth2) was incorrectly set and no traffic was sent.
    Thank you for your help.

    You can close the issue.

    Best Regards,

    Dohyeon.kim

  • Hi, 

    Thank you for confirming. 

    Will be closing the thread. 

    Best Regards, 

    Sudheer