DRA821U-Q1: How config Ethernet on Linux?

Part Number: DRA821U-Q1
Other Parts Discussed in Thread: DRA821

Tool/software:

Hi,

   We use our custom board and ethernet information is as below:

 Our sdk version is 7.3,

 How to config ethernet? 

 In addition, how to get MCU2_0 log info, we can get it.

 Please help us

 Thanks.

  • Hi,

    I am assuming here that you are using ethfw as ethernet controller here. Can you please conform this.

    Plesae configure the tehrnet in the file "ethfw/apps/app_remoteswitchcfg_server/mcu_2_0/main_tirtos.c"

    For more details, please see this : software-dl.ti.com/.../ethfw_c_ug_top.html

     In addition, how to get MCU2_0 log info, we can get it.

    You should be able to get the logs with the command "cat /sys/kernel/debug/remoteproc/remoteproc*/trace0"

    Also if possible, please consider switching to a newer version as many features which are added in newer version will not be supported on SDK 7.3

    Regards,
    Tanmay

  • Hi,

       Yes, we use ethfw image as ethernet controller. 

        Initially, we were using SDK version 10.0, but MCU2_0 failed to start properly. We then switched to SDK 8.6.3, but encountered the same issue. When we switched to SDK 7.3, MCU2_0 was able to start normally. However, when checking the content of the file /sys/kernel/debug/remoteproc/remoteproc2/trace0, it only displayed a bunch of asterisks (*) and no other information.

        Based on the SDK 7.3 version, the ifconfig command can only see the eth0 device, and cannot see any other eth* device.

        Therefore, we would like to confirm the details of the network configuration with you.

  • Hi,

        we build ehtfw image, get "app_remoteswitchcfg_server_strip.xer5f", and create softlink “j7200-main-r5f0_0-fw -> ethfw/app_remoteswitchcfg_server_strip.xer5f”

  • Hi,

     Initially, we were using SDK version 10.0, but MCU2_0 failed to start properly.

    MCU2_0 suppose to run in SDK 10.0.

    7.3 is very older SDK, there was many bug fixes and feature improvements in latest SDK.

    It is recommended to use Latest SDK always.

      we build ehtfw image, get "app_remoteswitchcfg_server_strip.xer5f", and create softlink “j7200-main-r5f0_0-fw -> ethfw/app_remoteswitchcfg_server_strip.xer5f”

    CPSW Port configuration is done in ETHFW, and it will not configure the SerDes.
    Also, by default ETHFW enables Port in QSGMII mode as per TI EVM. You need to make board specific changes in ETHFW.
    Please refer to ETHFW Porting Guide for updating as per custom board specific.

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-j7200/10_00_00_03/exports/docs/ethfw/docs/user_guide/ethfw_c_porting_top.html

    Where SerDes is configured from U-boot. If u-boot is not enabled or not configuring the SerDes then Linux is configuring the SerDes.
    Please update SerDes node as first 3 lanes (Lane: 0,1,2) in SGMII and and 4the lane (Lane:3) in USB in u-boot or Linux.

    Best Regards,
    Sudheer

  • Hi,

        Today, we are using the SDK 10.0 version and initiating it in SBL+mmcsd mode.

        1. Under the Linux directory, configure the device tree file "k3-j7200-common-proc-board.dts", and then run "make linux"

    diff --git a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts
    index 4a3211323..ca3b9a75d 100644
    --- a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts
    +++ b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts
    @@ -34,6 +34,10 @@ aliases {
                    serial5 = &main_uart3;
                    mmc0 = &main_sdhci0;
                    mmc1 = &main_sdhci1;
    +               ethernet1 = "/bus@100000/ethernet@c000000/ethernet-ports/port@1";
    +               ethernet2 = "/bus@100000/ethernet@c000000/ethernet-ports/port@2";
    +               ethernet3 = "/bus@100000/ethernet@c000000/ethernet-ports/port@3";
    +               ethernet4 = "/bus@100000/ethernet@c000000/ethernet-ports/port@4";
            };
     
            chosen {
    @@ -262,6 +266,13 @@ J721E_IOPAD(0x3c, PIN_INPUT, 0) /* (W16) MCAN3_RX */
                            J721E_IOPAD(0x38, PIN_OUTPUT, 0) /* (Y21) MCAN3_TX */
                    >;
            };
    +
    +       mdio0_pins_default: mdio0-default-pins {
    +               pinctrl-single,pins = <
    +                       J721E_IOPAD(0x00a8, PIN_OUTPUT, 5) /* (W19) UART8_TXD.MDIO0_MDC */
    +                       J721E_IOPAD(0x00a4, PIN_INPUT, 5) /* (W14) UART8_RXD.MDIO0_MDIO */
    +               >;
    +       };
     };
     
     &main_pmx1 {
    @@ -440,6 +451,20 @@ &serdes_refclk {
            clock-frequency = <100000000>;
     };
     
    +/*
    +&serdes_ln_ctrl {
    +    idle-states = <J7200_SERDES0_LANE0_SGMII_LANE3>, <J7200_SERDES0_LANE1_SGMII_LANE4>,
    +              <J7200_SERDES0_LANE2_SGMII_LANE1>, <J7200_SERDES0_LANE3_USB>;
    +};
    +*/
    +
    +
    +&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 {
            serdes0_pcie_link: phy@0 {
                    reg = <0>;
    @@ -454,7 +479,7 @@ serdes0_qsgmii_link: phy@1 {
                    cdns,num-lanes = <1>;
                    #phy-cells = <0>;
                    cdns,phy-type = <PHY_TYPE_QSGMII>;
    -               resets = <&serdes_wiz0 3>;
    +               resets = <&serdes_wiz0 2>, <&serdes_wiz0 3>;
            };
     };
     
    @@ -502,3 +527,72 @@ K3_TS_OFFSET(25, 17)
                            >;
            };
     };
    +
    +
    +&cpsw0 {
    +       status = "okay";
    +};
    +
    +&cpsw0_port1 {
    +       status = "okay";
    +       phy-handle = <&cpsw5g_phy0>;
    +       phy-mode = "qsgmii";
    +       mac-address = [00 00 00 00 00 00];
    +       phys = <&cpsw0_phy_gmii_sel 1>;
    +};
    +
    +&cpsw0_port2 {
    +       status = "okay";
    +       phy-handle = <&cpsw5g_phy1>;
    +       phy-mode = "qsgmii";
    +       mac-address = [00 00 00 00 00 00];
    +       phys = <&cpsw0_phy_gmii_sel 2>;
    +};
    +
    +&cpsw0_port3 {
    +       status = "okay";
    +       phy-handle = <&cpsw5g_phy2>;
    +       phy-mode = "qsgmii";
    +       mac-address = [00 00 00 00 00 00];
    +       phys = <&cpsw0_phy_gmii_sel 3>;
    +};
    +
    +&cpsw0_port4 {
    +       status = "okay";
    +       phy-handle = <&cpsw5g_phy3>;
    +       phy-mode = "qsgmii";
    +       mac-address = [00 00 00 00 00 00];
    +       phys = <&cpsw0_phy_gmii_sel 4>;
    +};
    +
    +&cpsw5g_mdio {
    +       status = "okay";
    +       pinctrl-names = "default";
    +       pinctrl-0 = <&mdio0_pins_default>;
    +       reset-gpios = <&exp2 17 GPIO_ACTIVE_LOW>;
    +       reset-post-delay-us = <120000>;
    +       #address-cells = <1>;
    +       #size-cells = <0>;
    +
    +       cpsw5g_phy0: ethernet-phy@16 {
    +               reg = <16>;
    +       };
    +       cpsw5g_phy1: ethernet-phy@17 {
    +               reg = <17>;
    +       };
    +       cpsw5g_phy2: ethernet-phy@18 {
    +               reg = <18>;
    +       };
    +       cpsw5g_phy3: ethernet-phy@19 {
    +               reg = <19>;
    +       };
    +};
    +
    +&exp2 {
    +       qsgmii-line-hog {
    +               gpio-hog;
    +               gpios = <16 GPIO_ACTIVE_HIGH>;
    +               output-low;
    +               line-name = "qsgmii-pwrdn-line";
    +       };
    +};
    

        2. build sbl image: 

    cd ${PDK}/packages/ti/build
    make sbl_lib_mmcsd BOARD=j7200_evm
    make sbl_mmcsd_img BOARD=j7200_evm

        3. build pdk

    cd ${PDK}/packages/ti/build
    make -s allcores BOARD=j7200_evm

        4. build lateapps

    cd ${PDK}/packages/ti/boot/sbl/example/boot_app/scripts/
    ./generate_lateapps.sh j7200_evm

        5. build can_boot_app

    cd mcusw/build
    make -s -j can_boot_app_mcu_rtos BOARD=j7200_evm SOC=j7200 BUILD_PROFILE=release CORE=mcu1_0 BUILD_OS_TYPE=freertos BOOTMODE=mmcsd HLOSBOOT=linux BISTFUNC=disabled

        6. build ethfw

    cd ethfw
    make -j ethfw_all BUILD_SOC_LIST=J7200

        7.  copy images

    # boot partition
    sbl_mmcsd_img_mcu1_0_release.tiimage   ----> tiboot3.bin
    tifs.bin
    can_boot_app_mcu_rtos_mcu1_0_release.appimage   ----> app
    multicore_MCU2_0_MCU2_1_stage1.appimage   ----> lateapp1
    atf_optee.appimage
    tidtb_linux.appimage
    tikernelimage_linux.appimage
    
    # rootfs
    app_remoteswitchcfg_server_strip.xer5f: lib/firmware/ti-eth/j7200/
    // j7200-main-r5f0_0-fw -> /usr/lib/firmware/ti-eth/j7200/app_remoteswitchcfg_server_strip.xer5f
    
    # update linux modules 
    make linux_install

       8. power on with the log

    OTICE:  BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty
    NOTICE:  BL31: Built : 16:09:05, Feb  9 2024
    I/TC: 
    I/TC: OP-TEE version: 4.2.0-dev (gcc version 13.3.0 (GCC)) #1 Fri Apr 12 09:51:21 UTC 2024 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: GIC redistributor base address not provided
    I/TC: Assuming default GIC group status and modifier
    I/TC: SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    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
    I/TC: Secondary CPU 1 initializing
    I/TC: Secondary CPU 1 switching to normal world boot
    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.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 6.6.32-gf23640cf4516-dirty (zhangcl@UItogether) (aarch64-oe-linux-gcc (GCC) 13.3.0, 4
    [    0.000000] KASLR disabled due to lack of seed
    [    0.000000] Machine model: Texas Instruments J7200 EVM
    [    0.000000] efi: UEFI not found.
    [    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
    [    0.000000] OF: reserved mem: 0x000000009e800000..0x000000009fffffff (24576 KiB) nomap non-reusable optee@9e800
    [    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-mem0
    [    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-memory0
    [    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-mem0
    [    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-memory0
    [    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-mem0
    [    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-memory0
    [    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-mem0
    [    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-memory0
    [    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a47fffff (8192 KiB) nomap non-reusable ipc-memorie0
    [    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-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 s42920 r8192 d30808 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,115200n8 root=/dev/mmcblk1p2 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:all(zero), 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: 3896276K/4194304K available (11968K kernel code, 1250K rwdata, 4032K rodata, 2432K init, 5)
    [    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: 4407s
    [    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.000184] Console: colour dummy device 80x25
    [    0.000211] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=80)
    [    0.000217] pid_max: default: 32768 minimum: 301
    [    0.000257] LSM: initializing lsm=capability,integrity
    [    0.000315] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.000333] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.001204] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.001253] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.001376] rcu: Hierarchical SRCU implementation.
    [    0.001379] rcu:     Max phase no-delay instances is 1000.
    [    0.001559] Platform MSI: msi-controller@1820000 domain created
    [    0.001668] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.001787] EFI services will not be available.
    [    0.001899] smp: Bringing up secondary CPUs ...
    [    0.010417] Detected PIPT I-cache on CPU1
    [    0.010465] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.010480] GICv3: CPU1: using allocated LPI pending table @0x0000000880060000
    [    0.010512] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.010570] smp: Brought up 1 node, 2 CPUs
    [    0.010574] SMP: Total of 2 processors activated.
    [    0.010577] CPU features: detected: 32-bit EL0 Support
    [    0.010579] CPU features: detected: CRC32 instructions
    [    0.010613] CPU: All CPU(s) started at EL2
    [    0.010615] alternatives: applying system-wide alternatives
    [    0.011449] devtmpfs: initialized
    [    0.016413] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.016425] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [    0.017039] pinctrl core: initialized pinctrl subsystem
    [    0.017308] DMI not present or invalid.
    [    0.017640] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.018269] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.018375] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.018497] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.018533] audit: initializing netlink subsys (disabled)
    [    0.018640] audit: type=2000 audit(0.016:1): state=initialized audit_enabled=0 res=1
    [    0.018838] thermal_sys: Registered thermal governor 'step_wise'
    [    0.018842] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.018862] cpuidle: using governor menu
    [    0.018931] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.018962] ASID allocator initialised with 65536 entries
    [    0.027285] platform a40000.pinctrl: Fixed dependency cycle(s) with /bus@100000/pinctrl@a40000/mcu-cpsw-cpts
    [    0.028263] Modules: 27680 pages in range for non-PLT usage
    [    0.028268] Modules: 519200 pages in range for PLT usage
    [    0.028704] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.028708] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.028711] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.028713] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.028715] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.028717] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.028719] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.028721] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.029508] k3-chipinfo 43000014.chipid: Family:J7200 rev:SR2.0 JTAGID[0x1bb6d02f] Detected
    [    0.030350] iommu: Default domain type: Translated
    [    0.030356] iommu: DMA domain TLB invalidation policy: strict mode
    [    0.030493] SCSI subsystem initialized
    [    0.030663] usbcore: registered new interface driver usbfs
    [    0.030676] usbcore: registered new interface driver hub
    [    0.030690] usbcore: registered new device driver usb
    [    0.030927] pps_core: LinuxPPS API ver. 1 registered
    [    0.030930] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.030936] PTP clock support registered
    [    0.031039] EDAC MC: Ver: 3.0.0
    [    0.031304] scmi_core: SCMI protocol bus registered
    [    0.031446] FPGA manager framework
    [    0.031488] Advanced Linux Sound Architecture Driver Initialized.
    [    0.031915] vgaarb: loaded
    [    0.032099] clocksource: Switched to clocksource arch_sys_counter
    [    0.032223] VFS: Disk quotas dquot_6.6.0
    [    0.032239] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.035387] NET: Registered PF_INET protocol family
    [    0.035624] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.037090] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    0.037119] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.037128] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.037269] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
    [    0.038384] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.038525] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.038578] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.038711] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.039044] RPC: Registered named UNIX socket transport module.
    [    0.039048] RPC: Registered udp transport module.
    [    0.039051] RPC: Registered tcp transport module.
    [    0.039052] RPC: Registered tcp-with-tls transport module.
    [    0.039054] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.039060] NET: Registered PF_XDP protocol family
    [    0.039074] PCI: CLS 0 bytes, default 64
    [    0.039767] Initialise system trusted keyrings
    [    0.039880] workingset: timestamp_bits=46 max_order=20 bucket_order=0
    [    0.040036] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.040199] NFS: Registering the id_resolver key type
    [    0.040216] Key type id_resolver registered
    [    0.040219] Key type id_legacy registered
    [    0.040229] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.040232] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.053890] Key type asymmetric registered
    [    0.053894] Asymmetric key parser 'x509' registered
    [    0.053927] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
    [    0.053931] io scheduler mq-deadline registered
    [    0.053934] io scheduler kyber registered
    [    0.053958] io scheduler bfq registered
    [    0.055731] pinctrl-single 4301c000.pinctrl: 13 pins, size 52
    [    0.055837] pinctrl-single 4301c038.pinctrl: 2 pins, size 8
    [    0.055920] pinctrl-single 4301c068.pinctrl: 59 pins, size 236
    [    0.056198] pinctrl-single 4301c174.pinctrl: 8 pins, size 32
    [    0.056334] pinctrl-single 104200.pinctrl: 20 pins, size 80
    [    0.056394] pinctrl-single 104280.pinctrl: 8 pins, size 32
    [    0.056493] pinctrl-single 11c000.pinctrl: 67 pins, size 268
    [    0.056732] pinctrl-single 11c11c.pinctrl: 3 pins, size 12
    [    0.057132] pinctrl-single a40000.pinctrl: 512 pins, size 2048
    [    0.060577] Serial: 8250/16550 driver, 12 ports, IRQ sharing enabled
    [    0.065723] loop: module loaded
    [    0.066285] megasas: 07.725.01.00-rc1
    [    0.068062] tun: Universal TUN/TAP device driver, 1.6
    [    0.068684] VFIO - User Level meta-driver version: 0.3
    [    0.069296] usbcore: registered new interface driver usb-storage
    [    0.069623] i2c_dev: i2c /dev entries driver
    [    0.070252] sdhci: Secure Digital Host Controller Interface driver
    [    0.070255] sdhci: Copyright(c) Pierre Ossman
    [    0.070379] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.070721] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.070895] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.071327] usbcore: registered new interface driver usbhid
    [    0.071330] usbhid: USB HID core driver
    [    0.072173] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.072522] optee: probing for conduit method.
    [    0.072538] optee: revision 4.2 (12d7c4ee)
    [    0.088980] optee: dynamic shared memory is enabled
    [    0.089411] random: crng init done
    [    0.089468] optee: initialized driver
    [    0.090672] NET: Registered PF_PACKET protocol family
    [    0.090711] Key type dns_resolver registered
    [    0.094220] registered taskstats version 1
    [    0.094414] Loading compiled-in X.509 certificates
    [    0.101640] ti-sci 44083000.system-controller: ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    [    0.165531] omap_i2c 42120000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.166221] pca953x 1-0021: supply vcc not found, using dummy regulator
    [    0.166279] pca953x 1-0021: using no AI
    [    1.172102] omap_i2c 2000000.i2c: timeout waiting for bus ready
    [    1.172110] pca953x 1-0021: failed writing register
    [    1.172172] pca953x: probe of 1-0021 failed with error -16
    [    1.172326] pca953x 1-0020: supply vcc not found, using dummy regulator
    [    1.172381] pca953x 1-0020: using no AI
    [    2.180102] omap_i2c 2000000.i2c: timeout waiting for bus ready
    [    2.180108] pca953x 1-0020: failed writing register
    [    2.180160] pca953x: probe of 1-0020 failed with error -16
    [    2.180326] pca953x 1-0022: supply vcc not found, using dummy regulator
    [    2.180372] pca953x 1-0022: using AI
    [    3.188102] omap_i2c 2000000.i2c: timeout waiting for bus ready
    [    3.188110] pca953x 1-0022: failed writing register
    [    3.188164] pca953x: probe of 1-0022 failed with error -16
    [    3.188205] omap_i2c 2000000.i2c: bus 1 rev0.12 at 400 kHz
    [    3.188796] pca953x 2-0020: supply vcc not found, using dummy regulator
    [    3.188850] pca953x 2-0020: using no AI
    [    4.200104] omap_i2c 2010000.i2c: timeout waiting for bus ready
    [    4.200111] pca953x 2-0020: failed writing register
    [    4.200169] pca953x: probe of 2-0020 failed with error -16
    [    4.200215] omap_i2c 2010000.i2c: bus 2 rev0.12 at 400 kHz
    [    4.200339] ti-sci-intr 42200000.interrupt-controller: Interrupt Router 137 domain created
    [    4.200425] ti-sci-intr bus@100000:interrupt-controller@a00000: Interrupt Router 131 domain created
    [    4.200505] ti-sci-intr 310e0000.interrupt-controller: Interrupt Router 213 domain created
    [    4.200850] ti-sci-inta 33d00000.msi-controller: Interrupt Aggregator domain 209 created
    [    4.203652] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,32] sci-dev-id:235
    [    4.203661] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    4.203664] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66349100, num_proxies:64
    [    4.206699] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[120,200] sci-dev-id:211
    [    4.206711] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    4.206714] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66349100, num_proxies:64
    [    4.207394] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 268, base_baud = 6000000) is a 8250
    [    4.208029] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 269, base_baud = 3000000) is a 8250
    [    4.208062] printk: console [ttyS2] enabled
    [    5.845274] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 270, base_baud = 3000000) is a 8250
    [    5.854502] 2830000.serial: ttyS5 at MMIO 0x2830000 (irq = 271, base_baud = 3000000) is a 8250
    [    5.864337] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    5.908104] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    5.916102] mdio_bus 46000f00.mdio: MDIO device at address 0 is missing.
    [    5.922811] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x60
    [    5.935663] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    5.942873] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    5.949093] pps pps0: new PPS source ptp0
    [    5.953252] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
    [    5.963610] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
    [    5.972404] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc8900
    [    5.972585] mmc0: CQHCI version 5.10
    [    5.982522] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc8900
    [    6.016151] tps6594 0-0048: error -EREMOTEIO: Failed to set PMIC state
    [    6.020651] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
    [    6.022704] tps6594: probe of 0-0048 failed with error -121
    [    6.035854] tps6594 0-004c: error -EREMOTEIO: Failed to set PMIC state
    [    6.042389] tps6594: probe of 0-004c failed with error -121
    [    6.049810] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [    6.060018] ti-udma 31150000.dma-controller: Channels: 50 (tchan: 25, rchan: 25, gp-rflow: 8)
    [    6.071730] spi-nor spi0.0: unrecognized JEDEC id bytes: 80 00 00 00 00 00
    [    6.079049] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    6.109811] mmc0: Command Queue Engine enabled
    [    6.114265] mmc0: new HS400 MMC card at address 0001
    [    6.119557] mmcblk0: mmc0:0001 G1M15L 29.6 GiB
    [    6.124121] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    6.124992] mmcblk0boot0: mmc0:0001 G1M15L 31.5 MiB
    [    6.132172] mdio_bus 46000f00.mdio: MDIO device at address 0 is missing.
    [    6.137336] mmcblk0boot1: mmc0:0001 G1M15L 31.5 MiB
    [    6.143391] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x60
    [    6.148846] mmcblk0rpmb: mmc0:0001 G1M15L 4.00 MiB, chardev (239:0)
    [    6.161114] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    6.174476] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    6.180675] pps pps0: new PPS source ptp1
    [    6.184848] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
    [    6.200865] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    6.211734] debugfs: Directory 'pd:49' with parent 'pm_genpd' already present!
    [    6.211770] mmc1: CQHCI version 5.10
    [    6.220255] debugfs: Directory 'pd:35' with parent 'pm_genpd' already present!
    [    6.230183] clk: Disabling unused clocks
    [    6.245976] ALSA device list:
    [    6.248944]   No soundcards found.
    [    6.262684] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    6.270305] Waiting for root device /dev/mmcblk1p2...
    [    6.325148] mmc1: new ultra high speed SDR104 SDHC card at address 5048
    [    6.332169] mmcblk1: mmc1:5048 SD32G 29.7 GiB
    [    6.338332]  mmcblk1: p1 p2
    [    6.498323] EXT4-fs (mmcblk1p2): recovery complete
    [    6.504200] EXT4-fs (mmcblk1p2): mounted filesystem f6448c09-6efd-4714-a891-73af06bb50bf r/w with ordered data.
    [    6.516304] VFS: Mounted root (ext4 filesystem) on device 179:98.
    [    6.525664] devtmpfs: mounted
    [    6.530126] Freeing unused kernel memory: 2432K
    [    6.534758] Run /sbin/init as init process
    [    6.711055] systemd[1]: System time before build time, advancing clock.
    [    6.748612] NET: Registered PF_INET6 protocol family
    [    6.754132] Segment Routing with IPv6
    [    6.757810] In-situ OAM (IOAM) with IPv6
    [    6.784401] systemd[1]: systemd 255.4^ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SEC)
    [    6.816177] systemd[1]: Detected architecture arm64.
    
    Welcome to Arago 2023.10!
    
    [    6.838467] systemd[1]: Hostname set to <j7200-evm>.
    [    7.029302] systemd[1]: /usr/lib/systemd/system/bt-enable.service:9: Standard output type syslog is obsolete, .
    [    7.091792] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, a.
    [    7.140279] systemd[1]: Queued start job for default target Graphical Interface.
    [    7.171102] systemd[1]: Created slice Slice /system/getty.
    [  OK  ] Created slice Slice /system/getty.
    [    7.193389] systemd[1]: Created slice Slice /system/modprobe.
    [  OK  ] Created slice Slice /system/modprobe.
    [    7.217269] systemd[1]: Created slice Slice /system/serial-getty.
    [  OK  ] Created slice Slice /system/serial-getty.
    [    7.240982] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    7.264350] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [    7.288265] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    7.312187] systemd[1]: Expecting device /dev/ttyS2...
             Expecting device /dev/ttyS2...
    [    7.328221] systemd[1]: Reached target Path Units.
    [  OK  ] Reached target Path Units.
    [    7.344162] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    7.364154] systemd[1]: Reached target Slice Units.
    [  OK  ] Reached target Slice Units.
    [    7.380165] systemd[1]: Reached target Swaps.
    [  OK  ] Reached target Swaps.
    [    7.431039] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    7.452274] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    7.475641] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    7.496382] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    7.520763] systemd[1]: Listening on Journal Audit Socket.
    [  OK  ] Listening on Journal Audit Socket.
    [    7.544506] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    7.564500] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    7.584557] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    7.608546] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    7.628414] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    7.648437] systemd[1]: Listening on User Database Manager Socket.
    [  OK  ] Listening on User Database Manager Socket.
    [    7.696326] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    7.718393] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    7.760533] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    7.776410] systemd[1]: Kernel Trace File System was skipped because of an unmet condition check (ConditionPat.
    [    7.791923] systemd[1]: Mounting Temporary Directory /tmp...
             Mounting Temporary Directory /tmp...
    [    7.831989] systemd[1]: Starting Create List of Static Device Nodes...
             Starting Create List of Static Device Nodes    7.841137] systemd[1]: Starting Load Kernel Module configf.
    m...
             Starting Load Kernel Module configfs...
    [    7.882538] systemd[1]: Starting Load Kernel Module drm...
             Starting Load Kernel Module drm...
    [    7.908765] systemd[1]: Starting Load Kernel Module fuse...
             Starting Load Kernel Module fuse...
    [    7.937073] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    7.946204] fuse: init (API version 7.39)
    [    7.956400] systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (Cond.
    [    7.972910] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    8.020684] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    8.051129] systemd-journald[105]: Collecting audit messages is enabled.
    [    8.052582] systemd[1]: Starting Generate network units from Kernel command line...
             Starting Generate network units from Kernel command line...
    [    8.107225] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    8.133447] systemd[1]: Starting Coldplug All udev Devices...
    [    8.139795] EXT4-fs (mmcblk1p2): re-mounted f6448c09-6efd-4714-a891-73af06bb50bf r/w. Quota mode: none.
             Starting Coldplug All udev Devices...
    [    8.179653] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    8.196648] 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 FUSE Control File System...
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
             Starting Apply Kernel Variables...
             Starting Create Static Device Nodes in /dev gr[    8.550496] systemd-journald[105]: Received client requ.
    acefully...
    [  OK  ] Finished Coldplug All udev Devices.
    [  OK  ] Mounted FUSE Control File System.
    [  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 gracefully.
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Finished Create Static Device Nodes in /dev.
    [  OK  ] Reached target Preparation for Local File Systems.
             Mounting /var/volatile...
    [    8.797584] audit: type=1334 audit(1709054766.084:2): prog-id=6 op=LOAD
    [    8.804580] audit: type=1334 audit(1709054766.092:3): prog-id=7 op=LOAD
             Starting Rule-based Manager for Device Events and Files...
    [  OK  ] Mounted /var/volatile.
             Starting Load/Save OS Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Finished Load/Save OS Random Seed.
    [  OK  ] Started Rule-based Manager for Device Events and Files.
    [  OK  ] Finished Create Volatile Files and Directories.
    [    9.010766] audit: type=1334 audit(1709054766.296:4): prog-id=8 op=LOAD
    [FAILED] Failed to start Network Name Resolution.
    [    9.032515] audit: type=1334 audit(1709054766.320:5): prog-id=8 op=UNLOAD
    See 'systemctl status systemd-resolved.service' for details.
    [  OK  ] Reached target Host and Network Name Lookups.
    [    9.058525] audit: type=1334 audit(1709054766.344:6): prog-id=9 op=LOAD
    [FAILED] Failed to start Network Time Synchronization.
    [    9.080397] audit: type=1334 audit(1709054766.368:7): prog-id=9 op=UNLOAD
    See 'systemctl status systemd-timesyncd.service' for details.
    [  OK  ] Reached target System Time Set.
             Starting Record System Boot/Shutdown in UTMP...
    [  OK  ] Found device /dev/ttyS2.
    [  OK  ] Finished Record System Boot/Shutdown in UTMP.
    [    9.217196] audit: type=1334 audit(1709054766.500:8): prog-id=10 op=LOAD
    [FAILED] Failed to start Network Name Resolution.
    [    9.232434] audit: type=1334 audit(1709054766.520:9): prog-id=10 op=UNLOAD
    See 'systemctl status systemd-resolved.service' for details.
    [    9.254564] audit: type=1334 audit(1709054766.540:10): prog-id=11 op=LOAD
    [FAILED] Failed to start Network Time Synchronization.
    [    9.267630] audit: type=1334 audit(1709054766.552:11): prog-id=11 op=UNLOAD
    See 'systemctl status systemd-timesyncd.service' for details.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timer Units.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
             Starting Docker Socket for the API...
    [  OK  ] Listening on dropbear.socket.
    [  OK  ] Listening on PC/SC Smart Card Daemon Activation Socket.
             Starting Weston socket...
    [FAILED] Failed to start D-Bus System Message Bus.
    See 'systemctl status dbus-broker.service' for details.
             Starting Reboot and dump vmcore via kexec...
    [  OK  ] Listening on Docker Socket for the API.
    [  OK  ] Listening on Weston socket.
    [  OK  ] Finished Reboot and dump vmcore via kexec.
    [  OK  ] Reached target Socket Units.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Job spooling tools.
    [    9.693562] CAN device driver interface
    [  OK  ] Started Periodic Command Scheduler.
             Starting Print notice about GPLv3 packages...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
    [  OK  ] Started irqbalance daemon.
             Starting Telephony service...
             Starting Expand the rootfs partiti…to full size of the boot device....
    [  OK  ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
    [FAILED] Failed to start User Login Management.
    See 'systemctl status systemd-logind.service' for details.
    [FAILED] Failed to start Network Name Resolution.
    See 'systemctl status systemd-resolved.service' for details.
             Starting Avahi mDNS/DNS-SD Stack...
    [FAILED] Failed to start Network Time Synchronization.
    See 'systemctl status systemd-timesyncd.service' for details.
             Starting Telnet Server...
    [  OK  ] Finished IPv6 Packet Filtering Framework.
    [  OK  ] Finished IPv4 Packet Filtering Framework.
    [   10.034329] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0))
    [   10.056647] at24 0-0050: supply vcc not found, using dummy regulator
    [   10.070590] m_can_platform 2701000.can: m_can device registered (irq=531, version=32)
    [  OK  ] Reached target Preparation for Network.
             Starting Load Kernel Module drm...
             Starting Network Configuration...
    [FAILED] Failed to start Network Name Reso[   10.139979] platform 41000000.r5f: configured R5F for IPC-only mode
    lution.
    See 'systemctl status systemd-resolved.service' for details.
    [   10.161907] m_can_platform 40528000.can: m_can device registered (irq=532, version=32)
    [   10.176338] platform 41000000.r5f: assigned reserved memory node r5f-dma-memory@a0000000
    [FAILED] Failed to start Network Time Synchronization.
    See 'systemctl status systemd-timesyncd.service' for details.
    [  OK  ] Finished Telnet Server.
    [  OK  ] Finished Load Kernel Module drm.
    [FAILED] Failed to start D-Bus System Mess[   10.222776] remoteproc remoteproc0: 41000000.r5f is available
    age Bus.
    See 'systemctl status dbus-broker.service' for details.
    [FAILED] Failed to start User Login Management.
    See 'systemctl status systemd-logind.service' for de[   10.248202] remoteproc remoteproc0: attaching to 41000000.f
    tails.
    [   10.257627] m_can_platform 40568000.can: m_can device registered (irq=534, version=32)
    [FAILED] Failed to start Network Name Reso[   10.272045] Unable to handle kernel paging request at virtual addresf
    lution.
    See 'systemctl status systemd-resolved.service' fo[   10.275311] ti-udma 285c0000.dma-controller: chan1: is runni!
    [   10.290531] Mem abort info:
    r details.
    [FAILED] Failed to start Network Time Sync[   10.295674]   ESR = 0x0000000096000006
    hronization.
    See 'systemctl status systemd-timesyncd.servi[   10.305569]   EC = 0x25: DABT (current EL), IL = 32 bits
    ce' for details.
    [   10.315585]   SET = 0, FnV = 0
    [   10.320335]   EA = 0, S1PTW = 0
    [   10.323524]   FSC = 0x06: level 2 translation fault
    [   10.328443] Data abort info:
    [FAILED] Failed to start D-Bus System Mess[   10.331364]   ISV = 0, ISS = 0x00000006, ISS2 = 0x00000000
    age Bus.
    [   10.342583]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
    See 'systemctl status dbus-broker.service' for details.
    [   10.348787]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
    [   10.359133] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000081039000
    [   10.365886] [ffff800085ffffff] pgd=10000008fffff003, p4d=10000008fffff003, pud=10000008ffffe003, pmd=0000000000
    [   10.376597] Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
    [   10.382859] Modules linked in: mux_gpio sa2ul(+) phy_can_transceiver k3_j72xx_bandgap at24 ti_k3_r5_remoteproc6
    [   10.403884] CPU: 1 PID: 164 Comm: (udev-worker) Not tainted 6.6.32-gf23640cf4516-dirty #3
    [   10.412048] Hardware name: Texas Instruments J7200 EVM (DT)
    [   10.417606] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [   10.424553] pc : rproc_handle_resources.constprop.0+0x64/0x18c
    [   10.430390] lr : rproc_boot+0x37c/0x57c
    [   10.434223] sp : ffff800081ccb6a0
    [   10.437526] x29: ffff800081ccb6a0 x28: ffff000805543a80 x27: ffff000804616280
    [   10.444649] x26: ffff000804616280 x25: 0000000000000001 x24: ffff800085ffffff
    [   10.451772] x23: 0000000000000000 x22: ffff0008062aa038 x21: ffff8000813b4118
    [   10.458894] x20: 0000000000000000 x19: ffff0008062aa000 x18: 0000000000000000
    [   10.466017] x17: 0000000000000000 x16: 0000000000000000 x15: ffffffffffffffff
    [   10.473139] x14: ffffffffffffffff x13: ffffffffffffffff x12: ffffffffffffffff
    [   10.480261] x11: ffffffffffffffff x10: ffffffffffffffff x9 : ffffffffffffffff
    [   10.487384] x8 : ffffffffffffffff x7 : ffffffffffffffff x6 : ffffffffffffffff
    [   10.494506] x5 : ffff0008032fc600 x4 : ffff800086000000 x3 : 00000000000000fd
    [   10.501628] x2 : 00000000ffffffff x1 : ffff800086000003 x0 : ffff800086000000
    [   10.508751] Call trace:
    [   10.511188]  rproc_handle_resources.constprop.0+0x64/0x18c
    [   10.516668]  rproc_boot+0x37c/0x57c
    [   10.520153]  rproc_add+0x184/0x190
    [   10.523552]  k3_r5_probe+0x794/0xd3c [ti_k3_r5_remoteproc]
    [   10.529039]  platform_probe+0x68/0xc4
    [   10.530038] m_can_platform 2701000.can main_mcan0: renamed from can0
    [   10.532695]  really_probe+0x148/0x2b0
    [   10.532700]  __driver_probe_device+0x78/0x12c
    [   10.532703]  driver_probe_device+0xd8/0x15c
    [   10.532706]  __driver_attach+0x90/0x19c
    [   10.532709]  bus_for_each_dev+0x7c/0xdc
    [   10.532715]  driver_attach+0x24/0x30
    [   10.532720]  bus_add_driver+0xe8/0x1f8
    [   10.532725]  driver_register+0x5c/0x124
    [   10.532728]  __platform_driver_register+0x28/0x34
    [   10.574646]  k3_r5_rproc_driver_init+0x20/0x1000 [ti_k3_r5_remoteproc]
    [   10.581167]  do_one_initcall+0x80/0x1c8
    [   10.584993]  do_init_module+0x58/0x1e0
    [   10.588731]  load_module+0x1c8c/0x1d18
    [   10.592467]  init_module_from_file+0x88/0xcc
    [   10.596724]  __arm64_sys_finit_module+0x1dc/0x2e4
    [   10.601415]  invoke_syscall+0x48/0x114
    [   10.605151]  el0_svc_common.constprop.0+0xc0/0xe0
    [   10.609841]  do_el0_svc+0x1c/0x28
    [   10.613143]  el0_svc+0x2c/0x84
    [   10.616186]  el0t_64_sync_handler+0x120/0x12c
    [   10.620529]  el0t_64_sync+0x190/0x194
    [   10.624181] Code: 6b020063 8b22c098 91001301 540007c4 (b862c880) 
    [   10.630257] ---[ end trace 0000000000000000 ]---
    [   10.655262] m_can_platform 40568000.can mcu_mcan1: renamed from can2
             Starting Load Kernel Module drm...
    [FAILED] Failed to start Network Name Resolution.
    See 'systemctl status systemd-resolved.service' for details.
    [FAILED] Failed to start Network Time Synchronization.
    See 'systemctl status systemd-timesyncd.service' for details.
             Starting Use[   10.694114] m_can_platform 40528000.can mcu_mcan0: renamed from can1
    r Database Manager...
    [FAILED] Failed to start D-Bus System Message Bus.
    See 'systemctl status dbus-broker.service' for details.
    [FAILED] Failed to start D-Bus System Message Bus.
    See 'systemctl status dbus-broker.service' for details.
    [FAILED] Failed to start D-Bus System Message Bus.
    See 'systemctl status dbus-broker.service' for details.
    [  OK  ] Finished Load Kernel Module drm.
    [  OK  ] Started Telephony service.
    [FAILED] Failed to start User Login Management.
    See 'systemctl status systemd-logind.service' for details.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
             Starting Load Kernel Module drm...
             Starting Virtual Console Setup...
    [  OK  ] Finished Expand the rootfs partition to full size of the boot device..
    [  OK  ] Finished Load Kernel Module drm.
    [FAILED] Failed to start User Login Management.
    See 'systemctl status systemd-logind.service' for details.
             Starting Load Kernel Module drm...
    [  OK  ] Started User Database Manager.
    [  OK  ] Finished Load Kernel Module drm.
    [FAILED] Failed to start User Login Management.
    See 'systemctl status systemd-logind.service' for details.
             Starting Load Kernel Module drm...
    [  OK  ] Finished Load Kernel Module drm.
    [FAILED] Failed to start D-Bus System Message Bus.
    See 'systemctl status dbus-broker.service' for details.
    [FAILED] Failed to start User Login Management.
    See 'systemctl status systemd-logind.service' for details.
    [FAILED] Failed to start Avahi mDNS/DNS-SD Stack.
    See 'systemctl status avahi-daemon.service' for details.
    [  OK  ] Finished Virtual Console Setup.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [   11.167817] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [   11.186099] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [   11.192197] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
    [  OK  ] Started Network Configuration.
    [  OK  ] Reached target Network.
             Starting Enable and configure wl18xx bluetooth stack...
             Starting containerd container runtime...
    [  OK  ] Started Netperf Benchmark Server.
             Starting Simple Network Management Protocol (SNMP) Daemon....
             Starting Permit User Sessions...
    [  OK  ] Finished Enable and configure wl18xx bluetooth stack.
    [  OK  ] Finished Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
             Starting Weston, a Wayland compositor, as a system service...
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Created slice Slice /system/systemd-fsck.
             Expecting device /dev/mmcblk1p1...
    [  OK  ] Found device /dev/mmcblk1p1.
             Starting File System Check on /dev/mmcblk1p1...
    [FAILED] Failed to start Weston, a Wayland compositor, as a system service.
    See 'systemctl status weston.service' for details.
    [  OK  ] Finished File System Check on /dev/mmcblk1p1.
             Mounting /run/media/boot-mmcblk1p1...
    [  OK  ] Mounted /run/media/boot-mmcblk1p1.
    [  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
    [  OK  ] Started containerd container runtime.
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPL-3.0 packages:
            adwaita-icon-theme-symbolic
            autoconf
            bash-dev
            bash
            bc
            binutils
            cifs-utils
            coreutils-stdbuf
            coreutils
            cpio
            cpp-symlinks
            cpp
            dosfstools
            elfutils
            findutils
            g++-symlinks
            g++
            gawk
            gcc-symlinks
            gcc
            gdb
            gdbserver
            gettext
            glmark2
            gnu-config
            grub-common
            grub-editenv
            grub-efi
            gzip
            hidapi
            kbd-dev
            kbd-keymaps-pine
            less
            libasm1
            libatomic-dev
            libatomic1
            libbfd
            libdebuginfod1
            libdw1
            libelf1
            libgcc-s-dev
            libgcc1
            libgdbm-compat4
            libgdbm-dev
            libgdbm6
            libgettextlib
            libgettextsrc
            libgmp10
            libidn2-0
            libmpc3
            libmpfr6
            libopcodes
            libqt5charts-examples
            libqt5charts-plugins
            libqt5charts-qmlplugins
            libqt5charts5
            libqt5serialport-examples
            libqt5serialport-plugins
            libqt5serialport-qmlplugins
            libqt5serialport5
            libqt5svg-examples
            libqt5svg-plugins
            libqt5svg-qmlplugins
            libqt5svg5
            libqt5virtualkeyboard-plugins
            libqt5virtualkeyboard-qmlplugins
            libqt5virtualkeyboard5
            libreadline-dev
            libreadline8
            libstdc++-dev
            libstdc++6
            libunistring5
            m4
            make
            nettle
            parted
            piglit
            qt3d-plugins
            qt3d-qmlplugins
            qt3d
            qtbase-examples
            qtbase-plugins
            qtbase-qmlplugins
            qtbase
            qtconnectivity-plugins
            qtconnectivity-qmlplugins
            qtconnectivity
            qtdeclarative-plugins
            qtdeclarative-qmlplugins
            qtdeclarative-tools
            qtdeclarative
            qtgraphicaleffects-qmlplugins
            qtlocation-examples
            qtlocation-plugins
            qtlocation-qmlplugins
            qtlocation
            qtmultimedia-examples
            qtmultimedia-plugins
            qtmultimedia-qmlplugins
            qtmultimedia
            qtquics-qmlplugins.control
            qtquics2-plugins.control
            qtquics2-qmlplugins.control
            qtquics2.control
            qtscript-examples
            qtscript-plugins
            qtscript-qmlplugins
            qtscript
            qtwayland-examples
            qtwayland-plugins
            qtwayland-qmlplugins
            qtwayland
            tar
            which
    
    If you do not wish to distribute GPL-3.0 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [  OK  ] Finished Print notice about GPLv3 packages.
    [  OK  ] Reached target Multi-User System.
    [  OK  ] Reached target Graphical Interface.
             Starting Record Runlevel Change in UTMP...
    [  OK  ] Finished Record Runlevel Change in UTMP.
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project j7200-evm ttyS2
    
    Arago 2023.10 j7200-evm ttyS2
    
    j7200-evm login:

     Now, we met the questions:

     1.didn't get MCU2_0 log information. so how to get MCU2_0 log? Please give detail guide please.

    root@j7200-evm:~# dmesg | grep remoteproc
    [   10.253355] remoteproc remoteproc0: 41000000.r5f is available
    [   10.271072] remoteproc remoteproc0: attaching to 41000000.r5f
    [   10.298117] Modules linked in: mux_gpio phy_can_transceiver sa2ul(+) authenc ti_k3_r5_remoteproc(+) at24 k3_j72xx_bandgap m_can_platform m_can can_dev ti_am335x_tscadc cdns3_ti rti_wdt fuse drm drm_p6
    [   10.298258]  k3_r5_probe+0x794/0xd3c [ti_k3_r5_remoteproc]
    [   10.298317]  k3_r5_rproc_driver_init+0x20/0x1000 [ti_k3_r5_remoteproc]
    root@j7200-evm:~#
    root@j7200-evm:~# ls /sys/kernel/debug/remoteproc/
    remoteproc0
    root@j7200-evm:~# 

    2. cannot find any more eth[1-4]device, so is there any error configuration?

    root@j7200-evm:~# ifconfig
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@j7200-evm:~# ifconfig -a
    eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
            ether dc:f3:1c:7d:e7:78  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    main_mcan0: flags=128<NOARP>  mtu 16
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 19  
    
    mcu_mcan0: flags=128<NOARP>  mtu 16
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 20  
    
    mcu_mcan1: flags=128<NOARP>  mtu 16
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 21  
    
    root@j7200-evm:~#

    3. According to your official documentation, we just get "Ethernet port interface type selection". The others cannot be searched by keywords.

      Above all, we hope you can help solve the problem as soon as possible. 

      Thanks.

       

  • Hi, 

     According to "linux/Foundational_Components/Kernel/Kernel_Drivers/SERDES/SERDES.html", when we modify the &serdes_ln_ctrl information in the device tree file, a compilation error occurs. How should we correctly configure it?

     Once QSGMII is changed to SGMII, a syntax error is reported.

    &serdes_ln_ctrl {
        idle-states = <J7200_SERDES0_LANE0_SGMII_LANE3>, <J7200_SERDES0_LANE1_SGMII_LANE4>,
                  <J7200_SERDES0_LANE2_SGMII_LANE1>, <J7200_SERDES0_LANE3_USB>;
    };
    
    

  • Hi,

     Once QSGMII is changed to SGMII, a syntax error is reported.

    SerDes Lane control is fine even if we have QSGMII in lane control, it will enabled SerDes for CPSW.

    From Logs It seems like remoteproc is not connected for MCU2_0 & MCU2_1 cores.

    can boot is not supported in latest SDK. We have only boot app from laets SDKs. Please refer to SDK Documentation.

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-j7200/10_00_00_03/exports/docs/pdk_j7200_10_00_00_27/docs/userguide/j7200/boot/boot_app.html

    Also, I have seen you are enabling CPSW from Linux as well ETHFW MCU2_0 image. It supposed to enable from one application i.e. with MCU2_0 ETHFW or Native Linux Driver.

    Best Regards,
    Sudheer

  • Hi,

       1. we use command "make BOARD=j7200_evm CORE=mcu1_0 boot_app_mmcsd_linux -sj" and get image "sbl_boot_app_mmcsd_linux_j7200_evm_mcu1_0_freertos_TestApp_release.appimage". 

          Then copy it as app to the boot partition of SD card, but still can't get MCU2_0 & MCU2_1 start_up information.

      2. When configuring the network on our own board, do we have to choose between MCU2_0 ETHFW and Native Linux Driver?

  • Hi,

          Then copy it as app to the boot partition of SD card, but still can't get MCU2_0 & MCU2_1 start_up information.

    Default ETHFW on MCU_0 will print debug logs on UART2 from TI SDK.
    MCU2_1 ETHFW RTOS Client will not output any logs to UART, It will output logs to CCS debugger while loading the image to MCU2_1 via CCS.

    If you need to forward to other UART, you need to modify the UART instance to use in ETHFW application as per your customer Hardware.
    Also, for MCU2_1 you need to enable UART configuration and print the debug data to UART as similar to ETHFW.

    Please refer to FAQ for changing the UART instance using in ETHFW, use domain same as SDK i.e. Main Domain.

      2. When configuring the network on our own board, do we have to choose between MCU2_0 ETHFW and Native Linux Driver?

    Yes, If both are enabled we can't predict the functioning of CPSW5G.

    Best Regards,
    Sudheer

  • Hi Charles

        please refer to following dts configuration for SGMII Ethernet port, this is based on TDA4,

       but dra821 is simialiar

    ---------------------------------

    &serdes_ln_ctrl {
    idle-states = <J721E_SERDES0_LANE0_PCIE0_LANE0>, <J721E_SERDES0_LANE1_PCIE0_LANE1>,
    <J721E_SERDES1_LANE0_PCIE1_LANE0>, <J721E_SERDES1_LANE1_PCIE1_LANE1>,
    <J721E_SERDES2_LANE0_PCIE2_LANE0>, <J721E_SERDES2_LANE1_PCIE2_LANE1>,
    <J721E_SERDES3_LANE0_USB3_0_SWAP>, <J721E_SERDES3_LANE1_USB3_0>,
    <J721E_SERDES4_LANE0_QSGMII_LANE5>, <J721E_SERDES4_LANE1_QSGMII_LANE6>,
    <J721E_SERDES4_LANE2_QSGMII_LANE7>, <J721E_SERDES4_LANE3_QSGMII_LANE8>;
    };

    &davinci_mdio {
    status = "disabled";
    phy0: ethernet-phy@0 {
    status = "disabled";
    reg = <0>;
    ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
    ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
    };
    };

    &cpsw_port1 {
    status = "disabled";
    phy-mode = "rgmii-rxid";
    phy-handle = <&phy0>;
    };

    &cpsw0 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&linux_mdio_pins_default &main_4g_rgmii6_pins_default>;
    };

    &cpsw0_port6 {
    status = "okay";
    phy-mode = "rgmii-rxid";
    phys = <&cpsw0_phy_gmii_sel 6>;
    fixed-link {
    speed = <1000>;
    full-duplex;
    };
    };

    &cpsw9g_mdio {
    status = "okay";
    bus_freq = <1000000>;
    pinctrl-names = "default";
    pinctrl-0 = <&phy_DP83TG721_module_main0_pins_default &phy_DP83TG721_module_main1_pins_default>;
    enable-gpios = <&main_gpio0 94 GPIO_ACTIVE_HIGH>;
    en721_1-gpios = <&main_gpio0 88 GPIO_ACTIVE_HIGH>;
    wkup721_1-gpios = <&main_gpio1 23 GPIO_ACTIVE_HIGH>;
    en721_2-gpios = <&main_gpio0 87 GPIO_ACTIVE_HIGH>;
    wkup721_2-gpios = <&main_gpio0 95 GPIO_ACTIVE_HIGH>;
    reset-gpios = <&main_gpio0 30 GPIO_ACTIVE_LOW>;
    reset-delay-us = <20>;
    #address-cells = <1>;
    #size-cells = <0>;

    phy_dp83TG721_1: ethernet-phy@5 {
    compatible = "TI DP83TG721CS1.0","ethernet-phy-ieee802.3-c22";
    reg = <5>;
    };

    phy_dp83TG721_2: ethernet-phy@15 {
    compatible = "TI DP83TG721CS1.0","ethernet-phy-ieee802.3-c22";
    reg = <15>;
    };
    };

    &cpsw0_port5 {
    status = "okay";
    phy-handle = <&phy_dp83TG721_1>;
    phy-mode = "sgmii";
    mac-address = [00 00 00 00 00 00];
    phys = <&cpsw0_phy_gmii_sel 5>, <&serdes4_qsgmii_link>;
    phy-names = "mac", "serdes";
    //fixed-link {
    // speed = <1000>;
    // full-duplex;
    //};
    };

    &cpsw0_port7 {
    status = "okay";
    phy-handle = <&phy_dp83TG721_2>;
    phy-mode = "sgmii";
    mac-address = [00 00 00 00 00 00];
    phys = <&cpsw0_phy_gmii_sel 7>, <&serdes4_qsgmii_link>;
    phy-names = "mac", "serdes";
    //fixed-link {
    // speed = <1000>;
    // full-duplex;
    //};
    };

    &serdes_wiz4 {
    status = "okay";
    };

    &serdes4 {
    status = "okay";
    #address-cells = <1>;
    #size-cells = <0>;

    serdes4_qsgmii_link: phy@0 {
    reg = <0>;
    cdns,num-lanes = <3>;
    #phy-cells = <0>;
    cdns,phy-type = <PHY_TYPE_SGMII>;
    resets = <&serdes_wiz4 1>, <&serdes_wiz4 2>, <&serdes_wiz4 3>;
    };
    };

    ----------------------------------------

    Regards

       Semon

  • Hi Charles

        please refer to another case for DRA821 SGMII dts configuration file, link is here:

         (+) DRA821U: How to enable CPSw5g linux native ethernet for SGMII, RMII on DRA821 - Processors forum - Processors - TI E2E support forums

    Regards

       Semon