Tool/software:
Hello Nick,
I have managed to boot the EthernetIP Adapter Tunneling Example with SBL from OSPI on the AM64x_EVM.
In order to get the example running on SBL I had to comment out the AppCtrl_sendIPNotify() in line 640 in app_task.c.
Now the example is running fine except that Linux cannot be pinged from host PC.
Linux dmesg log:
*************************************************************** *************************************************************** _____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _| |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project am64xx-evm ttyS2 Arago 2025.01 am64xx-evm ttyS2 am64xx-evm login: root [ 24.937248][ T29] kauditd_printk_skb: 2 callbacks suppressed [ 24.937270][ T29] audit: type=1006 audit(1748632024.375:14): pid=718 uid=0 subj=kernel old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1 [ 24.957560][ T29] audit: type=1300 audit(1748632024.375:14): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=fffff6587528 a2=1 a3=1 items=0 ppid=1 pid=718 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="(systemd)" exe="/usr/lib/systemd/systemd-executor" subj=kernel key=(null) [ 24.986046][ T29] audit: type=1327 audit(1748632024.375:14): proctitle="(systemd)" [ 25.069933][ T29] audit: type=1334 audit(1748632024.507:15): prog-id=18 op=LOAD [ 25.078905][ T29] audit: type=1300 audit(1748632024.507:15): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=fffff9601ee8 a2=90 a3=0 items=0 ppid=1 pid=718 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="systemd" exe="/usr/lib/systemd/systemd" subj=kernel key=(null) [ 25.107704][ T29] audit: type=1327 audit(1748632024.507:15): proctitle="(systemd)" [ 25.117244][ T29] audit: type=1334 audit(1748632024.507:16): prog-id=18 op=UNLOAD [ 25.125960][ T29] audit: type=1300 audit(1748632024.507:16): arch=c00000b7 syscall=57 success=yes exit=0 a0=8 a1=1 a2=0 a3=ffffaf403c60 items=0 ppid=1 pid=718 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="systemd" exe="/usr/lib/systemd/systemd" subj=kernel key=(null) [ 25.154539][ T29] audit: type=1327 audit(1748632024.507:16): proctitle="(systemd)" [ 25.162903][ T29] audit: type=1334 audit(1748632024.507:17): prog-id=19 op=LOAD root@am64xx-evm:~# dmesg [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 6.12.35-ge3e551586dfa-dirty (kustural@DE1CL-269MGS3) (aarch64-oe-linux-gcc (GCC) 13.4.0, GNU ld (GNU Binutils) 2.42.0.20240723) #3 SMP PREEMPT Thu Aug 7 14:58:28 CEST 2025 [ 0.000000] KASLR disabled due to lack of seed [ 0.000000] Machine model: Texas Instruments AM642 EVM [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '') [ 0.000000] printk: legacy bootconsole [ns16550a0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] OF: reserved mem: 0x000000009e800000..0x000000009fffffff (24576 KiB) nomap non-reusable optee@9e800000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a0000000..0x00000000a00fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a0000000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 3 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a0100000..0x00000000a03fffff (3072 KiB) nomap non-reusable r5f-memory@a0100000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0400000, size 12 MiB [ 0.000000] OF: reserved mem: initialized node virtual-eth-shm@a0400000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a0400000..0x00000000a0ffffff (12288 KiB) nomap non-reusable virtual-eth-shm@a0400000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a1000000..0x00000000a10fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a1000000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a1100000..0x00000000a1ffffff (15360 KiB) nomap non-reusable r5f-memory@a1100000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a2000000..0x00000000a20fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a2000000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a2100000..0x00000000a2ffffff (15360 KiB) nomap non-reusable r5f-memory@a2100000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a3000000..0x00000000a30fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a3000000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a3100000..0x00000000a3ffffff (15360 KiB) nomap non-reusable r5f-memory@a3100000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node m4f-dma-memory@a4000000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a40fffff (1024 KiB) nomap non-reusable m4f-dma-memory@a4000000 [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node m4f-memory@a4100000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: 0x00000000a4100000..0x00000000a4ffffff (15360 KiB) nomap non-reusable m4f-memory@a4100000 [ 0.000000] OF: reserved mem: 0x00000000a5000000..0x00000000a57fffff (8192 KiB) nomap non-reusable ipc-memories@a5000000 [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 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-0x00000000a57fffff] [ 0.000000] node 0: [mem 0x00000000a5800000-0x00000000ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff] [ 0.000000] cma: Reserved 32 MiB at 0x00000000fba00000 on node -1 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.1 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: Trusted OS migration not required [ 0.000000] psci: SMC Calling Convention v1.5 [ 0.000000] percpu: Embedded 22 pages/cpu s51672 r8192 d30248 u90112 [ 0.000000] pcpu-alloc: s51672 r8192 d30248 u90112 alloc=22*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] CPU features: detected: ARM erratum 845719 [ 0.000000] alternatives: applying boot alternatives [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=523086cd-02 rw rootfstype=ext4 rootwait [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 524288 [ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off [ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 2MB [ 0.000000] software IO TLB: area num 2. [ 0.000000] software IO TLB: mapped [mem 0x00000000fb600000-0x00000000fb800000] (2MB) [ 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=512 to nr_cpu_ids=2. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2. [ 0.000000] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_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: 256 SPIs implemented [ 0.000000] GICv3: 0 Extended SPIs implemented [ 0.000000] Root IRQ handler: gic_handle_irq [ 0.000000] GICv3: GICv3 features: 16 PPIs [ 0.000000] GICv3: GICD_CTRL.DS=0, SCR_EL3.FIQ=1 [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001840000 [ 0.000000] ITS [mem 0x01820000-0x0182ffff] [ 0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS [ 0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19 [ 0.000000] ITS@0x0000000001820000: allocated 524288 Devices @80800000 (flat, esz 8, psz 64K, shr 0) [ 0.000000] ITS: using cache flushing for cmd queue [ 0.000000] GICv3: using LPI property table @0x0000000080040000 [ 0.000000] GIC: using cache flushing for LPI property table [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000080050000 [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000000] arch_timer: cp15 timer(s) running at 225.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x33e45310bc, max_idle_ns: 440795207391 ns [ 0.000001] sched_clock: 58 bits at 225MHz, resolution 4ns, wraps every 4398046511101ns [ 0.009686] Console: colour dummy device 80x25 [ 0.015033] Calibrating delay loop (skipped), value calculated using timer frequency.. 450.00 BogoMIPS (lpj=900000) [ 0.026435] pid_max: default: 32768 minimum: 301 [ 0.032012] LSM: initializing lsm=capability,selinux [ 0.037886] SELinux: Initializing. [ 0.042826] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.051130] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.063219] rcu: Hierarchical SRCU implementation. [ 0.068925] rcu: Max phase no-delay instances is 1000. [ 0.075294] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level [ 0.085455] EFI services will not be available. [ 0.091316] smp: Bringing up secondary CPUs ... [ 0.105836] Detected VIPT I-cache on CPU1 [ 0.105967] GICv3: CPU1: found redistributor 1 region 0:0x0000000001860000 [ 0.105990] GICv3: CPU1: using allocated LPI pending table @0x0000000080060000 [ 0.106058] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.106314] smp: Brought up 1 node, 2 CPUs [ 0.139298] SMP: Total of 2 processors activated. [ 0.144829] CPU: All CPU(s) started at EL2 [ 0.149758] CPU features: detected: 32-bit EL0 Support [ 0.155737] CPU features: detected: CRC32 instructions [ 0.161763] alternatives: applying system-wide alternatives [ 0.169087] Memory: 1875844K/2097152K available (13184K kernel code, 1444K rwdata, 5016K rodata, 3072K init, 642K bss, 180568K reserved, 32768K cma-reserved) [ 0.185791] devtmpfs: initialized [ 0.203354] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.214091] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.223091] 26880 pages in range for non-PLT usage [ 0.223125] 518400 pages in range for PLT usage [ 0.229265] pinctrl core: initialized pinctrl subsystem [ 0.241526] DMI not present or invalid. [ 0.249417] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.258331] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 0.267492] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.277705] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.286673] audit: initializing netlink subsys (disabled) [ 0.293514] audit: type=2000 audit(0.208:1): state=initialized audit_enabled=0 res=1 [ 0.294234] thermal_sys: Registered thermal governor 'step_wise' [ 0.302210] thermal_sys: Registered thermal governor 'power_allocator' [ 0.309159] cpuidle: using governor menu [ 0.321584] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.329360] ASID allocator initialised with 65536 entries [ 0.342939] /bus@f4000/interrupt-controller@1800000: Fixed dependency cycle(s) with /bus@f4000/interrupt-controller@1800000 [ 0.368775] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages [ 0.376489] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page [ 0.383623] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages [ 0.391278] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page [ 0.398405] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 0.406060] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page [ 0.413187] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages [ 0.420845] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page [ 0.431761] k3-chipinfo 43000014.chipid: Family:AM64X rev:SR2.0 JTAGID[0x1bb3802f] Detected [ 0.442018] iommu: Default domain type: Translated [ 0.447708] iommu: DMA domain TLB invalidation policy: strict mode [ 0.455648] SCSI subsystem initialized [ 0.460654] libata version 3.00 loaded. [ 0.461026] usbcore: registered new interface driver usbfs [ 0.467398] usbcore: registered new interface driver hub [ 0.473630] usbcore: registered new device driver usb [ 0.480218] pps_core: LinuxPPS API ver. 1 registered [ 0.486023] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.496090] PTP clock support registered [ 0.500867] EDAC MC: Ver: 3.0.0 [ 0.505427] scmi_core: SCMI protocol bus registered [ 0.511764] FPGA manager framework [ 0.516115] Advanced Linux Sound Architecture Driver Initialized. [ 0.524562] vgaarb: loaded [ 0.528706] clocksource: Switched to clocksource arch_sys_counter [ 0.536176] VFS: Disk quotas dquot_6.6.0 [ 0.540978] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.560487] NET: Registered PF_INET protocol family [ 0.566579] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.577444] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 0.587059] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.595733] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.604724] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear) [ 0.613543] TCP: Hash tables configured (established 16384 bind 16384) [ 0.621255] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.628924] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.637212] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.644539] RPC: Registered named UNIX socket transport module. [ 0.651395] RPC: Registered udp transport module. [ 0.656927] RPC: Registered tcp transport module. [ 0.662455] RPC: Registered tcp-with-tls transport module. [ 0.668784] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.676099] NET: Registered PF_XDP protocol family [ 0.681752] PCI: CLS 0 bytes, default 64 [ 0.688363] Initialise system trusted keyrings [ 0.694114] workingset: timestamp_bits=46 max_order=19 bucket_order=0 [ 0.702009] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.709273] NFS: Registering the id_resolver key type [ 0.715237] Key type id_resolver registered [ 0.720241] Key type id_legacy registered [ 0.725097] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.732674] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 0.824007] Key type asymmetric registered [ 0.828959] Asymmetric key parser 'x509' registered [ 0.834791] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244) [ 0.843403] io scheduler mq-deadline registered [ 0.848797] io scheduler kyber registered [ 0.853680] io scheduler bfq registered [ 0.862529] pinctrl-single 4084000.pinctrl: 33 pins, size 132 [ 0.869997] pinctrl-single f4000.pinctrl: 180 pins, size 720 [ 0.878909] ledtrig-cpu: registered to indicate activity on CPUs [ 0.895041] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.916458] loop: module loaded [ 0.922177] megasas: 07.727.03.00-rc1 [ 0.933225] tun: Universal TUN/TAP device driver, 1.6 [ 0.941090] VFIO - User Level meta-driver version: 0.3 [ 0.949029] usbcore: registered new interface driver usb-storage [ 0.956896] i2c_dev: i2c /dev entries driver [ 0.963779] sdhci: Secure Digital Host Controller Interface driver [ 0.970932] sdhci: Copyright(c) Pierre Ossman [ 0.976492] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.984045] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... [ 0.992898] usbcore: registered new interface driver usbhid [ 0.999365] usbhid: USB HID core driver [ 1.006258] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 (0,8000003f) counters available [ 1.017670] optee: probing for conduit method. [ 1.023000] optee: revision 4.6 (71785645fa6ce42d) [ 1.039933] optee: dynamic shared memory is enabled [ 1.052542] optee: initialized driver [ 1.052676] random: crng init done [ 1.060375] Initializing XFRM netlink socket [ 1.066526] NET: Registered PF_PACKET protocol family [ 1.072538] Key type dns_resolver registered [ 1.091321] registered taskstats version 1 [ 1.096480] Loading compiled-in X.509 certificates [ 1.121928] ti-sci 44043000.system-controller: ABI: 4.0 (firmware rev 0x000b '11.0.7--v11.00.07 (Fancy Rat)') [ 1.259407] pca953x 0-0038: supply vcc not found, using dummy regulator [ 1.267170] pca953x 0-0038: using no AI [ 2.304759] pca953x 0-0038: failed writing register: -110 [ 2.311306] pca953x 0-0038: probe with driver pca953x failed with error -110 [ 2.319979] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz [ 2.329485] pca953x 1-0022: supply vcc not found, using dummy regulator [ 2.337234] pca953x 1-0022: using AI [ 2.358393] omap_i2c 20010000.i2c: bus 1 rev0.12 at 400 kHz [ 2.366009] ti-sci-intr bus@f4000:interrupt-controller@a00000: Interrupt Router 3 domain created [ 2.376275] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created [ 2.391140] ti-udma 485c0100.dma-controller: Number of rings: 68 [ 2.400268] ti-udma 485c0100.dma-controller: Channels: 24 (bchan: 12, tchan: 6, rchan: 6) [ 2.411850] ti-udma 485c0000.dma-controller: Number of rings: 288 [ 2.433020] ti-udma 485c0000.dma-controller: Channels: 44 (tchan: 29, rchan: 15) [ 2.446106] printk: legacy console [ttyS2] disabled [ 2.452638] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 310, base_baud = 3000000) is a 8250 [ 2.462302] printk: legacy console [ttyS2] enabled [ 2.473551] printk: legacy bootconsole [ns16550a0] disabled [ 2.490371] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA00903, cpsw version 0x6BA80903 Ports: 3 quirks:00000006 [ 2.504964] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode [ 2.548733] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 2.559654] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver TI DP83867 [ 2.568744] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.4 [ 2.576593] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512, Policers 32 [ 2.585953] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:1 [ 2.619796] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 16 [ 2.634583] am65-cpts 39000000.cpts: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:1 [ 2.646967] mmc0: CQHCI version 5.10 [ 2.661660] j721e-pcie f102000.pcie: host bridge /bus@f4000/pcie@f102000 ranges: [ 2.669936] j721e-pcie f102000.pcie: IO 0x0600001000..0x0600100fff -> 0x0000001000 [ 2.678778] j721e-pcie f102000.pcie: MEM 0x0600101000..0x06ffffffff -> 0x0000101000 [ 2.687688] j721e-pcie f102000.pcie: IB MEM 0x0000000000..0x0fffffffff -> 0x0000000000 [ 2.708823] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit [ 2.802104] mmc0: Command Queue Engine enabled [ 2.807390] mmc0: new HS200 MMC card at address 0001 [ 2.814153] mmcblk0: mmc0:0001 S0J56X 14.8 GiB [ 2.822139] mmcblk0boot0: mmc0:0001 S0J56X 31.5 MiB [ 2.829652] mmcblk0boot1: mmc0:0001 S0J56X 31.5 MiB [ 2.837106] mmcblk0rpmb: mmc0:0001 S0J56X 4.00 MiB, chardev (239:0) [ 3.805562] j721e-pcie f102000.pcie: PCI host bridge to bus 0000:00 [ 3.812645] pci_bus 0000:00: root bus resource [bus 00-ff] [ 3.818854] pci_bus 0000:00: root bus resource [io 0x0000-0xfffff] (bus address [0x1000-0x100fff]) [ 3.828598] pci_bus 0000:00: root bus resource [mem 0x600101000-0x6ffffffff] (bus address [0x00101000-0xffffffff]) [ 3.839681] pci 0000:00:00.0: [104c:b010] type 01 class 0x060400 PCIe Root Port [ 3.847706] pci 0000:00:00.0: BAR 0 [mem 0x00000000-0xfffffffff 64bit pref] [ 3.855371] pci 0000:00:00.0: PCI bridge to [bus 00] [ 3.861040] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff] [ 3.867835] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff] [ 3.875327] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff 64bit pref] [ 3.883857] pci 0000:00:00.0: supports D1 [ 3.888570] pci 0000:00:00.0: PME# supported from D0 D1 D3hot [ 3.898540] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 3.907577] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 [ 3.914965] pci 0000:00:00.0: BAR 0 [mem size 0x1000000000 64bit pref]: can't assign; no space [ 3.924285] pci 0000:00:00.0: BAR 0 [mem size 0x1000000000 64bit pref]: failed to assign [ 3.933077] pci 0000:00:00.0: PCI bridge to [bus 01] [ 3.938786] pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc [ 3.948605] pci_bus 0000:00: resource 4 [io 0x0000-0xfffff] [ 3.954970] pci_bus 0000:00: resource 5 [mem 0x600101000-0x6ffffffff] [ 3.962327] pcieport 0000:00:00.0: of_irq_parse_pci: failed with rc=-22 [ 3.970191] pcieport 0000:00:00.0: PME: Signaling with IRQ 511 [ 3.977235] pcieport 0000:00:00.0: AER: enabled with IRQ 511 [ 3.985407] clk: Disabling unused clocks [ 3.990613] mmc1: CQHCI version 5.10 [ 4.012328] PM: genpd: Disabling unused power domains [ 4.018251] ALSA device list: [ 4.022033] No soundcards found. [ 4.035437] mmc1: SDHCI controller on fa00000.mmc [fa00000.mmc] using ADMA 64-bit [ 4.044071] Waiting for root device PARTUUID=523086cd-02... [ 4.104630] mmc1: new ultra high speed SDR104 SDHC card at address aaaa [ 4.113061] mmcblk1: mmc1:aaaa SC16G 14.8 GiB [ 4.124039] mmcblk1: p1 p2 [ 5.197393] EXT4-fs (mmcblk1p2): recovery complete [ 5.204291] EXT4-fs (mmcblk1p2): mounted filesystem de0a189c-5c29-4371-8505-a156b6b7ec2d r/w with ordered data mode. Quota mode: none. [ 5.217226] VFS: Mounted root (ext4 filesystem) on device 179:98. [ 5.226958] devtmpfs: mounted [ 5.232898] Freeing unused kernel memory: 3072K [ 5.238355] Run /sbin/init as init process [ 5.243167] with arguments: [ 5.243177] /sbin/init [ 5.243185] with environment: [ 5.243192] HOME=/ [ 5.243199] TERM=linux [ 5.534818] systemd[1]: System time before build time, advancing clock. [ 5.598380] NET: Registered PF_INET6 protocol family [ 5.605904] Segment Routing with IPv6 [ 5.610392] In-situ OAM (IOAM) with IPv6 [ 5.663780] systemd[1]: systemd 255.21^ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -TPM2 -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified) [ 5.696476] systemd[1]: Detected architecture arm64. [ 5.715877] systemd[1]: Hostname set to <am64xx-evm>. [ 6.345903] systemd[1]: /usr/lib/systemd/system/bt-enable.service:9: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether. [ 6.654773] systemd[1]: Queued start job for default target Graphical Interface. [ 6.703073] systemd[1]: Created slice Slice /system/getty. [ 6.724900] systemd[1]: Created slice Slice /system/modprobe. [ 6.749072] systemd[1]: Created slice Slice /system/serial-getty. [ 6.771892] systemd[1]: Created slice User and Session Slice. [ 6.789606] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 6.809513] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 6.829219] systemd[1]: Expecting device /dev/ttyS2... [ 6.845223] systemd[1]: Reached target Path Units. [ 6.861128] systemd[1]: Reached target Remote File Systems. [ 6.881112] systemd[1]: Reached target Slice Units. [ 6.897125] systemd[1]: Reached target Swaps. [ 6.958887] systemd[1]: Listening on RPCbind Server Activation Socket. [ 6.977238] systemd[1]: Reached target RPC Port Mapper. [ 7.010934] systemd[1]: Listening on Process Core Dump Socket. [ 7.029735] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 7.051224] systemd[1]: Listening on Journal Audit Socket. [ 7.074225] systemd[1]: Listening on Journal Socket (/dev/log). [ 7.094348] systemd[1]: Listening on Journal Socket. [ 7.114543] systemd[1]: Listening on Network Service Netlink Socket. [ 7.141489] systemd[1]: Listening on udev Control Socket. [ 7.162094] systemd[1]: Listening on udev Kernel Socket. [ 7.182313] systemd[1]: Listening on User Database Manager Socket. [ 7.229452] systemd[1]: Mounting Huge Pages File System... [ 7.275036] systemd[1]: Mounting POSIX Message Queue File System... [ 7.299426] systemd[1]: Mounting Kernel Debug File System... [ 7.318363] systemd[1]: Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing). [ 7.343165] systemd[1]: Mounting Temporary Directory /tmp... [ 7.390063] systemd[1]: Starting Create List of Static Device Nodes... [ 7.418433] systemd[1]: Starting Load Kernel Module configfs... [ 7.466142] systemd[1]: Starting Load Kernel Module drm... [ 7.482301] systemd[1]: Starting Load Kernel Module fuse... [ 7.531707] systemd[1]: Starting RPC Bind... [ 7.546117] systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/). [ 7.583221] systemd[1]: Starting Journal Service... [ 7.601105] fuse: init (API version 7.41) [ 7.638173] systemd[1]: Starting Load Kernel Modules... [ 7.670300] systemd[1]: Starting Generate network units from Kernel command line... [ 7.746250] systemd[1]: Starting Remount Root and Kernel File Systems... [ 7.793226] systemd[1]: Starting Coldplug All udev Devices... [ 7.847508] systemd[1]: Started RPC Bind. [ 7.858060] systemd-journald[110]: Collecting audit messages is enabled. [ 7.858592] systemd[1]: Mounted Huge Pages File System. [ 7.898708] systemd[1]: Mounted POSIX Message Queue File System. [ 7.926875] systemd[1]: Mounted Kernel Debug File System. [ 7.945091] EXT4-fs (mmcblk1p2): re-mounted de0a189c-5c29-4371-8505-a156b6b7ec2d. [ 7.961037] systemd[1]: Mounted Temporary Directory /tmp. [ 7.993367] systemd[1]: Finished Create List of Static Device Nodes. [ 8.016079] systemd[1]: modprobe@configfs.service: Deactivated successfully. [ 8.026402] systemd[1]: Finished Load Kernel Module configfs. [ 8.050452] systemd[1]: Started Journal Service. [ 8.437542] systemd-journald[110]: Received client request to flush runtime journal. [ 8.860891] audit: type=1334 audit(1748544505.319:2): prog-id=6 op=LOAD [ 8.876921] audit: type=1334 audit(1748544505.319:3): prog-id=7 op=LOAD [ 9.275628] audit: type=1334 audit(1748544505.735:4): prog-id=8 op=LOAD [ 9.332677] audit: type=1334 audit(1748544505.791:5): prog-id=9 op=LOAD [ 9.485034] audit: type=1334 audit(1748544505.947:6): prog-id=10 op=LOAD [ 9.499256] audit: type=1334 audit(1748544505.959:7): prog-id=11 op=LOAD [ 9.507730] audit: type=1334 audit(1748544505.959:8): prog-id=12 op=LOAD [ 10.683747] audit: type=1334 audit(1748632010.119:9): prog-id=13 op=LOAD [ 11.543251] audit: type=1334 audit(1748632010.979:10): prog-id=14 op=LOAD [ 11.556904] audit: type=1334 audit(1748632010.991:11): prog-id=15 op=LOAD [ 12.210700] Bluetooth: Core ver 2.22 [ 12.218560] NET: Registered PF_BLUETOOTH protocol family [ 12.229034] Bluetooth: HCI device and connection manager initialized [ 12.241089] Bluetooth: HCI socket layer initialized [ 12.252115] Bluetooth: L2CAP socket layer initialized [ 12.262833] Bluetooth: SCO socket layer initialized [ 13.216848] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 13.267838] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 13.282709] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600' [ 13.581689] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL) [ 13.629252] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode [ 15.140631] CAN device driver interface [ 15.305503] omap-mailbox 29020000.mailbox: omap mailbox rev 0x66fc9100 [ 15.489511] at24 0-0050: supply vcc not found, using dummy regulator [ 15.760834] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1) [ 15.867866] platform 78000000.r5f: configured R5F for IPC-only mode [ 15.880516] platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@a0000000 [ 15.894216] remoteproc remoteproc0: 78000000.r5f is available [ 15.906430] remoteproc remoteproc0: attaching to 78000000.r5f [ 15.915974] rproc-virtio rproc-virtio.0.auto: assigned reserved memory node r5f-dma-memory@a0000000 [ 16.031164] virtio_rpmsg_bus virtio0: rpmsg host is online [ 16.032666] virtio_rpmsg_bus virtio0: creating channel ti.icve addr 0xd [ 16.045426] rpmsg_eth virtio0.ti.icve.-1.13: start_addr = 0xa0400000 [ 16.052604] rpmsg_eth virtio0.ti.icve.-1.13: size 0xc00000 [ 16.058288] rproc-virtio rproc-virtio.0.auto: registered virtio0 (type 7) [ 16.068319] rpmsg_eth virtio0.ti.icve.-1.13: Default MAC Address = 00:00:00:00:00:00 [ 16.069554] remoteproc remoteproc0: remote processor 78000000.r5f is now attached [ 16.076933] rpmsg_eth virtio0.ti.icve.-1.13: Assigning random MAC address [ 16.092733] rpmsg_eth virtio0.ti.icve.-1.13: New MAC Address = 36:aa:61:f5:e8:2f [ 16.406803] gpio-mux mux-controller: 2-way mux-controller registered [ 16.464253] m_can_platform 20701000.can: m_can device registered (irq=516, version=32) [ 16.490044] m_can_platform 20711000.can: m_can device registered (irq=517, version=32) [ 17.619168] m_can_platform 20701000.can main_mcan0: renamed from can0 [ 17.690879] m_can_platform 20711000.can main_mcan1: renamed from can1 [ 24.937248] kauditd_printk_skb: 2 callbacks suppressed [ 24.937270] audit: type=1006 audit(1748632024.375:14): pid=718 uid=0 subj=kernel old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1 [ 24.957560] audit: type=1300 audit(1748632024.375:14): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=fffff6587528 a2=1 a3=1 items=0 ppid=1 pid=718 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="(systemd)" exe="/usr/lib/systemd/systemd-executor" subj=kernel key=(null) [ 24.986046] audit: type=1327 audit(1748632024.375:14): proctitle="(systemd)" [ 25.069933] audit: type=1334 audit(1748632024.507:15): prog-id=18 op=LOAD [ 25.078905] audit: type=1300 audit(1748632024.507:15): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=fffff9601ee8 a2=90 a3=0 items=0 ppid=1 pid=718 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="systemd" exe="/usr/lib/systemd/systemd" subj=kernel key=(null) [ 25.107704] audit: type=1327 audit(1748632024.507:15): proctitle="(systemd)" [ 25.117244] audit: type=1334 audit(1748632024.507:16): prog-id=18 op=UNLOAD [ 25.125960] audit: type=1300 audit(1748632024.507:16): arch=c00000b7 syscall=57 success=yes exit=0 a0=8 a1=1 a2=0 a3=ffffaf403c60 items=0 ppid=1 pid=718 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="systemd" exe="/usr/lib/systemd/systemd" subj=kernel key=(null) [ 25.154539] audit: type=1327 audit(1748632024.507:16): proctitle="(systemd)" [ 25.162903] audit: type=1334 audit(1748632024.507:17): prog-id=19 op=LOAD root@am64xx-evm:~# ifconfig 192.168.1.20 192.168.1.20: error fetching interface information: Device not found root@am64xx-evm:~# ifconfig eth1 192.168.1.20
FreeRTOS EthernetIP Tunneling Log:
Main Core init Create Receive Task Starting lwIP, local interface IP is dhcp-enabled [LWIPIF_LWIP_IC] NETIF INIT SUCCESS [LWIPIF_LWIP_IC] Interface started successfully Added interface 'br2', IP is 192.168.1.10 Before Wait for Linux Before RPMsg Channel Announce RPMsg Channel announced with Status [0]Network Link UP Event Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MAC to FDB Response message sent Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MCast entry to LwIP Bridge MC addr added Successfully Response message sent Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MCast entry to LwIP Bridge MC addr added Successfully Response message sent Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MCast entry to LwIP Bridge MC addr added Successfully Response message sent Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MCast entry to LwIP Bridge MC addr added Successfully Response message sent Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MCast entry to LwIP Bridge MC addr added Successfully Response message sent Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Response message sent Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MAC to FDB Response message sent Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MCast entry to LwIP Bridge MC addr added Successfully Response message sent Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MCast entry to LwIP Bridge MC addr added Successfully Response message sent 37.185s : CPU load = 1.91 % 42.186s : CPU load = 4.29 % 47.187s : CPU load = 4.30 % 52.188s : CPU load = 4.29 % 57.189s : CPU load = 4.28 % 62.190s : CPU load = 4.28 % 67.191s : CPU load = 4.27 % 72.192s : CPU load = 4.30 % 77.193s : CPU load = 4.30 % 82.194s : CPU load = 4.30 % 87.195s : CPU load = 4.30 % 92.196s : CPU load = 4.29 % 97.197s : CPU load = 4.28 % 102.198s : CPU load = 4.28 % 107.199s : CPU load = 4.28 % 112.200s : CPU load = 4.29 % 117.201s : CPU load = 4.29 % 122.202s : CPU load = 4.28 % 127.203s : CPU load = 4.28 % 132.204s : CPU load = 4.30 % 137.205s : CPU load = 4.30 % 142.206s : CPU load = 4.30 % 147.207s : CPU load = 4.31 % 152.208s : CPU load = 4.31 % 157.209s : CPU load = 4.29 % 162.210s : CPU load = 4.29 % 167.211s : CPU load = 4.28 % 172.212s : CPU load = 4.28 % Received Test Pkt [IPC RPMSG ECHO] Remote Core ID = 5 [IPC RPMSG ECHO] Remote Core EndPt = 1024 Adding new MCast entry to LwIP Bridge MC addr added Successfully Response message sent 177.213s : CPU load = 4.33 % 182.214s : CPU load = 4.30 % 187.215s : CPU load = 4.30 % 192.216s : CPU load = 4.29 % 197.217s : CPU load = 4.29 % 202.218s : CPU load = 4.29 %
Unsuccessful ping from host PC:
$ping 192.168.1.20 PING 192.168.1.20 (192.168.1.20) 56(84) bytes of data. From 192.168.1.21 icmp_seq=1 Destination Host Unreachable From 192.168.1.21 icmp_seq=2 Destination Host Unreachable From 192.168.1.21 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.1.20 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5151ms pipe 4
Network interfaces in linux:
root@am64xx-evm:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 1c:63:49:1a:d7:62 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 1a:11:fe:66:ae:8b brd ff:ff:ff:ff:ff:ff inet 192.168.1.20/24 brd 192.168.1.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::1811:feff:fe66:ae8b/64 scope link proto kernel_ll valid_lft forever preferred_lft forever 4: main_mcan0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10 link/can 5: main_mcan1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10 link/can
Another interesting behavior is the TX Buffer running full on linux:
[ 615.259832][ C0] rpmsg_eth virtio0.ti.icve.-1.13 eth1: Tx buffer full 63 [ 615.259845][ C0] rpmsg_eth virtio0.ti.icve.-1.13 eth1: Tx buffer full 63 [ 615.259857][ C0] rpmsg_eth virtio0.ti.icve.-1.13 eth1: Tx buffer full 63 [ 615.259868][ C0] rpmsg_eth virtio0.ti.icve.-1.13 eth1: Tx buffer full 63 [ 615.259880][ C0] rpmsg_eth virtio0.ti.icve.-1.13 eth1: Tx buffer full 63 [ 615.259891][ C0] rpmsg_eth virtio0.ti.icve.-1.13 eth1: Tx buffer full 63 [ 615.259903][ C0] rpmsg_eth virtio0.ti.icve.-1.13 eth1: Tx buffer full 63
The same firmware is successfully running and pingable on the SPL bootflow!
My question are:
1. What could be wrong with the LwiP IC interface so that the RX Queue on FreeRTOS is running full?
2. How can I enable the debug of the LwiP stack, so to better understand the root cause of this behavior?
Thanks.
BR
Luka