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.

AM6421: AM6421 When loading the PRU ICCSG NIC driver module for the AM6421 under Linux, not all PRU device nodes get created.

Part Number: AM6421

软件:sdk11,
芯片:TI AM6421
在Linux下加载PRU ICCSG的网卡驱动模块时,没有生成全部pru设备节点(When loading the PRU ICCSG NIC driver module for the AM6421 under Linux, not all PRU device nodes get created.)
在系统中依次插入下面的模块(Insert the following modules into the system in sequence)
insmod hsr.ko
insmod sch_mqprio_lib.ko  
insmod icss_iep.ko
insmod pruss.ko
insmod sch_mqprio.ko
insmod sch_taprio.ko
insmod pru_rproc.ko
此时,内核打印(At this point, the kernel prints.)
[  120.269968] remoteproc remoteproc0: 3000a000.txpru is available
[  120.286654] remoteproc remoteproc1: 3000c000.txpru is available
[  120.303852] remoteproc remoteproc2: 3008a000.txpru is available
[  120.321842] remoteproc remoteproc3: 3008c000.txpru is available
Only 4 txpru,Neither pru nor rtu were detected, resulting in the subsequent failure to load the network port driver.

  • 您好,

    收到了您的案例,调查需要些时间,感您的耐心等待。

  • 客户是否启用了PRU以太网驱动程序?
    从驱动程序/net/ethernet/ti/Kconfig:

    config TI_ICSSG_PRUETH
    tristate "TI Gigabit PRU Ethernet driver"
    select PHYLIB
    select TI_ICSS_IEP
    select TI_K3_CPPI_DESC_POOL
    select PAGE_POOL
    depends on PRU_REMOTEPROC
    depends on NET_SWITCHDEV
    depends on ARCH_K3 && OF && TI_K3_UDMA_GLUE_LAYER
    depends on PTP_1588_CLOCK_OPTIONAL
    depends on NET_SCH_TAPRIO
    help
    Support dual Gigabit Ethernet ports over the ICSSG PRU Subsystem.
    This subsystem is available starting with the AM65 platform.

    This driver requires firmware binaries which will run on the PRUs
    to support the Ethernet operation. Currently, it supports Ethernet
    with 1G and 100M link speed.

  • ti的回复答非所问,帮忙补充一下:
    SDK11的Linux内核只能把icssg-prueth的网卡驱动编译成模块,我们插入模块的顺序如下:
    insmod hsr.ko
    insmod sch_mqprio_lib.ko
    insmod icss_iep.ko
    insmod pruss.ko
    insmod sch_mqprio.ko
    insmod sch_taprio.ko
    insmod pru_rproc.ko
    insmod icssg.ko
    insmod icssg-prueth.ko
    当insmod pru_rproc.ko时,发生现象如之前问题描述。

  • What is your question exactly?

    You didn't enable the PRU Ethernet driver in your initial list. That is very relevant if you want to actually run the PRU Ethernet driver code.

    Please share your devicetree file settings. I want to make sure that you did not disable the other PRU cores by mistake.