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.

TDA4VM: 9G switch not active in SDKL/SDKR 8.2

Part Number: TDA4VM

We are trying to get 2G 9G switch to work on custom HW. As suggested by TI customer support we upgraded to SDKL/SDKR 8.2 and I finished setting this up including porting the device tree for our custom HW. Unfortunately the setup at 8.2 SDK is not yet where we were at 7.2

 

  1. I did not manage to configure ethfw for static IP address – it still issues to DHCP requests. My attempt to do this configuration was in
    1. vision_apps/platform/j721e/rtos/bios_cfg/ndk.cfg
    2. ethfw/apps/app_remoteswitchcfg_server/mcu_2_0/main.c


which would be the correct way?

  1. In enet_appboardutils_j721e_evm.c I tried to redirect the logs of EnetAppUtils_print() to the wakeup UART like it worked in the previous version – it does not work now – why?
  2. In the previous version I could see a printout by
    appLogPrintf("\nCPSW NIMU application, IP address I/F 1: %s\n\r", ipAddr);
    I don’t see that in the 8.2 setup

 

With the above symptoms can your experts guess, what we are missing to configure? We are happy to supply any logs on request.

 

We are using the default configuration freertos, would you suggest switching to tirtos instead? How would I do that?

How do the below 3 parameters in ethfw_build_flags.mak work? Could you pls. point me to documentation on this?

# Build TI-RTOS only binaries

BUILD_APP_TIRTOS?=no

# Build FREERTOS only binaries

BUILD_APP_FREERTOS?=yes

# Build TI-RTOS + Linux binaries

BUILD_APP_TIRTOS_LINUX?=no

  • Hi Stanley,

    did you find the time to look at that?

    Regards,
    Bernd

  • Hi,

    Please stay with FreeRTOS.

    Are you building the MCU2_0 firmware from vision_apps or EthFW?

    If it is vision_apps with FreeRTOS, you should enable static IP in ~/vision_apps/utils/ethfw/src/app_ethfw_freertos.c..

    If it is EthFW with FreeRTOS, you should enable static IP in ~/ethfw/apps/app_remoteswitchcfg_server/mcu2_0/main.c.

    Set ETHAPP_LWIP_USE_DHCP to 0 to enable Static IP.

    Regards,
    Stanley

  • dear Stanley,

    thx for your reply!

    1. will stick with FREERTOS

    2. not sure about building the MCU2_0 firmware from vision_apps or ethfw - is that an either / or case?

    2.1. in the code base (SDK7.2) I inherited there were codes (for MCU1_0, MCU2_0, MCU2_1) added in vision_apps/apps/basic_demos/app_tirtos/tirtos_qnx/, so I moved these codes (a) to vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/ when I was still under SDK7.2, now obsolete and (b) to vision_apps/apps/basic_demos/app_tirtos/tirtos_qnx/ vision_apps/platform/j721e/rtos in SDK8.2.
    These codes amongst other things deal with setting up remote service - needed for 9G switch we believe? I am presently trying to make these work as they have been designed for TIRTOS.

    2.2. but: in the former SDK7.2 build I saw when run this above mentioned message output by appLogPrintf("\nCPSW NIMU application, IP address I/F 1: %s\n\r", ipAddr); either printed by EthFwCallbacks_ipAddrHookFxn() or IpAddrHookFxn().

    Maybe there is a mix of incompatible approched in the code I got? (it worked for QNX). How is enabling the 9G switch on a custom board supposed to work in SDK8.2, then?

    4. this is a new question, which pops up during the refactoring TIRTOS -> FREERTOS: I need to #include <FreeRTOS.h>, which immediately requires me to #include "FreeRTOSConfig.h". how would the graceful selection of the FreeRTOSConfig.h pertaining to the respective core (R5F, C6x, C7x...) usually be handled?

    pls. help me get sorted, best Stefan

  • I have verified that the use is case ethfw/apps/

  • Further analysis:
    w.r.t. CPSWng_virt_mac -> DT bindings, we have verified that the DT is correct concerning cpsw9g_virt_mac
    we verified that DT is loaded correctly (/proc/device_tree/)

    root@j7-evm:/proc/device-tree# cat main-r5fss-cpsw9g-virt-mac1/
    compatible      dma-coherent    dma-names       dmas            name            phandle         ti,psil-base    ti,remote-name  virt_emac_port/
    root@j7-evm:/proc/device-tree# cat main-r5fss-cpsw9g-virt-mac1/name
    main-r5fss-cpsw9g-virt-mac1
    root@j7-evm:/proc/device-tree# cat main-r5fss-cpsw9g-virt-mac1/ti,remote-name
    mpu_1_0_ethmac-device-1
    root@j7-evm:/proc/device-tree# cat main-r5fss-cpsw9g-virt-mac1/compatible
    ti,j721e-cpsw-virt-mac
    root@j7-evm:/proc/device-tree# cat main-r5fss-cpsw9g-virt-mac1/virt_emac_port/
    name      ti,label
    root@j7-evm:/proc/device-tree# cat main-r5fss-cpsw9g-virt-mac1/
    compatible      dma-coherent    dma-names       dmas            name            phandle         ti,psil-base    ti,remote-name  virt_emac_port/
    root@j7-evm:/proc/device-tree# cat main-r5fss-cpsw9g-virt-mac1/name
    main-r5fss-cpsw9g-virt-mac1
    root@j7-evm:/proc/device-tree#
    

    we tried to modprobe manually the drivers as described in the above link - everything looks o.k.
    we should expect to see two eth devices according to 9G - we don't
    we don't get any output from the drivers neither positive nor negative

    lsmod shows

    root@j7-evm:# lsmod | grep cpsw
    ti_j721e_cpsw_virt_mac   327680  0
    

  • I have to correct this statement: the call is from vision_apps/utils/ethfw and subsequently calls to EthFw_init() in ethfw/ethfw/src/ethfw.c

  • I add the log of linux startup:

    U-Boot SPL 2021.01-dirty (Jul 07 2022 - 14:43:50 +0200)
    Model: ADCU - J721E SoC
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Board: J721EX-PM1-SOM rev E2
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Trying to boot from MMC2
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.5(release):08.01.00.006-dirty
    NOTICE:  BL31: Built : 21:03:57, Mar 23 2022
    
    U-Boot SPL 2021.01-dirty (Jul 14 2022 - 20:39:41 +0200)
    Model: ADCU - J721E SoC
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Board: J721EX-PM1-SOM rev E2
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Trying to boot from MMC2
    
    
    U-Boot 2021.01-dirty (Jul 14 2022 - 20:39:41 +0200)
    
    SoC:   J721E SR1.1
    Model: ADCU - J721E SoC
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Board: J721EX-PM1-SOM rev E2
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    disabling WD ...
    WD disable success
    applying EN_DRV ...
    EN_DRV success
    Net:   Could not get PHY for ethernet@46000000port@1: addr 0
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_connect() failed
    No ethernet found.
    
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    Failed to load 'boot.scr'
    483 bytes read in 6 ms (78.1 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    Running uenvcmd ...
    1 bytes read in 9 ms (0 Bytes/s)
    Already setup.
    i2c_write: error waiting for data ACK (status=0x116)
    pca953x gpio@20: Error reading output register
    GPIO: 'gpio@22_17' not found
    Command 'gpio' failed: Error -121
    i2c_write: error waiting for data ACK (status=0x116)
    pca953x gpio@20: Error reading output register
    GPIO: 'gpio@22_16' not found
    Command 'gpio' failed: Error -121
    k3_r5f_rproc r5f@41000000: Core 1 is already in use. No rproc commands work
    k3_r5f_rproc r5f@41400000: Core 2 is already in use. No rproc commands work
    1367476 bytes read in 68 ms (19.2 MiB/s)
    Load Remote Processor 2 with data@addr=0x82000000 1367476 bytes: Success!
    301996 bytes read in 24 ms (12 MiB/s)
    Load Remote Processor 3 with data@addr=0x82000000 301996 bytes: Success!
    121752 bytes read in 17 ms (6.8 MiB/s)
    Load Remote Processor 4 with data@addr=0x82000000 121752 bytes: Success!
    121752 bytes read in 16 ms (7.3 MiB/s)
    Load Remote Processor 5 with data@addr=0x82000000 121752 bytes: Success!
    1452820 bytes read in 71 ms (19.5 MiB/s)
    Load Remote Processor 6 with data@addr=0x82000000 1452820 bytes: Success!
    1452820 bytes read in 72 ms (19.2 MiB/s)
    Load Remote Processor 7 with data@addr=0x82000000 1452820 bytes: Success!
    13242432 bytes read in 214 ms (59 MiB/s)
    Load Remote Processor 8 with data@addr=0x82000000 13242432 bytes: Success!
    19276288 bytes read in 784 ms (23.4 MiB/s)
    92442 bytes read in 13 ms (6.8 MiB/s)
    11545 bytes read in 10 ms (1.1 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 000000008fee6000, end 000000008fffffff ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 5.10.100-g7a7a3af903 (schandl@schandl-VB) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 SMP PREEMPT Thu Jul 7 13:00:03 CEST 2022
    [    0.000000] Machine model: Texas Instruments K3 J721E SoC
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 31 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a4000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 31 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a4100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a6000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a6100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a7000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a7100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@a8000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@a8100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a9000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@a9000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a9100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@a9100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000aa000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c71-dma-memory@aa000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000aa100000, size 79 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c71-memory@aa100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000b2000000, size 96 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-dma-memory@b2000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: initialized node vision_apps_shared-memories, compatible id dma-heap-carveout
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000d8000000, size 560 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-lo@d8000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000fb000000, size 8 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-virtual-eth-queues@fb000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000fb800000, size 24 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-virtual-eth-buffers@fb800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000880000000, size 256 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-hi@880000000, compatible id shared-dma-pool
    [    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-0x00000000aeffffff]
    [    0.000000]   node   0: [mem 0x00000000af000000-0x00000000afffffff]
    [    0.000000]   node   0: [mem 0x00000000b0000000-0x00000000b7ffffff]
    [    0.000000]   node   0: [mem 0x00000000b8000000-0x00000000d7ffffff]
    [    0.000000]   node   0: [mem 0x00000000d8000000-0x00000000fcffffff]
    [    0.000000]   node   0: [mem 0x00000000fd000000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x000000088fffffff]
    [    0.000000]   node   0: [mem 0x0000000890000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] cma: Failed to reserve 512 MiB
    [    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.2
    [    0.000000] percpu: Embedded 2 pages/cpu s49880 r8192 d73000 u131072
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: EL2 vector hardening
    [    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65472
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),1m(ospi.sysfw),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=PARTUUID=a39fd774-02 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: mapped [mem 0x000000009a800000-0x000000009e800000] (64MB)
    [    0.000000] Memory: 2302848K/4194304K available (10880K kernel code, 1288K rwdata, 4352K rodata, 1856K init, 751K bss, 1891456K reserved, 0K 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] 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] GICv3: Distributor has no Range Selector support
    [    0.000000] GICv3: 16 PPIs implemented
    [    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: allocated 1048576 Devices @8a0800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x00000008a00b0000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000008a00c0000
    [    0.000000] random: get_random_bytes called from start_kernel+0x31c/0x4c4 with crng_init=0
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000002] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008368] Console: colour dummy device 80x25
    [    0.012931] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023602] pid_max: default: 32768 minimum: 301
    [    0.028351] LSM: Security Framework initializing
    [    0.033108] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
    [    0.040684] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
    [    0.049816] rcu: Hierarchical SRCU implementation.
    [    0.054901] Platform MSI: msi-controller@1820000 domain created
    [    0.061153] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.070447] EFI services will not be available.
    [    0.075238] smp: Bringing up secondary CPUs ...
    [    0.080552] Detected PIPT I-cache on CPU1
    [    0.080578] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.080589] GICv3: CPU1: using allocated LPI pending table @0x00000008a00d0000
    [    0.080626] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.080685] smp: Brought up 1 node, 2 CPUs
    [    0.110033] SMP: Total of 2 processors activated.
    [    0.114838] CPU features: detected: 32-bit EL0 Support
    [    0.120092] CPU features: detected: CRC32 instructions
    [    0.134877] CPU: All CPU(s) started at EL2
    [    0.139077] alternatives: patching kernel code
    [    0.144175] devtmpfs: initialized
    [    0.152582] KASLR disabled due to lack of seed
    [    0.157261] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.167224] futex hash table entries: 512 (order: -1, 32768 bytes, linear)
    [    0.174385] pinctrl core: initialized pinctrl subsystem
    [    0.179967] DMI not present or invalid.
    [    0.184214] NET: Registered protocol family 16
    [    0.189021] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
    [    0.196383] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.204369] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.212664] thermal_sys: Registered thermal governor 'step_wise'
    [    0.212667] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.219083] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.232717] ASID allocator initialised with 65536 entries
    [    0.250144] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages
    [    0.257000] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
    [    0.263757] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.271630] cryptd: max_cpu_qlen set to 1000
    [    0.277766] k3-chipinfo 43000014.chipid: Family:J721E rev:SR2.0 JTAGID[0x1bb6402f] Detected
    [    0.286546] vsys_3v3: supplied by evm_12v0
    [    0.290899] vsys_5v0: supplied by evm_12v0
    [    0.295236] vdd_mmc1: supplied by vsys_3v3
    [    0.299841] iommu: Default domain type: Translated
    [    0.304968] SCSI subsystem initialized
    [    0.308977] mc: Linux media interface: v0.10
    [    0.313348] videodev: Linux video capture interface: v2.00
    [    0.318975] pps_core: LinuxPPS API ver. 1 registered
    [    0.324045] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.333383] PTP clock support registered
    [    0.337402] EDAC MC: Ver: 3.0.0
    [    0.341125] FPGA manager framework
    [    0.344637] Advanced Linux Sound Architecture Driver Initialized.
    [    0.351301] clocksource: Switched to clocksource arch_sys_counter
    [    0.357758] VFS: Disk quotas dquot_6.6.0
    [    0.361816] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
    [    0.371650] Carveout Heap: Exported 512 MiB at 0x00000000b8000000
    [    0.377952] NET: Registered protocol family 2
    [    0.382594] IP idents hash table entries: 65536 (order: 3, 524288 bytes, linear)
    [    0.391317] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes, linear)
    [    0.400085] TCP established hash table entries: 32768 (order: 2, 262144 bytes, linear)
    [    0.408284] TCP bind hash table entries: 32768 (order: 3, 524288 bytes, linear)
    [    0.416140] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.422909] UDP hash table entries: 2048 (order: 0, 65536 bytes, linear)
    [    0.429802] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes, linear)
    [    0.437206] NET: Registered protocol family 1
    [    0.441970] RPC: Registered named UNIX socket transport module.
    [    0.448024] RPC: Registered udp transport module.
    [    0.452828] RPC: Registered tcp transport module.
    [    0.457633] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.464218] PCI: CLS 0 bytes, default 64
    [    0.468589] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.479104] Initialise system trusted keyrings
    [    0.483739] workingset: timestamp_bits=46 max_order=16 bucket_order=0
    [    0.492115] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.498380] NFS: Registering the id_resolver key type
    [    0.503582] Key type id_resolver registered
    [    0.507854] Key type id_legacy registered
    [    0.511974] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.518823] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.526480] 9p: Installing v9fs 9p2000 file system support
    [    0.551242] Key type asymmetric registered
    [    0.555430] Asymmetric key parser 'x509' registered
    [    0.560429] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
    [    0.567987] io scheduler mq-deadline registered
    [    0.572614] io scheduler kyber registered
    [    0.577757] pinctrl-single 4301c000.pinctrl: 94 pins, size 376
    [    0.583940] pinctrl-single 11c000.pinctrl: 173 pins, size 692
    [    0.592148] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
    [    0.598416] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
    [    0.606156] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.614143] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [    0.624179] arm-smmu-v3 36600000.iommu: allocated 524288 entries for cmdq
    [    0.635327] arm-smmu-v3 36600000.iommu: allocated 524288 entries for evtq
    [    0.643590] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs
    [    0.656482] brd: module loaded
    [    0.662716] loop: module loaded
    [    0.666274] sysfs: cannot create duplicate filename '/devices/platform/dma_buf_phys'
    [    0.674200] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.100-g7a7a3af903 #1
    [    0.681489] Hardware name: Texas Instruments K3 J721E SoC (DT)
    [    0.687446] Call trace:
    [    0.689950]  dump_backtrace+0x0/0x1a0
    [    0.693686]  show_stack+0x18/0x68
    [    0.697069]  dump_stack+0xd0/0x12c
    [    0.700539]  sysfs_warn_dup+0x60/0x80
    [    0.704274]  sysfs_create_dir_ns+0xe0/0xf8
    [    0.708456]  kobject_add_internal+0x98/0x288
    [    0.712812]  kobject_add+0x94/0x100
    [    0.716375]  device_add+0xe0/0x740
    [    0.719846]  platform_device_add+0x100/0x238
    [    0.724203]  platform_device_register_full+0xcc/0x150
    [    0.729364]  dma_buf_phys_init+0x6c/0x9c
    [    0.733365]  do_one_initcall+0x54/0x1b8
    [    0.737280]  kernel_init_freeable+0x220/0x2a0
    [    0.741727]  kernel_init+0x14/0x114
    [    0.745284]  ret_from_fork+0x10/0x34
    [    0.748940] kobject_add_internal failed for dma_buf_phys with -EEXIST, don't try to register things with the same name in the same directory.
    [    0.762104] megasas: 07.714.04.00-rc1
    [    0.767444] tun: Universal TUN/TAP device driver, 1.6
    [    0.772852] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    0.779257] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.785330] sky2: driver version 1.30
    [    0.789556] VFIO - User Level meta-driver version: 0.3
    [    0.795226] i2c /dev entries driver
    [    0.799349] sdhci: Secure Digital Host Controller Interface driver
    [    0.805664] sdhci: Copyright(c) Pierre Ossman
    [    0.810265] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.816493] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.822791] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.829877] optee: probing for conduit method.
    [    0.834440] optee: revision 3.12 (3d47a131)
    [    0.834719] optee: initialized driver
    [    0.843906] NET: Registered protocol family 17
    [    0.848520] 9pnet: Installing 9P2000 support
    [    0.852911] Key type dns_resolver registered
    [    0.857376] Loading compiled-in X.509 certificates
    [    0.865701] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
    [    0.872041] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
    [    0.879694] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    [    0.910799] random: fast init done
    [    0.928434] omap_i2c 40b00000.i2c: bus 3 rev0.12 at 100 kHz
    [    0.934565] omap_i2c 42120000.i2c: bus 4 rev0.12 at 100 kHz
    [    0.941047] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
    [    0.951028] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created
    [    0.959846] ti-sci-intr bus@100000:main-navss:interrupt-controller1: Interrupt Router 213 domain created
    [    0.969712] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
    [    0.988426] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    [    0.998309] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    1.005069] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    1.014093] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
    [    1.024259] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    1.031019] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    1.039009] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 15, base_baud = 6000000) is a 8250
    [    1.048424] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 24, base_baud = 3000000) is a 8250
    [    1.057171] printk: console [ttyS2] enabled
    [    1.057171] printk: console [ttyS2] enabled
    [    1.065608] printk: bootconsole [ns16550a0] disabled
    [    1.065608] printk: bootconsole [ns16550a0] disabled
    [    1.075957] omap8250 2840000.serial: failed to get alias
    [    1.119308] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.126956] davinci_mdio 46000f00.mdio: no live phy, scanning all
    [    1.146221] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    1.160171] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    1.169096] mmc0: CQHCI version 5.10
    [    1.178954] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [    1.185831] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [    1.192663] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [    1.199507] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [    1.206319] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [    1.213535] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [    1.213604] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
    [    1.231043] ti-udma 31150000.dma-controller: Channels: 122 (tchan: 61, rchan: 61, gp-rflow: 16)
    [    1.244776] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
    [    1.251659] spi-nor: probe of spi0.0 failed with error -2
    [    1.295307] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.302950] davinci_mdio 46000f00.mdio: no live phy, scanning all
    [    1.304726] mmc0: Command Queue Engine enabled
    [    1.313464] mmc0: new HS200 MMC card at address 0001
    [    1.318727] mmcblk0: mmc0:0001 BGUF4R 29.1 GiB
    [    1.322251] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    1.323354] mmcblk0boot0: mmc0:0001 BGUF4R partition 1 31.9 MiB
    [    1.342008] mmcblk0boot1: mmc0:0001 BGUF4R partition 2 31.9 MiB
    [    1.348006] mmcblk0rpmb: mmc0:0001 BGUF4R partition 3 4.00 MiB, chardev (237:0)
    [    1.355671] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    1.363496] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    1.370729] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    1.377154] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    1.387585] debugfs: Directory 'pd:27' with parent 'pm_genpd' already present!
    [    1.387896] mmc1: CQHCI version 5.10
    [    1.394928] debugfs: Directory 'pd:26' with parent 'pm_genpd' already present!
    [    1.406654] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present!
    [    1.413975] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present!
    [    1.421284] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present!
    [    1.428589] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present!
    [    1.447679] ALSA device list:
    [    1.450637]   No soundcards found.
    [    2.455938] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    2.463808] Waiting for root device PARTUUID=a39fd774-02...
    [    2.517443] mmc1: new ultra high speed DDR50 SDHC card at address 0001
    [    2.524363] mmcblk1: mmc1:0001 SD32G 29.1 GiB
    [    2.531427]  mmcblk1: p1 p2
    [    2.558211] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.566340] VFS: Mounted root (ext4 filesystem) on device 179:98.
    [    2.577182] devtmpfs: mounted
    [    2.580718] Freeing unused kernel memory: 1856K
    [    2.585279] Run /sbin/init as init process
    [    2.774196] systemd[1]: System time before build time, advancing clock.
    [    2.837162] NET: Registered protocol family 10
    [    2.842156] Segment Routing with IPv6
    [    2.866813] systemd[1]: systemd 244.5+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    2.888599] systemd[1]: Detected architecture arm64.
    
    Welcome to Arago 2021.09!
    
    [    2.927996] systemd[1]: Set hostname to <j7-evm>.
    [    3.150309] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock ? /run/docker.sock; please update the unit file accordingly.
    [    3.221716] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.228469] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
    [    3.240800] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
    [    3.250792] systemd[1]: Created slice system-getty.slice.
    [  OK  ] Created slice system-getty.slice.
    [    3.271387] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.278714] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    3.299384] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.306590] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    3.327512] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password �ts to Console Directory Watch.
    [    3.351426] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R�uests to Wall Directory Watch.
    [    3.375427] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Paths.
    [    3.391364] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    3.411354] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Slices.
    [    3.427358] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    3.448328] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    3.471397] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    3.493638] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    3.515510] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    3.548904] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
    [    3.557289] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    3.579608] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    3.595676] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    3.619566] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    3.639485] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    3.663223] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    3.682120] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    3.706889] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    3.726828] systemd[1]: Mounting Temporary Directory (/tmp)...
             Mounting Temporary Directory (/tmp)...
    [    3.747676] systemd[1]: Starting Create list of static device nodes for the current kernel...
             Starting Create list of st�odes for the current kernel...
    [    3.776289] systemd[1]: Starting Start psplash boot splash screen...
             Starting Start psplash boot splash screen...
    [    3.805992] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    3.819516] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
    [    3.832169] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    3.856395] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    3.872156] cryptodev: loading out-of-tree module taints kernel.
    [    3.876085] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems cryptodev: driver 1.10 loaded.
    [0m...
    [    3.903509] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [    3.912871] systemd[1]: Starting udev Coldplug all Devices...
             Starting udev Coldplug all Devices...
    [    3.930174] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    3.943700] 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  ] Started Create list of sta� nodes for the current kernel.
    [FAILED] Failed to start Start psplash boot splash screen.
    See 'systemctl status psplash-start.service' for details.
    [DEPEND] Dependency failed for Star�progress communication helper.
    [  OK  ] Started Load Kernel Modules.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
             Starting Apply Kernel Variables...
    [    4.191400] systemd-journald[151]: Received client request to flush runtime journal.
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting udev Wait for Complete Device Initialization...
             Starting udev Kernel Device Manager...
    [  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 udev Kernel Device Manager.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Reached target System Time Synchronized.
    [    4.742218] k3-dsp-rproc 4d80800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@a9000000
    [    4.818364] k3-dsp-rproc 4d80800000.dsp: configured DSP for IPC-only mode
    [    4.831659] remoteproc remoteproc0: 4d80800000.dsp is available
    [    4.843390] img_enc 4200000.video-encoder: vxe_enc_probe: using heap 1 for internal alloc
    [    4.851928] PVR_K:  189: Read BVNC 22.104.208.318 from HW device registers
    [    4.855888] remoteproc remoteproc0: attaching to 4d80800000.dsp
    [    4.873015] PVR_K:  189: RGX Device registered with BVNC 22.104.208.318
    [    4.879477] img_dec 4300000.video-decoder: decoder registered as /dev/video0
    [    4.915449] k3-dsp-rproc 4d80800000.dsp: DSP initialized in IPC-only mode
    [    4.919788] [drm] Initialized pvr 1.13.5776728 20170530 for 4e20000000.gpu on minor 0
    [    4.955831] img_enc 4200000.video-encoder: encoder registered as /dev/video1
    [    4.984351]  remoteproc0#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@a9000000
    [    5.010954] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    5.015232] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xd
    [    5.034628]  remoteproc0#vdev0buffer: registered virtio0 (type 7)
    [    5.047509] ti_am3359-tscadc 40200000.tscadc: Need atleast one channel.
    [    5.048561] remoteproc remoteproc0: remote processor 4d80800000.dsp is now attached
    [    5.068089] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    5.090107] platform 41000000.r5f: configured R5F for IPC-only mode
    [    5.100549] ti_am3359-tscadc: probe of 40200000.tscadc failed with error -22
    [    5.108091] ti_am3359-tscadc 40210000.tscadc: Need atleast one channel.
    [    5.115084] k3-dsp-rproc 4d81800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@a8000000
    [    5.126015] ti_am3359-tscadc: probe of 40210000.tscadc failed with error -22
    [    5.134550] k3-dsp-rproc 4d81800000.dsp: configured DSP for IPC-only mode
    [    5.143521] remoteproc remoteproc2: 4d81800000.dsp is available
    [    5.150014] platform 41000000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
    [    5.159643] remoteproc remoteproc1: 41000000.r5f is available
    [    5.160350] remoteproc remoteproc2: attaching to 4d81800000.dsp
    [    5.165465] remoteproc remoteproc1: attaching to 41000000.r5f
    [    5.191601] platform 41000000.r5f: R5F core initialized in IPC-only mode
    [    5.232515]  remoteproc1#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
    [    5.284021] k3-dsp-rproc 4d81800000.dsp: DSP initialized in IPC-only mode
    [    5.311729] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    5.333289] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xd
    [    5.357287]  remoteproc2#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@a8000000
    [    5.364005]  remoteproc1#vdev0buffer: registered virtio1 (type 7)
    [    5.400097] remoteproc remoteproc1: remote processor 41000000.r5f is now attached
    [    5.401050] virtio_rpmsg_bus virtio2: rpmsg host is online
    [    5.413209] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xd
    [    5.425750] platform 5c00000.r5f: configured R5F for IPC-only mode
    [    5.435933] platform 5c00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
    [    5.459119]  remoteproc2#vdev0buffer: registered virtio2 (type 7)
    [    5.470988] remoteproc remoteproc3: 5c00000.r5f is available
    [    5.480409] remoteproc remoteproc2: remote processor 4d81800000.dsp is now attached
    [    5.488927] remoteproc remoteproc3: attaching to 5c00000.r5f
    [    5.501259] k3-dsp-rproc 64800000.dsp: assigned reserved memory node vision-apps-c71-dma-memory@aa000000
    [    5.516766] platform 5c00000.r5f: R5F core initialized in IPC-only mode
    [    5.546206]  remoteproc3#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
    [    5.557620] virtio_rpmsg_bus virtio3: rpmsg host is online
    [    5.563926]  remoteproc3#vdev0buffer: registered virtio3 (type 7)
    [    5.571636] remoteproc remoteproc3: remote processor 5c00000.r5f is now attached
    [    5.579101] virtio_rpmsg_bus virtio3: creating channel rpmsg_chrdev addr 0xd
    [    5.591370] platform 5d00000.r5f: configured R5F for IPC-only mode
    [    5.597794] k3-dsp-rproc 64800000.dsp: configured DSP for IPC-only mode
    [    5.606614] platform 5d00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a4000000
    [    5.616378] remoteproc remoteproc4: 64800000.dsp is available
    [    5.624296] remoteproc remoteproc4: attaching to 64800000.dsp
    [    5.632029] remoteproc remoteproc4: unsupported resource 65538
    [    5.641054] k3-dsp-rproc 64800000.dsp: DSP initialized in IPC-only mode
    [    5.648165]  remoteproc4#vdev0buffer: assigned reserved memory node vision-apps-c71-dma-memory@aa000000
    [    5.666488] virtio_rpmsg_bus virtio4: rpmsg host is online
    [    5.672036] virtio_rpmsg_bus virtio4: creating channel rpmsg_chrdev addr 0xd
    [    5.678399] remoteproc remoteproc5: 5d00000.r5f is available
    [    5.680137]  remoteproc4#vdev0buffer: registered virtio4 (type 7)
    [    5.690923] remoteproc remoteproc4: remote processor 64800000.dsp is now attached
    [    5.838417] remoteproc remoteproc5: attaching to 5d00000.r5f
    [    5.933414] platform 5d00000.r5f: R5F core initialized in IPC-only mode
    [    6.089485]  remoteproc5#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a4000000
    [    6.159065] virtio_rpmsg_bus virtio5: rpmsg host is online
    [    6.173997] virtio_rpmsg_bus virtio5: creating channel ??}?????
    [    6.183001] virtio_rpmsg_bus virtio5: creating channel rpmsg_chrdev addr 0x15
    
    >>>>>[    6.195459] virtio_rpmsg_bus virtio4: creating channel rpmsg_chrdev addr 0x15
    [    6.202765] virtio_rpmsg_bus virtio4: creating channel ti.ipc4.ping-pong addr 0xe
    >>>>>[    6.215421] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0x15
    >[    6.224023] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xe
    > [    6.233686] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0x15
    succe[    6.245225] virtio_rpmsg_bus virtio2: creating channel ti.ipc4.ping-pong addr 0xe
    [    6.252831] virtio_rpmsg_bus virtio3: creating channel rpmsg_chrdev addr 0x15
    [    6.259571]  remoteproc5#vdev0buffer: registered virtio5 (type 7)
    [    6.263492] virtio_rpmsg_bus virtio5: creating channel ti.ipc4.ping-pong addr 0xe
    eded Board_init(10002000)
    Set clock buffer cdce937.
    [    6.360077] remoteproc remoteproc5: remote processor 5d00000.r5f is now attached
    Enable & reset PHY!
    >>>>>>>>>>>> leaving EnetBoard_initEthFw()
    Enabling clocks!
    [    6.507886] platform 5e00000.r5f: configured R5F for IPC-only mode
    
    Assertion @ Line: 1048 in V1/enet_appboardutils_j721e_evm.c: false : failed !!!
    [    6.599893] platform 5e00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a6000000
    [    6.717307] remoteproc remoteproc6: 5e00000.r5f is available
    [    6.786586] remoteproc remoteproc6: attaching to 5e00000.r5f
    [    6.848545] platform 5e00000.r5f: R5F core initialized in IPC-only mode
    [    6.887006]  remoteproc6#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a6000000
    [    6.925936] virtio_rpmsg_bus virtio6: rpmsg host is online
    [    6.943539] virtio_rpmsg_bus virtio6: creating channel rpmsg_chrdev addr 0xd
    [    6.948540]  remoteproc6#vdev0buffer: registered virtio6 (type 7)
    [    6.981665] remoteproc remoteproc6: remote processor 5e00000.r5f is now attached
    [    7.009414] random: crng init done
    [    7.012916] random: 7 urandom warning(s) missed due to ratelimiting
    [    7.019280] omap_rng 4e10000.rng: Random Number Generator ver. 241b34c
    [  OK  ] Started Load/Save Random Seed.
    [    7.042033] remoteproc remoteproc7: b034000.pru is available
    [  OK  ] Created slice system-systemd\x2dfsck.slice.
    [    7.070138] remoteproc remoteproc8: b004000.rtu is available
    [    7.088181] platform 5f00000.r5f: configured R5F for IPC-only mode
    [    7.119705] platform 5f00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a7000000
    [    7.124954] remoteproc remoteproc10: b00a000.txpru is available
    [    7.131529] usbcore: registered new interface driver usbfs
    [    7.137470] remoteproc remoteproc11: b038000.pru is available
    [    7.174090] remoteproc remoteproc9: 5f00000.r5f is available
    [    7.191426] usbcore: registered new interface driver hub
    [    7.196462] remoteproc remoteproc12: b006000.rtu is available
    [    7.203061] remoteproc remoteproc9: attaching to 5f00000.r5f
    [    7.208569] remoteproc remoteproc13: b00c000.txpru is available
    [    7.215202] usbcore: registered new device driver usb
    [    7.220844] remoteproc remoteproc14: b134000.pru is available
    [    7.227211] platform 5f00000.r5f: R5F core initialized in IPC-only mode
    [    7.229736] remoteproc remoteproc15: b104000.rtu is available
    [    7.244301] remoteproc remoteproc16: b10a000.txpru is available
    [    7.250339]  remoteproc9#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a7000000
    [    7.250987] remoteproc remoteproc17: b138000.pru is available
    [    7.266891] virtio_rpmsg_bus virtio7: rpmsg host is online
    [    7.274266] remoteproc remoteproc18: b106000.rtu is available
    [    7.275213]  remoteproc9#vdev0buffer: registered virtio7 (type 7)
    [    7.286189] virtio_rpmsg_bus virtio7: creating channel rpmsg_chrdev addr 0xd
    [    7.294005] remoteproc remoteproc19: b10c000.txpru is available
    [    7.410160] remoteproc remoteproc9: remote processor 5f00000.r5f is now attached
    [  OK  ] Found device /dev/mmcblk1p1.
             Starting File System Check on /dev/mmcblk1p1...
    [    7.583789] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [  OK  ] Started File System Check on /dev/mmcblk1p1.
             Mounting /run/media/mmcblk1p1...
    [    7.634188] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [  OK  ] Mounted /run/media/mmcblk1p1.
    [    7.671802] xhci-hcd xhci-hcd.0.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000010010
    [    7.699720] xhci-hcd xhci-hcd.0.auto: irq 622, io mem 0x06010000
    [    7.706761] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    [    7.715041] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    7.722331] usb usb1: Product: xHCI Host Controller
    [    7.727207] usb usb1: Manufacturer: Linux 5.10.100-g7a7a3af903 xhci-hcd
    [    7.733810] usb usb1: SerialNumber: xhci-hcd.0.auto
    [    7.738957] hub 1-0:1.0: USB hub found
    [    7.742752] hub 1-0:1.0: 1 port detected
    [    7.747603] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    7.753091] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [    7.760742] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
    [    7.767316] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    7.775437] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
    [    7.783690] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    7.790901] usb usb2: Product: xHCI Host Controller
    [    7.795769] usb usb2: Manufacturer: Linux 5.10.100-g7a7a3af903 xhci-hcd
    [    7.802371] usb usb2: SerialNumber: xhci-hcd.0.auto
    [    7.807543] hub 2-0:1.0: USB hub found
    [    7.811291] hub 2-0:1.0: 1 port detected
    [  OK  ] Started udev Wait for Complete Device Initialization.
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  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.
             Starting Reboot and dump vmcore via kexec...
    [  OK  ] Listening on Docker Socket for the API.
    [  OK  ] Started Reboot and dump vmcore via kexec.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started Periodic Command Scheduler.
    [  OK  ] Started D-Bus System Message Bus.
             Starting Print notice about GPLv3 packages...
             Starting set host name as per compatible name...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
    [  OK  ] Started irqbalance daemon.
             Starting Telephony service...
             Starting rc.pvr.service...
             Starting startwlanap...
             Starting startwlansta...
             Starting Login Service...
    [  OK  ] Started TEE Supplicant.
             Starting Update weston ini� based on the platform name...
    [  OK  ] Started IPv6 Packet Filtering Framework.
    [  OK  ] Started IPv4 Packet Filtering Framework.
    [  OK  ] Started startwlansta.
    [  OK  ] Reached target Network (Pre).
             Starting Network Service...
    [  OK  ] Started set host name as per compatible name.
    [  OK  ] Started rc.pvr.service.
    [  OK  ] Started startwlanap.
    [  OK  ] Started Update weston ini �ge based on the platform name.
             Starting weston.service...
    [  OK  ] Started Telephony service.
    [  OK  ] Started Network Service.
             Starting Wait for Network to be Configured...
             Starting Network Name Resolution...[    8.479775] Bluetooth: Core ver 2.22
    
    [    8.483949] NET: Registered protocol family 31
    [    8.495339] Bluetooth: HCI device and connection manager initialized
    [    8.505352] Bluetooth: HCI socket layer initialized
    [    8.514455] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
    [    8.524435] Bluetooth: L2CAP socket layer initialized
    [    8.529513] Bluetooth: SCO socket layer initialized
    [    8.593516] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    [  OK  ] Started Login Service.
    [  OK  ] Listening on Load/Save RF �itch Status /dev/rfkill Watch.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Host and Network Name Lookups.
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Enable and configure wl18xx bluetooth stack...
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting Simple Network Ma�ent Protocol (SNMP) Daemon....
             Starting Permit User Sessions...
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [  OK  ] Started Simple Network Man�ement Protocol (SNMP) Daemon..
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            autoconf
            bash-dev
            bash
            bc
            binutils
            cifs-utils
            coreutils-stdbuf
            coreutils
            cpio
            cpp-symlinks
            cpp
            dosfstools
            elfutils
            g++-symlinks
            g++
            gawk
            gcc-symlinks
            gcc
            gdb
            gdbserver
            gettext
            glmark2
            gstreamer1.0-libav-dev
            gstreamer1.0-libav
            gzip
            less
            libasm1
            libbfd
            libdw1
            libelf1
            libgdbm-compat4
            libgdbm-dev
            libgdbm6
            libgettextlib
            libgettextsrc
            libgmp-dev
            libgmp10
            libgmpxx4
            libidn2-0
            libidn2-dev
            libmpc3
            libmpfr6
            libreadline-dev
            libreadline8
            libunistring-dev
            libunistring2
            m4-dev
            m4
            make
            nettle-dev
            nettle
            parted
            python3-rfc3987
            python3-strict-rfc3339
            tar
            which
            zeromq
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [  OK  ] Started Print notice about GPLv3 packages.
    [  OK  ] Started weston.service.
             Starting DEMO...
             Starting telnetd.service...
    [  OK  ] Started DEMO.
    [  OK  ] Started telnetd.service.
    [   11.607040] PVR_K:  926: RGX Firmware image 'rgx.fw.22.104.208.318' loaded
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org j7-evm ttyS2
    
    Arago 2021.09 j7-evm ttyS2
    
    j7-evm login: [  129.307983] Initializing XFRM netlink socket
    [  132.118835] process 'docker/tmp/qemu-check358283069/check' started with executable stack
    
    j7-evm login: root
    root@j7-evm:~# dmesg < grep cpsw
    -sh: grep: No such file or directory
    root@j7-evm:~# dmesg | grep cpsw
    [    1.146221] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    1.322251] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    1.355671] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    1.363496] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    1.370729] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    1.377154] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    8.593516] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    root@j7-evm:~#
    

  • also adding MCU2_0 logs - anything starting with leading ">>>>>>>>>>>>" is my debug logs:

    root@j7-evm:~# . /opt/vision_apps/vision_apps_init.sh
    root@j7-evm:~# [MCU2_0]      3.801493 s: CIO: Init ... Done !!!
    [MCU2_0]      3.801567 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_0]      3.801607 s: APP: Init ... !!!
    [MCU2_0]      3.801631 s: SCICLIENT: Init ... !!!
    [MCU2_0]      3.801881 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [MCU2_0]      3.801929 s: SCICLIENT: DMSC FW revision 0x16
    [MCU2_0]      3.801959 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_0]      3.802007 s: SCICLIENT: Init ... Done !!!
    [MCU2_0]      3.802038 s: UDMA: Init ... !!!
    [MCU2_0]      3.803381 s: UDMA: Init ... Done !!!
    [MCU2_0]      3.803444 s: MEM: Init ... !!!
    [MCU2_0]      3.803488 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ d9000000 of size 16777216 bytes !!!
    [MCU2_0]      3.803566 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000000) @ 3600000 of size 262144 bytes !!!
    [MCU2_0]      3.803630 s: MEM: Init ... Done !!!
    [MCU2_0]      3.803655 s: IPC: Init ... !!!
    [MCU2_0]      3.803719 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_0]      3.803770 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_0]     11.615466 s: IPC: HLOS is ready !!!
    [MCU2_0]     11.631433 s: IPC: Init ... Done !!!
    [MCU2_0]     11.631501 s: APP: Syncing with 5 CPUs ... !!!
    [MCU2_0]     12.232462 s: APP: Syncing with 5 CPUs ... Done !!!
    [MCU2_0]     12.232673 s: REMOTE_SERVICE: Init ... !!!
    [MCU2_0]     12.234393 s: REMOTE_SERVICE: Init ... Done !!!
    [MCU2_0]     12.234462 s: >>>>>>>>>>>> appEthFwInit()
    [MCU2_0]     12.234498 s: ETHFW: Init ... !!!
    [MCU2_0]     12.511578 s: >>>>>>>>>>>> appEthFwInit(): calling EthApp_initEthFw()
    [MCU2_0]     12.511703 s: >>>>>>>>>>>> EthApp_initEthFw(): calling EthFw_init() ...
    [MCU2_0]     12.511788 s: ETHFW: Shared multicasts (software fanout):
    [MCU2_0]     12.511823 s:   01:00:5e:00:00:01
    [MCU2_0]     12.511874 s:   01:00:5e:00:00:fb
    [MCU2_0]     12.511922 s:   01:00:5e:00:00:fc
    [MCU2_0]     12.511969 s:   33:33:00:00:00:01
    [MCU2_0]     12.512029 s:   33:33:ff:1d:92:c2
    [MCU2_0]     12.512076 s:   01:80:c2:00:00:00
    [MCU2_0]     12.512123 s:   01:80:c2:00:00:03
    [MCU2_0]     12.512172 s: ETHFW: Reserved multicasts:
    [MCU2_0]     12.512199 s:   01:80:c2:00:00:0e
    [MCU2_0]     12.512247 s:   01:1b:19:00:00:00
    [MCU2_0]     12.512326 s: >>>>>>>>>>>> EthFw_init(): calling EthFw_initMcm() ...
    [MCU2_0]     12.512536 s: >>>>>>>>>>>> EthFw_initMcm(): debug1 status=0
    [MCU2_0]     12.512640 s: >>>>>>>>>>>> EnetMcm_open()
    [MCU2_0]     12.512683 s: EnetMcm: CPSW_9G on MAIN NAVSS
    [MCU2_0]     12.518263 s: >>>>>>>>>>>> EnetMcm_open() calling Enet_open() ...
    [MCU2_0]     12.522986 s: >>>>>>>>>>>> EnetMcm_open() creating periodic task ...
    [MCU2_0]     12.523214 s: >>>>>>>>>>>> EnetMcm_open() calling EnetMcm_enablePorts() ...
    [MCU2_0]     12.523298 s: PHY 0 is alive
    [MCU2_0]     12.523351 s: PHY 3 is alive
    [MCU2_1]      3.755607 s: CIO: Init ... Done !!!
    [MCU2_1]      3.755682 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_1]      3.755725 s: APP: Init ... !!!
    [MCU2_1]      3.755750 s: SCICLIENT: Init ... !!!
    [MCU2_1]      3.756012 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [MCU2_1]      3.756060 s: SCICLIENT: DMSC FW revision 0x16
    [MCU2_1]      3.756094 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_1]      3.756130 s: SCICLIENT: Init ... Done !!!
    [MCU2_1]      3.756173 s: UDMA: Init ... !!!
    [MCU2_1]      3.757722 s: UDMA: Init ... Done !!!
    [MCU2_1]      3.757788 s: MEM: Init ... !!!
    [MCU2_1]      3.757830 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ da000000 of size 16777216 bytes !!!
    [MCU2_1]      3.757905 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000001) @ 3640000 of size 262144 bytes !!!
    [MCU2_1]      3.757966 s: MEM: Init ... Done !!!
    [MCU2_1]      3.757991 s: IPC: Init ... !!!
    [MCU2_1]      3.758052 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_1]      3.758102 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_1]     12.216911 s: IPC: HLOS is ready !!!
    [MCU2_1]     12.232341 s: IPC: Init ... Done !!!
    [MCU2_1]     12.232410 s: APP: Syncing with 5 CPUs ... !!!
    [MCU2_1]     12.232461 s: APP: Syncing with 5 CPUs ... Done !!!
    [MCU2_1]     12.232497 s: REMOTE_SERVICE: Init ... !!!
    [MCU2_1]     12.234422 s: REMOTE_SERVICE: Init ... Done !!!
    [MCU2_1]     12.234490 s: FVID2: Init ... !!!
    [MCU2_1]     12.234569 s: FVID2: Init ... Done !!!
    [MCU2_1]     12.234603 s: VHWA: DMPAC: Init ... !!!
    [MCU2_1]     12.234632 s: SCICLIENT: Sciclient_pmSetModuleState module=48 state=2
    [MCU2_1]     12.235231 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_1]     12.235273 s: SCICLIENT: Sciclient_pmSetModuleState module=305 state=2
    [MCU2_1]     12.235751 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_1]     12.235786 s: VHWA: DOF Init ... !!!
    [MCU2_1]     12.244342 s: VHWA: DOF Init ... Done !!!
    [MCU2_1]     12.244407 s: VHWA: SDE Init ... !!!
    [MCU2_1]     12.247110 s: VHWA: SDE Init ... Done !!!
    [MCU2_1]     12.247174 s: VHWA: DMPAC: Init ... Done !!!
    [MCU2_1]     12.247221 s:  VX_ZONE_INIT:Enabled
    [MCU2_1]     12.247248 s:  VX_ZONE_ERROR:Enabled
    [MCU2_1]     12.247274 s:  VX_ZONE_WARNING:Enabled
    [MCU2_1]     12.248464 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DMPAC_SDE
    [MCU2_1]     12.248721 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DMPAC_DOF
    [MCU2_1]     12.248960 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target IPU1-1
    [MCU2_1]     12.249014 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    [MCU2_1]     12.249052 s: APP: OpenVX Target kernel init ... !!!
    [MCU2_1]     12.249361 s: APP: OpenVX Target kernel init ... Done !!!
    [MCU2_1]     12.249408 s: UDMA Copy: Init ... !!!
    [MCU2_1]     12.251171 s: UDMA Copy: Init ... Done !!!
    [MCU2_1]     12.251242 s: APP: Init ... Done !!!
    [MCU2_1]     12.251274 s: APP: Run ... !!!
    [MCU2_1]     12.251299 s: IPC: Starting echo test ...
    [MCU2_1]     12.254245 s: APP: Run ... Done !!!
    [MCU2_1]     12.255505 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C66X_1[P] C66X_2[.] C7X_1[.]
    [MCU2_1]     12.255634 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C66X_1[P] C66X_2[P] C7X_1[.]
    [MCU2_1]     12.255731 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C66X_1[P] C66X_2[P] C7X_1[P]
    [C6x_1 ]      3.864973 s: CIO: Init ... Done !!!
    [C6x_1 ]      3.864999 s: ### CPU Frequency = 1350000000 Hz
    [C6x_1 ]      3.865010 s: APP: Init ... !!!
    [C6x_1 ]      3.865017 s: SCICLIENT: Init ... !!!
    [C6x_1 ]      3.865245 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [C6x_1 ]      3.865256 s: SCICLIENT: DMSC FW revision 0x16
    [C6x_1 ]      3.865266 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C6x_1 ]      3.865276 s: SCICLIENT: Init ... Done !!!
    [C6x_1 ]      3.865285 s: UDMA: Init ... !!!
    [C6x_1 ]      3.866856 s: UDMA: Init ... Done !!!
    [C6x_1 ]      3.866875 s: MEM: Init ... !!!
    [C6x_1 ]      3.866888 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ dc000000 of size 16777216 bytes !!!
    [C6x_1 ]      3.866906 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 800000 of size 229376 bytes !!!
    [C6x_1 ]      3.866922 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ dd000000 of size 50331648 bytes !!!
    [C6x_1 ]      3.866938 s: MEM: Init ... Done !!!
    [C6x_1 ]      3.866946 s: IPC: Init ... !!!
    [C6x_1 ]      3.866968 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_1 ]      3.866981 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_1 ]     11.068805 s: IPC: HLOS is ready !!!
    [C6x_1 ]     11.073246 s: IPC: Init ... Done !!!
    [C6x_1 ]     11.073277 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_1 ]     12.232460 s: APP: Syncing with 5 CPUs ... Done !!!
    [C6x_1 ]     12.232473 s: REMOTE_SERVICE: Init ... !!!
    [C6x_1 ]     12.233167 s: REMOTE_SERVICE: Init ... Done !!!
    [C6x_1 ]     12.233206 s:  VX_ZONE_INIT:Enabled
    [C6x_1 ]     12.233218 s:  VX_ZONE_ERROR:Enabled
    [C6x_1 ]     12.233228 s:  VX_ZONE_WARNING:Enabled
    [C6x_1 ]     12.233990 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    [C6x_1 ]     12.234007 s: APP: OpenVX Target kernel init ... !!!
    [C6x_1 ]     12.234382 s: APP: OpenVX Target kernel init ... Done !!!
    [C6x_1 ]     12.234404 s: UDMA Copy: Init ... !!!
    [C6x_1 ]     12.238105 s: UDMA Copy: Init ... Done !!!
    [C6x_1 ]     12.238122 s: APP: Init ... Done !!!
    [C6x_1 ]     12.239014 s: APP: Run ... !!!
    [C6x_1 ]     12.239024 s: IPC: Starting echo test ...
    [C6x_1 ]     12.240189 s: APP: Run ... Done !!!
    [C6x_1 ]     12.240528 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[s] C66X_2[x] C7X_1[P]
    [C6x_1 ]     12.240776 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[s] C66X_2[P] C7X_1[P]
    [C6x_1 ]     12.254819 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C66X_1[s] C66X_2[P] C7X_1[P]
    [C6x_2 ]      3.953116 s: CIO: Init ... Done !!!
    [C6x_2 ]      3.953142 s: ### CPU Frequency = 1350000000 Hz
    [C6x_2 ]      3.953153 s: APP: Init ... !!!
    [C6x_2 ]      3.953162 s: SCICLIENT: Init ... !!!
    [C6x_2 ]      3.953391 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [C6x_2 ]      3.953403 s: SCICLIENT: DMSC FW revision 0x16
    [C6x_2 ]      3.953413 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C6x_2 ]      3.953424 s: SCICLIENT: Init ... Done !!!
    [C6x_2 ]      3.953433 s: UDMA: Init ... !!!
    [C6x_2 ]      3.954998 s: UDMA: Init ... Done !!!
    [C6x_2 ]      3.955018 s: MEM: Init ... !!!
    [C6x_2 ]      3.955032 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ e0000000 of size 16777216 bytes !!!
    [C6x_2 ]      3.955050 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 800000 of size 229376 bytes !!!
    [C6x_2 ]      3.955066 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ e1000000 of size 50331648 bytes !!!
    [C6x_2 ]      3.955082 s: MEM: Init ... Done !!!
    [C6x_2 ]      3.955092 s: IPC: Init ... !!!
    [C6x_2 ]      3.955115 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_2 ]      3.955129 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_2 ]     11.458871 s: IPC: HLOS is ready !!!
    [C6x_2 ]     11.462747 s: IPC: Init ... Done !!!
    [C6x_2 ]     11.462774 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_2 ]     12.232460 s: APP: Syncing with 5 CPUs ... Done !!!
    [C6x_2 ]     12.232473 s: REMOTE_SERVICE: Init ... !!!
    [C6x_2 ]     12.233178 s: REMOTE_SERVICE: Init ... Done !!!
    [C6x_2 ]     12.233219 s:  VX_ZONE_INIT:Enabled
    [C6x_2 ]     12.233231 s:  VX_ZONE_ERROR:Enabled
    [C6x_2 ]     12.233240 s:  VX_ZONE_WARNING:Enabled
    [C6x_2 ]     12.234012 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    [C6x_2 ]     12.234029 s: APP: OpenVX Target kernel init ... !!!
    [C6x_2 ]     12.234409 s: APP: OpenVX Target kernel init ... Done !!!
    [C6x_2 ]     12.234428 s: UDMA Copy: Init ... !!!
    [C6x_2 ]     12.238256 s: UDMA Copy: Init ... Done !!!
    [C6x_2 ]     12.238275 s: APP: Init ... Done !!!
    [C6x_2 ]     12.239134 s: APP: Run ... !!!
    [C6x_2 ]     12.239148 s: IPC: Starting echo test ...
    [C6x_2 ]     12.240396 s: APP: Run ... Done !!!
    [C6x_2 ]     12.240716 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[.] C66X_2[s] C7X_1[P]
    [C6x_2 ]     12.240775 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[s] C7X_1[P]
    [C6x_2 ]     12.254850 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C66X_1[P] C66X_2[s] C7X_1[P]
    [C7x_1 ]      4.181506 s: CIO: Init ... Done !!!
    [C7x_1 ]      4.181521 s: ### CPU Frequency = 1000000000 Hz
    [C7x_1 ]      4.181533 s: APP: Init ... !!!
    [C7x_1 ]      4.181541 s: SCICLIENT: Init ... !!!
    [C7x_1 ]      4.181753 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [C7x_1 ]      4.181767 s: SCICLIENT: DMSC FW revision 0x16
    [C7x_1 ]      4.181777 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C7x_1 ]      4.181788 s: SCICLIENT: Init ... Done !!!
    [C7x_1 ]      4.181796 s: UDMA: Init ... !!!
    [C7x_1 ]      4.182977 s: UDMA: Init ... Done !!!
    [C7x_1 ]      4.182990 s: MEM: Init ... !!!
    [C7x_1 ]      4.183000 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ 100000000 of size 268435456 bytes !!!
    [C7x_1 ]      4.183021 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000001) @ 70020000 of size 8159232 bytes !!!
    [C7x_1 ]      4.183038 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 64800000 of size 458752 bytes !!!
    [C7x_1 ]      4.183056 s: MEM: Created heap (L1_MEM, id=3, flags=0x00000001) @ 64e00000 of size 16384 bytes !!!
    [C7x_1 ]      4.183073 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ e4000000 of size 385875968 bytes !!!
    [C7x_1 ]      4.183091 s: MEM: Init ... Done !!!
    [C7x_1 ]      4.183099 s: IPC: Init ... !!!
    [C7x_1 ]      4.183112 s: IPC: 6 CPUs participating in IPC !!!
    [C7x_1 ]      4.183126 s: IPC: Waiting for HLOS to be ready ... !!!
    [C7x_1 ]     11.724334 s: IPC: HLOS is ready !!!
    [C7x_1 ]     11.726354 s: IPC: Init ... Done !!!
    [C7x_1 ]     11.726374 s: APP: Syncing with 5 CPUs ... !!!
    [C7x_1 ]     12.232461 s: APP: Syncing with 5 CPUs ... Done !!!
    [C7x_1 ]     12.232478 s: REMOTE_SERVICE: Init ... !!!
    [C7x_1 ]     12.232643 s: REMOTE_SERVICE: Init ... Done !!!
    [C7x_1 ]     12.232666 s:  VX_ZONE_INIT:Enabled
    [C7x_1 ]     12.232675 s:  VX_ZONE_ERROR:Enabled
    [C7x_1 ]     12.232685 s:  VX_ZONE_WARNING:Enabled
    [C7x_1 ]     12.232927 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1
    [C7x_1 ]     12.232996 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_2
    [C7x_1 ]     12.233106 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_3
    [C7x_1 ]     12.233176 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_4
    [C7x_1 ]     12.233243 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_5
    [C7x_1 ]     12.233393 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_6
    [C7x_1 ]     12.233468 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_7
    [C7x_1 ]     12.233530 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_8
    [C7x_1 ]     12.233552 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    [C7x_1 ]     12.233565 s: APP: OpenVX Target kernel init ... !!!
    [C7x_1 ]     12.233750 s: APP: OpenVX Target kernel init ... Done !!!
    [C7x_1 ]     12.233764 s: APP: Init ... Done !!!
    [C7x_1 ]     12.233773 s: APP: Run ... !!!
    [C7x_1 ]     12.233781 s: IPC: Starting echo test ...
    [C7x_1 ]     12.233952 s: APP: Run ... Done !!!
    [C7x_1 ]     12.240541 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[.] C7X_1[s]
    [C7x_1 ]     12.240786 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[P] C7X_1[s]
    [C7x_1 ]     12.254877 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C66X_1[P] C66X_2[P] C7X_1[s]
    root@j7-evm:~#
    

  • 1. subsequent to our call I have disabled all ports of CPSW9G which connect to a PHY in app_ethfw_freertos.c:

    static Enet_MacPort gEthAppPorts[] =
    {
    //    ENET_MAC_PORT_1, /* RGMII to PHY */
    //    ENET_MAC_PORT_2, /* RMII to PHY  */
        ENET_MAC_PORT_3, /* MAC to MAC   */
    //    ENET_MAC_PORT_4, /* RMII to PHY  */
        ENET_MAC_PORT_5, /* MAC to MAC   */
    //    ENET_MAC_PORT_6, /* RGMII to PHY */
    };
    
    static EthFw_VirtPortCfg gEthApp_virtPortCfg[] =
    {
        {
            .remoteCoreId = IPC_MPU1_0,
            .portId       = ETHREMOTECFG_SWITCH_PORT_0,
        },
    };

    with the result, that still the MCU2_0 logs state, that

    [MCU2_0] 12.706668 s: PHY 0 is alive
    [MCU2_0] 12.706715 s: PHY 3 is alive

    which b.t.w. is the same as seen in the SDKR7.2 logs

    2. trying to find out, where the MCU2_0 FW gets hung, I find the following:

    - starting from vision_apps/utils/ethfw/src/app_ethfw_freertos.c function appEthFwInit() we a chain of calls, that never return:
    - vision_apps/utils/ethfw/src/app_ethfw_freertos.c: appEthFwInit() -> EthApp_initEthFw() -> EthFw_init()
    - ethfw/ethfw/src/ethfw.c: EthFw_init() -> EthFw_initMcm() -> EnetMcm_init(), EnetMcm_getCmdIf(), EnetMcm_acquireHandleInfo()
    - pdk_jacinto_08_02_00_21/packages/ti/drv/enet/examples/utils/enet_mcm.c: EnetMcm_acquireHandleInfo() is blocking. so here

    void EnetMcm_acquireHandleInfo(const EnetMcm_CmdIf *hMcmCmdIf,
                                   EnetMcm_HandleInfo *handleInfo)
    {
        EnetMcm_mailboxObj msg;
    
        memset(&msg, 0, sizeof(msg));
        msg.cmd = MCM_GET_HANDLE;
        if ((hMcmCmdIf != NULL) && (handleInfo != NULL))
        {
            MailboxP_post(hMcmCmdIf->hMboxCmd, &msg, SemaphoreP_WAIT_FOREVER);
            MailboxP_pend(hMcmCmdIf->hMboxResponse, &msg, SemaphoreP_WAIT_FOREVER);
            EnetAppUtils_assert(msg.cmd == MCM_RESPONSE_GET_HANDLE);
    
            *handleInfo = msg.msgBody.handleInfo;
        }
        else
        {
            EnetAppUtils_assert(false);
        }
    }
    

    it would be interesting which condition this is, that never is asserted

  • --- Important Update ---

    1. I found a quite essential bug in my code modifications (a break was missing -> falling through to assert statement, visible in the line 621 of the linux startup log above)

    2. this bug fixed I run into an assertion: Assertion @ Line: 1013 in /home/schandl/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/ethfw/ethfw/src/ethfw.c

    int32_t EthFw_initRemoteConfig(EthFw_Handle hEthFw)
    {
        CpswProxyServer_Config_t cfg;
        int32_t status;
        uint32_t i;
    
        EnetAppUtils_assert(hEthFw != NULL);
    
        /* Initialize Proxy Server */
        memset(&cfg, 0, sizeof(cfg));
        cfg.getMcmCmdIfCb = &EthFw_getMcmCmdIfCb;
        cfg.initEthfwDeviceDataCb = &EthFw_getDeviceData;
        cfg.notifyCb = &EthFw_handleProfileInfoNotify;
        cfg.rpmsgEndPointId = REMOTE_DEVICE_ENDPT;
    
        /* Enable MAC ports */
        cfg.numMacPorts = gEthFwObj.numPorts;
        for (i = 0U; i < cfg.numMacPorts; i++)
        {
            cfg.macPort[i] = gEthFwObj.ports[i].macPort;
        }
    
        /* Remote cores which use remote_device framework */
        cfg.numVirtPorts = gEthFwObj.numVirtPorts;
        for (i = 0U; i < cfg.numVirtPorts; i++)
        {
            cfg.virtPortCfg[i].remoteCoreId = gEthFwObj.virtPortCfg[i].remoteCoreId;
            cfg.virtPortCfg[i].portId       = gEthFwObj.virtPortCfg[i].portId;
        }
    
        /* AUTOSAR core */
        EnetAppUtils_assert(gEthFwObj.numAutosarVirtPorts == 1);
        cfg.autosarEthDriverRemoteCoreId = gEthFwObj.autosarVirtPortCfg[0].remoteCoreId;
        cfg.autosarEthDriverVirtPort     = gEthFwObj.autosarVirtPortCfg[0].portId;
        cfg.autosarEthDeviceEndPointId   = AUTOSAR_ETHDRIVER_DEVICE_ENDPT;
    
        /* Enable server-to-client notify service */
        cfg.notifyServiceCpswType = gEthFwObj.enetType;
        cfg.notifyServiceRemoteCoreId[0] = IPC_MPU1_0;
        cfg.notifyServiceRemoteCoreId[1] = IPC_MCU2_1;
    
        /* Set CPSW Proxy shared multicast config.
         * All parameters have already been checked. */
        cfg.sharedMcastCfg.filterAddMacSharedCb = (CpswProxyServer_FilterAddMacSharedCb)gEthFwObj.sharedMcastCfg.filterAddMacSharedCb;
        cfg.sharedMcastCfg.filterDelMacSharedCb = (CpswProxyServer_FilterDelMacSharedCb)gEthFwObj.sharedMcastCfg.filterDelMacSharedCb;
        cfg.sharedMcastCfg.numMacAddr = gEthFwObj.sharedMcastCfg.numMacAddr;
        memcpy(&cfg.sharedMcastCfg.macAddrList[0U][0U],
               &gEthFwObj.sharedMcastCfg.macAddrList[0U][0U],
               cfg.sharedMcastCfg.numMacAddr * ENET_MAC_ADDR_LEN);
    
        /* Set CPSW Proxy reserved multicast config */
        cfg.rsvdMcastCfg.numMacAddr = gEthFwObj.rsvdMcastCfg.numMacAddr;
        memcpy(&cfg.rsvdMcastCfg.macAddrList[0U][0U],
               &gEthFwObj.rsvdMcastCfg.macAddrList[0U][0U],
               cfg.rsvdMcastCfg.numMacAddr * ENET_MAC_ADDR_LEN);
    
        cfg.dfltVlanIdMacOnlyPorts = gEthFwObj.dfltVlanIdMacOnlyPorts;
        cfg.dfltVlanIdSwitchPorts  = gEthFwObj.dfltVlanIdSwitchPorts;
    
        status = CpswProxyServer_init(&cfg);
        if (status != ENET_SOK)
        {
            appLogPrintf("EthFw_initRemoteConfig() failed to init CPSW Proxy: %d\n", status);
        }
    
        /* Start Proxy Server */
        if (status == ENET_SOK)
        {
            status = CpswProxyServer_start();
            if (status != ENET_SOK)
            {
                appLogPrintf("EthFw_initRemoteConfig() failed to start CPSW Proxy: %d\n", status);
            }
        }
    
        return status;
    }
    


    As we also agreed in our live meeting we included an empty gEthApp_autosarVirtPortCfg[]:
    static EthFw_VirtPortCfg gEthApp_autosarVirtPortCfg[] =
    {
    };

    so given the assert statement, this will not work. How to best work around his?

    Pls. advise!

  • tentatively removing the lines around autosar core assertion

        /* AUTOSAR core */
    //    EnetAppUtils_assert(gEthFwObj.numAutosarVirtPorts == 1);
    //    cfg.autosarEthDriverRemoteCoreId = gEthFwObj.autosarVirtPortCfg[0].remoteCoreId;
    //    cfg.autosarEthDriverVirtPort     = gEthFwObj.autosarVirtPortCfg[0].portId;
    //    cfg.autosarEthDeviceEndPointId   = AUTOSAR_ETHDRIVER_DEVICE_ENDPT;

    the MCU2_0 firmware proceeds further and now fails at assertion Assertion @ Line: 1381 in enet_mcm.c: msg.cmd == MCM_RESPONSE_CORE_ATTACH : failed !!!
    void EnetMcm_coreAttach(const EnetMcm_CmdIf *hMcmCmdIf,
                            uint32_t coreId,
                            EnetPer_AttachCoreOutArgs *attachInfo)
    {
        EnetMcm_mailboxObj msg;
    
        memset(&msg, 0, sizeof(msg));
        if ((hMcmCmdIf != NULL) && (attachInfo != NULL))
        {
            msg.cmd            = MCM_CORE_ATTACH;
            msg.msgBody.coreId = coreId;
    
            MailboxP_post(hMcmCmdIf->hMboxCmd, &msg, SemaphoreP_WAIT_FOREVER);
            MailboxP_pend(hMcmCmdIf->hMboxResponse, &msg, SemaphoreP_WAIT_FOREVER);
            EnetAppUtils_assert(msg.cmd == MCM_RESPONSE_CORE_ATTACH);
            *attachInfo = msg.msgBody.attachInfo;
        }
        else
        {
            EnetAppUtils_assert(false);
        }
    }


    what does this error signify?

    Again, I attach the improved logs
    SDK8_2-TDA4_MAIN_RS232_20220718_140014.txt

  • more detailled debugging:

    in the RTOS logs we see:

    EnetAppUtils_allocTxCh() failed: -3
    EnetAppUtils_allocRxFlow() failed : -3
    Assertion @ Line: 445 in enet_udmautils.c: ENET_SOK == status : failed !!!


    and since -3 = ENET_EINVALIDPARAMS I printed the parameters e.g. to EnetAppUtils_allocTxCh():


    >>>>>>>>>>> EnetAppUils_openTxCh(): calling EnetAppUtils_allocTxCh(HostId:3,Handle:a38bdc7c,CoreKey:0)
    

    which parameters looks faulty?


    in the Linux logs we see:

    [ 6.734314] j721e-cpsw-virt-mac main_r5fss_scpsw9g_virt_mac0: rpmsg attach - fail -5
    [ 6.743680] j721e-cpsw-virt-mac: probe of main_r5fss_cpsw9g_virrt_mac0 failed with error -5


    further debugging in the drivers:
    >>>>>>>>>>>> j721e-cpsw-virt-mac->probe(main_r5fss_cpsw9g_virt_mac0) returns -5

    and that is in line 1302 of j721e-cpsw-virt-mac.c in function virt_cpsw_nuss_rdev_init():
    ret = common->rdev_switch_ops->attach_ext(common->rdev, &attach_info);
    if (ret) {
    dev_err(dev, "rpmsg attach - fail %d\n", ret);
    return ret;
    }

    which itself is a call to rpmsg_kdrv_switch_attach_ext()
    in line 162 of rpmsg-kdrv/rpmsg_kdrv_switch.c

    meaning we are one code line away from the desired "health" message!!!

    dev_err(dev, "rpmsg attach_ext - rx_mtu:%d features:%08X tx_mtu[0]:%d flow_idx:%d tx_cpsw_psil_dst_id:%d mac_addr:%pM mac-only:%d\n", . . . );

    we believe the Linux error to be a consequence of the RTOS error.

    as before ">>>>>>>>>>>>" marks my debug logs.

  • findings: it is the other way round - since rpmsg_kdrv_switch_attach_ext() exits early - rpmsg_kdrv_send_request_with_response() failing, the core_key is not set. core_key=0 causes RTOS failures.

  • Update:

    1.I introduced a bug when trying to fix the assertion

    Assertion @ Line: 1381 in enet_mcm.c: msg.cmd == MCM_RESPONSE_CORE_ATTACH : failed !!!
    

    which sometimes appears. (Still don't know what sometimes causes this assert error)

    2. Above bug fixed - we get the device eth1 respective to 9G switch

    3. but still no ping!

    Some observations (I attach the present logs):

    1. during startup at trying to CpswProxyServer_filterAddMacHandlerCb() for MC address 33:33:ff:1d:92:c1 the device transaction fails with -14 = EFAULT (bad address) - when I change the MC address in EthApp_SharedMcastAddrTable to 33:33:ff:1d:92:c1 so that it matches the eth1 MAC address of 70:ff:76:1d:92:c1 this error does not appear.

    2. address error also for 33:33:00:00:00:fb33:33:00:01:00:03, the former one not to be found in EthApp_SharedMcastAddrTable

    3. for MC address 01:80:c2:00:00:0e the error "Reserved mcast cannot be added to filter" is printed

    4. tcpdump on eth0:

    root@j7-evm:~# tcpdump -i eth0
    [   46.895247] device eth0 entered promiscuous mode
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
    20:51:11.960883 ARP, Request who-has 192.168.1.70 (Broadcast) tell 192.168.1.50, length 46
    20:51:12.090130 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 000f  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:12.300115 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0010  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:12.510136 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0011  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:13.140940 ARP, Request who-has 192.168.1.40 (Broadcast) tell 192.168.1.50, length 46
    20:51:14.842490 ARP, Request who-has 192.168.1.70 (Broadcast) tell 192.168.1.50, length 46
    20:51:19.041032 ARP, Request who-has 192.168.1.40 (Broadcast) tell 192.168.1.50, length 46
    20:51:20.720113 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0012  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:20.930123 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0013  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:21.006014 ARP, Request who-has 192.168.1.70 (Broadcast) tell 192.168.1.50, length 46
    20:51:21.140161 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0014  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:22.201075 ARP, Request who-has 192.168.1.40 (Broadcast) tell 192.168.1.50, length 46
    20:51:27.306117 ARP, Request who-has 192.168.1.70 (Broadcast) tell 192.168.1.50, length 46
    20:51:28.301109 ARP, Request who-has 192.168.1.40 (Broadcast) tell 192.168.1.50, length 46
    20:51:29.350103 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0015  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:29.560129 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0016  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:29.770103 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0017  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:30.142694 ARP, Request who-has 192.168.1.70 (Broadcast) tell 192.168.1.50, length 46
    20:51:30.790288 IP6 j7-evm > ip6-allrouters: ICMP6, router solicitation, length 16
    20:51:34.201198 ARP, Request who-has 192.168.1.40 (Broadcast) tell 192.168.1.50, length 46
    20:51:34.531138 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 24:76:25:98:19:b7 (oui Unknown), length 288
    20:51:34.931452 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 70:ff:76:1d:92:c1 (oui Unknown), length 288
    20:51:36.356251 ARP, Request who-has 192.168.1.70 (Broadcast) tell 192.168.1.50, length 46
    20:51:37.521278 ARP, Request who-has 192.168.1.40 (Broadcast) tell 192.168.1.50, length 46
    20:51:37.980118 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0018  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:38.190112 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 0019  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:38.400117 70:ff:76:1d:92:c2 (oui Unknown) > 01:80:c2:00:00:0e (oui Unknown), ethertype 802.1Q (0x8100), length 72:
            0x0000:  0202 0036 0000 7c00 0000 0000 0000 0000  ...6..|.........
            0x0010:  0000 0000 70ff 76ff fe1d 92c2 0003 001a  ....p.v.........
            0x0020:  057f 0000 0000 0000 0000 0000 0000 0000  ................
            0x0030:  0000 0000 0000                           ......
    20:51:42.656331 ARP, Request who-has 192.168.1.70 (Broadcast) tell 192.168.1.50, length 46
    20:51:43.463309 ARP, Request who-has 192.168.1.40 (Broadcast) tell 192.168.1.50, length 46
    ^C
    29 packets captured
    29 packets received by filter
    0 packets [   83.010479] device eth0 left promiscuous mode
    dropped by kernel
    12 packets dropped by interface
    root@j7-evm:~#
    

    a. DHCP requests from eth0, eth1
    b. can see ARP requests from Aurix (192.158.1.50)
    c. when assigning 192.168.1.70 to eth1, the Aurix does not ARP for this address

    5. tcpdump on eth1:

    root@j7-evm:~# tcpdump -i eth1
    [ 1574.751640] device eth1 entered promiscuous mode
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
    21:16:58.448910 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 A (QM)? DS1.local. (27)
    21:16:58.451134 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 AAAA (QM)? DS1.local. (27)
    21:16:59.448455 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 A (QM)? DS1.local. (27)
    21:16:59.452908 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 AAAA (QM)? DS1.local. (27)
    21:17:13.994337 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 70:ff:76:1d:92:c1 (oui Unknown), length 288
    21:17:40.520622 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 A (QM)? DS1.local. (27)
    21:17:40.521850 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 AAAA (QM)? DS1.local. (27)
    21:17:41.520859 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 A (QM)? DS1.local. (27)
    21:17:41.522110 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 AAAA (QM)? DS1.local. (27)
    21:17:57.375438 IP6 fe80::4ac2:c03a:dad4:6265.mdns > ff02::fb.mdns: 0 [7q] PTR (QM)? _ftp._tcp.local. PTR (QM)? _nfs._tcp.local. PTR (QM)? _afpovertcp._tcp.local. PTR (QM)? _smb._tcp.local. PTR (QM)? _sftp-ssh._tcp.local. PTR (QM)? _webdavs._tcp.local. PTR (QM)? _webdav._tcp.local. (118)
    21:18:18.617463 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 70:ff:76:1d:92:c1 (oui Unknown), length 288
    21:18:22.625310 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 A (QM)? DS1.local. (27)
    21:18:22.629208 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 AAAA (QM)? DS1.local. (27)
    21:18:23.624543 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 A (QM)? DS1.local. (27)
    21:18:23.628051 IP6 fe80::488a:b322:1cf5:ee4f.mdns > ff02::fb.mdns: 0 AAAA (QM)? DS1.local. (27)
    ^C
    

    DHCP requests from eth1?

    To me there seems to be a mix of ipv4 / ipv6 that does not look healthy?

    SDK8_2-TDA4_MAIN_RS232_20220725_065948.txt

    pls. advise!

  • Update:

    the current state of affairs

    1. the assertion in enet_mcm.c

    Assertion @ Line: 1381 in enet_mcm.c: msg.cmd == MCM_RESPONSE_CORE_ATTACH : failed !!!

    seems to be related to the MCM not being thread-safe, such that responses are not correctly distributed to the requesters. After fixing the above I reliably get eth0 as well as eth1 and following observations can be made:
    2. ping still only works from CON13 to Aurix (@ 192.168.1.50), not to eth0 (192.168.1.77), nor to eth1 (192.168.1.70).
    3. no ping from eth0 to eth1 nor to Aurix. no ping from eth1 to eth0 nor to Aurix
    4. but ssh can connect from eth0 to eth1 as well as ssh from eth1 to eth0
    5. I can see ARP requests and replies in tcpdump on eth0. ARP requests are replied by eth0
    6. ARP requests are replied by eth1 but not seen in tcpdump on eth1
    7. if I add the respective IGMP memberships at eth1
    ip maddr add 01:00:5e:00:00:01 dev eth1
    ip maddr add 01:00:5e:00:00:05 dev eth1
    ip maddr add 01:00:5e:00:00:08 dev eth1
    ip maddr add 01:00:5e:00:00:09 dev eth1
    ip maddr add 01:00:5e:00:00:0f dev eth1
    ip maddr add 01:00:5e:00:00:10 dev eth1
    ip maddr add 01:00:5e:00:00:13 dev eth1
    ip maddr add 01:00:5e:00:00:18 dev eth1
    ip maddr add 01:00:5e:00:00:19 dev eth1
    ip maddr add 01:00:5e:00:00:1b dev eth1
    ip maddr add 01:00:5e:00:00:1c dev eth1
    ip maddr add 01:00:5e:00:00:1d dev eth1
    I can receive the UDP-MC sent (always) by the Aurix at these addresses at eth0
    20:54:54.373495 IP 192.168.1.50.50050 > 239.0.0.5.50011: UDP, length 458
    20:54:54.373538 IP 192.168.1.50.50050 > 239.0.0.8.50011: UDP, length 9
    20:54:54.373592 IP 192.168.1.50.50050 > 239.0.0.28.50011: UDP, length 16
    20:54:54.383296 IP 192.168.1.50.50050 > 239.0.0.16.50011: UDP, length 7
    20:54:54.383349 IP 192.168.1.50.50050 > 239.0.0.19.50011: UDP, length 12
    20:54:54.383402 IP 192.168.1.50.50050 > 239.0.0.29.50011: UDP, length 9
    20:54:54.383492 IP 192.168.1.50.50050 > 239.0.0.5.50011: UDP, length 458
    20:54:54.383577 IP 192.168.1.50.50050 > 239.0.0.15.50011: UDP, length 517
    20:54:54.383618 IP 192.168.1.50.50050 > 239.0.0.9.50011: UDP, length 9
    20:54:54.393295 IP 192.168.1.50.50050 > 239.0.0.16.50011: UDP, length 7
    20:54:54.393349 IP 192.168.1.50.50050 > 239.0.0.19.50011: UDP, length 12
    20:54:54.393401 IP 192.168.1.50.50050 > 239.0.0.29.50011: UDP, length 9
    20:54:54.393491 IP 192.168.1.50.50050 > 239.0.0.5.50011: UDP, length 458
    20:54:54.393537 IP 192.168.1.50.50050 > 239.0.0.8.50011: UDP, length 9
    20:54:54.393592 IP 192.168.1.50.50050 > 239.0.0.27.50011: UDP, length 39
    as well as eth1.
    8. if I add the respective IGMP memberships at eth0 only I do not receive the UDP-MC at either I/F
    9. cannot ssh from CON13
     
    It seems strange how a ping would not work but an ssh does. The adding of MC addresses seems to configure the 9G switch w.r.t. MC, the endpoints at eth0, eth1 seem to enable MC by default.
  • Stefan,

    I don't see how this error can happen in MCM. Could you check what's the actual value of msg.cmd returned from MCM serverTask?

    Did removing AUTOSAR remote info trigger this issue? If so, I can try to reproduce it on TI EVM.

        /* AUTOSAR core */
    //    EnetAppUtils_assert(gEthFwObj.numAutosarVirtPorts == 1);
    //    cfg.autosarEthDriverRemoteCoreId = gEthFwObj.autosarVirtPortCfg[0].remoteCoreId;
    //    cfg.autosarEthDriverVirtPort     = gEthFwObj.autosarVirtPortCfg[0].portId;
    //    cfg.autosarEthDeviceEndPointId   = AUTOSAR_ETHDRIVER_DEVICE_ENDPT;

    -Misa

  • hi Misael,
    the MCM error you refer to the assertion MCM_RESPONSE_CORE_ATTACH? this happens because the use of mailbox in MCM is not thread safe. you can watch it happening in this log (look for my debug messages at [MCU2_0] with ">>>>>>>>>>>> EnetMcm ..."SDK8_2-TDA4_MAIN_RS232_20220728_115253.txt

    I think it has no priority reproducing this, since I patched that

    pls. rather have a look at my latest post (some ethernet working - ARP, SSH, other not working) in conjunction with our ethernet topology. I think it is now only some misconfiguration or some configuration missing - of the 9G switch? of the link between 9G switch and SJA1105 switch?. UDP multicast frames as they are issued by the Aurix seem to travel everywhere - also ARP requests - why would a ping not work?

    I also attach the logs of the patch where some of the ethernet starts showing. Can you find anything suspicious? something missing?

     SDK8_2-TDA4_MAIN_RS232_20220727_094026.txt

    your support is highly appreciated - thank you Stefan

  • the above attachments got swapped

    is the log of the version with the mailbox issue

    is the log of present state, where some ethernet features work

    sorry ...

  • Stefan,

    some ethernet working - ARP, SSH, other not working

    Are you running TAP app on Linux side? If not, please try setting the following build flags in ethfw_build_flags.mk:

    ETHFW_INTERCORE_ETH_SUPPORT=no
    ETHFW_PROXY_ARP_SUPPORT=yes

    I'm not sure how ARP is working for you as ARP requests packets (which are broadcast) are forwarded only to ETHFW.

  • dear Misael,

    1. am I running TAP app? t.b.h. I don't know but given that I don't know what that is and if it is not run by default, I would guess - no

    2. build flags are set at

    ETHFW_INTERCORE_ETH_SUPPORT=yes
    ETHFW_PROXY_ARP_SUPPORT=yes

    so I tried the setting at ETHFW_INTERCORE_ETH_SUPPORT=no, too. spoiler: it does not make any difference. the replies are always given as
    192.168.1.70 / 24:76:25:98:19:b7
    no matter whether this IP address is set at eth0

    root@j7-evm:~# ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.1.70  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::2676:25ff:fe98:19b7  prefixlen 64  scopeid 0x20<link>
            ether 24:76:25:98:19:b7  txqueuelen 1000  (Ethernet)
            RX packets 2842  bytes 503969 (492.1 KiB)
            RX errors 0  dropped 12  overruns 0  frame 0
            TX packets 34  bytes 5476 (5.3 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.1.71  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::72ff:76ff:fe1d:92c1  prefixlen 64  scopeid 0x20<link>
            ether 70:ff:76:1d:92:c1  txqueuelen 1000  (Ethernet)
            RX packets 2811  bytes 500393 (488.6 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 34  bytes 5476 (5.3 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@j7-evm:~# tcpdump -i eth0 -n arp
    [   60.267221] device eth0 entered promiscuous mode
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
    20:51:22.054475 ARP, Request who-has 192.168.1.40 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:27.159505 ARP, Request who-has 192.168.1.70 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:27.159539 ARP, Reply 192.168.1.70 is-at 24:76:25:98:19:b7, length 28
    20:51:28.154507 ARP, Request who-has 192.168.1.40 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:29.996100 ARP, Request who-has 192.168.1.70 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:29.996130 ARP, Reply 192.168.1.70 is-at 24:76:25:98:19:b7, length 28

    or at eth1
    root@j7-evm:~# ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.1.71  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::2676:25ff:fe98:19b7  prefixlen 64  scopeid 0x20<link>
            ether 24:76:25:98:19:b7  txqueuelen 1000  (Ethernet)
            RX packets 4010  bytes 710761 (694.1 KiB)
            RX errors 0  dropped 12  overruns 0  frame 0
            TX packets 35  bytes 5518 (5.3 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.1.70  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::72ff:76ff:fe1d:92c1  prefixlen 64  scopeid 0x20<link>
            ether 70:ff:76:1d:92:c1  txqueuelen 1000  (Ethernet)
            RX packets 3977  bytes 707065 (690.4 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 34  bytes 5476 (5.3 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@j7-evm:~# tcpdump -i eth0 -n arp
    [   64.064031] device eth0 entered promiscuous mode
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
    20:51:27.200055 ARP, Request who-has 192.168.1.70 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:27.200091 ARP, Reply 192.168.1.70 is-at 24:76:25:98:19:b7, length 28
    20:51:28.195059 ARP, Request who-has 192.168.1.40 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:30.036643 ARP, Request who-has 192.168.1.70 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:30.036673 ARP, Reply 192.168.1.70 is-at 24:76:25:98:19:b7, length 28
    20:51:34.095127 ARP, Request who-has 192.168.1.40 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46

    I never see ARP packets at "tcpdump -i eth1 -n arp". Since the Aurix does not stop ARPing for 192.168.1.70 it does not seem to receive the ARP reply.

    Just for curiosity I tried setting eth0 and eth1 to both these addresses that are being ARPed by Aurix and both are replied as being assigned at the same device:

    root@j7-evm:~# ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.1.40  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::2676:25ff:fe98:19b7  prefixlen 64  scopeid 0x20<link>
            ether 24:76:25:98:19:b7  txqueuelen 1000  (Ethernet)
            RX packets 2551  bytes 452966 (442.3 KiB)
            RX errors 0  dropped 9  overruns 0  frame 0
            TX packets 33  bytes 5118 (4.9 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.1.70  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::72ff:76ff:fe1d:92c1  prefixlen 64  scopeid 0x20<link>
            ether 70:ff:76:1d:92:c1  txqueuelen 1000  (Ethernet)
            RX packets 2527  bytes 450104 (439.5 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 32  bytes 5076 (4.9 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@j7-evm:~# tcpdump -i eth0 -n arp
    [   58.683999] device eth0 entered promiscuous mode
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
    20:51:20.804956 ARP, Request who-has 192.168.1.70 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:20.804991 ARP, Reply 192.168.1.70 is-at 24:76:25:98:19:b7, length 28
    20:51:21.999991 ARP, Request who-has 192.168.1.40 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:22.000027 ARP, Reply 192.168.1.40 is-at 24:76:25:98:19:b7, length 28
    20:51:27.105034 ARP, Request who-has 192.168.1.70 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:27.105070 ARP, Reply 192.168.1.70 is-at 24:76:25:98:19:b7, length 28
    20:51:28.100033 ARP, Request who-has 192.168.1.40 (ff:ff:ff:ff:ff:ff) tell 192.168.1.50, length 46
    20:51:28.100062 ARP, Reply 192.168.1.40 is-at 24:76:25:98:19:b7, length 28

     

    Previously, I seem to remember, that the ARP replies where received by Aurix, because the only way I (then) observed their reception at TDA4 was by seeing the ARP requests from Aurix at 192.168.1.70 stopping. I cannot observe that anymore...

    best Stefan

  • Stefan,

    It's expected that you don't see ARP request packets when you run tcpdump -i eth1 -n arp on Linux side. ARP request packets are handled by ETHFW on behalf of the virtual clients that have registered a MAC address / IP address pair.

    ETHFW_PROXY_ARP_SUPPORT flag actually enables the ARP request processing on ETHFW. I suggest that you enable logs in <ethfw>/ethfw_callbacks/src/ethfw_callbacks_lwipif.c, and modify ETHFW_CALLBACKS_DEBUG as shown below:

    /* If defined, enables ARP packet handle function debug prints */
    #define ETHFW_CALLBACKS_DEBUG
    

    BTW, when Linux virtual client registers its IP address with ETHFW, you should see a table like below printed in ETHFW logs:

    Function:CpswProxyServer_registerIpv4MacHandlerCb,HostId:0,Handle:a2a5645c,CoreKey:38acb7e6, MacAddress:70:ff:76:1d:92:c1 IPv4Addr:192.168.1.193
    
     SNo.      IP Address          MAC Address   
    ------    -------------     -----------------
      1       192.168.1.193     70:ff:76:1d:92:c1

    I didn't see this is in any your logs. Could you confirm it's actually there?

  • Misael,

    1. I added the #define ETFW_CALLBACKS_DEBUG and attach the logs here


    SDK8_2-TDA4_MAIN_RS232_20220802_072829.txt

    2. I verified, that, when assigning the IP address after enabling remote core logging I can see the line(s)

    root@j7-evm:~# ./startup.sh
    [MCU2_0]    116.126656 s: Function:CpswProxyServer_registerIpv4MacHandlerCb,HostId:0,Handle:a3898cc4,CoreKey:38acb7e6, MacAddress:70:ff:76:1d:92:c1 IPv4Addr:192.168.1.71
    [MCU2_0]    116.126839 s:
    [MCU2_0]  SNo.      IP Address          MAC Address
    [MCU2_0]    116.126883 s: ------    -------------     -----------------
    [MCU2_0]    116.126926 s:   1       192.168.1.71     70:ff:76:1d:92:c1
    

    in the log above (and I have removed ARP logs here), where
    root@j7-evm:~# cat startup.sh
    ip addr add 192.168.1.70/24 brd + dev eth0
    ./set-mc-eth0.sh
    ifconfig eth0 up
    ip addr add 192.168.1.71/24 brd + dev eth1
    ./set-mc-eth1.sh
    ifconfig eth1 up
    

    thank you + best Stefan

  • ... on the other hand, if I set up 192.168.1.70 at eth1

    cat startup-alt.sh
    ip addr add 192.168.1.71/24 brd + dev eth0
    ./set-mc-eth0.sh
    ifconfig eth0 up
    ip addr add 192.168.1.70/24 brd + dev eth1
    ./set-mc-eth1.sh
    ifconfig eth1 up


    we can see "Sent ARP response" in the logs. I attach these - but the fact that Aurix does not stop to ARP, means Aurix does not receive the responses, right?

    SDK8_2-TDA4_MAIN_RS232_20220802_074627.txt

  • --- update ---

    1. I can send UDP-MC packets from eth1 -> eth0 as well as eth0 -> eth1 and see them at tcpdump, too, but I cannot see them at my PC connected at CON13. I don't yet know, if they can be received at the Aurix, but I believe, no

    2. somehow the CPSW9G is missing some configuration? I can only receive the Aurix's UDP-MC packets at eth0, when I add these (maddr add) at eth1. believing this to be so because, when configuring eth1 also the CPSW9G receives some configuration w.r.t. MC

    3. what about the gEthApp_sharedMcastAddrTable[] in vision_apps/utils/ethfw/src/app_ethfw_freertos.c

    /* Must not exceed ETHAPP_MAX_SHARED_MCAST_ADDR entries */
    static EthApp_SharedMcastAddrTable gEthApp_sharedMcastAddrTable[] =
    {
        {
            /* MCast IP ADDR: 224.0.0.1 */
            .macAddr = {0x01,0x00,0x5E,0x00,0x00,0x01},
            .portMask= 0U,
        },
        {
            /* MCast IP ADDR: 224.0.0.251 */
            .macAddr = {0x01,0x00,0x5E,0x00,0x00,0xFB},
            .portMask= 0U,
        },
        {
            /* MCast IP ADDR: 224.0.0.252 */
            .macAddr = {0x01,0x00,0x5E,0x00,0x00,0xFC},
            .portMask= 0U,
        },
        {
            .macAddr = {0x33,0x33,0x00,0x00,0x00,0x01},
            .portMask= 0U,
        },
        {
            .macAddr = {0x33,0x33,0xFF,0x1D,0x92,0xC2},
            .portMask= 0U,
        },
        {
            .macAddr = {0x01,0x80,0xC2,0x00,0x00,0x00},
            .portMask= 0U,
        },
        {
            .macAddr = {0x01,0x80,0xC2,0x00,0x00,0x03},
            .portMask= 0U,
        },
    };

    what is this needed for? what are the values used in the example code? should they be adapted to our project?
    I also tried to increase the constant ETHAPP_MAX_SHARED_MCAST_ADDR but that produced a compile error somewhere else

    thanks + best Stefan

  • Stefan,

    gEthApp_sharedMcastAddrTable is used for shared memory-based multicast support. It's described in this section of User's Guide: https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/ethfw/docs/user_guide/ethfw_c_ug_top.html#ethfw_mcast_support

    Note that after disabling ETHFW_INTERCORE_ETH_SUPPORT, gEthApp_sharedMcastAddrTable array should not be relevant anymore. Increasing ETHAPP_MAX_SHARED_MCAST_ADDR after disabling intercore support should have no effect.

    =1=

    In experiment #1 where you set eth0 to .70 and eth1 to .71, it makes sense that ETHFW is not responding on behalf of Linux virtual client as ARP request is for .70 (eth0).

    =2=

    With the IP addr swapped between eth0 and eth1, now ETHFW is corresponding responding to ARP request for .70 (eth1).

    ARP request should have stopped after response.

    =3=

    Is the MC address used in the last test a registered or unregistered one? In other words, have you explicitly added an entry in ALE for it (this is registered MC) or not (unregistered)?

    2. somehow the CPSW9G is missing some configuration? I can only receive the Aurix's UDP-MC packets at eth0, when I add these (maddr add) at eth1. believing this to be so because, when configuring eth1 also the CPSW9G receives some configuration w.r.t. MC

    Could you please elaborate more regarding second part of above statement ("when I add these ...")?

    I think we need to look at the ALE table and check if you have added to the table the multicast address which you are testing with. Please try running "ethtool -t eth1" from Linux terminal. This will dump ALE table and CPSW stats in vision apps logs.

  • Misael, thank you for you explanation,

    -1-

    clarification: I had the ETHFW_INTERCORE_ETH_SUPPORT on again, after it seemed to make no difference. I put it to off again now. this time in both ethfw/ethfw_build_flags.mak as well as vision_apps/vision_apps_build_flags.mak the latter of which I had not considered previously

    -2-

    w.r.t. MC addresses: "Is the MC address used in the last test a registered or unregistered one?" - so I have not registered the MC other than by running

    ip maddr add 01:00:5e:00:00:05 dev eth1

    in linux. That is also what I meant by "when I add these". Originally I had added the bunch of MC addresses, which the Aurix broadcasts with a script like
    root@j7-evm:~# cat set-mc-eth1.sh
    ip maddr add 01:00:5e:00:00:01 dev eth1
    ip maddr add 01:00:5e:00:00:05 dev eth1
    ip maddr add 01:00:5e:00:00:08 dev eth1
    ip maddr add 01:00:5e:00:00:09 dev eth1
    ip maddr add 01:00:5e:00:00:0f dev eth1
    ip maddr add 01:00:5e:00:00:10 dev eth1
    ip maddr add 01:00:5e:00:00:13 dev eth1
    ip maddr add 01:00:5e:00:00:18 dev eth1
    ip maddr add 01:00:5e:00:00:19 dev eth1
    ip maddr add 01:00:5e:00:00:1b dev eth1
    ip maddr add 01:00:5e:00:00:1c dev eth1
    ip maddr add 01:00:5e:00:00:1d dev eth1

    to both eth0 as well as eth1 to subscirbe these I/Fs for receive of these. I found out though, that it was necessary and sufficient to do this for eth1 only, in order to receive these MCs at both, eth0 and eth1. Should these addresses also be registered in the sense of "added in code"? (previously I assumed that is maybe is what the gEthApp_sharedMcastAddrTable is good for...)

    -3-

    with the above I attach the logs of startup:
    SDK8_2-startup-TDA4_MAIN_RS232_20220803_063018.txt

    showing also the script to set up IP:

    root@j7-evm:~# cat startup.sh
    ip addr add 192.168.1.70/24 brd + dev eth0
    ./set-mc-eth0.sh
    ifconfig eth0 up
    ip addr add 192.168.1.71/24 brd + dev eth1
    ./set-mc-eth1.sh
    ifconfig eth1 up

    and I attach the logs of the ethtool statistics

    ./startup.sh
    [MCU2_0]    266.358718 s: Function:CpswProxyServer_registerIpv4MacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:70:ff:76:1d:92:c1 IPv4Addr:192.168.1.71
    [MCU2_0]    266.358908 s:
    [MCU2_0]  SNo.      IP Address          MAC Address
    [MCU2_0]    266.358954 s: ------    -------------     -----------------
    [MCU2_0]    266.358991 s:   1       192.168.1.71     70:ff:76:1d:92:c1
    [MCU2_0]    266.359503 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.359616 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:fb, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.361249 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.363266 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.363444 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:fc, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.367168 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.367282 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:5, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.369011 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.371858 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.371985 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:8, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.373634 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.375639 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.375754 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:9, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.377408 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.379440 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.379567 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:f, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.381183 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.383261 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.383442 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:10, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.385116 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.387169 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.387295 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:13, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.388961 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.390961 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.391083 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:18, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.392743 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.394803 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.394926 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:19, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.396570 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.398574 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.398710 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:1b, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.400358 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.402366 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.402482 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:1c, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.404086 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    [MCU2_0]    266.406071 s: >>>>>>>>>>>> rdevEthSwitchServerHandleFilterAddMac(): calling filter_add_mac_handler()
    [MCU2_0]    266.406187 s: Function:CpswProxyServer_filterAddMacHandlerCb,HostId:0,Handle:a38994c4,CoreKey:38acb7e6, MacAddress:1:0:5e:0:0:1d, vlanId:0, FlowIdx:172, FlowIdOffset:0
    [MCU2_0]    266.407830 s: EnetMod_ioctl: >>>>>>>>>>>> EnetMod_ioctl(): cpsw9g.ale->ioctl(cmd=1010209) return -14
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~# ethtool -t eth1
    The test result is PASS
    The test extra info:
    RPMSG Ping test  0
    RPMSG Read reg   0
    RPMSG Dump stat  0
    
    [MCU2_0]    349.728834 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c000000
    [MCU2_0]    349.728929 s: >>>>>>>>>>>> CpswProxyServer_regrdHandlerCb(): read 6ba01901 at c000000
    [MCU2_0]    349.729086 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c020000
    [MCU2_0]    349.729152 s: >>>>>>>>>>>> CpswProxyServer_regrdHandlerCb(): read 6ba80101 at c020000
    [MCU2_0]    349.729380 s: Function:CpswProxyServer_clientNotifyHandlerCb,HostId:0,Handle:38acb7e6,CoreKey:a38994c4,NotifyId:RPMSG_KDRV_TP_ETHSWITCH_CLIENTNOTIFY_DUMPSTATS,NotifyLen
    [MCU2_0]    349.729515 s:
    [MCU2_0]    349.729596 s:      0: Vlanid: 012c, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    349.729657 s:  RAW:[0 212c1f
    [MCU2_0]    349.729701 s:  f1 ff0001ff]
    [MCU2_0]    349.729760 s:      1: Vlanid: 0190, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    349.729815 s:  RAW:[0 21901f
    [MCU2_0]    349.729860 s: f1 ff0001ff]
    [MCU2_0]    349.729917 s:      2: Vlanid: 0191, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    349.729971 s:  RAW:[0 21911f
    [MCU2_0]    349.730013 s: f1 ff0001ff]
    [MCU2_0]    349.730067 s:      3: Vlanid: 0001, UTagged: 29, Mult: 2r9, UMult: 0, Member: 29
    [MCU2_0]    349.730120 s:  RAW:[0 200102
    [MCU2_0]    349.730165 s: 90 29000029]
    [MCU2_0]    349.730219 s:      4: Vlanid: 0193, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    349.730273 s:  RAW:[0 21931f
    [MCU2_0]    349.730317 s: f1 ff0001ff]
    [MCU2_0]    349.730427 s:      5: Vlanid: 0195, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    349.730490 s:  RAW:[0 21951f
    [MCU2_0]    349.730533 s: f1 ff0001ff]
    [MCU2_0]    349.730589 s:      6: Vlanid: 0196, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCUx2_0]    349.730644 s:  RAW:[0 21961f
    [MCU2_0]    349.730687 s: f1 ff0001ff]
    [MCU2_0]    349.730740 s:      7: Vlanid: 0197, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    349.730794 s:  RAW:[0 21971f
    [MCU2_0]    349.730835 s: f1 ff0001ff]
    [MCU2_0]    349.730913 s:      8: Address: ffffffffffff, Member:1ff Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.730969 s:  RAW:[7fc 1000ff
    [MCU2_0]    349.731013 s: ff ffffffff]
    [GMCU2_0]    349.731096 s:      9: Address: 70ff761d92c2, Port: 000 Se=1 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    349.731154 s:  RAW:[1 100070
    [MCU2_0]    349.731196 s: ff 761d92c2]
    [MCU2_0]    349.731236 s:     10: EtherType: 0806
    [MCU2_0]    349.731279 s:  RAW:[1 200000
    [MCU2_0]    349.731322 s: 00 00000806]
    [MCU2_0]    349.731435 s:     11: Address: 0180c200000e, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.731493 s:  RAW:[4 100001
    [MCU2_0]    349.731538 s: 80 c200000e]
    [MCU2_0]    349.731614 s:     12: Address: 011b19000000, Member:001 Su=0o FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.731670 s:  RAW:[4 100001
    [MCU2_0]    349.731713 s: 1b 19000000]
    [MCU2_0]    349.731795 s:     13: Address: 70ff761d92c1, Port: 000 Se=0 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    349.731852 s:  RAW:[0 100070
    [MCU2_0]    349.731895 s: ff 761d92c1]
    [MCU2_0]    349.731968 s:     14: Address: 333300000001, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.732024 s:  RAW:[4 100033
    [MCU2_0]    349.732067 s: 33 00000001]
    [MCU2_0]    349.732141 s:     15: Address: 01005e000001, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.732197 s:  RAW:[4 100001
    [MCU2_0]    349.732241 s: 00 5e000001]
    [MCU2_0]    349.732316 s:     16: Address: 3333ff1d92c1, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.732401 s:  RAW:[4 100033
    [MCU2_0]    349.732445 s: 33 ff1d92c1]
    [MCU2_0]    349.732523 s:     17: Address: 0180c2000000, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.732580 s:  RAW:[4 100001
    [MCU2_0]    349.732624 s: 80 c2000000]
    [MCU2_0]    349.732699 s:     18: Address: 0180c2000003, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.732756 s:  RAW:o[4 100001
    [MCU2_0]    349.732797 s: 80 c2000003]
    [MCU2_0]    349.732869 s:     19: Address: 3333000000fb, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.732924 s:  RAW:[a4 100033
    [MCU2_0]    349.732966 s: 33 000000fb]
    [MCU2_0]    349.733038 s:     20: Address: 333300010003, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.733093 s:  RAW:[4 100033
    [MCU2_0]    349.733135 s: 33 00010003]
    [MCU2_0]    349.733208 s:    d 21: Address: 01005e0000fb, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.733264 s:  RAW:[a4 100001
    [MCU2_0]    349.733307 s: 00 5e0000fb]
    [MCU2_0]    349.733404 s:     22: Address: 01005e0000fc, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.733467 s:  RAW:[4 100001
    [MCU2_0]    349.733514 s: 00 5e0000fc]
    [MCU2_0]    349.733587 s:     23: Address: 01005e000005, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.733644 s:  RAW:[a4 100001
    [MCU2_0]    349.733689 s: 00 5e000005]
    [MCU2_0]    349.733761 s:     24: Address: 01005e000008, FMember:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.733816 s:  RAW:[a4 100001
    [MCU2_0]    349.733859 s: 00 5e000008]
    [MCU2_0]    349.733932 s:     25: Address: 01005e000009, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.733987 s:  RAW:[a4 100001
    [MCU2_0]    349.734029 s: 00 5e000009]
    [MCU2_0]    349.734101 s:     26: Address: 01005e00000f, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.734156 s:  RAW:[a4 100001
    [MCU2_0]    349.734201 s: 00 5e00000f]
    [MCU2_0]    349.734272 s:     27: Address: 01005e000010, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.734348 s:  RAW:[a4 100001
    [MCU2_0]    349.734401 s: 00 5e000010]
    [MCU2_0]    349.734507 s:     28: Address: 01005e000013, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.734569 s:  RAW:[a4 100001
    [MCU2_0]    349.734636 s: 00 5e000013]
    [MCU2_0]    349.734712 s:     29: Address: 01005e000018, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.734767 s:  RAW:[a4 100001
    [MCU2_0]    349.734810 s: 00 5e000018]
    [MCU2_0]    349.734880 s:     30: Address: 01005e000019, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    34r9.734935 s:  RAW:[a4 100001
    [MCU2_0]    349.734995 s: 00 5e000019]
    [MCU2_0]    349.735077 s:     31: Address: 01005e00001b, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.735134 s:  RAW:[a4 100001
    [MCU2_0]    349.735179 s: 00 5e00001b]
    [MCU2_0]    349.735253 s:     32: Address: 01005e00001c, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.735309 s:  RAW:[a4 100001
    [MCU2_0]    349.735397 s: 00 5e00001c]
    [MCU2_0]  a  349.735479 s:     33: Address: 01005e00001d, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    349.735537 s:  RAW:[a4 100001
    [MCU2_0]    349.735581 s: 00 5e00001d]
    [MCU2_0]    349.735672 s:     40: Address: 8a23fe000005, Port: 005 Se=0 Bl=0 TOUCH=1 AGE=1 TRUNK=0
    [MCU2_0]    349.735729 s:  RAW:[14 d0018a
    [MCU2_0]    349.735772 s: 23 fe000005]
    [MCU2_0]    349.737172 s:
    [MCU2_0]    349.737208 s: 989 Free Entries
    [MCU2_0]    349.737249 s:
    [MCU2_0]    349.737298 s:     0: POLICER_DST_MAC,ALE Index: 8
    [MCU2_0]    349.737375 s:     0: POLICER_ETHERTYmPE,ALE Index: 10
    [MCU2_0]    349.737423 s:     0: POLICER_THREAD,THREAD ID:3
    [MCU2_0]    349.737476 s:     0: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.737529 s:     1: POLICER_DST_MAC,ALE Index: 11
    [MCU2_0]    349.737569 s:     1: POLICER_THREAD,THREAD ID:4
    [MCU2_0]    349.737618 s:     1: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.737668 s:     2: POLICER_DST_MAC,ALE Index: 12
    [MCU2_0]   e 349.737709 s:     2: POLICER_THREAD,THREAD ID:4
    [MCU2_0]    349.737757 s:     2: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.737807 s:     3: POLICER_DST_MAC,ALE Index: 13
    [MCU2_0]    349.737846 s:     3: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.737895 s:     3: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.737948 s:     4: POLICER_DST_MAC,ALE Index: 19
    [MCU2_0]    349.737987 s:     4: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.738036 s:     4: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.738087 s:s     5: POLICER_DST_MAC,ALE Index: 21
    [MCU2_0]    349.738128 s:     5: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.738175 s:     5: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.738227 s:     6: POLICER_DST_MAC,ALE Index: 23
    [MCU2_0]    349.738266 s:     6: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.738315 s:     6: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.738405 s:     7: POLICER_DST_MAC,ALE In dex: 24
    [MCU2_0]    349.738450 s:     7: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.738502 s:     7: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.738554 s:     8: POLICER_DST_MAC,ALE Index: 25
    [MCU2_0]    349.738594 s:     8: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.738643 s:     8: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.738694 s:     9: POLICER_DST_MAC,ALE Index: 26
    [MCU2_0]    349.738733 s:     9: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.738782 s:     9: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU 2_0]    349.738833 s:    10: POLICER_DST_MAC,ALE Index: 27
    [MCU2_0]    349.738873 s:    10: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.738923 s:    10: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.738974 s:    11: POLICER_DST_MAC,ALE Index: 28
    [MCU2_0]    349.739014 s:    11: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.739063 s:    11: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.739113 s:    12: P OLICER_DST_MAC,ALE Index: 29
    [MCU2_0]    349.739152 s:    12: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.739201 s:    12: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.739251 s:    13: POLICER_DST_MAC,ALE Index: 30
    [MCU2_0]    349.739293 s:    13: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.739369 s:    13: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.739429 s:    14: POLICER_DST_MAC,ALE Index: 31
    [MCU2_0]    349.739470 s:    14: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.739519 s:    14: POLICER_STATS: Hit: 1, RedHit: 0 , YellowHit: 0
    [MCU2_0]    349.739574 s:    15: POLICER_DST_MAC,ALE Index: 32
    [MCU2_0]    349.739617 s:    15: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.739667 s:    15: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    349.739716 s:    16: POLICER_DST_MAC,ALE Index: 33
    [MCU2_0]    349.739758 s:    16: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    349.739806 s:    16: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    34 9.740049 s:
    [MCU2_0]    349.740077 s: 79 Free Entries
    [MCU2_0]    349.740174 s:
    [MCU2_0]  Port 0 Statistics
    [MCU2_0]    349.740206 s: -----------------------------------------
    root@j7-evm:~#        = 162
      rxBcastFrames           = 11
      rxMcastFrames           = 151
      aleDrop                 = 16
      rxOctets                = 16144
      txGoodFrames            = 52825
      txBcastFrames           = 143
      txMcastFrames           = 52682
      txOctets                = 9214273
      octetsFrames64          = 34306
      octetsFrames65to127     = 6137
      octetsFrames128to255    = 17
      octetsFrames256to511    = 8359
      octetsFrames512to1023   = 4168
      netOctets               = 9230417
      portMaskDrop            = 23
      alePolicyMatch          = 128
      txPri[0]                = 52825
      txPriBcnt[0]            = 9214273
      rxG[MCU2_0]    351.314366 s:
    [MCU2_0]    351.314513 s:
    [MCU2_0]  External Port 0 Statistics
    [MCU2_0]    351.314558 s: -----------------------------------------
    [MCU2_0]    351.314602 s:
    [MCU2_0]    351.314691 s:
    [MCU2_0]  External Port 1 Statistics
    [MCU2_0]    351.314727 s: -----------------------------------------
    [MCU2_0]    351.314761 s:
    [MCU2_0]    351.314845 s:
    [MCU2_0]  External Poort 2 Statistics
    [MCU2_0]    351.314880 s: -----------------------------------------
    odFrames            = 58
      rxBcastFrames           = 11
      rxMcastFrames           = 31
      aleDrop                 = 19
      rxOctets                = 8528
      txGoodFrames            = 50520
      txBcastFrames           = 143
      txMcastFrames           = 50377
      txOctets                = 9139586
      octetsFrames64          = 34965
      octetsFrames65to127     = 2834
      octetsFrames128to255    = 17
      octetsFrames256to511    = 8516
      octetsFrames512to1023   = 4246
      netOctets               = 9148114
      portMaskDrop            = 19
      aleUnknownUcast         = 14
      aleUnknownUcastBcnt     = 896
      aleUnknownMcast         = 7
      aleUnknownMcastBcnt     = 660
      aleUnknownBcast         = 6
      aleUnknownBcastBcnt     = 2004
      alePolicyMatch          = 8
      txPri[0]                = 50400
      txPri[2]                = 120
      txPriBcnt[0]            = 9130946
      txPriBcnt[2]            = 8640
      rx[MCU2_0]    352.260365 s:
    [MCU2_0]    352.260501 s:
    [MCU2_0]  External Port 3 Statistics
    [MCU2_0]    352.260547 s: -----------------------------------------
    [MCU2_0]    352.260590 s:
    [MCU2_0]    352.260683 s:G
    [MCU2_0]  External Port 4 Statistics
    [MCU2_0]    352.260721 s: -----------------------------------------
    oodFrames            = 204188
      rxBcastFrames           = 133
      rxMcastFrames           = 204055
      aleDrop                 = 149873
      rxOctets                = 36695351
      txGoodFrames            = 55
      txBcastFrames           = 22
      txMcastFrames           = 16
      txOctets                = 12180
      octetsFrames64          = 139427
      octetsFrames65to127     = 13812
      octetsFrames128to255    = 27
      octetsFrames256to511    = 33992
      octetsFrames512to1023   = 16985
      netOctets               = 36707531
      portMaskDrop            = 149873
      aleUnknownMcast         = 19
      aleUnknownMcastBcnt     = 2063
      alePolicyMatch          = 50943
      txPri[0]                = 55
      txPriBcnt[0]            = 12180
    [MCU2_0]    353.013366 s:
    [MCU2_0]    353.013503 s:
    [MCU2_0]  External Port 5 Statistics
    [MCU2_0]    353.013548 s: -----------------------------------------
    [MCU2_0]    353.013592 s:
    [MCU2_0]    353.013683 s:
    [MCU2_0]  External Port 6 Statistics
    [MCU2_0]    353.013718 s: -----------------------------------------
    [MCU2_0]    353.013750 s:
    [MCU2_0]    353.013829 s:
    [MCU2_0]  External Port 7 Statistics
    [MCU2_0]    353.013863 s: -----------------------------------------
    [MCU2_0]    353.013896 s:
    


    -4-

    how about addresses for gPTP, do I also need to register those, somehow?

    -5-

    if you believe it makes sense to have a call, pls. don't hesitate - I think it might

    t.i.a. and best Stefan

  • --- update ---

    -1-

    Question:

    there is a pool of MAC addresses macAddrBuf[] in pdk_jacinto_08_02_00_21/packages/ti/drv/enet/examples/utils/enet_board_j7xevm.c. the fist one will become the eth1 I/Fs MAC address. the 2nd one is logged as

    [MCU2_0] 12.866786 s: Host MAC address: 70:ff:76:1d:92:c2

    which host does that refer to? this host is sending PTP packets?

    Is this related to

    [MCU2_0] 12.870807 s: Added interface 'ti1', IP is 192.168.1.200
    [MCU2_0] 12.883924 s: EthFw: TimeSync PTP enabled

    -2-

    Observation:

    Even with the ETHFW_INTERCORE_ETH_SUPPORT disabled, I find that after startup (log attached) without any further manual configuration on my side there are some MC addresses subscribed:

    root@j7-evm:~# ip maddr show
    1: lo
    inet 224.0.0.1
    inet6 ff02::1
    inet6 ff01::1
    2: eth0
    link 33:33:00:00:00:01
    link 01:00:5e:00:00:01
    link 33:33:ff:98:19:b7
    link 01:80:c2:00:00:00
    link 01:80:c2:00:00:03
    link 01:80:c2:00:00:0e
    link 33:33:00:00:00:fb
    link 33:33:00:01:00:03
    inet 224.0.0.1
    inet6 ff02::1:3
    inet6 ff02::fb
    inet6 ff02::1:ff98:19b7
    inet6 ff02::1 users 2
    inet6 ff01::1
    3: eth1
    link 33:33:00:00:00:01 users 2
    link 01:00:5e:00:00:01 users 2
    link 33:33:ff:41:40:04 users 2
    link 01:80:c2:00:00:00 users 2
    link 01:80:c2:00:00:03 users 2
    link 01:80:c2:00:00:0e users 2
    link 33:33:00:00:00:fb users 2
    link 33:33:00:01:00:03 users 2
    inet 224.0.0.1
    inet6 ff02::1:3
    inet6 ff02::fb
    inet6 ff02::1:ff41:4004
    inet6 ff02::1 users 2
    inet6 ff01::1

    where in the code is this done? I cannot seem to find the place! - Edit: they seem to be related to the ifconfig / so no worries here

    SDK8_2-TDA4_MAIN_RS232_20220804_153738.txt

  • --- updating the ethernet topology for discussion

  • Stanley,

    the eth statistics as agreed. I scripted the following:

    # only ENET5 enabled
    # ip addr add 192.168.1.71/24 brd + dev eth1
    ethtool -t eth1
    sleep 10
    ethtool -t eth1
    # ping from eth1 -> Aurix
    ping -I eth1 -w 10 192.168.1.50 &
    sleep 10
    ethtool -t eth1
    

    • get the statistics
    • wait 10 seconds
    • get again the statistics
    • start ping from eth1 -> Aurix to run for 10 seconds in bg
    • wait 10 seconds
    • get again the statistics.

    I attach the result logs

    root@j7-evm:~# ./eth-stats.sh
    The test result is PASS
    The test extra info:
    RPMSG Ping test  0
    RPMSG Read reg   0
    RPMSG Dump stat  0
    
    [MCU2_0]    219.033215 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c000000
    [MCU2_0]    219.033410 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c020000
    [MCU2_0]    219.033606 s: Function:CpswProxyServer_clientNotifyHandlerCb,HostId:0,Handle:38acb7e6,CoreKey:a389310c,NotifyId:RPMSG_KDRV_TP_ETHSWITCH_CLIENTNOTIFY_DUMPSTATS,NotifyLen
    [MCU2_0]    219.033738 s:
    [MCU2_0]    219.033816 s:      0: Vlanid: 012c, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    219.033877 s:  RAW:[0 212c1f
    [MCU2_0]    219.033985 s: f1 ff0001ff]
    [MCU2_0]    219.034054 s:      1: Vlanid: 0190, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    219.034111 s:  RAW:[0 21901f
    [MCU2_0]    219.034152 s: f1 ff0001ff]
    [MCU2_0]    219.034206 s:      2: Vlanid: 0191, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    219.034259 s:  RAW:[0 21911f
    [MCU2_0]    219.034300 s: f1 ff0001ff]
    [MCU2_0]    219.034352 s:      3: Vlanid: 0192, UTagged: 1ff, Mult: 1ff, UMu lt: 0, Member: 1ff
    [MCU2_0]    219.034405 s:  RAW:[0 21921f
    [MCU2_0]    219.034445 s: f1 ff0001ff]
    [MCU2_0]    219.034497 s:      4: Vlanid: 0193, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    219.034549 s:  RAW:[0 21931f
    [MCU2_0]    219.034589 s: f1 ff0001ff]
    [MCU2_0]    219.034640 s:      5: Vlanid: 0001, UTagged: 21, Mult: 21, UMult: 0, Member: 21
    [MCU2_0]    219.034693 s:  RAW:[0 200102
    [MCU2_0]    219.034732  s: 10 21000021]
    [MCU2_0]    219.034784 s:      6: Vlanid: 0195, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    219.034838 s:  RAW:[0 21951f
    [MCU2_0]    219.034880 s: f1 ff0001ff]
    [MCU2_0]    219.034977 s:      7: Vlanid: 0196, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    219.035039 s:  RAW:[0 21961f
    [MCU2_0]    219.035080 s: f1 ff0001ff]
    [MCU2_0]    219.035134 s:      8: Vlanid: 0197, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    219.035187 s:  RAW:[0 21971f
    [MCU2_0]    219.035226 s: f1 ff0001ff]
    [MCU2_0]   r 219.035299 s:      9: Address: ffffffffffff, Member:1ff Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.035352 s:  RAW:[7fc 1000ff
    [MCU2_0]    219.035393 s: ff ffffffff]
    [MCU2_0]    219.035473 s:     10: Address: 70ff761d92c2, Port: 000 Se=1 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    219.035529 s:  RAW:[1 100070
    [MCU2_0]    219.035570 s: ff 761d92c2]
    [MCU2_0]    219.035604 s:     11: EtherType: 0806
    [MCU2_0]    219.035643 s:  RAW:[1 200x000
    [MCU2_0]    219.035682 s: 00 00000806]
    [MCU2_0]    219.035752 s:     12: Address: 0180c200000e, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.035803 s:  RAW:[4 100001
    [MCU2_0]    219.035842 s: 80 c200000e]
    [MCU2_0]    219.035944 s:     13: Address: 011b19000000, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.036007 s:  RAW:[4 100001
    [MCU2_0]    219.036050 s: 1b 19000000]
    [MCU2_0]    219.036132 s:     14: Address: 4e4554414004, Port: 000 Se=0 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    219.036188 s:  RAW:[0 10004e
    [MCU2_0]    219.0362G28 s: 45 54414004]
    [MCU2_0]    219.036296 s:     15: Address: 333300000001, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.036349 s:  RAW:[84 100033
    [MCU2_0]    219.036389 s: 33 00000001]
    [MCU2_0]    219.036457 s:     16: Address: 01005e000001, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.036509 s:  RAW:[84 100001
    [MCU2_0]    219.036548 s: 00 5e000001]
    [MCU2_0]    219.036617 s:     17: Address: 3333ff414004, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.036668 s:  RAW:[84 100033
    [MCU2_0]    219.036708 s: 33 ff414004]
    [MCU2_0]    219.036777 s:     18: Address: 0180c2000000, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.036829 s:  RAW:[84 100001
    [MCU2_0]    219.036868 s: 80 c2000000]
    [MCU2_0]    219.036972 s:     19: Address: 0180c2000003, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.037033 s:  RAW:[84 100001
    [MCU2_0]    219.037077 s: 80 c2000003]
    [MCU2_0]    219.037147 s:     20: Address: 3333000000fb, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.037199 s:  RAW:[84 100033
    [MCU2_0]    219.037239 s: 33 000000fb]
    [MCU2_0]    219.037307 s:     21o: Address: 333300010003, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.037358 s:  RAW:[84 100033
    [MCU2_0]    219.037398 s: 33 00010003]
    [MCU2_0]    219.037466 s:     22: Address: 01005e0000fc, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.037517 s:  RAW:[84 100001
    [MCU2_0]    219.037557 s: 00 5e0000fc]
    [MCU2_0]    219.037625 s:     23: Address: 01005e0000fb, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    219.0o37677 s:  RAW:[84 100001
    [MCU2_0]    219.037716 s: 00 5e0000fb]
    [MCU2_0]    219.037805 s:     32: Address: 8a23fe000005, Port: 005 Se=0 Bl=0 TOUCH=1 AGE=1 TRUNK=0
    [MCU2_0]    219.037859 s:  RAW:[14 d0018a
    [MCU2_0]    219.037925 s: 23 fe000005]
    [MCU2_0]    219.039332 s:
    [MCU2_0]    219.039364 s: 999 Free Entries
    [MCU2_0]    219.039402 s:
    [MCU2_0]    219.039442 s:     0: POLICER_DST_MAC,ALE Index: 9
    [MCU2_0]    219.039484 s:     0: POLICER_ETHERTYPE,ALE Index: 11
    [MCU2_0]    219.039523 s:     0: POLICER_THREAD,THREAD ID:3
    [MCU2_0]    219.039574 ds:     0: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.039620 s:     1: POLICER_DST_MAC,ALE Index: 12
    [MCU2_0]    219.039658 s:     1: POLICER_THREAD,THREAD ID:4
    [MCU2_0]    219.039702 s:     1: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.039747 s:     2: POLICER_DST_MAC,ALE Index: 13
    [MCU2_0]    219.039785 s:     2: POLICER_THREAD,THREAD ID:4
    [MCU2_0]    219.039828 s:     2: POLICER_STATS: Hit: F0, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.039874 s:     3: POLICER_DST_MAC,ALE Index: 14
    [MCU2_0]    219.039949 s:     3: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    219.040003 s:     3: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.040052 s:     4: POLICER_DST_MAC,ALE Index: 15
    [MCU2_0]    219.040091 s:     4: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    219.040138 s:     4: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.040186 s:     5: POLICER_DST_MAC,ALE Index: 16
    [MCU2_0]    219.040224 s:     5: POLICER_THREAD,THREAD ID:0
    [MrCU2_0]    219.040269 s:     5: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.040315 s:     6: POLICER_DST_MAC,ALE Index: 17
    [MCU2_0]    219.040352 s:     6: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    219.040397 s:     6: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.040441 s:     7: POLICER_DST_MAC,ALE Index: 18
    [MCU2_0]    219.040478 s:     7: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    219.040522 s:     7: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.040567 s:     8: POLICER_DST_MAC,ALE Index: 19
    [MCU2_0]    219.040604 s:     8: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    219.040648 s:     8: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.040693 s:     9: POLICER_DST_MAC,ALE Index: 20
    [MCU2_0]    219.040730 s:     9: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    219.040774 s:     9: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.040819 s:    10: POLICER_DST_MAC,ALE Index: 21
    [MCU2_0]    219.040856 s:    10: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    219.040928 s:    10: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.040988 s:  a  11: POLICER_DST_MAC,ALE Index: 22
    [MCU2_0]    219.041030 s:    11: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    219.041079 s:    11: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.041126 s:    12: POLICER_DST_MAC,ALE Index: 23
    [MCU2_0]    219.041164 s:    12: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    219.041209 s:    12: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    219.041461 s:
    [MCU2_0]    219.041484 s: 83m Free Entries
    [MCU2_0]    219.041578 s:
    [MCU2_0]  Port 0 Statistics
    [MCU2_0]    219.041606 s: -----------------------------------------
    es            = 112
      rxBcastFrames           = 10
      rxMcastFrames           = 102
      aleDrop                 = 16
      rxOctets                = 12012
      txGoodFrames            = 23969
      txBcastFrames           = 244
      txMcastFrames           = 23725
      txOctets                = 1617647
      octetsFrames64          = 245
      octetsFrames65to127     = 23818
      octetsFrames128to255    = 9
      octetsFrames256to511    = 9
      netOctets               = 1629659
      portMaskDrop            = 16
      alePolicyMatch          = 87
      txPri[0]                = 23969
      txPriBcnt[0]            = 1604447
      rxGoo[MCU2_0]    220.335927 s:
    [MCU2_0]    220.336070 s:
    [MCU2_0]  External Port 0 Statistics
    [MCU2_0]    220.336114 s: -----------------------------------------
    [MCU2_0]    220.336159 s:
    [MCU2_0]    220.336248 s:
    [MCU2_0]  External Port 1 Statistics
    [MCU2_0]    220.336285 s: -----------------------------------------
    [MCU2_0]    220.336320 s:
    [MCU2_0]    220.336401 s:
    [MCU2_0]  External dPort 2 Statistics
    [MCU2_0]    220.336436 s: -----------------------------------------
    [MCU2_0]    220.336471 s:
    [MCU2_0]    220.336550 s:
    [MCU2_0]  External Port 3 Statistics
    [MCU2_0]    220.336584 s: -----------------------------------------
    [MCU2_0]    220.336618 s:
    [MCU2_0]    220.336699 s:
    [MCU2_0]  External Port 4 Statistics
    [MCU2_0]    220.336732 s: -----------------------------------------
    Frames            = 487892
      rxBcastFrames           = 246
      rxMcastFrames           = 487646
      aleDrop                 = 463762
      rxOctets                = 48737575
      txGoodFrames            = 98
      txBcastFrames           = 10
      txMcastFrames           = 88
      txOctets                = 10768
      octetsFrames64          = 128513
      octetsFrames65to127     = 328321
      octetsFrames128to255    = 15
      octetsFrames256to511    = 20764
      octetsFrames512to1023   = 10377
      netOctets               = 48748343
      portMaskDrop            = 463762
      aleUnknownMcast         = 10
      aleUnknownMcastBcnt     = 1056
      alePolicyMatch          = 24130
      txPri[0]                = 24
      txPri[1]                = 1
      txPri[2]                = 73
      txPriBcnt[0]            = 5448
      txPriBcnt[1]            = 64
      txPriBcnt[2]            = 5256
    [MCU2_0]    221.260930 s:
    [MCU2_0]    221.261072 s:
    [MCU2_0]  External Port 5 Statistics
    [MCU2_0]    221.261113 s: -----------------------------------------
    [MCU2_0]    221.261156 s:
    [MCU2_0]    221.261244 s:
    [MCU2_0]  External Port 6 Statistics
    [MCU2_0]    221.261280 s: -----------------------------------------
    [MCU2_0]    221.261314 s:
    [MCU2_0]    221.261396 s:
    [MCU2_0]  External Port 7 Statistics
    [MCU2_0]    221.261432 s: -----------------------------------------
    [MCU2_0]    221.261466 s:
    ==================== statistics 2 ====================
    The test result is PASS
    The test extra info:
    RPMSG Ping test  0
    RPMSG Read reg   0
    RPMSG Dump stat  0
    
    [MCU2_0]    229.041321 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c000000
    [MCU2_0]    229.041527 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c020000
    [MCU2_0]    229.041726 s: Function:CpswProxyServer_clientNotifyHandlerCb,HostId:0,Ha ndle:38acb7e6,CoreKey:a389310c,NotifyId:RPMSG_KDRV_TP_ETHSWITCH_CLIENTNOTIFY_DUMPSTATS,NotifyLen
    [MCU2_0]    229.041859 s:
    [MCU2_0]    229.041996 s:      0: Vlanid: 012c, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    229.042065 s:  RAW:[0 212c1f
    [MCU2_0]    229.042110 s: f1 ff0001ff]
    [MCU2_0]    229.042168 s:      1: Vlanid: 0190, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    229.042222 s:  RAW:[0 21901f
    [MCU2_0]    229.042263 s: f1 ff0001ff]
    [MCU2_0]    229.042316 s:      2: Vlanid: 0191, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    229.042371 s:  RAW:[0 21911f
    [MCU2_0]    229.042412 s: f1 ff0001ff]
    [MCU2_0]    229.042466 s:      3: Vlanid: 0192, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    229.042521 s:  RAW:[0 21921f
    [MCU2_0]    229.042561 s: f1 ff0001ff]
    [MCU2_0]    229.042613 s:      4: Vlanid: 0193, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    229.042666 s:  RAW:[0 21931f
    [MCU2_0]    229.042708 s: f1 ff0001ff]
    [MCU2_0]    229.042761 s:      5: Vlanid: 0001, UTagged: 21, Mult: 21, UMult: 0, Member: 21
    [MCU2_0]    229.0428 14 s:  RAW:[0 200102
    [MCU2_0]    229.042855 s: 10 21000021]
    [MCU2_0]    229.042950 s:      6: Vlanid: 0195, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    229.043014 s:  RAW:[0 21951f
    [MCU2_0]    229.043059 s: f1 ff0001ff]
    [MCU2_0]    229.043115 s:      7: Vlanid: 0196, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    229.043170 s:  RAW:[0 21961f
    [MCU2_0]    229.043210 s: f1 ff0001ff]
    [MCU2_0]    229.043263 s:      8: Vlanid: 0197, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    229.043315 s:  RAW:[0 21971f
    [MCU2_0]    229.043354 s: f1 ff0001ff]
    [MCU2_0]    229.043427 s:      9: Address: ffffffffffff, Member:1ff Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.043480 s:  RAW:[7fc 1000ff
    [MCU2_0]    229.043520 s: ff ffffffff]
    [MCU2_0]    229.043599 s:     10: Address: 70ff761d92c2, Port: 000 Se=1 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    229.043653 s:  RAW:[1 100070
    [MCU2_0]    229.043694 s: ff 761d92c2]
    [MCU2_0]    229.043729 s:     11: EtherType: 0806
    [MCU2_0]    229.043768 s:  RAW:[1 200000
    [MCU2_0]    229.043808 s: 00 00000806]
    [MCU2_0]    229.043876 s:     12: rAddress: 0180c200000e, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.043964 s:  RAW:[4 100001
    [MCU2_0]    229.044013 s: 80 c200000e]
    [MCU2_0]    229.044087 s:     13: Address: 011b19000000, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.044142 s:  RAW:[4 100001
    [MCU2_0]    229.044182 s: 1b 19000000]
    [MCU2_0]    229.044259 s:     14: Address: 4e4554414004, Port: 000 Se=0 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    229.044315 s:  RAW:[0 10004e
    [MCU2_0]    229.044354 s: 45 54414004]
    [MCU2_0]    229.044423 s:     15: Address: 333300000001, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.044475 s:  RAW:[84 100033
    [MCU2_0]    229.044515 s: 33 00000001]
    [MCU2_0]    229.044583 s:     16: Address: 01005e000001, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.044635 s:  RAW:[84 100001
    [MCU2_0]    229.044675 s: 00 5e000001]
    [MCU2_0]    229.044743 s:     17: Address: 3333ff414004, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.044795 s:  RAW:[84 100033
    [MCU2_0]    229.044835 s: 33 ff414004]
    [MCU2_0]    229.044930 s:     18: Address: 0180c2000000, Member:021 Su=0 FWDSTLVL=0 IGNxMBITS=0
    [MCU2_0]    229.044987 s:  RAW:[84 100001
    [MCU2_0]    229.045029 s: 80 c2000000]
    [MCU2_0]    229.045098 s:     19: Address: 0180c2000003, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.045152 s:  RAW:[84 100001
    [MCU2_0]    229.045192 s: 80 c2000003]
    [MCU2_0]    229.045261 s:     20: Address: 3333000000fb, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.045312 s:  RAW:[84 100033
    [MCU2_0]    229.045393 s: 33G 000000fb]
    [MCU2_0]    229.045486 s:     21: Address: 333300010003, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.045546 s:  RAW:[84 100033
    [MCU2_0]    229.045588 s: 33 00010003]
    [MCU2_0]    229.045657 s:     22: Address: 01005e0000fc, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.045710 s:  RAW:[84 100001
    [MCU2_0]    229.045750 s: 00 5e0000fc]
    [MCU2_0]    229.045818 s:     23: Address: 01005e0000fb, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    229.045871 s:  RAW:[84 100001
    PING 192.168.1.50 (192.168.1.50): 56 data bytes
    [MCU2_o0]    229.045956 s: 00 5e0000fb]
    [MCU2_0]    229.046058 s:     32: Address: 8a23fe000005, Port: 005 Se=0 Bl=0 TOUCH=1 AGE=1 TRUNK=0
    [MCU2_0]    229.046115 s:  RAW:[14 d0018a
    [MCU2_0]    229.046155 s: 23 fe000005]
    [MCU2_0]    229.047562 s:
    [MCU2_0]    229.047596 s: 999 Free Entries
    [MCU2_0]    229.047637 s:
    [MCU2_0]    229.047680 s:     0: POLICER_DST_MAC,ALE Index: 9
    [MCU2_0]    229.047727 s:     0: POLICER_ETHERTYPE,ALE Inodex: 11
    [MCU2_0]    229.047768 s:     0: POLICER_THREAD,THREAD ID:3
    [MCU2_0]    229.047819 s:     0: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.047866 s:     1: POLICER_DST_MAC,ALE Index: 12
    [MCU2_0]    229.047945 s:     1: POLICER_THREAD,THREAD ID:4
    [MCU2_0]    229.047998 s:     1: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.048047 s:     2: POLICER_DST_MAC,ALE Index: 13
    [MCU2_0]    229.048084 s:     2: POLICER_THREAD,THREAD ID:4
    [MCU2_0]    229.048130 s:     2: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCUd2_0]    229.048176 s:     3: POLICER_DST_MAC,ALE Index: 14
    [MCU2_0]    229.048212 s:     3: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.048257 s:     3: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.048302 s:     4: POLICER_DST_MAC,ALE Index: 15
    [MCU2_0]    229.048339 s:     4: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.048383 s:     4: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.048428 s:     5: PFOLICER_DST_MAC,ALE Index: 16
    [MCU2_0]    229.048465 s:     5: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.048508 s:     5: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.048554 s:     6: POLICER_DST_MAC,ALE Index: 17
    [MCU2_0]    229.048591 s:     6: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.048636 s:     6: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.048680 s:     7: POLICER_DST_MAC,ALE Index: 18
    [MCU2_0]    229.048716 s:     7: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.048761 s:     7: POLICER_STATS: Hit: 0, RedHit: 0r, YellowHit: 0
    [MCU2_0]    229.048806 s:     8: POLICER_DST_MAC,ALE Index: 19
    [MCU2_0]    229.048843 s:     8: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.048888 s:     8: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.048971 s:     9: POLICER_DST_MAC,ALE Index: 20
    [MCU2_0]    229.049012 s:     9: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.049060 s:     9: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.049105 s:    10: POLICER_DST_MAC,ALE Index: 21
    [MCU2_0]    229.049142 s:    10: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.049187 s:    10: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.049232 s:    11: POLICER_DST_MAC,ALE Index: 22
    [MCU2_0]    229.049269 s:    11: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.049315 s:    11: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.049360 s:    12: POLICER_DST_MAC,ALE Index: 23
    [MCU2_0]    229.049398 s:    12: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    229.049442 s:    12: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    229.049694 s:
    [MCU2_0]    229.049717 s: 83 Free Entries
    [MCU2_0]    229.a049811 s:
    [MCU2_0]  Port 0 Statistics
    [MCU2_0]    229.049841 s: -----------------------------------------
    mes            = 122
      rxBcastFrames           = 11
      rxMcastFrames           = 111
      aleDrop                 = 19
      rxOctets                = 12850
      txGoodFrames            = 25149
      txBcastFrames           = 256
      txMcastFrames           = 24893
      txOctets                = 1697359
      octetsFrames64          = 258
      octetsFrames65to127     = 24993
      octetsFrames128to255    = 11
      octetsFrames256to511    = 9
      netOctets               = 1710209
      portMaskDrop            = 19
      alePolicyMatch          = 94
      txPri[0]                = 25149
      txPriBcnt[0]            = 1683519
      rx[MCU2_0]    230.350933 s:
    [MCU2_0]    230.351077 s:
    [MCU2_0]  External Port 0 Statistics
    [MCU2_0]    230.351117 s: --------------------------------G---------
    [MCU2_0]    230.351162 s:
    [MCU2_0]    230.351249 s:
    [MCU2_0]  External Port 1 Statistics
    [MCU2_0]    230.351285 s: -----------------------------------------
    [MCU2_0]    230.351322 s:
    [MCU2_0]    230.351404 s:
    [MCU2_0]  External Port 2 Statistics
    [MCU2_0]    230.351440 s: -----------------------------------------
    [MCU2_0]    230.351475 s:
    [MCU2_0]    230.351554 s:
    [MCU2_0]  External Port 3 Statistics
    [MCU2_0]    230.351587 s: -----------------------------------------
    [MCU2_0]    230.351621 s:
    [MCU2_0]    230.351702 s:
    [MCU2o_0]  External Port 4 Statistics
    [MCU2_0]    230.351737 s: -----------------------------------------
    odFrames            = 511444
      rxBcastFrames           = 258
      rxMcastFrames           = 511186
      aleDrop                 = 486140
      rxOctets                = 51090285
      txGoodFrames            = 104
      txBcastFrames           = 12
      txMcastFrames           = 92
      txOctets                = 11184
      octetsFrames64          = 134719
      octetsFrames65to127     = 344170
      octetsFrames128to255    = 15
      octetsFrames256to511    = 21766
      octetsFrames512to1023   = 10878
      netOctets               = 51101469
      portMaskDrop            = 486140
      aleUnknownMcast         = 10
      aleUnknownMcastBcnt     = 1056
      alePolicyMatch          = 25304
      txPri[0]                = 26
      txPri[1]                = 1
      txPri[2]                = 77
      txPriBcnt[0]            = 5576
      txPriBcnt[1]            = 64
      txPriBcnt[2]            = 5544
    [MCU2_0]    231.276934 s:
    [MCU2_0]    231.277073 s:
    [MCU2_0]  External Port 5 Statistics
    [MCU2_0]    231.277115 s: -----------------------------------------
    [MCU2_0]    231.277158 s:
    [MCU2_0]    231.277252 s:
    [MCU2_0]  External Port 6 Statistics
    [MCU2_0]    231.277288 s: -----------------------------------------
    [MCU2_0]    231.277325 s:
    [MCU2_0]    231.277410 s:
    [MCU2_0]  External Port 7 Statistics
    [MCU2_0]    231.277442 s: -----------------------------------------
    [MCU2_0]    231.277477 s:
    ==================== statistics 3 ====================
    
    --- 192.168.1.50 ping statistics ---
    11 packets transmitted, 0 packets received, 100% packet loss
    The test result is PASS
    The test extra info:
    RPMSG Ping test  0
    RPMSG Read reg   0
    RPMSG Dump stat  0
    
    [MCU2_0]    239.049174 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c000000
    [MCU2_0]    239.049374 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c020000
    [MCU2_0]    239.049578 s: Function:CpswProxyServer_clientNotifyHandlerCb,HostId:0,Handle:38acb7e6,CoreKey:a389310c,NotifyId:RPMSG_KDRV_TP_ETHSWITCH_CLIENTNOTIFY_DUMPSTATS,NotifyLen
    [MCU2_0]    239.049710 s:
    [MCU2_0]    239.049785 s:      0: Vlanid: 012c, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    239.049848 s:  RAW:[0 212c1f
    [MCU2_0]    239.049890 s: f1 ff0001ff]
    [MCU2_0]    239.050025 s:      1: Vlanid: 01 90, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    239.050087 s:  RAW:[0 21901f
    [MCU2_0]    239.050129 s: f1 ff0001ff]
    [MCU2_0]    239.050183 s:      2: Vlanid: 0191, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    239.050236 s:  RAW:[0 21911f
    [MCU2_0]    239.050277 s: f1 ff0001ff]
    [MCU2_0]    239.050330 s:      3: Vlanid: 0192, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    239.050385 s:  RAW:[0 21921f
    [MCU2_0]    239.050426 s: f1 ff0001ff]
    [MCU2_0]    239.050479 s:      4: Vlanid: 0193, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    239.050534 s:  RAW:[0 21931f
    [MCU2_0]    239.050574 s: f1 ff0001ff]
    [MCU2_0]    239.050625 s:      5: Vlanid: 0001, UTagged: 21, Mult: 21, UMult: 0, Member: 21
    [MCU2_0]    239.050677 s:  RAW:[0 200102
    [MCU2_0]    239.050718 s: 10 21000021]
    [MCU2_0]    239.050769 s:      6: Vlanid: 0195, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    239.050825 s:  RAW:[0 21951f
    [MCU2_0]    239.050867 s: f1 ff0001ff]
    [MCU2_0]    239.050952 s:      7: Vlanid: 0196, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]     239.051015 s:  RAW:[0 21961f
    [MCU2_0]    239.051055 s: f1 ff0001ff]
    [MCU2_0]    239.051110 s:      8: Vlanid: 0197, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    239.051164 s:  RAW:[0 21971f
    [MCU2_0]    239.051204 s: f1 ff0001ff]
    [MCU2_0]    239.051275 s:      9: Address: ffffffffffff, Member:1ff Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.051328 s:  RAW:[7fc 1000ff
    [MCU2_0]    239.051368 s: ff ffffffff]
    [MCU2_0r]    239.051448 s:     10: Address: 70ff761d92c2, Port: 000 Se=1 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    239.051503 s:  RAW:[1 100070
    [MCU2_0]    239.051543 s: ff 761d92c2]
    [MCU2_0]    239.051578 s:     11: EtherType: 0806
    [MCU2_0]    239.051616 s:  RAW:[1 200000
    [MCU2_0]    239.051656 s: 00 00000806]
    [MCU2_0]    239.051724 s:     12: Address: 0180c200000e, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.051775 s:  RAW:[4 100001
    [MCU2_0]    239.051815 s: 80 c200000e]
    [MCU2_0]    239.051883 s:     13: Address: 011b19000000, Member:001 Su=0 FWDSTxLVL=0 IGNMBITS=0
    [MCU2_0]    239.051973 s:  RAW:[4 100001
    [MCU2_0]    239.052017 s: 1b 19000000]
    [MCU2_0]    239.052099 s:     14: Address: 4e4554414004, Port: 000 Se=0 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    239.052156 s:  RAW:[0 10004e
    [MCU2_0]    239.052197 s: 45 54414004]
    [MCU2_0]    239.052267 s:     15: Address: 333300000001, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.052318 s:  RAW:[84 100033
    [MCU2_0]    239.0G52358 s: 33 00000001]
    [MCU2_0]    239.052426 s:     16: Address: 01005e000001, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.052478 s:  RAW:[84 100001
    [MCU2_0]    239.052517 s: 00 5e000001]
    [MCU2_0]    239.052585 s:     17: Address: 3333ff414004, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.052637 s:  RAW:[84 100033
    [MCU2_0]    239.052677 s: 33 ff414004]
    [MCU2_0]    239.052744 s:     18: Address: 0180c2000000, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.052796 s:  RAW:[84 100001
    [MCU2_0]    239.052835 s: 80 c2000000]
    [MoCU2_0]    239.052930 s:     19: Address: 0180c2000003, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.052992 s:  RAW:[84 100001
    [MCU2_0]    239.053034 s: 80 c2000003]
    [MCU2_0]    239.053104 s:     20: Address: 3333000000fb, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.053157 s:  RAW:[84 100033
    [MCU2_0]    239.053197 s: 33 000000fb]
    [MCU2_0]    239.053265 s:     21: Address: 333300010003, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.053318 s:  RAW:[84 100033
    [MCU2_0]    239.053358 s: 33 00010003]
    [MCU2_0]    239.053426 s:     22: Address: 01005e0000fc, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.053478 s:  RAW:[84 100001
    [MCU2_0]    239.053518 s: 00 5e0000fc]
    [MCU2_0]    239.053587 s:     23: Address: 01005e0000fb, Member:021 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    239.053639 s:  RAW:[84 100001
    [MCU2_0]    239.053678 s: 00 5e0000fb]
    [MCU2_0]    239.053767 s:     32: Address: 8a23fe000005, Port: 005 Se=0 Bl=0 TOUCH=1 AGE=1 TRUNK=0
    [MCU2_0]    239.053820 s:  RAW:[14 d0018a
    [MCU2_0]    239.053859 s: 23 fe000005]
    [MCU2_0]    239.055275 s:
    [MCU2_0]    239.055308 os: 999 Free Entries
    [MCU2_0]    239.055345 s:
    [MCU2_0]    239.055389 s:     0: POLICER_DST_MAC,ALE Index: 9
    [MCU2_0]    239.055433 s:     0: POLICER_ETHERTYPE,ALE Index: 11
    [MCU2_0]    239.055472 s:     0: POLICER_THREAD,THREAD ID:3
    [MCU2_0]    239.055522 s:     0: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.055568 s:     1: POLICER_DST_MAC,ALE Index: 12
    [MCU2_0]    239.055607 s:     1: POLICER_THREAD,THREAD IdD:4
    [MCU2_0]    239.055652 s:     1: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.055699 s:     2: POLICER_DST_MAC,ALE Index: 13
    [MCU2_0]    239.055736 s:     2: POLICER_THREAD,THREAD ID:4
    [MCU2_0]    239.055781 s:     2: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.055827 s:     3: POLICER_DST_MAC,ALE Index: 14
    [MCU2_0]    239.055864 s:     3: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.055945 s:     3: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.056004 s:     4: POLICER_DST_MAC,ALE Index: 15
    [MCU2F_0]    239.056046 s:     4: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.056095 s:     4: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.056142 s:     5: POLICER_DST_MAC,ALE Index: 16
    [MCU2_0]    239.056178 s:     5: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.056223 s:     5: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.056268 s:     6: POLICER_DST_MAC,ALE Index: 17
    [MCU2_0]    239.056305 s:     6: POrLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.056349 s:     6: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.056395 s:     7: POLICER_DST_MAC,ALE Index: 18
    [MCU2_0]    239.056432 s:     7: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.056476 s:     7: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.056521 s:     8: POLICER_DST_MAC,ALE Index: 19
    [MCU2_0]    239.056559 s:     8: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.056604 s:     8: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.056650 s:     9: POLICER_DST_MAC,aALE Index: 20
    [MCU2_0]    239.056687 s:     9: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.056731 s:     9: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.056776 s:    10: POLICER_DST_MAC,ALE Index: 21
    [MCU2_0]    239.056813 s:    10: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.056857 s:    10: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.056930 s:    11: POLICER_DST_MAC,ALE Index: 22
    [MCU2_0]    23m9.056976 s:    11: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.057023 s:    11: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.057071 s:    12: POLICER_DST_MAC,ALE Index: 23
    [MCU2_0]    239.057108 s:    12: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    239.057154 s:    12: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    239.057406 s:
    [MCU2_0]    239.057430 s: 83 Free Entries
    [MCU2_0]    239.057525 s:
    [MCU2_0]  Port 0 Statistics
    [MCU2_0]    239.057553 s: -----------------------------------------
    es       root@j7-evm:~#      = 134
      rxBcastFrames           = 18
      rxMcastFrames           = 116
      aleDrop                 = 21
      rxOctets                = 13782
      txGoodFrames            = 26322
      txBcastFrames           = 268
      txMcastFrames           = 26054
      txOctets                = 1776472
      octetsFrames64          = 277
      octetsFrames65to127     = 26157
      octetsFrames128to255    = 13
      octetsFrames256to511    = 9
      netOctets               = 1790254
      portMaskDrop            = 21
      alePolicyMatch          = 104
      txPri[0]                = 26322
      txPriBcnt[0]            = 1761992
      rxGood[MCU2_0]    240.370932 s:
    [MCU2_0]    240.371078 s:
    [MCU2_0]  External Port 0 Statistics
    [MCU2_0]    240.371122 s: -----------------------------------------
    [MCU2_0]    240.371165 s:
    [MCU2_0]    240.371256 s:
    [MCU2_0]  External Port 1 Statistics
    [MCU2_0]    240.371291 s: -----------------------------------------
    [MCU2_0]    240.371327 s:
    [MCU2_0]    240.371411 s:
    [MCU2_0]  External Port 2 Statistics
    [MCU2_0]    240.371444 s: -----------------------------------------
    [MCU2_0]    240.371478 s:
    [MCU2_0]    240.371555 s:
    [MCU2_0]  ExternaFl Port 3 Statistics
    [MCU2_0]    240.371587 s: -----------------------------------------
    [MCU2_0]    240.371623 s:
    [MCU2_0]    240.371705 s:
    [MCU2_0]  External Port 4 Statistics
    [MCU2_0]    240.371738 s: -----------------------------------------
    rames            = 534996
      rxBcastFrames           = 270
      rxMcastFrames           = 534726
      aleDrop                 = 508518
      rxOctets                = 53442987
      txGoodFrames            = 114
      txBcastFrames           = 19
      txMcastFrames           = 95
      txOctets                = 11848
      octetsFrames64          = 140930
      octetsFrames65to127     = 360018
      octetsFrames128to255    = 15
      octetsFrames256to511    = 22768
      octetsFrames512to1023   = 11379
      netOctets               = 53454835
      portMaskDrop            = 508518
      aleUnknownMcast         = 10
      aleUnknownMcastBcnt     = 1056
      alePolicyMatch          = 26478
      txPri[0]                = 33
      txPri[1]                = 1
      txPri[2]                = 80
      txPriBcnt[0]            = 6024
      txPriBcnt[1]            = 64
      txPriBcnt[2]            = 5760
    [MCU2_0]    241.296929 s:
    [MCU2_0]    241.297071 s:
    [MCU2_0]  External Port 5 Statistics
    [MCU2_0]    241.297112 s: -----------------------------------------
    [MCU2_0]    241.297155 s:
    [MCU2_0]    241.297245 s:
    [MCU2_0]  External Port 6 Statistics
    [MCU2_0]    241.297280 s: -----------------------------------------
    [MCU2_0]    241.297316 s:
    [MCU2_0]    241.297397 s:
    [MCU2_0]  External Port 7 Statistics
    [MCU2_0]    241.297431 s: -----------------------------------------
    [MCU2_0]    241.297465 s:
    
    

    as well as the results formatted:

    label t1: 220s t2: 230s t3: 240s delta: t1, t2 delta:t2, t3
    w.o. ping with oing
    host port rxGoodFrames 112 122 134 10 12
    rxBcastFrames 10 11 18 1 7
    rxMcastFrames 102 111 116 9 5
    aleDrop 16 19 21 3 2
    rxOctets 12012 12850 13782 838 932
    txGoodFrames 23969 25149 26322 1180 1173
    txBcastFrames 244 256 268 12 12
    txMcastFrames 23725 24893 26054 1168 1161
    txOctets 1617647 1697359 1776472 79712 79113
    octetsFrames64 245 258 277 13 19
    octetsFrames65to127 23818 24993 26157 1175 1164
    octetsFrames128to255 9 11 13 2 2
    octetsFrames256to511 9 9 9 0 0
    netOctets 1629659 1710209 1790254 80550 80045
    portMaskDrop 16 19 21 3 2
    alePolicyMatch 87 94 104 7 10
    txPri[0] 23969 25149 26322 1180 1173
    txPriBcnt[0] 1604447 1683519 1761992 79072 78473
    ENET5 rxGoodFrames 487892 511444 534996 23552 23552
    rxBcastFrames 246 258 270 12 12
    rxMcastFrames 487646 511186 534726 23540 23540
    aleDrop 463762 486140 508518 22378 22378
    rxOctets 48737575 51090285 53442987 2352710 2352702
    txGoodFrames 98 104 114 6 10
    txBcastFrames 10 12 19 2 7
    txMcastFrames 88 92 95 4 3
    txOctets 10768 11184 11848 416 664
    octetsFrames64 128513 134719 140930 6206 6211
    octetsFrames65to127 328321 344170 360018 15849 15848
    octetsFrames128to255 15 15 15 0 0
    octetsFrames256to511 20764 21766 22768 1002 1002
    octetsFrames512to1023 10377 10878 11379 501 501
    netOctets 48748343 51101469 53454835 2353126 2353366
    portMaskDrop 463762 486140 508518 22378 22378
    aleUnknownMcast 10 10 10 0 0
    aleUnknownMcastBcnt 1056 1056 1056 0 0
    alePolicyMatch 24130 25304 26478 1174 1174
    txPri[0] 24 26 33 2 7
    txPri[1] 1 1 1 0 0
    txPri[2] 73 77 80 4 3
    txPriBcnt[0] 5448 5576 6024 128 448
    txPriBcnt[1] 64 64 64 0 0
    txPriBcnt[2] 5256 5544 5760 288 216

    this table also shows the differences in the 1st 10 sec interval (w.o. ping) and in the 2nd 10 sec interval (with ping active). I can see nothing striking, I hope you can.

    ===

    Have you been able to check for a missing configuration (forced link) for the MAC2MAC? your suspicion was that the configuration active might be the default 10Mbps/half-duplex.

    best Stefan

  • Have you been able to check for a missing configuration (forced link) for the MAC2MAC? your suspicion was that the configuration active might be the default 10Mbps/half-duplex.

    The flag I was thinking about is only for SGMII connection. For RGMII in no PHY mode, auto negotiation is disabled. 

  • What about reading the port settings directly for ports ENET5 (and ENET3)? I looked in the TRM e.g.

    12.2.2.6.1.12 CPSW_SS_RGMII4_STATUS_REG Register (Offset = 3Ch) [reset = X]

    but did not find port status registers for all ports...

  • Extrapolating the addresses for ports ENET5 and higher and reading memories via devmem2:

    section register address data size data read duplexity speed link
    12.2.2.6.1.9 CPSW_SS_RGMII1_STATUS_REG 0x0c000030 w 0x00000003 half 100M up
    12.2.2.6.1.10 CPSW_SS_RGMII2_STATUS_REG 0x0c000034 w 0x00000000 half 10M dn
    12.2.2.6.1.11 CPSW_SS_RGMII3_STATUS_REG 0x0c000038 w 0x0000000D full 1G up
    12.2.2.6.1.12 CPSW_SS_RGMII4_STATUS_REG 0x0c00003c w 0x00000000 half 10M dn
    CPSW_SS_RGMII5_STATUS_REG 0x0c000040 w 0x0000000D full 1G up
    CPSW_SS_RGMII6_STATUS_REG 0x0c000044 w 0x00000003 half 100M up

    looks like:

    • the MAC2MAC connections (3, 5) are at 1G / full duplex
    • RGMII conections (1, 6) - 100M / half duplex
    • RMII connections (2, 4) - 10M / half duplex

    the RGMII / RMII PHY connected ports still disabled, the PHY at RMII conections not even alive

  • reading out the port mode registers:

    section register address data size data read RGMII int. delay mode port mode
    5.1.3.4.48 CTRLMMR_ENET1_CTRL 0x00104044 w 0x00000012 RGMII
    5.1.3.4.49 CTRLMMR_ENET2_CTRL 0x00104048 w 0x00000001 n.a. RMII
    5.1.3.4.50 CTRLMMR_ENET3_CTRL 0x0010404c w 0x00000002 int. tx delay RGMII
    5.1.3.4.51 CTRLMMR_ENET4_CTRL 0x00104050 w 0x00000001 n.a. RMII
    5.1.3.4.52 CTRLMMR_ENET5_CTRL 0x00104054 w 0x00000012 RGMII
    5.1.3.4.53 CTRLMMR_ENET6_CTRL 0x00104058 w 0x00000012 RGMII
    5.1.3.4.54 CTRLMMR_ENET7_CTRL 0x0010405c w 0x00000002 int. tx delay RGMII
    5.1.3.4.55 CTRLMMR_ENET8_CTRL 0x00104060 w 0x00000002 int. tx delay RGMII

    I tried the CTRLMMR_ENET5_CTRL.RGMII_ID_MODE at both values - still seems no communication CPSW9G -> SJA1105

  • I checked the pinmuxes at RGMII5 I/F and they seem o.k. to me

    root@j7-evm:~# ./read-rgmii5-pinmux.sh
    /dev/mem opened.
    Memory mapped at address 0xffff8e580000.
    Read at address  0x0011C158 (0xffff8e58c158): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffff87b90000.
    Read at address  0x0011C15C (0xffff87b9c15c): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffffb6ff0000.
    Read at address  0x0011C160 (0xffffb6ffc160): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffff8dcd0000.
    Read at address  0x0011C164 (0xffff8dcdc164): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffffb79f0000.
    Read at address  0x0011C168 (0xffffb79fc168): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffff8ae60000.
    Read at address  0x0011C16C (0xffff8ae6c16c): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffffb12d0000.
    Read at address  0x0011C170 (0xffffb12dc170): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffffa5e10000.
    Read at address  0x0011C174 (0xffffa5e1c174): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffffac090000.
    Read at address  0x0011C178 (0xffffac09c178): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffffbcf00000.
    Read at address  0x0011C17C (0xffffbcf0c17c): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffffb68a0000.
    Read at address  0x0011C180 (0xffffb68ac180): 0x0000
    /dev/mem opened.
    Memory mapped at address 0xffff85940000.
    Read at address  0x0011C184 (0xffff8594c184): 0x0000
    root@j7-evm:~#

    signal ball muxmode type address register 16bit rd
    RGMII5_TXCTL U23 0 out 0x00011C158 PADCONFIG86 0x0000
    RGMII5_RXCTL U26 0 in 0x00011C15c PADCONFIG87 0x0000
    RGMII5_TXD3 V28 0 out 0x00011C160 PADCONFIG88 0x0000
    RGMII5_TXD2 V29 0 out 0x00011C164 PADCONFIG89 0x0000
    RGMII5_TXD1 V27 0 out 0x00011C168 PADCONFIG90 0x0000
    RGMII5_TXD0 U28 0 out 0x00011C16c PADCONFIG91 0x0000
    RGMII5_TXCLK U29 0 out 0x00011C170 PADCONFIG92 0x0000
    RGMII5_RXCLK U25 0 in 0x00011C174 PADCONFIG93 0x0000
    RGMII5_RXD3 U27 0 in 0x00011C178 PADCONFIG94 0x0000
    RGMII5_RXD2 U24 0 in 0x00011C17c PADCONFIG95 0x0000
    RGMII5_RXD1 R23 0 in 0x00011C180 PADCONFIG96 0x0000
    RGMII5_RXD0 T23 0 in 0x00011C184 PADCONFIG97 0x0000
  • =1=

    Read pinmux @ QNX: apart from there not being a way to read 16 bit values the pinmux setting look correct

    e.g.

    J7EVM@QNX:/# k3conf read 0x0011c158
    |--------------------------------------------------------------------------------|
    | VERSION INFO |
    |--------------------------------------------------------------------------------|
    | K3CONF | QNX |
    | SoC | J721E SR2.0 |
    | SYSFW | ABI: 3.1 (firmware version 0x0014 '20.8.5--v2020.08b (Terrific Lla)') |
    |--------------------------------------------------------------------------------|
    
    Value at addr 0x11c158 = 0x00010000

    . . .
    Value at addr 0x11c158 = 0x00010000
    Value at addr 0x11c15c = 0x00050000
    Value at addr 0x11c160 = 0x00010000
    Value at addr 0x11c164 = 0x00010000
    Value at addr 0x11c168 = 0x00010000
    Value at addr 0x11c16c = 0x00010000
    Value at addr 0x11c170 = 0x00010000
    Value at addr 0x11c174 = 0x00050000
    Value at addr 0x11c178 = 0x00050000
    Value at addr 0x11c17c = 0x00050000
    Value at addr 0x11c180 = 0x00050000
    Value at addr 0x11c184 = 0x00050000

    =2=

    Re-test ENET5 port with internal tx delay: with internal tx delay the edges of clock are aligned with center of data (RGMII clock skew). At QNX where the communication works the RGMII is w.o. clock skew (see below)

    linux - internal delay: RGMII5_TXC, RGMII5_TD0

    =3=

    Capture TXD0 / TXCLK signals: using a 200MHz scope, so the signals are a bit BW-compomised, but the phase relations are recognizable. No differences between linux and QNX observed.

    linux: RGMII5_TXC, RGMII5_TD0


    QNX: RGMII5_TXC, RGMII5_TD0

    =4=

    Read the NXP receive status registers (Port 1 is the relevant one):

    At linux not a single valid rx, but SOF (start of frame) errors, instead

    1 123425550 8-7:82:44|SwtMng: -- Port counters --
    1 123425593 8-7:83:92|SwtMng: MAC Lvl counters: Port 0 Port 1 Port 2 Port 3 Port 4
    1 123425648 8-7:84:96|SwtMng: Runt 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123425702 8-7:85:96|SwtMng: SOF Error 00000000 | 00000255 | 00000000 | 00000000 | 00000000
    1 123425755 8-7:86:96|SwtMng: Align error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123425809 8-7:87:96|SwtMng: Mii error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123465567 8-7:88:92|SwtMng: Frame counters: Port 0 Port 1 Port 2 Port 3 Port 4
    1 123465623 8-7:89:96|SwtMng: Transmit 00289035 | 00289035 | 00288961 | 00289035 | 00000088
    1 123505616 8-7:90:96|SwtMng: Receive 00000000 | 00000000 | 00000081 | 00000000 | 00294915
    1 123545570 8-7:91:92|SwtMng: Drop counters: Port 0 | Port 1 | Port 2 | Port 3 | Port 4
    1 123545626 8-7:92:96|SwtMng: BE-Policing 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123585577 8-7:93:96|SwtMng: Ct-Policing 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123625583 8-7:94:96|SwtMng: VL-NotFound 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123665575 8-7:95:96|SwtMng: CRC-Error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123705622 8-7:96:96|SwtMng: Size-Error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123745581 8-7:97:96|SwtMng: Unreleased 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123785576 8-7:98:96|SwtMng: VLAN-Error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123825577 8-7:99:96|SwtMng: Queue-Full 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123865581 8-7:100:96|SwtMng: Partition-Full 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123905614 8-7:101:96|SwtMng: Egr-disabled 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123945581 8-7:102:96|SwtMng: Not-reachable 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 123985580 8-7:103:96|SwtMng: MAC not learned 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 124025576 8-7:104:96|SwtMng: Empty route 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 124065581 8-7:105:96|SwtMng: Illegal DTAG 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 124105620 8-7:106:96|SwtMng: DTAG 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 124145580 8-7:107:96|SwtMng: SOTAG 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 124185581 8-7:108:96|SwtMng: SITAG 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 124225577 8-7:109:96|SwtMng: Untagged 00000000 | 00000000 | 00000000 | 00000000 | 00000000

    At QNX not a single error, but valid rx frames

    1 72225551 8-7:198:44|SwtMng: -- Port counters --
    1 72225595 8-7:199:92|SwtMng: MAC Lvl counters: Port 0 Port 1 Port 2 Port 3 Port 4
    1 72225650 8-7:200:96|SwtMng: Runt 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72225703 8-7:201:96|SwtMng: SOF Error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72225757 8-7:202:96|SwtMng: Align error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72225810 8-7:203:96|SwtMng: Mii error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72265567 8-7:204:92|SwtMng: Frame counters: Port 0 Port 1 Port 2 Port 3 Port 4
    1 72265622 8-7:205:96|SwtMng: Transmit 00168680 | 00168704 | 00168602 | 00168680 | 00000121
    1 72305616 8-7:206:96|SwtMng: Receive 00000000 | 00000029 | 00000085 | 00000000 | 00172168
    1 72345568 8-7:207:92|SwtMng: Drop counters: Port 0 | Port 1 | Port 2 | Port 3 | Port 4
    1 72345624 8-7:208:96|SwtMng: BE-Policing 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72385579 8-7:209:96|SwtMng: Ct-Policing 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72425580 8-7:210:96|SwtMng: VL-NotFound 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72465583 8-7:211:96|SwtMng: CRC-Error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72505622 8-7:212:96|SwtMng: Size-Error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72545575 8-7:213:96|SwtMng: Unreleased 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72585580 8-7:214:96|SwtMng: VLAN-Error 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72625581 8-7:215:96|SwtMng: Queue-Full 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72665576 8-7:216:96|SwtMng: Partition-Full 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72705616 8-7:217:96|SwtMng: Egr-disabled 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72745577 8-7:218:96|SwtMng: Not-reachable 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72785580 8-7:219:96|SwtMng: MAC not learned 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72825579 8-7:220:96|SwtMng: Empty route 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72865579 8-7:221:96|SwtMng: Illegal DTAG 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72905618 8-7:222:96|SwtMng: DTAG 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72945577 8-7:223:96|SwtMng: SOTAG 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 72985576 8-7:224:96|SwtMng: SITAG 00000000 | 00000000 | 00000000 | 00000000 | 00000000
    1 73025574 8-7:225:96|SwtMng: Untagged 00000000 | 00000000 | 00000000 | 00000000 | 00000000

    =5=

    Checking the start of frame: capturing RGMII5_TD0 / RGMII5_TD1 the preamble of 64 1s on RGMII5_TD0 and 64 0s on RGMII5_TD1 seems to be correct

    linux: RGMII5_TD0, RGMII5_TD1

  • =6=

    Verified also, that the frames always start with rising RGMII5_TXC clock edge (clock polarity). This is also the same @ linux and @ QNX.

  • Update:

    =1=

    I verified that the iperf works also @ TCP.

    =2=

    I have a stable ssh connection to the board.

    =3=

    Setting a static configuration to the CPSW9G switch as shown below I manage to receive the Aurix's gPTP packets at eth1, but not at eth0

    static int32_t EthApp_addMpu10StaticCfg(Enet_Handle hEnet,
                                            uint32_t coreId,
                                            uint32_t flowId)
    {
        const uint8_t mcastAddrPtp[ENET_MAC_ADDR_LEN] = {0x01, 0x80, 0xc2, 0x00, 0x00, 0x0e};
        const uint8_t mcastAddrMw[ENET_MAC_ADDR_LEN] = {0x01, 0x00, 0x5e, 0x00, 0x00, 0x00};
    
        appLogPrintf(">>>>>>>>>>>> %s(): add ENET3/ENET5 policers\n", __func__);
        CpswAle_SetPolicerEntryInArgs polInArgs;
        CpswAle_SetPolicerEntryOutArgs polOutArgs;
        CpswAle_SetMcastEntryInArgs mcastInArgs;
        Enet_IoctlPrms prms;
        uint32_t entry;
        int32_t status = ENET_SOK;
    
        polInArgs.policerMatch.policerMatchEnMask = 0U;
    
        /* Add policer entry for port 3 and dstmac */
        polInArgs.policerMatch.policerMatchEnMask = CPSW_ALE_POLICER_MATCH_PORT;
        polInArgs.policerMatch.portIsTrunk = false;
    
        polInArgs.policerMatch.policerMatchEnMask |= CPSW_ALE_POLICER_MATCH_MACDST;
        polInArgs.policerMatch.dstMacAddrInfo.portNum = CPSW_ALE_HOST_PORT_NUM;
        polInArgs.policerMatch.dstMacAddrInfo.addr.vlanId = 0U;
    
        polInArgs.threadIdEn = true;
        polInArgs.threadId   = flowId;
        polInArgs.peakRateInBitsPerSec   = 0U;
        polInArgs.commitRateInBitsPerSec = 0U;
        polInArgs.policerMatch.policerMatchEnMask = CPSW_ALE_POLICER_MATCH_PORT;
    
        appLogPrintf(">>>>>>>>>>>> %s(): add ENET3/ENET5 PTP policers\n", __func__);
    
        /* Add policer entry for port 3 and PTP dstmac */
        if (status == ENET_SOK)
        {
            EnetUtils_copyMacAddr(&polInArgs.policerMatch.dstMacAddrInfo.addr.addr[0], &mcastAddrPtp[0]);
            polInArgs.policerMatch.portNum = CPSW_ALE_MACPORT_TO_ALEPORT(ENET_MAC_PORT_3);
    
            ENET_IOCTL_SET_INOUT_ARGS(&prms, &polInArgs, &polOutArgs);
    
            status = Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_SET_POLICER, &prms);
            if (status != ENET_SOK) {
                appLogPrintf("Failed to register PORT3 | PTP MACDST policer: %d\n", status);
            }
        }
    
        /* Add policer entry for port 5 and PTP dstmac */
        if (status == ENET_SOK)
        {
            EnetUtils_copyMacAddr(&polInArgs.policerMatch.dstMacAddrInfo.addr.addr[0], &mcastAddrPtp[0]);
            polInArgs.policerMatch.portNum = CPSW_ALE_MACPORT_TO_ALEPORT(ENET_MAC_PORT_5);
    
            ENET_IOCTL_SET_INOUT_ARGS(&prms, &polInArgs, &polOutArgs);
    
            status = Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_SET_POLICER, &prms);
            if (status != ENET_SOK) {
                appLogPrintf("Failed to register PORT5 | PTP MACDST policer: %d\n", status);
            }
        }
    
        uint8_t mcastAddr[ENET_MAC_ADDR_LEN] = {0x01, 0x00, 0x5E, 0x00, 0x00, 0x01};
    
        /* Add policer entry for port 3 and dstmac */
        if (status == ENET_SOK)
        {
            EnetUtils_copyMacAddr(&polInArgs.policerMatch.dstMacAddrInfo.addr.addr[0], &mcastAddr[0]);
            polInArgs.policerMatch.portNum = CPSW_ALE_MACPORT_TO_ALEPORT(ENET_MAC_PORT_3);
    
            ENET_IOCTL_SET_INOUT_ARGS(&prms, &polInArgs, &polOutArgs);
    
            status = Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_SET_POLICER, &prms);
            if (status != ENET_SOK)
            {
                appLogPrintf("Failed to register PORT3 | PTP MACDST policer: %d\n", status);
            }
        }
    
        /* Add policer entry for port 5 and dstmac */
        if (status == ENET_SOK)
        {
            EnetUtils_copyMacAddr(&polInArgs.policerMatch.dstMacAddrInfo.addr.addr[0], &mcastAddr[0]);
            polInArgs.policerMatch.portNum = CPSW_ALE_MACPORT_TO_ALEPORT(ENET_MAC_PORT_5);
    
            ENET_IOCTL_SET_INOUT_ARGS(&prms, &polInArgs, &polOutArgs);
    
            status = Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_SET_POLICER, &prms);
            if (status != ENET_SOK)
            {
                appLogPrintf("Failed to register PORT5 | PTP MACDST policer: %d\n", status);
            }
        }
    
        /* Add multicast entry with port mask: host port, MAC port 3 and MAC port 5 */
        if (status == ENET_SOK)
        {
            mcastInArgs.addr.vlanId = 0U;
    
            mcastInArgs.info.super    = false;
            mcastInArgs.info.fwdState = CPSW_ALE_FWDSTLVL_FWD;
            mcastInArgs.info.portMask = (CPSW_ALE_HOST_PORT_MASK |
                                         CPSW_ALE_MACPORT_TO_PORTMASK(ENET_MAC_PORT_3) |
                                         CPSW_ALE_MACPORT_TO_PORTMASK(ENET_MAC_PORT_5));
    
            EnetUtils_copyMacAddr(&mcastInArgs.addr.addr[0], &mcastAddrPtp[0]);
            mcastInArgs.info.numIgnBits = 0U;
    
            ENET_IOCTL_SET_INOUT_ARGS(&prms, &mcastInArgs, &entry);
    
            status = Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_ADD_MCAST, &prms);
            if (status != ENET_SOK) {
                appLogPrintf("Failed to add PTP mcast ports: %d\n", status);
    	}
    
           if (status == ENET_SOK)
           {
               EnetUtils_copyMacAddr(&mcastInArgs.addr.addr[0], &mcastAddrMw[0]);
               mcastInArgs.info.numIgnBits = 10U;
    
               ENET_IOCTL_SET_INOUT_ARGS(&prms, &mcastInArgs, &entry);
    
               status = Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_ADD_MCAST, &prms);
               if (status != ENET_SOK) {
                   appLogPrintf("Failed to add MW mcast ports range, status: %d\n", status);
               }
           } 
        }
    
        return status;
    }
    

    =4=

    Since the eth1 does not feature any tx time stamping capabilities (neither HW nor SW time stamping) we have to use eth0. How does the CPSW9G need to be configured to support PTP protocol between ENET ports?

  • Hi Stefan,

    Is your intention to forward all PTP packets coming from Port 5 to Port 3?

    It looks to me you had the PTP packets from either Port 3 or Port 5 to be forwarded to A72 with the below rules.

        /* Add policer entry for port 3 and dstmac */
        polInArgs.policerMatch.policerMatchEnMask = CPSW_ALE_POLICER_MATCH_PORT;
        polInArgs.policerMatch.portIsTrunk = false;
    
        polInArgs.policerMatch.policerMatchEnMask |= CPSW_ALE_POLICER_MATCH_MACDST;
        polInArgs.policerMatch.dstMacAddrInfo.portNum = CPSW_ALE_HOST_PORT_NUM;
        polInArgs.policerMatch.dstMacAddrInfo.addr.vlanId = 0U;
    
        polInArgs.threadIdEn = true;
        polInArgs.threadId   = flowId;
        polInArgs.peakRateInBitsPerSec   = 0U;
        polInArgs.commitRateInBitsPerSec = 0U;
        polInArgs.policerMatch.policerMatchEnMask = CPSW_ALE_POLICER_MATCH_PORT;
    
        appLogPrintf(">>>>>>>>>>>> %s(): add ENET3/ENET5 PTP policers\n", __func__);
    
        /* Add policer entry for port 3 and PTP dstmac */
        if (status == ENET_SOK)
        {
            EnetUtils_copyMacAddr(&polInArgs.policerMatch.dstMacAddrInfo.addr.addr[0], &mcastAddrPtp[0]);
            polInArgs.policerMatch.portNum = CPSW_ALE_MACPORT_TO_ALEPORT(ENET_MAC_PORT_3);
    
            ENET_IOCTL_SET_INOUT_ARGS(&prms, &polInArgs, &polOutArgs);
    
            status = Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_SET_POLICER, &prms);
            if (status != ENET_SOK) {
                appLogPrintf("Failed to register PORT3 | PTP MACDST policer: %d\n", status);
            }
        }
    
        /* Add policer entry for port 5 and PTP dstmac */
        if (status == ENET_SOK)
        {
            EnetUtils_copyMacAddr(&polInArgs.policerMatch.dstMacAddrInfo.addr.addr[0], &mcastAddrPtp[0]);
            polInArgs.policerMatch.portNum = CPSW_ALE_MACPORT_TO_ALEPORT(ENET_MAC_PORT_5);
    
            ENET_IOCTL_SET_INOUT_ARGS(&prms, &polInArgs, &polOutArgs);
    
            status = Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_SET_POLICER, &prms);
            if (status != ENET_SOK) {
                appLogPrintf("Failed to register PORT5 | PTP MACDST policer: %d\n", status);
            }
        }
    

  • Ok. I see the below rule should enable multicast ptp package to go to port 3. 

        /* Add multicast entry with port mask: host port, MAC port 3 and MAC port 5 */
        if (status == ENET_SOK)
        {
            mcastInArgs.addr.vlanId = 0U;
    
            mcastInArgs.info.super    = false;
            mcastInArgs.info.fwdState = CPSW_ALE_FWDSTLVL_FWD;
            mcastInArgs.info.portMask = (CPSW_ALE_HOST_PORT_MASK |
                                         CPSW_ALE_MACPORT_TO_PORTMASK(ENET_MAC_PORT_3) |
                                         CPSW_ALE_MACPORT_TO_PORTMASK(ENET_MAC_PORT_5));
    
            EnetUtils_copyMacAddr(&mcastInArgs.addr.addr[0], &mcastAddrPtp[0]);
            mcastInArgs.info.numIgnBits = 0U;
    
            ENET_IOCTL_SET_INOUT_ARGS(&prms, &mcastInArgs, &entry);
    
            status = Enet_ioctl(hEnet, gEthAppObj.coreId, CPSW_ALE_IOCTL_ADD_MCAST, &prms);
            if (status != ENET_SOK) {
                appLogPrintf("Failed to add PTP mcast ports: %d\n", status);
    	}

  • Can you dump ALE table to confirm what all the rules you have programmed?

  • Hi Stanley,

    see my replies below

    =1=

    So I am attaching the outputs of "ethtool -t eth1" command, still, with the settings I specified above. The results split into the ones related to register settings (ethtool-ALE.txt) as well as the statistics (ethtool-stats.txt)

     Port 0 Statistics
    -----------------------------------------
      rxGoodFrames            = 84
      rxBcastFrames           = 9
      rxMcastFrames           = 75
      aleDrop                 = 13
      rxOctets                = 8718
      txGoodFrames            = 378265
      txBcastFrames           = 118
      txMcastFrames           = 378147
      txOctets                = 37803029
      octetsFrames64          = 98292
      octetsFrames65to127     = 255885
      octetsFrames128to255    = 13
      octetsFrames256to511    = 16111
      octetsFrames512to1023   = 8048
      netOctets               = 37811747
      portMaskDrop            = 13
      alePolicyMatch          = 63
      txPri[0]                = 378265
      txPriBcnt[0]            = 37792677
    
     External Port 0 Statistics
    -----------------------------------------
    
     External Port 1 Statistics
    -----------------------------------------
    
     External Port 2 Statistics
    -----------------------------------------
      rxGoodFrames            = 190
      rxBcastFrames           = 8
      rxMcastFrames           = 30
      aleDrop                 = 14
      rxOctets                = 36891
      txGoodFrames            = 378156
      txBcastFrames           = 120
      txMcastFrames           = 377563
      txOctets                = 37871948
      octetsFrames64          = 98830
      octetsFrames65to127     = 254603
      octetsFrames128to255    = 625
      octetsFrames256to511    = 16197
      octetsFrames512to1023   = 8091
      netOctets               = 37908839
      portMaskDrop            = 14
      aleUnknownUcast         = 9
      aleUnknownUcastBcnt     = 1720
      aleUnknownMcast         = 4
      aleUnknownMcastBcnt     = 308
      aleUnknownBcast         = 1
      aleUnknownBcastBcnt     = 334
      alePolicyMatch          = 190
      txPri[0]                = 378156
      txPri[1]                = 1
      txPriBcnt[0]            = 37871949
      txPriBcnt[1]            = 64
    
     External Port 3 Statistics
    -----------------------------------------
    
     External Port 4 Statistics
    -----------------------------------------
      rxGoodFrames            = 385103
      rxBcastFrames           = 111
      rxMcastFrames           = 384515
      rxAlignCodeErrors       = 2017
      aleDrop                 = 1831
      rxOctets                = 38510843
      txGoodFrames            = 252
      txBcastFrames           = 17
      txMcastFrames           = 81
      txOctets                = 43785
      octetsFrames64          = 101266
      octetsFrames65to127     = 260774
      octetsFrames128to255    = 641
      octetsFrames256to511    = 16466
      octetsFrames512to1023   = 8225
      netOctets               = 38757033
      portMaskDrop            = 3848
      aleUnknownMcast         = 9
      aleUnknownMcastBcnt     = 1187
      alePolicyMatch          = 383283
      txPri[0]                = 192
      txPri[1]                = 1
      txPri[2]                = 59
      txPriBcnt[0]            = 39473
      txPriBcnt[1]            = 64
      txPriBcnt[2]            = 4248
    
     External Port 5 Statistics
    -----------------------------------------
    
     External Port 6 Statistics
    -----------------------------------------
    
     External Port 7 Statistics
    -----------------------------------------
    
    root@j7-evm:~# ethtool -t eth1
    The test result is PASS
    The test extra info:
    RPMSG Ping test  0
    RPMSG Read reg   0
    RPMSG Dump stat  0
    
    [MCU2_0]    176.020753 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c000000
    [MCU2_0]    176.020991 s: Function:CpswProxyServer_regrdHandlerCb,HostId:0, RegAddr:c020000
    [MCU2_0]    176.021370 s: Function:CpswProxyServer_clientNotifyHandlerCb,HostId:0,Handle:38acb7e6,CoreKey:a3893914,NotifyId:RPMSG_KDRV_TP_ETHSWITCH_CLIENTNOTIFY_DUMPSTATS,NotifyLen
    [MCU2_0]    176.021524 s:
    [MCU2_0]    176.021606 s:      0: Vlanid: 012c, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    176.021671 s:  RAW:[0 212c1f
    [MCU2_0]    176.021718 s: f1 ff0001ff]
    [MCU2_0]    176.021779 s:      1: Vlanid: 0190, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    176.021837 s:  RAW:[0 21901f
    [MCU2_0]    176.021883 s: f1 ff0001ff]
    [MCU2_0]    176.022006 s:      2: Vlanid: 0191, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    176.022074 s:  RAW:[0 21911f
    [MCU2_0]    176.022122 s: f1 ff0001ff]
    [MCU2_0]    176.022184 s:      3: Vlanid: 0001, UTagged: 29, Mult: 29, UMult: 0, Member: 29
    [MCU2_0]    176.022240 s:  RAW:[0 200102
    [MCU2_0]    176.022285 s: 90 29000029]
    [MCU2_0]    176.022341 s:      4: Vlanid: 0193, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    176.022398 s:  RAW:[0 21931f
    [MCU2_0]    176.022442 s: f1 ff0001ff]
    [MCU2_0]    176.022499 s:      5: Vlanid: 0195, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    176.022555 s:  RAW:[0 21951f
    [MCU2_0]    176.022599 s: f1 ff0001ff]
    [MCU2_0]    176.022657 s:      6: Vlanid: 0196, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    176.022714 s:  RAW:[0 21961f
    [MCU2_0]    176.022759 s: f1 ff0001ff]
    [MCU2_0]    176.022817 s:      7: Vlanid: 0197, UTagged: 1ff, Mult: 1ff, UMult: 0, Member: 1ff
    [MCU2_0]    176.022874 s:  RAW:[0 21971f
    [MCU2_0]    176.022949 s: f1 ff0001ff]
    [MCU2_0]    176.023041 s:      8: Address: ffffffffffff, Member:1ff Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.023102 s:  RAW:[7fc 1000ff
    [MCU2_0]    176.023149 s: ff ffffffff]
    [MCU2_0]    176.023238 s:      9: Address: 70ff761d92c2, Port: 000 Se=1 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    176.023297 s:  RAW:[1 100070
    [MCU2_0]    176.023341 s: ff 761d92c2]
    [MCU2_0]    176.023379 s:     10: EtherType: 0806
    [MCU2_0]    176.023421 s:  RAW:[1 200000
    [MCU2_0]    176.023466 s: 00 00000806]
    [MCU2_0]    176.023542 s:     11: Address: 0180c200000e, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.023599 s:  RAW:[a4 100001
    [MCU2_0]    176.023643 s: 80 c200000e]
    [MCU2_0]    176.023719 s:     12: Address: 011b19000000, Member:001 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.023775 s:  RAW:[4 100001
    [MCU2_0]    176.023819 s: 1b 19000000]
    [MCU2_0]    176.023906 s:     13: Address: 4e4554414004, Port: 000 Se=0 Bl=0 TOUCH=0 AGE=0 TRUNK=0
    [MCU2_0]    176.023991 s:  RAW:[0 10004e
    [MCU2_0]    176.024037 s: 45 54414004]
    [MCU2_0]    176.024116 s:     14: Address: 01005e0001ff, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=1
    [MCU2_0]    176.024173 s:  RAW:[a5 100001
    [MCU2_0]    176.024217 s: 00 5e0001ff]
    [MCU2_0]    176.024294 s:     15: Address: 333300000001, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.024350 s:  RAW:[a4 100033
    [MCU2_0]    176.024396 s: 33 00000001]
    [MCU2_0]    176.024473 s:     16: Address: 01005e000001, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.024529 s:  RAW:[a4 100001
    [MCU2_0]    176.024574 s: 00 5e000001]
    [MCU2_0]    176.024650 s:     17: Address: 3333ff414004, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.024706 s:  RAW:[a4 100033
    [MCU2_0]    176.024751 s: 33 ff414004]
    [MCU2_0]    176.024827 s:     18: Address: 0180c2000000, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.024883 s:  RAW:[a4 100001
    [MCU2_0]    176.024949 s: 80 c2000000]
    [MCU2_0]    176.025033 s:     19: Address: 0180c2000003, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.025091 s:  RAW:[a4 100001
    [MCU2_0]    176.025137 s: 80 c2000003]
    [MCU2_0]    176.025214 s:     20: Address: 3333000000fb, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.025271 s:  RAW:[a4 100033
    [MCU2_0]    176.025316 s: 33 000000fb]
    [MCU2_0]    176.025392 s:     21: Address: 333300010003, Member:029 Su=0 FWDSTLVL=0 IGNMBITS=0
    [MCU2_0]    176.025448 s:  RAW:[a4 100033
    [MCU2_0]    176.025493 s: 33 00010003]
    [MCU2_0]    176.025597 s:     34: Address: 2476259641fa, Port: 003 Se=0 Bl=0 TOUCH=1 AGE=1 TRUNK=0
    [MCU2_0]    176.025654 s:  RAW:[c d00124
    [MCU2_0]    176.025699 s: 76 259641fa]
    [MCU2_0]    176.025804 s:     48: Address: 8a23fe000005, Port: 005 Se=0 Bl=0 TOUCH=1 AGE=1 TRUNK=0
    [MCU2_0]    176.025862 s:  RAW:[14 d0018a
    [MCU2_0]    176.025907 s: 23 fe000005]
    [MCU2_0]    176.027297 s:
    [MCU2_0]    176.027331 s: 1000 Free Entries
    [MCU2_0]    176.027373 s:
    [MCU2_0]    176.027416 s:     0: POLICER_DST_MAC,ALE Index: 8
    [MCU2_0]    176.027463 s:     0: POLICER_ETHERTYPE,ALE Index: 10
    [MCU2_0]    176.027508 s:     0: POLICER_THREAD,THREAD ID:3
    [MCU2_0]    176.027561 s:     0: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.027613 s:     1: POLICER_DST_MAC,ALE Index: 11
    [MCU2_0]    176.027656 s:     1: POLICER_THREAD,THREAD ID:4
    [MCU2_0]    176.027706 s:     1: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.027758 s:     2: POLICER_DST_MAC,ALE Index: 12
    [MCU2_0]    176.027801 s:     2: POLICER_THREAD,THREAD ID:4
    [MCU2_0]    176.027850 s:     2: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.027900 s:     3: POLICER_DST_MAC,ALE Index: 13
    [MCU2_0]    176.027977 s:     3: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.028034 s:     3: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.028092 s:     4: POLICER_PORT, PORT_NUM: 3 ISTRUNK:0
    [MCU2_0]    176.028140 s:     4: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.028191 s:     4: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.028243 s:     5: POLICER_PORT, PORT_NUM: 5 ISTRUNK:0
    [MCU2_0]    176.028287 s:     5: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.028339 s:     5: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.028392 s:     6: POLICER_PORT, PORT_NUM: 3 ISTRUNK:0
    [MCU2_0]    176.028436 s:     6: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.028487 s:     6: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.028541 s:     7: POLICER_PORT, PORT_NUM: 5 ISTRUNK:0
    [MCU2_0]    176.028584 s:     7: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.028635 s:     7: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.028683 s:     8: POLICER_DST_MAC,ALE Index: 15
    [MCU2_0]    176.028721 s:     8: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.028769 s:     8: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.028815 s:     9: POLICER_DST_MAC,ALE Index: 16
    [MCU2_0]    176.028855 s:     9: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.028903 s:     9: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.028979 s:    10: POLICER_DST_MAC,ALE Index: 17
    [MCU2_0]    176.029024 s:    10: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.029075 s:    10: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.029125 s:    11: POLICER_DST_MAC,ALE Index: 18
    [MCU2_0]    176.029168 s:    11: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.029217 s:    11: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.029266 s:    12: POLICER_DST_MAC,ALE Index: 19
    [MCU2_0]    176.029307 s:    12: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.029353 s:    12: POLICER_STATS: Hit: 0, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.029401 s:    13: POLICER_DST_MAC,ALE Index: 20
    [MCU2_0]    176.029441 s:    13: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.029488 s:    13: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.029536 s:    14: POLICER_DST_MAC,ALE Index: 21
    [MCU2_0]    176.029577 s:    14: POLICER_THREAD,THREAD ID:0
    [MCU2_0]    176.029623 s:    14: POLICER_STATS: Hit: 1, RedHit: 0, YellowHit: 0
    [MCU2_0]    176.029873 s:
    [MCU2_0]    176.029899 s: 81 Free Entries
    root@j7-evm:~# [MCU2_0]    176.747969 s:
    [MCU2_0]    176.822981 s:
    [MCU2_0]    176.897985 s:
    [MCU2_0]    177.884962 s:
    [MCU2_0]    177.959978 s:
    [MCU2_0]    178.921963 s:
    [MCU2_0]    178.996976 s:
    [MCU2_0]    179.071977 s:
    [MCU2_0]    179.146975 s:
    


    =2=

    The intention is to

    1. get all ptp packets relayed between ports 3 and 5 (both directions)
    2. get all MC packets of the range 01:00:5e:00:00:00 mask ff:ff:ff:ff:fc:00 relayed between ports 3 and 5 (both directions)

    we don't need to receive anything at A72/eth1 as long as we receive it at A72/eth0. Presently it is convenient to receive the ptp packets at eth1 - in the sense of receiving them at all

  • Adding ale dump of eth0 ("ethtool -d eth0")

    root@j7-evm:~# ethtool -d eth0
    Offset          Values
    ------          ------
    0x0000:         01 00 00 00 48 00 00 00 00 00 00 00 01 01 a0 6b
    0x0010:         04 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00
    0x0020:         0c 00 00 00 00 00 00 00 10 00 00 00 01 00 00 00
    0x0030:         14 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00
    0x0040:         1c 00 00 00 00 00 00 00 02 00 00 00 48 00 00 00
    0x0050:         30 00 00 00 0d 00 00 00 34 00 00 00 00 00 00 00
    0x0060:         38 00 00 00 00 00 00 00 3c 00 00 00 00 00 00 00
    0x0070:         40 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00
    0x0080:         48 00 00 00 00 00 00 00 4c 00 00 00 00 00 00 00
    0x0090:         03 00 00 00 08 02 00 00 00 0f 00 00 07 09 07 00
    0x00a0:         04 0f 00 00 4c 01 00 81 08 0f 00 00 00 00 00 00
    0x00b0:         0c 0f 00 00 00 00 00 00 10 0f 00 00 00 00 00 00
    0x00c0:         14 0f 00 00 00 00 00 00 18 0f 00 00 00 00 00 00
    0x00d0:         1c 0f 00 00 00 00 00 00 20 0f 00 00 01 00 00 00
    0x00e0:         24 0f 00 00 00 00 00 00 28 0f 00 00 00 00 00 00
    0x00f0:         2c 0f 00 00 00 00 00 00 30 0f 00 00 01 00 00 00
    0x0100:         34 0f 00 00 00 00 00 00 38 0f 00 00 ff ff ff ff
    0x0110:         3c 0f 00 00 00 00 00 00 40 0f 00 00 00 00 00 00
    0x0120:         44 0f 00 00 00 00 00 00 48 0f 00 00 00 00 00 00
    0x0130:         4c 0f 00 00 00 00 00 00 50 0f 00 00 00 00 00 00
    0x0140:         54 0f 00 00 00 00 00 00 58 0f 00 00 00 00 00 00
    0x0150:         5c 0f 00 00 00 00 00 00 60 0f 00 00 00 00 00 00
    0x0160:         64 0f 00 00 00 00 00 00 68 0f 00 00 00 00 00 00
    0x0170:         6c 0f 00 00 00 00 00 00 70 0f 00 00 00 00 00 00
    0x0180:         74 0f 00 00 00 00 00 00 78 0f 00 00 00 00 00 00
    0x0190:         7c 0f 00 00 00 00 00 00 80 0f 00 00 ff ff 7f 00
    0x01a0:         84 0f 00 00 00 00 00 00 88 0f 00 00 00 00 00 00
    0x01b0:         8c 0f 00 00 00 00 00 00 90 0f 00 00 00 00 00 00
    0x01c0:         94 0f 00 00 00 00 00 00 98 0f 00 00 00 00 00 00
    0x01d0:         9c 0f 00 00 00 00 00 00 a0 0f 00 00 00 00 00 00
    0x01e0:         a4 0f 00 00 00 00 00 00 a8 0f 00 00 00 00 00 00
    0x01f0:         ac 0f 00 00 00 00 00 00 b0 0f 00 00 00 00 00 00
    0x0200:         b4 0f 00 00 00 00 00 00 b8 0f 00 00 00 00 00 00
    0x0210:         bc 0f 00 00 00 00 00 00 c0 0f 00 00 00 00 00 00
    0x0220:         c4 0f 00 00 00 00 00 00 c8 0f 00 00 00 00 00 00
    0x0230:         cc 0f 00 00 00 00 00 00 d0 0f 00 00 00 00 00 00
    0x0240:         d4 0f 00 00 00 00 00 00 d8 0f 00 00 00 00 00 00
    0x0250:         dc 0f 00 00 00 00 00 00 e0 0f 00 00 00 00 00 00
    0x0260:         e4 0f 00 00 00 00 00 00 e8 0f 00 00 00 00 00 00
    0x0270:         ec 0f 00 00 00 00 00 00 f0 0f 00 00 00 00 00 00
    0x0280:         f4 0f 00 00 00 00 00 00 f8 0f 00 00 00 00 00 00
    0x0290:         fc 0f 00 00 00 00 00 00 04 00 00 00 48 02 00 00
    0x02a0:         00 00 02 00 00 01 a8 6b 04 00 02 00 06 60 00 00
    0x02b0:         08 00 02 00 00 00 00 00 0c 00 02 00 00 00 00 00
    0x02c0:         10 00 02 00 00 00 00 00 14 00 02 00 03 00 00 00
    0x02d0:         18 00 02 00 00 00 00 00 1c 00 02 00 00 00 00 00
    0x02e0:         20 00 02 00 01 30 00 00 24 00 02 00 0b 00 00 00
    0x02f0:         28 00 02 00 08 00 00 00 2c 00 02 00 00 00 00 00
    0x0300:         30 00 02 00 ff ff ff ff 34 00 02 00 00 00 00 00
    0x0310:         38 00 02 00 ff ff ff ff 3c 00 02 00 ff ff ff ff
    0x0320:         40 00 02 00 00 00 00 00 44 00 02 00 00 00 00 00
    0x0330:         48 00 02 00 00 00 00 00 4c 00 02 00 00 00 00 00
    0x0340:         50 00 02 00 00 81 a8 88 54 00 02 00 00 00 00 00
    0x0350:         58 00 02 00 00 00 00 00 5c 00 02 00 00 00 00 00
    0x0360:         60 00 02 00 00 00 00 00 64 00 02 00 00 00 00 00
    0x0370:         68 00 02 00 00 00 00 00 6c 00 02 00 00 00 00 00
    0x0380:         70 00 02 00 00 00 00 00 74 00 02 00 00 00 00 00
    0x0390:         78 00 02 00 00 00 00 00 7c 00 02 00 00 00 00 00
    0x03a0:         80 00 02 00 00 00 00 00 84 00 02 00 00 00 00 00
    0x03b0:         88 00 02 00 00 00 00 00 8c 00 02 00 00 00 00 00
    0x03c0:         90 00 02 00 00 00 00 00 94 00 02 00 00 00 00 00
    0x03d0:         98 00 02 00 00 00 00 00 9c 00 02 00 00 00 00 00
    0x03e0:         a0 00 02 00 00 00 00 00 a4 00 02 00 00 00 00 00
    0x03f0:         a8 00 02 00 00 00 00 00 ac 00 02 00 00 00 00 00
    0x0400:         b0 00 02 00 00 00 00 00 b4 00 02 00 00 00 00 00
    0x0410:         b8 00 02 00 00 00 00 00 bc 00 02 00 00 00 00 00
    0x0420:         c0 00 02 00 00 00 00 00 c4 00 02 00 00 00 00 00
    0x0430:         c8 00 02 00 00 00 00 00 cc 00 02 00 00 00 00 00
    0x0440:         d0 00 02 00 00 00 00 00 d4 00 02 00 00 00 00 00
    0x0450:         d8 00 02 00 00 00 00 00 dc 00 02 00 00 00 00 00
    0x0460:         e0 00 02 00 00 00 00 00 e4 00 02 00 00 00 00 00
    0x0470:         e8 00 02 00 00 00 00 00 ec 00 02 00 00 00 00 00
    0x0480:         f0 00 02 00 00 00 00 00 f4 00 02 00 00 00 00 00
    0x0490:         f8 00 02 00 00 00 00 00 fc 00 02 00 00 00 00 00
    0x04a0:         00 01 02 00 e8 07 00 00 04 01 02 00 e8 07 00 00
    0x04b0:         08 01 02 00 e8 07 00 00 0c 01 02 00 e8 07 00 00
    0x04c0:         10 01 02 00 e8 07 00 00 14 01 02 00 e8 07 00 00
    0x04d0:         18 01 02 00 e8 07 00 00 1c 01 02 00 e8 07 00 00
    0x04e0:         05 00 00 00 50 06 00 00 00 10 02 00 00 00 00 00
    0x04f0:         04 10 02 00 01 00 01 00 08 10 02 00 30 00 00 00
    0x0500:         0c 10 02 00 00 00 00 00 10 10 02 00 02 00 00 00
    0x0510:         14 10 02 00 00 00 00 00 18 10 02 00 10 32 54 76
    0x0520:         1c 10 02 00 00 00 00 00 20 10 02 00 10 32 54 76
    0x0530:         24 10 02 00 f2 05 00 00 28 10 02 00 78 56 24 01
    0x0540:         2c 10 02 00 00 00 00 00 30 10 02 00 00 00 00 00
    0x0550:         34 10 02 00 00 00 00 00 38 10 02 00 60 00 00 00
    0x0560:         3c 10 02 00 00 00 00 00 40 10 02 00 00 00 00 00
    0x0570:         44 10 02 00 00 00 00 00 48 10 02 00 00 00 00 00
    0x0580:         4c 10 02 00 00 00 00 01 50 10 02 00 00 00 00 00
    0x0590:         54 10 02 00 00 00 00 00 58 10 02 00 00 00 00 00
    0x05a0:         5c 10 02 00 00 00 00 00 60 10 02 00 00 00 00 00
    0x05b0:         64 10 02 00 00 00 00 00 68 10 02 00 00 00 00 00
    0x05c0:         6c 10 02 00 00 00 00 00 70 10 02 00 00 00 00 00
    0x05d0:         74 10 02 00 00 00 00 00 78 10 02 00 00 00 00 00
    0x05e0:         7c 10 02 00 00 00 00 00 80 10 02 00 00 00 00 00
    0x05f0:         84 10 02 00 00 00 00 00 88 10 02 00 00 00 00 00
    0x0600:         8c 10 02 00 00 00 00 00 90 10 02 00 00 00 00 00
    0x0610:         94 10 02 00 00 00 00 00 98 10 02 00 00 00 00 00
    0x0620:         9c 10 02 00 00 00 00 00 a0 10 02 00 00 00 00 00
    0x0630:         a4 10 02 00 00 00 00 00 a8 10 02 00 00 00 00 00
    0x0640:         ac 10 02 00 00 00 00 00 b0 10 02 00 00 00 00 00
    0x0650:         b4 10 02 00 00 00 00 00 b8 10 02 00 00 00 00 00
    0x0660:         bc 10 02 00 00 00 00 00 c0 10 02 00 00 00 00 00
    0x0670:         c4 10 02 00 00 00 00 00 c8 10 02 00 00 00 00 00
    0x0680:         cc 10 02 00 00 00 00 00 d0 10 02 00 00 00 00 00
    0x0690:         d4 10 02 00 00 00 00 00 d8 10 02 00 00 00 00 00
    0x06a0:         dc 10 02 00 00 00 00 00 e0 10 02 00 00 00 00 00
    0x06b0:         e4 10 02 00 00 00 00 00 e8 10 02 00 00 00 00 00
    0x06c0:         ec 10 02 00 00 00 00 00 f0 10 02 00 00 00 00 00
    0x06d0:         f4 10 02 00 00 00 00 00 f8 10 02 00 00 00 00 00
    0x06e0:         fc 10 02 00 00 00 00 00 00 11 02 00 00 00 00 00
    0x06f0:         04 11 02 00 00 00 00 00 08 11 02 00 00 00 00 00
    0x0700:         0c 11 02 00 00 00 00 00 10 11 02 00 00 00 00 00
    0x0710:         14 11 02 00 00 00 00 00 18 11 02 00 00 00 00 00
    0x0720:         1c 11 02 00 00 00 00 00 20 11 02 00 00 00 00 00
    0x0730:         24 11 02 00 00 00 00 00 28 11 02 00 00 00 00 00
    0x0740:         2c 11 02 00 00 00 00 00 30 11 02 00 00 00 00 00
    0x0750:         34 11 02 00 00 00 00 00 38 11 02 00 00 00 00 00
    0x0760:         3c 11 02 00 00 00 00 00 40 11 02 00 00 00 00 00
    0x0770:         44 11 02 00 00 00 00 00 48 11 02 00 00 00 00 00
    0x0780:         4c 11 02 00 00 00 00 00 50 11 02 00 00 00 00 00
    0x0790:         54 11 02 00 00 00 00 00 58 11 02 00 00 00 00 00
    0x07a0:         5c 11 02 00 00 00 00 00 60 11 02 00 00 00 00 00
    0x07b0:         64 11 02 00 00 00 00 00 68 11 02 00 00 00 00 00
    0x07c0:         6c 11 02 00 00 00 00 00 70 11 02 00 00 00 00 00
    0x07d0:         74 11 02 00 00 00 00 00 78 11 02 00 00 00 00 00
    0x07e0:         7c 11 02 00 00 00 00 00 80 11 02 00 1f 1f 1f 1f
    0x07f0:         84 11 02 00 1f 1f 1f 1f 88 11 02 00 00 00 00 00
    0x0800:         8c 11 02 00 00 00 00 00 90 11 02 00 1f 1f 1f 1f
    0x0810:         94 11 02 00 1f 1f 1f 1f 98 11 02 00 00 00 00 00
    0x0820:         9c 11 02 00 00 00 00 00 a0 11 02 00 00 00 00 00
    0x0830:         a4 11 02 00 00 00 00 00 a8 11 02 00 00 00 00 00
    0x0840:         ac 11 02 00 00 00 00 00 b0 11 02 00 00 00 00 00
    0x0850:         b4 11 02 00 00 00 00 00 b8 11 02 00 00 00 00 00
    0x0860:         bc 11 02 00 00 00 00 00 c0 11 02 00 00 00 00 00
    0x0870:         c4 11 02 00 00 00 00 00 c8 11 02 00 00 00 00 00
    0x0880:         cc 11 02 00 00 00 00 00 d0 11 02 00 00 00 00 00
    0x0890:         d4 11 02 00 00 00 00 00 d8 11 02 00 00 00 00 00
    0x08a0:         dc 11 02 00 00 00 00 00 e0 11 02 00 00 00 00 00
    0x08b0:         e4 11 02 00 00 00 00 00 e8 11 02 00 00 00 00 00
    0x08c0:         ec 11 02 00 00 00 00 00 f0 11 02 00 00 00 00 00
    0x08d0:         f4 11 02 00 00 00 00 00 f8 11 02 00 00 00 00 00
    0x08e0:         fc 11 02 00 00 00 00 00 00 12 02 00 00 00 00 00
    0x08f0:         04 12 02 00 00 00 00 00 08 12 02 00 00 00 00 00
    0x0900:         0c 12 02 00 00 00 00 00 10 12 02 00 00 00 00 00
    0x0910:         14 12 02 00 00 00 00 00 18 12 02 00 00 00 00 00
    0x0920:         1c 12 02 00 00 00 00 00 20 12 02 00 00 00 00 00
    0x0930:         24 12 02 00 00 00 00 00 28 12 02 00 00 00 00 00
    0x0940:         2c 12 02 00 00 00 00 00 30 12 02 00 00 00 00 00
    0x0950:         34 12 02 00 00 00 00 00 38 12 02 00 00 00 00 00
    0x0960:         3c 12 02 00 00 00 00 00 40 12 02 00 00 00 00 00
    0x0970:         44 12 02 00 00 00 00 00 48 12 02 00 00 00 00 00
    0x0980:         4c 12 02 00 00 00 00 00 50 12 02 00 00 00 00 00
    0x0990:         54 12 02 00 00 00 00 00 58 12 02 00 00 00 00 00
    0x09a0:         5c 12 02 00 00 00 00 00 60 12 02 00 00 00 00 00
    0x09b0:         64 12 02 00 00 00 00 00 68 12 02 00 00 00 00 00
    0x09c0:         6c 12 02 00 00 00 00 00 70 12 02 00 00 00 00 00
    0x09d0:         74 12 02 00 00 00 00 00 78 12 02 00 00 00 00 00
    0x09e0:         7c 12 02 00 00 00 00 00 80 12 02 00 00 00 00 00
    0x09f0:         84 12 02 00 00 00 00 00 88 12 02 00 00 00 00 00
    0x0a00:         8c 12 02 00 00 00 00 00 90 12 02 00 00 00 00 00
    0x0a10:         94 12 02 00 00 00 00 00 98 12 02 00 00 00 00 00
    0x0a20:         9c 12 02 00 00 00 00 00 a0 12 02 00 00 00 00 00
    0x0a30:         a4 12 02 00 00 00 00 00 a8 12 02 00 00 00 00 00
    0x0a40:         ac 12 02 00 00 00 00 00 b0 12 02 00 00 00 00 00
    0x0a50:         b4 12 02 00 00 00 00 00 b8 12 02 00 00 00 00 00
    0x0a60:         bc 12 02 00 00 00 00 00 c0 12 02 00 00 00 00 00
    0x0a70:         c4 12 02 00 00 00 00 00 c8 12 02 00 00 00 00 00
    0x0a80:         cc 12 02 00 00 00 00 00 d0 12 02 00 00 00 00 00
    0x0a90:         d4 12 02 00 00 00 00 00 d8 12 02 00 00 00 00 00
    0x0aa0:         dc 12 02 00 00 00 00 00 e0 12 02 00 00 00 00 00
    0x0ab0:         e4 12 02 00 00 00 00 00 e8 12 02 00 00 00 00 00
    0x0ac0:         ec 12 02 00 00 00 00 00 f0 12 02 00 00 00 00 00
    0x0ad0:         f4 12 02 00 00 00 00 00 f8 12 02 00 00 00 00 00
    0x0ae0:         fc 12 02 00 00 00 00 00 00 13 02 00 01 02 03 04
    0x0af0:         04 13 02 00 05 06 07 08 08 13 02 00 00 00 00 00
    0x0b00:         0c 13 02 00 00 00 00 00 10 13 02 00 00 00 00 00
    0x0b10:         14 13 02 00 00 00 00 00 18 13 02 00 00 00 00 00
    0x0b20:         1c 13 02 00 00 00 00 00 20 13 02 00 00 00 00 00
    0x0b30:         06 00 00 00 58 07 00 00 00 20 02 00 00 00 00 00
    0x0b40:         04 20 02 00 00 00 00 00 08 20 02 00 04 10 00 00
    0x0b50:         0c 20 02 00 00 00 00 00 10 20 02 00 02 00 00 00
    0x0b60:         14 20 02 00 00 00 00 00 18 20 02 00 10 32 54 76
    0x0b70:         1c 20 02 00 00 90 00 00 20 20 02 00 10 32 54 76
    0x0b80:         24 20 02 00 f2 05 00 00 28 20 02 00 78 56 24 01
    0x0b90:         2c 20 02 00 40 00 00 00 30 20 02 00 00 00 00 00
    0x0ba0:         34 20 02 00 00 00 00 00 38 20 02 00 60 00 00 00
    0x0bb0:         3c 20 02 00 00 00 00 00 40 20 02 00 08 00 00 00
    0x0bc0:         44 20 02 00 00 00 00 00 48 20 02 00 d0 12 13 00
    0x0bd0:         4c 20 02 00 00 00 00 00 50 20 02 00 00 ff 00 00
    0x0be0:         54 20 02 00 00 00 00 00 58 20 02 00 00 00 00 00
    0x0bf0:         5c 20 02 00 00 00 00 00 60 20 02 00 00 00 00 00
    0x0c00:         64 20 02 00 00 00 00 00 68 20 02 00 00 00 00 00
    0x0c10:         6c 20 02 00 00 00 00 00 70 20 02 00 00 00 00 00
    0x0c20:         74 20 02 00 00 00 00 00 78 20 02 00 00 00 00 00
    0x0c30:         7c 20 02 00 00 00 00 00 80 20 02 00 00 00 00 00
    0x0c40:         84 20 02 00 00 00 00 00 88 20 02 00 00 00 00 00
    0x0c50:         8c 20 02 00 00 00 00 00 90 20 02 00 00 00 00 00
    0x0c60:         94 20 02 00 00 00 00 00 98 20 02 00 00 00 00 00
    0x0c70:         9c 20 02 00 00 00 00 00 a0 20 02 00 00 00 00 00
    0x0c80:         a4 20 02 00 00 00 00 00 a8 20 02 00 00 00 00 00
    0x0c90:         ac 20 02 00 00 00 00 00 b0 20 02 00 00 00 00 00
    0x0ca0:         b4 20 02 00 00 00 00 00 b8 20 02 00 00 00 00 00
    0x0cb0:         bc 20 02 00 00 00 00 00 c0 20 02 00 00 00 00 00
    0x0cc0:         c4 20 02 00 00 00 00 00 c8 20 02 00 00 00 00 00
    0x0cd0:         cc 20 02 00 00 00 00 00 d0 20 02 00 00 00 00 00
    0x0ce0:         d4 20 02 00 00 00 00 00 d8 20 02 00 00 00 00 00
    0x0cf0:         dc 20 02 00 00 00 00 00 e0 20 02 00 00 00 00 00
    0x0d00:         e4 20 02 00 00 00 00 00 e8 20 02 00 00 00 00 00
    0x0d10:         ec 20 02 00 00 00 00 00 f0 20 02 00 00 00 00 00
    0x0d20:         f4 20 02 00 00 00 00 00 f8 20 02 00 00 00 00 00
    0x0d30:         fc 20 02 00 00 00 00 00 00 21 02 00 00 00 00 00
    0x0d40:         04 21 02 00 00 00 00 00 08 21 02 00 00 00 00 00
    0x0d50:         0c 21 02 00 00 00 00 00 10 21 02 00 00 00 00 00
    0x0d60:         14 21 02 00 00 00 00 00 18 21 02 00 00 00 00 00
    0x0d70:         1c 21 02 00 00 00 00 00 20 21 02 00 00 00 00 00
    0x0d80:         24 21 02 00 00 00 00 00 28 21 02 00 00 00 00 00
    0x0d90:         2c 21 02 00 00 00 00 00 30 21 02 00 00 00 00 00
    0x0da0:         34 21 02 00 00 00 00 00 38 21 02 00 00 00 00 00
    0x0db0:         3c 21 02 00 00 00 00 00 40 21 02 00 00 00 00 00
    0x0dc0:         44 21 02 00 00 00 00 00 48 21 02 00 00 00 00 00
    0x0dd0:         4c 21 02 00 00 00 00 00 50 21 02 00 00 00 00 00
    0x0de0:         54 21 02 00 00 00 00 00 58 21 02 00 00 00 00 00
    0x0df0:         5c 21 02 00 00 00 00 00 60 21 02 00 00 00 00 00
    0x0e00:         64 21 02 00 00 00 00 00 68 21 02 00 00 00 00 00
    0x0e10:         6c 21 02 00 00 00 00 00 70 21 02 00 00 00 00 00
    0x0e20:         74 21 02 00 00 00 00 00 78 21 02 00 00 00 00 00
    0x0e30:         7c 21 02 00 00 00 00 00 80 21 02 00 1f 1f 1f 1f
    0x0e40:         84 21 02 00 1f 1f 1f 1f 88 21 02 00 00 00 00 00
    0x0e50:         8c 21 02 00 00 00 00 00 90 21 02 00 1f 1f 1f 1f
    0x0e60:         94 21 02 00 1f 1f 1f 1f 98 21 02 00 00 00 00 00
    0x0e70:         9c 21 02 00 00 00 00 00 a0 21 02 00 00 00 00 00
    0x0e80:         a4 21 02 00 00 00 00 00 a8 21 02 00 00 00 00 00
    0x0e90:         ac 21 02 00 00 00 00 00 b0 21 02 00 00 00 00 00
    0x0ea0:         b4 21 02 00 00 00 00 00 b8 21 02 00 00 00 00 00
    0x0eb0:         bc 21 02 00 00 00 00 00 c0 21 02 00 00 00 00 00
    0x0ec0:         c4 21 02 00 00 00 00 00 c8 21 02 00 00 00 00 00
    0x0ed0:         cc 21 02 00 00 00 00 00 d0 21 02 00 00 00 00 00
    0x0ee0:         d4 21 02 00 00 00 00 00 d8 21 02 00 00 00 00 00
    0x0ef0:         dc 21 02 00 00 00 00 00 e0 21 02 00 00 00 00 00
    0x0f00:         e4 21 02 00 00 00 00 00 e8 21 02 00 00 00 00 00
    0x0f10:         ec 21 02 00 00 00 00 00 f0 21 02 00 00 00 00 00
    0x0f20:         f4 21 02 00 00 00 00 00 f8 21 02 00 00 00 00 00
    0x0f30:         fc 21 02 00 00 00 00 00 00 22 02 00 00 00 00 00
    0x0f40:         04 22 02 00 00 00 00 00 08 22 02 00 00 00 00 00
    0x0f50:         0c 22 02 00 00 00 00 00 10 22 02 00 00 00 00 00
    0x0f60:         14 22 02 00 00 00 00 00 18 22 02 00 00 00 00 00
    0x0f70:         1c 22 02 00 00 00 00 00 20 22 02 00 00 00 00 00
    0x0f80:         24 22 02 00 00 00 00 00 28 22 02 00 00 00 00 00
    0x0f90:         2c 22 02 00 00 00 00 00 30 22 02 00 00 00 00 00
    0x0fa0:         34 22 02 00 00 00 00 00 38 22 02 00 00 00 00 00
    0x0fb0:         3c 22 02 00 00 00 00 00 40 22 02 00 00 00 00 00
    0x0fc0:         44 22 02 00 00 00 00 00 48 22 02 00 00 00 00 00
    0x0fd0:         4c 22 02 00 00 00 00 00 50 22 02 00 00 00 00 00
    0x0fe0:         54 22 02 00 00 00 00 00 58 22 02 00 00 00 00 00
    0x0ff0:         5c 22 02 00 00 00 00 00 60 22 02 00 00 00 00 00
    0x1000:         64 22 02 00 00 00 00 00 68 22 02 00 00 00 00 00
    0x1010:         6c 22 02 00 00 00 00 00 70 22 02 00 00 00 00 00
    0x1020:         74 22 02 00 00 00 00 00 78 22 02 00 00 00 00 00
    0x1030:         7c 22 02 00 00 00 00 00 80 22 02 00 00 00 00 00
    0x1040:         84 22 02 00 00 00 00 00 88 22 02 00 00 00 00 00
    0x1050:         8c 22 02 00 00 00 00 00 90 22 02 00 00 00 00 00
    0x1060:         94 22 02 00 00 00 00 00 98 22 02 00 00 00 00 00
    0x1070:         9c 22 02 00 00 00 00 00 a0 22 02 00 00 00 00 00
    0x1080:         a4 22 02 00 00 00 00 00 a8 22 02 00 00 00 00 00
    0x1090:         ac 22 02 00 00 00 00 00 b0 22 02 00 00 00 00 00
    0x10a0:         b4 22 02 00 00 00 00 00 b8 22 02 00 00 00 00 00
    0x10b0:         bc 22 02 00 00 00 00 00 c0 22 02 00 00 00 00 00
    0x10c0:         c4 22 02 00 00 00 00 00 c8 22 02 00 00 00 00 00
    0x10d0:         cc 22 02 00 00 00 00 00 d0 22 02 00 00 00 00 00
    0x10e0:         d4 22 02 00 00 00 00 00 d8 22 02 00 00 00 00 00
    0x10f0:         dc 22 02 00 00 00 00 00 e0 22 02 00 00 00 00 00
    0x1100:         e4 22 02 00 00 00 00 00 e8 22 02 00 00 00 00 00
    0x1110:         ec 22 02 00 00 00 00 00 f0 22 02 00 00 00 00 00
    0x1120:         f4 22 02 00 00 00 00 00 f8 22 02 00 00 00 00 00
    0x1130:         fc 22 02 00 00 00 00 00 00 23 02 00 00 00 00 00
    0x1140:         04 23 02 00 00 00 00 00 08 23 02 00 41 fa 00 00
    0x1150:         0c 23 02 00 24 76 25 96 10 23 02 00 00 00 00 00
    0x1160:         14 23 02 00 00 00 1e 00 18 23 02 00 00 00 00 00
    0x1170:         1c 23 02 00 00 00 00 00 20 23 02 00 00 00 04 00
    0x1180:         24 23 02 00 00 00 00 00 28 23 02 00 00 00 00 00
    0x1190:         2c 23 02 00 00 00 00 00 30 23 02 00 a1 00 00 00
    0x11a0:         34 23 02 00 18 00 00 f0 38 23 02 00 00 00 00 00
    0x11b0:         3c 23 02 00 00 00 00 00 40 23 02 00 00 00 00 00
    0x11c0:         44 23 02 00 00 00 00 00 48 23 02 00 00 00 00 00
    0x11d0:         4c 23 02 00 00 00 00 00 50 23 02 00 00 00 00 00
    0x11e0:         54 23 02 00 00 00 00 00 58 23 02 00 00 00 00 00
    0x11f0:         5c 23 02 00 00 00 00 00 60 23 02 00 00 00 00 00
    0x1200:         64 23 02 00 00 00 00 00 68 23 02 00 00 00 00 00
    0x1210:         6c 23 02 00 00 00 00 00 70 23 02 00 00 00 00 00
    0x1220:         74 23 02 00 00 00 00 00 78 23 02 00 00 00 00 00
    0x1230:         7c 23 02 00 00 00 00 00 80 23 02 00 00 00 00 00
    0x1240:         84 23 02 00 00 00 00 00 88 23 02 00 00 00 00 00
    0x1250:         8c 23 02 00 00 00 00 00 90 23 02 00 00 00 00 00
    0x1260:         94 23 02 00 00 00 00 00 98 23 02 00 00 00 00 00
    0x1270:         9c 23 02 00 00 00 00 00 a0 23 02 00 00 00 00 00
    0x1280:         a4 23 02 00 0c 00 00 00 07 00 00 00 a0 00 00 00
    0x1290:         00 d0 03 00 0a 01 8a 4e 04 d0 03 00 21 00 00 00
    0x12a0:         08 d0 03 00 00 00 00 00 0c d0 03 00 00 00 00 00
    0x12b0:         10 d0 03 00 82 bf 26 4c 14 d0 03 00 00 00 00 00
    0x12c0:         18 d0 03 00 00 00 00 00 1c d0 03 00 00 00 00 00
    0x12d0:         20 d0 03 00 00 00 00 00 24 d0 03 00 00 00 00 00
    0x12e0:         28 d0 03 00 01 00 00 00 2c d0 03 00 00 00 00 00
    0x12f0:         30 d0 03 00 00 00 00 00 34 d0 03 00 00 00 00 00
    0x1300:         38 d0 03 00 00 00 00 00 3c d0 03 00 00 00 00 00
    0x1310:         40 d0 03 00 00 00 00 00 44 d0 03 00 00 00 00 00
    0x1320:         48 d0 03 00 00 00 00 00 08 00 00 00 88 02 00 00
    0x1330:         00 e0 03 00 04 39 29 00 04 e0 03 00 40 01 00 00
    0x1340:         08 e0 03 00 05 00 00 80 0c e0 03 00 00 00 00 00
    0x1350:         10 e0 03 00 15 16 05 00 14 e0 03 00 06 27 00 00
    0x1360:         18 e0 03 00 00 00 00 00 1c e0 03 00 00 00 00 00
    0x1370:         20 e0 03 00 0c 00 00 00 24 e0 03 00 00 00 00 00
    0x1380:         28 e0 03 00 00 00 00 00 2c e0 03 00 00 00 00 00
    0x1390:         30 e0 03 00 00 00 00 00 34 e0 03 00 04 00 00 00
    0x13a0:         38 e0 03 00 00 01 00 10 3c e0 03 00 fc 00 00 5e
    0x13b0:         40 e0 03 00 13 00 00 00 44 e0 03 00 13 28 00 00
    0x13c0:         48 e0 03 00 00 00 00 00 4c e0 03 00 00 00 00 00
    0x13d0:         50 e0 03 00 00 00 00 00 54 e0 03 00 00 00 00 00
    0x13e0:         58 e0 03 00 00 00 00 00 5c e0 03 00 00 00 00 00
    0x13f0:         60 e0 03 00 00 00 00 00 64 e0 03 00 00 00 00 00
    0x1400:         68 e0 03 00 00 00 00 00 6c e0 03 00 00 00 00 00
    0x1410:         70 e0 03 00 00 00 00 00 74 e0 03 00 00 00 00 00
    0x1420:         78 e0 03 00 00 00 00 00 7c e0 03 00 00 00 00 00
    0x1430:         80 e0 03 00 00 00 00 00 84 e0 03 00 00 00 00 00
    0x1440:         88 e0 03 00 00 00 00 00 8c e0 03 00 00 00 00 00
    0x1450:         90 e0 03 00 00 00 00 00 94 e0 03 00 00 00 00 00
    0x1460:         98 e0 03 00 00 00 00 00 9c e0 03 00 00 00 00 00
    0x1470:         a0 e0 03 00 00 00 00 00 a4 e0 03 00 00 00 00 00
    0x1480:         a8 e0 03 00 00 00 00 00 ac e0 03 00 00 00 00 00
    0x1490:         b0 e0 03 00 00 00 00 00 b4 e0 03 00 00 00 00 00
    0x14a0:         b8 e0 03 00 00 00 00 00 bc e0 03 00 00 00 00 00
    0x14b0:         c0 e0 03 00 03 00 00 00 c4 e0 03 00 02 00 00 00
    0x14c0:         c8 e0 03 00 00 00 00 00 cc e0 03 00 00 00 00 00
    0x14d0:         d0 e0 03 00 00 00 00 00 d4 e0 03 00 00 00 00 00
    0x14e0:         d8 e0 03 00 00 00 00 00 dc e0 03 00 00 00 00 00
    0x14f0:         e0 e0 03 00 00 00 00 00 e4 e0 03 00 00 00 00 00
    0x1500:         e8 e0 03 00 00 00 00 00 ec e0 03 00 00 00 00 00
    0x1510:         f0 e0 03 00 00 00 00 00 f4 e0 03 00 00 00 00 00
    0x1520:         f8 e0 03 00 00 00 00 00 fc e0 03 00 00 00 00 00
    0x1530:         00 e1 03 00 00 00 00 00 04 e1 03 00 00 00 00 00
    0x1540:         08 e1 03 00 00 00 00 00 0c e1 03 00 00 00 00 00
    0x1550:         10 e1 03 00 00 00 00 00 14 e1 03 00 00 00 00 00
    0x1560:         18 e1 03 00 00 00 00 00 1c e1 03 00 00 00 00 00
    0x1570:         20 e1 03 00 00 00 00 00 24 e1 03 00 00 00 00 00
    0x1580:         28 e1 03 00 00 00 00 00 2c e1 03 00 00 00 00 00
    0x1590:         30 e1 03 00 00 00 00 00 34 e1 03 00 00 80 00 00
    0x15a0:         38 e1 03 00 00 00 00 00 3c e1 03 00 00 00 00 00
    0x15b0:         09 00 00 00 08 03 00 00 00 00 00 00 00 00 00 20
    0x15c0:         03 00 10 03 01 00 00 00 76 24 00 10 fa 41 96 25
    0x15d0:         0c 00 00 00 ff ff 00 f0 ff ff ff ff 04 00 00 00
    0x15e0:         33 33 00 10 01 00 00 00 04 00 00 00 00 01 00 10
    0x15f0:         01 00 00 5e 04 00 00 00 33 33 00 10 fa 41 96 ff
    0x1600:         04 00 00 00 80 01 00 10 00 00 00 c2 04 00 00 00
    0x1610:         80 01 00 10 03 00 00 c2 04 00 00 00 80 01 00 10
    0x1620:         0e 00 00 c2 04 00 00 00 33 33 00 10 fb 00 00 00
    0x1630:         04 00 00 00 33 33 00 10 03 00 01 00 04 00 00 00
    0x1640:         00 01 00 10 fb 00 00 5e 04 00 00 00 00 01 00 10
    0x1650:         fc 00 00 5e 00 00 00 00 00 00 00 00 00 00 00 00
    0x1660:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1670:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1680:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1690:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x16a0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x16b0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x16c0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x16d0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x16e0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x16f0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1700:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1710:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1720:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1730:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1740:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1750:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1760:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1770:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1780:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1790:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x17a0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x17b0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x17c0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x17d0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x17e0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x17f0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1800:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1810:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1820:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1830:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1840:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1850:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1860:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1870:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1880:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x1890:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x18a0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x18b0:         00 00 00 00 00 00 00 00
    

  • Still with the above configuration I look at the port statistics with the goal to identify the differences of frame egress on HOST port and MAC port3 towards CPSW2G

       HOST Port  MAC Port 3  MAC Port 5 HP - P3
      rxGoodFrames             61 124 234150 -63
      rxBcastFrames            8 7 72 1
      rxMcastFrames            53 29 233811 24
      rxAlignCodeErrors            1520 0
      aleDrop                  12 13 1774 -1
      rxOctets                 6798 23664 23412939 -16866
      txGoodFrames             227681 228354 160 -673
      txBcastFrames            78 79 15 -1
      txMcastFrames            227603 228011 57 -408
      txOctets                 22752952 22867357 28156 -114405
      octetsFrames64           59150 59681 61583 -531
      octetsFrames65to127      154040 153771 158850 269
      octetsFrames128to255     11 356 361 -345
      octetsFrames256to511     9699 9785 10029 -86
      octetsFrames512to1023    4842 4885 5007 -43
      netOctets                22759750 22891021 23593221 -131271
      portMaskDrop             12 13 3294 -1
      aleUnknownUcast            10   -10
      aleUnknownUcastBcnt        2070   -2070
      aleUnknownMcast            3 6 -3
      aleUnknownMcastBcnt        364 709 -364
      aleUnknownBcast            2   -2
      aleUnknownBcastBcnt        668   -668
      alePolicyMatch           42 5 11544 37
      txPri[0]                 227681 228353 124 -672
      txPri[1]                   1 1 -1
      txPri[2]                     35 0
      txPriBcnt[0]             22746704 22867293 25572 -120589
      txPriBcnt[1]               64 64 -64
      txPriBcnt[2]                 2520 0

    the differences of txGoodFrames, txMcastFrames are small enough, so that would point to PTP frames being delivered towards CPSW2G at port 3.

    Am I interpreting correctly? How can the PTP be dropped at CPSW2G? Pls. give your opinion.

  • After excluding some PTP-related code in app_ethfw_freertos.c PTP frames can be received at eth0. I don't know yet which exclusions are sufficient, at least this one is necessary:

    • to exclude call to EthFw_initTimeSyncPtp()

    also excluded:

    • shared MC addresses in gEthApp_sharedMcastAddrTable[]
    • reserved MC addresses in gEthApp_rsvdMcastAddrTable[]

    With these following PTP frames can be observed at both eth1 as well as eth0:

    • Sync and Sync_Follow_Up messages sent from the Aurix
    • Peer_Delay_Req messages sent by ptp4l bound to I/F eth0

    The corresponding Peer_Delay_Resp that should be sent from Aurix as a reply to Peer_Delay_Req cannot be observed. It is yet unknown, whether the Aurix does not receive the requests or whether same fails to respond.

    Q: what are the particulars of CpswAle_SetPolicerEntryInArgs.threadIdEn / CpswAle_SetPolicerEntryInArgs.threadId? Pls. point to documentation.

  • Clarified: the Aurix receives Peer_Delay_Req, Peer_Delay_Resp not sent by Aurix.