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.
Hello,
We need build the PRU ethernet driver into kernel, but I found that sometimes the PRU ethernet does not work. I configure these macro to Y in file 'ti-processor-sdk-linux-am65xx-evm-06.01.00.08/board-support/linux-4.19.59+gitAUTOINC+5f8c1c6121-g5f8c1c6121/arch/arm64/configs/tisdk_am65xx-evm_defconfig':
The attachment is the log
U-Boot SPL 2019.01-g078a3b8701 (Nov 26 2019 - 02:40:43 +0000) SYSFW ABI: 2.7 (firmware rev 0x0013 '19.9.0-v2019.09 (Terrific Llama') Trying to boot from MMC2 Starting ATF on ARM64 core... NOTICE: BL31: v2.2(release):ti2019.05-rc1 NOTICE: BL31: Built : 03:12:47, Nov 24 2019 I/TC: I/TC: OP-TEE version: ti2019.05-rc1-dev (gcc version 8.3.0 (GNU Toolchain for the A-profile Archit ecture 8.3-2019.03 (arm-rel-8.36))) #1 Sun Nov 24 03:11:59 UTC 2019 aarch64 I/TC: Initialized U-Boot SPL 2019.01-g078a3b8701 (Nov 26 2019 - 02:40:52 +0000) Detected: AM6-IDKAPPEVM rev E3 Trying to boot from MMC2 U-Boot 2019.01-g078a3b8701 (Nov 26 2019 - 02:40:52 +0000) SoC: AM654 PG 1.0 Model: Texas Instruments AM654 Base Board Board: AM6-COMPROCEVM rev E3 DRAM: 4 GiB MMC: sdhci@4f80000: 0, sdhci@04FA0000: 1 Loading Environment from MMC... OK In: serial Out: serial Err: serial Detected: AM6-IDKAPPEVM rev E3 Net: eth2: pruss0_eth Warning: cpsw_nuss@046000000 using MAC address from ROM , eth0: cpsw_nuss@046000000, eth1: pruss2_eth Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device SD/MMC found on device 1 ** Unable to read file boot.scr ** 1490 bytes read in 2 ms (727.5 KiB/s) Loaded env from uEnv.txt Importing environment from mmc1 ... Running uenvcmd ... 1 bytes read in 3 ms (0 Bytes/s) Already setup. 13338632 bytes read in 1103 ms (11.5 MiB/s) 73168 bytes read in 9 ms (7.8 MiB/s) 11325 bytes read in 2 ms (5.4 MiB/s) ## Flattened Device Tree blob at 82000000 Booting using the fdt blob at 0x82000000 Loading Device Tree to 00000000fddb4000, end 00000000fdec8fff ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 4.19.59-g5f8c1c6121 (gaonian@gaonian-SIMATIC-IPC3000-SMART) (gcc vers ion 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMP T Sat Jan 11 19:52:58 CST 2020 [ 0.000000] Machine model: Texas Instruments AM654 Base Board [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '') [ 0.000000] bootconsole [ns16550a0] enabled [ 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-dm a-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-po ol [ 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-dm a-pool [ 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-po ol [ 0.000000] cma: Reserved 512 MiB at 0x00000000c0000000 [ 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.1 [ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x3e4 with crng_init=0 [ 0.000000] percpu: Embedded 2 pages/cpu s52632 r8192 d70248 u131072 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: enabling workaround for ARM erratum 845719 [ 0.000000] Speculative Store Bypass Disable mitigation not required [ 0.000000] CPU features: detected: Kernel page table isolation (KPTI) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64544 [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtd parts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.en v.backup),1m(ospi.sysfw),-@8m(ospi.rootfs) root=PARTUUID=90d6f3c9-02 rw rootfstype=ext4 rootwait [ 0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes) [ 0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes) [ 0.000000] software IO TLB: mapped [mem 0xf9db0000-0xfddb0000] (64MB) [ 0.000000] Memory: 3518848K/4134912K available (8510K kernel code, 738K rwdata, 3136K rodata, 576K init, 642K bss, 91776K reserved, 524288K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode [ 0.000000] GICv3: Distributor has no Range Selector support [ 0.000000] GICv3: no VLPI support, no direct LPI support [ 0.000000] ITS [mem 0x01820000-0x0182ffff] [ 0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS [ 0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @8c0800000 (flat, esz 8, psz 64K, shr 0) [ 0.000000] ITS: using cache flushing for cmd queue [ 0.000000] GIC: using LPI property table @0x00000008c00c0000 [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001880000 [ 0.000000] CPU0: using LPI pending table @0x00000008c00d0000 [ 0.000000] GIC: using cache flushing for LPI property table [ 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.000006] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns [ 0.008695] Console: colour dummy device 80x25 [ 0.013289] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 B ogoMIPS (lpj=800000) [ 0.023980] pid_max: default: 32768 minimum: 301 [ 0.028802] Security Framework initialized [ 0.033063] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes) [ 0.039944] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes) [ 0.071381] ASID allocator initialised with 32768 entries [ 0.084948] rcu: Hierarchical SRCU implementation. [ 0.098030] Platform MSI: gic-its@1820000 domain created [ 0.103781] PCI/MSI: /interconnect@100000/interrupt-controller@1800000/gic-its@1820000 domain c reated [ 0.121261] smp: Bringing up secondary CPUs ... [ 0.158378] Detected VIPT I-cache on CPU1 [ 0.158417] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000 [ 0.158474] CPU1: using LPI pending table @0x00000008c0330000 [ 0.158521] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.220087] Detected VIPT I-cache on CPU2 [ 0.220130] GICv3: CPU2: found redistributor 100 region 0:0x00000000018c0000 [ 0.220192] CPU2: using LPI pending table @0x00000008c03c0000 [ 0.220242] CPU2: Booted secondary processor 0x0000000100 [0x410fd034] [ 0.252484] Detected VIPT I-cache on CPU3 [ 0.252512] GICv3: CPU3: found redistributor 101 region 0:0x00000000018e0000 [ 0.252570] CPU3: using LPI pending table @0x00000008c0450000 [ 0.252605] CPU3: Booted secondary processor 0x0000000101 [0x410fd034] [ 0.252747] smp: Brought up 1 node, 4 CPUs [ 0.328383] SMP: Total of 4 processors activated. [ 0.333202] CPU features: detected: GIC system register CPU interface [ 0.339814] CPU features: detected: 32-bit EL0 Support [ 0.371957] CPU: All CPU(s) started at EL2 [ 0.376177] alternatives: patching kernel code [ 0.382229] devtmpfs: initialized [ 0.398077] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041 785100000 ns [ 0.408070] futex hash table entries: 1024 (order: 0, 65536 bytes) [ 0.415791] pinctrl core: initialized pinctrl subsystem [ 0.422104] NET: Registered protocol family 16 [ 0.427933] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____)) [ 0.435521] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.448967] DMA: preallocated 256 KiB pool for atomic allocations [ 0.476965] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.483846] HugeTLB registered 512 MiB page size, pre-allocated 0 pages [ 0.492681] cryptd: max_cpu_qlen set to 1000 [ 0.499089] SCSI subsystem initialized [ 0.503582] media: Linux media interface: v0.10 [ 0.508257] videodev: Linux video capture interface: v2.00 [ 0.513913] pps_core: LinuxPPS API ver. 1 registered [ 0.518997] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linu x.it> [ 0.528358] PTP clock support registered [ 0.532397] EDAC MC: Ver: 3.0.0 [ 0.536989] Advanced Linux Sound Architecture Driver Initialized. [ 0.544206] clocksource: Switched to clocksource arch_sys_counter [ 0.550663] VFS: Disk quotas dquot_6.6.0 [ 0.554777] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes) [ 0.569312] NET: Registered protocol family 2 [ 0.574481] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes) [ 0.582632] TCP established hash table entries: 32768 (order: 2, 262144 bytes) [ 0.590328] TCP bind hash table entries: 32768 (order: 3, 524288 bytes) [ 0.597681] TCP: Hash tables configured (established 32768 bind 32768) [ 0.604509] UDP hash table entries: 2048 (order: 0, 65536 bytes) [ 0.610787] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes) [ 0.617669] NET: Registered protocol family 1 [ 0.622740] RPC: Registered named UNIX socket transport module. [ 0.628823] RPC: Registered udp transport module. [ 0.633641] RPC: Registered tcp transport module. [ 0.638457] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.646239] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available [ 0.659387] Initialise system trusted keyrings [ 0.664162] workingset: timestamp_bits=46 max_order=16 bucket_order=0 [ 0.676269] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.682946] NFS: Registering the id_resolver key type [ 0.688149] Key type id_resolver registered [ 0.692441] Key type id_legacy registered [ 0.696559] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.703597] 9p: Installing v9fs 9p2000 file system support [ 0.714199] Key type asymmetric registered [ 0.718413] Asymmetric key parser 'x509' registered [ 0.723468] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 0.731046] io scheduler noop registered [ 0.735063] io scheduler deadline registered [ 0.739689] io scheduler cfq registered (default) [ 0.744518] io scheduler mq-deadline registered [ 0.749160] io scheduler kyber registered [ 0.755571] pinctrl-single 4301c000.pinmux: 70 pins, size 280 [ 0.762165] pinctrl-single 11c000.pinmux: 185 pins, size 740 [ 0.768111] pinctrl-single 11c2e8.pinmux: 9 pins, size 36 [ 0.774820] pinctrl-single a40000.timesync_router: 512 pins, size 2048 [ 0.792006] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled [ 0.815223] brd: module loaded [ 0.825934] loop: module loaded [ 0.832268] libphy: Fixed MDIO Bus: probed [ 0.837040] tun: Universal TUN/TAP device driver, 1.6 [ 0.842993] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k [ 0.851018] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 0.857133] sky2: driver version 1.30 [ 0.863719] VFIO - User Level meta-driver version: 0.3 [ 0.869950] i2c /dev entries driver [ 0.874918] sdhci: Secure Digital Host Controller Interface driver [ 0.881260] sdhci: Copyright(c) Pierre Ossman [ 0.886254] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.893361] ledtrig-cpu: registered to indicate activity on CPUs [ 0.899616] ti-sci interconnect@100000:interconnect@28380000:interconnect@42040000:dmsc: invali d resource [ 0.911512] optee: probing for conduit method from DT. [ 0.916829] optee: revision 3.7 (5208e5c1) [ 0.917127] optee: initialized driver [ 0.926446] NET: Registered protocol family 17 [ 0.931163] 9pnet: Installing 9P2000 support [ 0.935595] Key type dns_resolver registered [ 0.940700] registered taskstats version 1 [ 0.944900] Loading compiled-in X.509 certificates [ 0.965083] ti-sci interconnect@100000:interconnect@28380000:interconnect@42040000:dmsc: invali d resource [ 0.975082] ti-sci interconnect@100000:interconnect@28380000:interconnect@42040000:dmsc: ABI: 2 .7 (firmware rev 0x0013 '19.9.0-v2019.09 (Terrific Llama') [ 1.009210] random: fast init done [ 1.444879] omap_i2c 42120000.i2c: bus 0 rev0.12 at 400 kHz [ 1.451304] omap_i2c 40b00000.i2c: bus 1 rev0.12 at 100 kHz [ 1.457802] pca953x 2-0041: 2-0041 supply vcc not found, using dummy regulator [ 1.465267] pca953x 2-0041: Linked as a consumer to regulator.0 [ 1.492946] pca953x 2-0021: 2-0021 supply vcc not found, using dummy regulator [ 1.500389] pca953x 2-0021: Linked as a consumer to regulator.0 [ 1.507130] omap_i2c 2000000.i2c: bus 2 rev0.12 at 400 kHz [ 1.513398] omap_i2c 2010000.i2c: bus 3 rev0.12 at 400 kHz [ 1.519660] omap_i2c 2020000.i2c: bus 4 rev0.12 at 400 kHz [ 1.525870] omap_i2c 2030000.i2c: bus 5 rev0.12 at 100 kHz [ 1.540937] remoteproc remoteproc0: b034000.pru is available [ 1.546797] pru-rproc b034000.pru: PRU rproc node pru@b034000 probed successfully [ 1.555026] remoteproc remoteproc1: b004000.rtu is available [ 1.560867] pru-rproc b004000.rtu: PRU rproc node rtu@b004000 probed successfully [ 1.569088] remoteproc remoteproc2: b038000.pru is available [ 1.574929] pru-rproc b038000.pru: PRU rproc node pru@b038000 probed successfully [ 1.583173] remoteproc remoteproc3: b006000.rtu is available [ 1.589017] pru-rproc b006000.rtu: PRU rproc node rtu@b006000 probed successfully [ 1.636243] davinci_mdio b032400.mdio: davinci mdio revision 1.7, bus freq 1000000 [ 1.644002] libphy: b032400.mdio: probed [ 1.649862] davinci_mdio b032400.mdio: phy[0]: device b032400.mdio:00, driver TI DP83867 [ 1.658161] davinci_mdio b032400.mdio: phy[3]: device b032400.mdio:03, driver TI DP83867 [ 1.671736] remoteproc remoteproc4: b134000.pru is available [ 1.677610] pru-rproc b134000.pru: PRU rproc node pru@b134000 probed successfully [ 1.685869] remoteproc remoteproc5: b104000.rtu is available [ 1.691717] pru-rproc b104000.rtu: PRU rproc node rtu@b104000 probed successfully [ 1.699947] remoteproc remoteproc6: b138000.pru is available [ 1.705791] pru-rproc b138000.pru: PRU rproc node pru@b138000 probed successfully [ 1.714020] remoteproc remoteproc7: b106000.rtu is available [ 1.719866] pru-rproc b106000.rtu: PRU rproc node rtu@b106000 probed successfully [ 1.764226] davinci_mdio b132400.mdio: davinci mdio revision 1.7, bus freq 1000000 [ 1.771986] libphy: b132400.mdio: probed [ 1.777729] davinci_mdio b132400.mdio: phy[0]: device b132400.mdio:00, driver TI DP83867 [ 1.786028] davinci_mdio b132400.mdio: phy[3]: device b132400.mdio:03, driver TI DP83867 [ 1.799522] remoteproc remoteproc8: b234000.pru is available [ 1.805392] pru-rproc b234000.pru: PRU rproc node pru@b234000 probed successfully [ 1.813626] remoteproc remoteproc9: b204000.rtu is available [ 1.819472] pru-rproc b204000.rtu: PRU rproc node rtu@b204000 probed successfully [ 1.827701] remoteproc remoteproc10: b238000.pru is available [ 1.833634] pru-rproc b238000.pru: PRU rproc node pru@b238000 probed successfully [ 1.841868] remoteproc remoteproc11: b206000.rtu is available [ 1.847804] pru-rproc b206000.rtu: PRU rproc node rtu@b206000 probed successfully [ 1.892225] davinci_mdio b232400.mdio: davinci mdio revision 1.7, bus freq 1000000 [ 1.899982] libphy: b232400.mdio: probed [ 1.905639] davinci_mdio b232400.mdio: phy[0]: device b232400.mdio:00, driver TI DP83867 [ 1.913934] davinci_mdio b232400.mdio: phy[3]: device b232400.mdio:03, driver TI DP83867 [ 1.922659] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,160] sc i-dev-id:195 [ 1.932641] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: enabled [ 1.939335] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66344100, num_proxies:64 [ 1.947229] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:818, gp-rings[304,464] s ci-dev-id:187 [ 1.957304] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: enabled [ 1.963997] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66344100, num_proxies:64 [ 1.971825] omap8250 40a00000.serial: PM domain pd:149 will not be powered off [ 1.979570] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 8, base_baud = 6000000) is a 8250 [ 1.989242] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 22, base_baud = 3000000) is a 8250 [ 1.998012] console [ttyS2] enabled [ 1.998012] console [ttyS2] enabled [ 2.005067] bootconsole [ns16550a0] disabled [ 2.005067] bootconsole [ns16550a0] disabled [ 2.014416] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 23, base_baud = 3000000) is a 8250 [ 2.023635] 2820000.serial: ttyS4 at MMIO 0x2820000 (irq = 24, base_baud = 3000000) is a 8250 [ 2.035578] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes) [ 2.041794] 7 cmdlinepart partitions found on MTD device 47040000.spi.0 [ 2.048409] Creating 7 MTD partitions on "47040000.spi.0": [ 2.053905] 0x000000000000-0x000000080000 : "ospi.tiboot3" [ 2.060271] 0x000000080000-0x000000280000 : "ospi.tispl" [ 2.066274] 0x000000280000-0x000000680000 : "ospi.u-boot" [ 2.072345] 0x000000680000-0x0000006a0000 : "ospi.env" [ 2.078114] 0x0000006a0000-0x0000006c0000 : "ospi.env.backup" [ 2.084572] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw" [ 2.090543] 0x000000800000-0x000004000000 : "ospi.rootfs" [ 2.208460] cadence-qspi 47040000.spi: Cadence QSPI NOR probe failed -517 [ 2.223102] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22 [ 2.230224] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA07100, c psw version 0x6BA80100 Ports: 2 [ 2.241750] UDMA has not been proped [ 2.245406] am65-cpsw-nuss 46000000.ethernet: Failed to request tx dma channel -517 [ 2.255418] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a2109, freq:200000000, add_val:4 pps:0 [ 2.292441] icssg-prueth pruss1_eth: TI PRU ethernet initialized: dual EMAC mode, dual_icssg 0 [ 2.329755] icssg-prueth pruss0_eth: TI PRU ethernet initialized: dual EMAC mode, dual_icssg 0 [ 2.360097] icssg-prueth pruss2_eth: TI PRU ethernet initialized: dual EMAC mode, dual_icssg 0 [ 2.370212] keystone-wdt 40610000.rti: heartbeat 60 sec [ 2.376512] mmc0: Unknown controller version (4). You may experience problems. [ 2.383871] mmc0: CQHCI version 5.10 [ 2.418540] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit [ 2.427250] mmc1: Unknown controller version (4). You may experience problems. [ 2.434656] mmc1: CQHCI version 5.10 [ 2.469299] mmc1: SDHCI controller on 4fa0000.sdhci [4fa0000.sdhci] using ADMA 64-bit [ 2.485832] mmc0: new HS200 MMC card at address 0001 [ 2.491953] mmcblk0: mmc0:0001 R1J56L 14.7 GiB [ 2.497324] mmcblk0boot0: mmc0:0001 R1J56L partition 1 8.00 MiB [ 2.507463] pca953x 0-0039: 0-0039 supply vcc not found, using dummy regulator [ 2.514796] mmcblk0boot1: mmc0:0001 R1J56L partition 2 8.00 MiB [ 2.520866] pca953x 0-0039: Linked as a consumer to regulator.0 [ 2.526836] mmcblk0rpmb: mmc0:0001 R1J56L partition 3 4.00 MiB, chardev (243:0) [ 2.535776] mmcblk0: p1 [ 2.549857] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc5900 [ 2.556854] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc5900 [ 2.564418] ti-udma 285c0000.udmap: Channels: 96 (tchan: 48, echan: 0, rchan: 48, rflow: 96) [ 2.579370] ti-udma 31150000.udmap: Channels: 267 (tchan: 120, echan: 32, rchan: 150, rflow: 30 0) [ 2.605644] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes) [ 2.611862] 7 cmdlinepart partitions found on MTD device 47040000.spi.0 [ 2.618486] Creating 7 MTD partitions on "47040000.spi.0": [ 2.623975] 0x000000000000-0x000000080000 : "ospi.tiboot3" [ 2.630380] 0x000000080000-0x000000280000 : "ospi.tispl" [ 2.636367] 0x000000280000-0x000000680000 : "ospi.u-boot" [ 2.642436] 0x000000680000-0x0000006a0000 : "ospi.env" [ 2.648271] 0x0000006a0000-0x0000006c0000 : "ospi.env.backup" [ 2.654655] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw" [ 2.660728] 0x000000800000-0x000004000000 : "ospi.rootfs" [ 2.674138] m25p80 spi7.0: unrecognized JEDEC id bytes: 30, ff, 1f [ 2.680358] m25p80: probe of spi7.0 failed with error -2 [ 2.686318] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22 [ 2.693416] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA07100, c psw version 0x6BA80100 Ports: 2 [ 2.714535] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48 [ 2.728569] pps pps0: new PPS source ptp7 [ 2.732801] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a2109, freq:200000000, add_val:4 pp s:1 [ 2.741795] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 0.4 [ 2.749022] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64 [ 2.792223] am65-cpsw-nuss 46000000.ethernet: davinci mdio revision 9.7, bus freq 1000000 [ 2.800400] libphy: 46000000.ethernet: probed [ 2.808408] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 2.815487] hctosys: unable to open rtc device (rtc0) [ 2.918784] ALSA device list: [ 2.921773] No soundcards found. [ 2.925808] Waiting for root device PARTUUID=90d6f3c9-02... [ 3.665903] mmc1: new high speed SDXC card at address aaaa [ 3.672571] mmcblk1: mmc1:aaaa SC64G 59.5 GiB [ 3.684270] mmcblk1: p1 p2 [ 3.716137] EXT4-fs (mmcblk1p2): warning: mounting fs with errors, running e2fsck is recommende d [ 3.730946] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null) [ 3.739116] VFS: Mounted root (ext4 filesystem) on device 179:98. [ 3.754924] devtmpfs: mounted [ 3.758207] Freeing unused kernel memory: 576K [ 3.762698] Run /sbin/init as init process [ 4.126148] systemd[1]: System time before build time, advancing clock. [ 4.196035] systemd[1]: systemd 239 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMO R +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +K MOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid) [ 4.217771] systemd[1]: Detected architecture arm64. Welcome to Arago 2019.11! [ 4.267176] systemd[1]: Set hostname to <am65xx-evm>. [ 4.468695] systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP f irewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. [ 4.485752] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown f or the first loaded unit using IP firewalling.) [ 4.745079] random: systemd: uninitialized urandom read (16 bytes read) [ 4.752392] systemd[1]: Listening on Journal Socket. [ OK ] Listening on Journal Socket. [ 4.768635] random: systemd: uninitialized urandom read (16 bytes read) [ 4.781353] systemd[1]: Mounting Kernel Debug File System... Mounting Kernel Debug File System... [ 4.800635] random: systemd: uninitialized urandom read (16 bytes read) [ 4.807901] systemd[1]: Listening on udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. [ 4.824772] systemd[1]: Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket (/dev/log). [ 4.844829] systemd[1]: Listening on Network Service Netlink Socket. [ OK ] Listening on Network Service Netlink Socket. Starting Load Kernel Modules... [ OK ] Reached target Swap. [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ OK ] Created slice User and Session Slice. [ OK ] Created slice system-serial\x2dgetty.slice. Mounting Temporary Directory (/tmp)... [ OK ] Listening on Process Core Dump Socket. Mounting POSIX Message Queue File System... [ OK ] Listening on udev Control Socket. Starting udev Coldplug all Devices... [ OK ] Reached target Remote File Systems. [ OK ] Created slice system-getty.slice. [ OK ] Started Forward Password Requests to Wall Directory Watch. [ OK ] Reached target Paths. [ OK ] Listening on initctl Compatibility Named Pipe. Mounting Huge Pages File System... Starting Journal Service... [ OK ] Started Hardware RNG Entropy Gatherer Daemon. Starting Remount Root and Kernel File Systems... [ OK ] Reached target Slices. [ 5.222669] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null) [ OK ] Mounted Kernel Debug File System. [FAILED] Failed to start Load Kernel Modules. See 'systemctl status systemd-modules-load.service' for details. [ OK ] Started Journal Service. [ OK ] Mounted Temporary Directory (/tmp). [ OK ] Mounted POSIX Message Queue File System. [ OK ] Mounted Huge Pages File System. [ OK ] Started Remount Root and Kernel File Systems. Starting Create Static Device Nodes in /dev... Starting Flush Journal to Persistent Storage... Starting Apply Kernel Variables... Mounting Kernel Configuration File System... [ OK ] Started Create Static Device Nodes in /dev. [ OK ] Started Apply Kernel Variables. [ OK ] Mounted Kernel Configuration File System. Starting udev Kernel Device Manager... [ OK ] Reached target Local File Systems (Pre). [ OK ] Reached target Containers. Mounting /var/volatile... Mounting /media/ram... [ OK ] Mounted /var/volatile. [ OK ] Mounted /media/ram. [ 5.645832] systemd-journald[167]: Received request to flush runtime journal from PID 1 Starting Load/Save Random Seed... [ OK ] Reached target Local File Systems. [ OK ] Started udev Kernel Device Manager. [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Started Load/Save Random Seed. Starting Create Volatile Files and Directories... [ OK ] Started Create Volatile Files and Directories. Starting Update UTMP about System Boot/Shutdown... Starting Network Service... Starting Network Time Synchronization... [ OK ] Started udev Coldplug all Devices. [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Started Network Service. Starting Network Name Resolution... Starting Wait for Network to be Configured... [ OK ] Found device /dev/ttyS2. [ OK ] Started Network Time Synchronization. [ OK ] Reached target System Initialization. [ OK ] Listening on D-Bus System Message Bus Socket. Starting Reboot and dump vmcore via kexec... [ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Listening on RPCbind Server Activation Socket. [ OK ] Listening on dropbear.socket. [ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Basic System. [ OK ] Started Periodic Command Scheduler. Starting TI IPC Daemon... [ OK ] Started irqbalance daemon. [ OK ] Started Job spooling tools. Starting Login Service... [ OK ] Started D-Bus System Message Bus. [ OK ] Started TEE Supplicant. Starting RPC Bind Service... Starting LSB: Raise network interfaces and configure them... Starting Print notice about GPLv3 packages... [ OK ] Reached target System Time Synchronized. [ OK ] Started Daily rotation of log files. [ OK ] Reached target Timers. [ OK ] Started Network Name Resolution. [ OK ] Started Reboot and dump vmcore via kexec. [ OK ] Started TI IPC Daemon. [ OK ] Found device /dev/ttyS1. Starting Avahi mDNS/DNS-SD Stack... [ OK ] Reached target Host and Network Name Lookups. [ OK ] Reached target Network. Starting Simple Network Management Protocol (SNMP) Daemon.... Starting Permit User Sessions... Starting Lightning Fast Webserver With Light System Requirements... [ OK ] Started RPC Bind Service. [ OK ] Started NFS status monitor for NFSv2/3 locking.. [ OK ] Started Login Service. [ OK ] Started Permit User Sessions. [ 7.016258] remoteproc remoteproc4: powering up b134000.pru [ OK ] Started Getty on tty1. [ 7.039724] remoteproc remoteproc4: Booting fw image ti-pruss/am65x-pru0-prueth-fw.elf, size 16 468 [ OK ] Started Serial Getty on ttyS1. [ 7.055298] remoteproc remoteproc4: remote processor b134000.pru is now up [ OK ] Started Serial Getty on ttyS2. [ 7.065198] remoteproc remoteproc5: powering up b104000.rtu [ OK ] Reached target Login Prompts. [ 7.086766] remoteproc remoteproc5: Booting fw image ti-pruss/am65x-rtu0-prueth-fw.elf , size 15544 Starting Synchronize System and HW clocks... [ 7.098892] remoteproc remoteproc5: remote processor b104000.rtu is now up [ 7.109605] net eth0: started [FAILED] Failed to start Synchronize System and HW clocks. See 'systemctl status sync-clocks.service' for details. [ OK ] Started Avahi mDNS/DNS-SD Stack. [ 7.137208] TI DP83867 k3-cpsw-mdio:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=k3-c psw-mdio:00, irq=POLL) [ OK ] Started Lightning Fast Webserver With Light System Requirements. [ 7.943875] remoteproc remoteproc2: powering up b038000.pru [ 7.960864] remoteproc remoteproc2: Booting fw image ti-pruss/am65x-pru1-prueth-fw.elf, size 16 468 [ 7.972739] remoteproc remoteproc2: remote processor b038000.pru is now up [ 7.979815] remoteproc remoteproc3: powering up b006000.rtu [ 7.987808] remoteproc remoteproc3: Booting fw image ti-pruss/am65x-rtu1-prueth-fw.elf, size 15 544 [ 8.000364] remoteproc remoteproc3: remote processor b006000.rtu is now up [ 8.008892] net eth3: started [ 8.096433] remoteproc remoteproc6: powering up b138000.pru [ 8.102608] remoteproc remoteproc6: Booting fw image ti-pruss/am65x-pru1-prueth-fw.elf, size 16 468 [ 8.116402] remoteproc remoteproc6: remote processor b138000.pru is now up [ 8.127127] remoteproc remoteproc7: powering up b106000.rtu [ 8.133444] remoteproc remoteproc7: Booting fw image ti-pruss/am65x-rtu1-prueth-fw.elf, size 15 544 [ OK [ 8.142859] remoteproc remoteproc7: remote processor b106000.rtu is now up ] Created slice system-systemd\x2dfsck.slice. [ 8.156186] net eth1: started [ 8.192536] am65-cpsw-nuss 46000000.ethernet eth6: Link is Down [ 8.208493] remoteproc remoteproc10: powering up b238000.pru [ 8.214775] remoteproc remoteproc10: Booting fw image ti-pruss/am65x-pru1-prueth-fw.elf, size 1 6468 [ 8.226436] remoteproc remoteproc10: remote processor b238000.pru is now up [ 8.235137] remoteproc remoteproc11: powering up b206000.rtu [ 8.242900] remoteproc remoteproc11: Booting fw image ti-pruss/am65x-rtu1-prueth-fw.elf, size 1 5544 [ 8.253614] remoteproc remoteproc11: remote processor b206000.rtu is now up [ 8.262231] net eth5: started [ 8.292407] remoteproc remoteproc0: powering up b034000.pru [ 8.298621] remoteproc remoteproc0: Booting fw image ti-pruss/am65x-pru0-prueth-fw.elf, size 16 468 [ 8.307792] remoteproc remoteproc0: remote processor b034000.pru is now up [ 8.317070] remoteproc remoteproc1: powering up b004000.rtu [ 8.323280] remoteproc remoteproc1: Booting fw image ti-pruss/am65x-rtu0-prueth-fw.elf, size 15 544 [ 8.332427] remoteproc remoteproc1: remote processor b004000.rtu is now up [ 8.343654] net eth2: started [ 8.411291] remoteproc remoteproc8: powering up b234000.pru [ 8.417462] remoteproc remoteproc8: Booting fw image ti-pruss/am65x-pru0-prueth-fw.elf, size 16 468 [ 8.428986] remoteproc remoteproc8: remote processor b234000.pru is now up [ 8.437727] remoteproc remoteproc9: powering up b204000.rtu [ 8.445060] remoteproc remoteproc9: Booting fw image ti-pruss/am65x-rtu0-prueth-fw.elf, size 15 544 [ 8.456336] remoteproc remoteproc9: remote processor b204000.rtu is now up [ 8.467127] net eth4: started [ OK ] Found device /dev/mmcblk0p1. Starting File System Check on /dev/mmcblk0p1... [ OK ] Started File System Check on /dev/mmcblk0p1. Mounting /run/media/mmcblk0p1... [ OK ] Found device /dev/mmcblk1p1. [ OK ] Mounted /run/media/mmcblk0p1. Starting File System Check on /dev/mmcblk1p1... [ 9.369552] icssg-prueth pruss0_eth eth2: Link is Up - 1Gbps/Full - flow control rx/tx [ OK ] Started File System Check on /dev/mmcblk1p1. Mounting /run/media/mmcblk1p1... [ OK ] Mounted /run/media/mmcblk1p1. *************************************************************** *************************************************************** NOTICE: This file system contains the following GPLv3 packages: autoconf bash bc binutils cifs-utils cpio cpp-symlinks cpp dosfstools elfutils g++-symlinks g++ gawk gcc-symlinks gcc gdb gdbserver gettext glmark2 gstreamer1.0-libav gzip hidapi libbfd libdw1 libelf1 libgdbm-compat4 libgdbm6 libgettextlib libgettextsrc libgmp10 libidn2-0 libmpc3 libmpfr6 libreadline7 libunistring2 m4 make nettle parted pdm-anomaly-detection which If you do not wish to distribute GPLv3 components please remove the above packages prior to distribution. This can be done using the opkg remove command. i.e.: opkg remove <package> Where <package> is the name printed in the list above NOTE: If the package is a dependency of another package you will be notified of the dependent packages. You should use the --force-removal-of-dependent-packages option to also remove the dependent packages as well *************************************************************** *************************************************************** [ OK ] Started Print notice about GPLv3 packages. _____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _| |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project http://arago-project.org am65xx-evm ttyS2 Arago 2019.11 am65xx-evm ttyS2 [ 13.092776] random: crng init done [ 13.096184] random: 7 urandom warning(s) missed due to ratelimiting am65xx-evm login: [ 316.536212] EXT4-fs (mmcblk1p2): error count since last fsck: 10 [ 316.542232] EXT4-fs (mmcblk1p2): initial error at time 1574562678: ext4_journal_check_start:61 [ 316.550859] EXT4-fs (mmcblk1p2): last error at time 1578743576: __ext4_get_inode_loc:4629: inod e 526400: block 2097285 [92574.840208] EXT4-fs (mmcblk1p2): error count since last fsck: 10 [92574.846233] EXT4-fs (mmcblk1p2): initial error at time 1574562678: ext4_journal_check_start:61 [92574.854843] EXT4-fs (mmcblk1p2): last error at time 1578743576: __ext4_get_inode_loc:4629: inod e 526400: block 2097285 root root@am65xx-evm:~# ifconfig eth3 eth3 Link encap:Ethernet HWaddr 70:FF:76:1D:4E:57 inet addr:192.168.100.230 Bcast:192.168.100.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) root@am65xx-evm:~# ethtool eth3 Settings for eth3: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Advertised FEC modes: Not reported Speed: 10Mb/s Duplex: Half Port: MII PHYAD: 3 Transceiver: internal Auto-negotiation: on Current message level: 0x00007fff (32767) drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol Link detected: no root@am65xx-evm:~# ping 192.168.100.240 PING 192.168.100.240 (192.168.100.240): 56 data bytes ^C --- 192.168.100.240 ping statistics --- 14 packets transmitted, 0 packets received, 100% packet loss root@am65xx-evm:~#
Hello,
Is this a correct summary of your problem? If not, please correct me: When you build the PRU Ethernet drivers as modules, PRU Ethernet works as expected. However, when you build the PRU Ethernet drivers as built into the kernel (and change nothing else), then PRU Ethernet stops working as expected (as per your log).
Regards,
Nick
Hello,
Yes, when I build the PRU driver as modules , the ethernet is always work fine, but when I build it into kernel (change nothing else), sometimes the ethernet does not work,
Hello,
We are following up to see if we can reproduce the issue and if any additional configuration is needed.
Regards,
Aaron
Hello,
When PRUETH driver is built in, the PRUETH ethernet ports become eth0-5, instead of eth1-6 (CPSW will be eth6). Is your cable connected to the correct port, considering this?
If that is not an issue, can you comment on how often you see this issue? (e.g. every other time? or 1 out of 10?..). The latest version of Processor SDK 6.2 is also now released, do you see the same issue with that release?
We expect the PRUETH driver built in to work as expected in case of SD boot, and NFS boot via CPSW. The only case that may require additional steps may be NFS boot via PRU-ICSSG as the firmware would need to be made available during boot.
Best,
Aaron
Hello,
1. The cable is connected to the correct port.
2. Probability of error is about 1% (Repeatedly restart the EVM board 100 times, about 1 time this problem can occur).
3. The SDK6.2 also has this issue.
Hello,
Thank you for the responses. In this case, this is requiring some further effort to reproduce and debug since this seems to occur so infrequently. I will update here with any progress. If you have any additional logs, or discover any steps to reproduce this error more consistently please let us know.
Best,
Aaron
Hello,
Can you share some more details of your setup for testing this, including what you have connected to the ICSSG port and how the other device is set up, and how you are configuring the port that you are attempting to ping from?
Regards,
Aaron
By the way can you try the prebuild image that comes with the SDK and see if you have the same issue? i have not seen this and have tried it multiple, times with the prebuild SDK images? it would be good to try this with the prebuild images and let us know the results.
Thanks
I guess i should have looked at the .config first everything is a module in our SDK, maybe that is why we don't see it. I let Aaron reply back.
Thanks