工具与软件:
您好!
我正在使用 Variscite 的 am62x SoM 和 PRU。 我将使用随附的 SD 卡上的内核。
我正在尝试看到基本 PRU 示例可以正常工作。 此时将显示以下调试消息: root@am62x-var-som:~# echo start > /sys/class/remoteproc/remoteproc2/state [ 178.729240] remoteproc remoteproc2: powering up 30074000.pru[ 178.740398] remoteproc remoteproc2: Booting fw image am62x-pru0-fw, size 81344[ 178.747778] remoteproc remoteproc2: invalid resource table: forced to NULL[ 178.755124] remoteproc remoteproc2: remote processor 30074000.pru is now up
以下完整性检查: root@am62x-var-som:~# uname -aLinux am62x-var-som 6.1.83-ti-g055ead3d5359 #1 SMP PREEMPT Mon Oct 28 14:56:49 UTC 2024 aarch64 aarch64 aarch64 GNU/Linuxroot@am62x-var-som:~# ls -l /sys/class/remoteproc/total 0lrwxrwxrwx 1 root root 0 Jan 1 00:00 remoteproc0 -> ../../devices/platform/bus@f0000/bus@f0000:bus@4000000/5000000.m4fss/remote0lrwxrwxrwx 1 root root 0 Jan 1 00:00 remoteproc1 -> ../../devices/platform/bus@f0000/bus@f0000:bus@b00000/bus@f0000:bus@b00000:1lrwxrwxrwx 1 root root 0 Jan 1 00:00 remoteproc2 -> ../../devices/platform/bus@f0000/30040000.pruss/30074000.pru/remoteproc/rem2lrwxrwxrwx 1 root root 0 Jan 1 00:00 remoteproc3 -> ../../devices/platform/bus@f0000/30040000.pruss/30078000.pru/remoteproc/rem3root@am62x-var-som:~# lsmod | grep pruirq_pruss_intc 16384 0pru_rproc 24576 0pruss 16384 1 pru_rproc
root@am62x-var-som:~# cat /sys/class/remoteproc/remoteproc2/firmware am62x-pru0-fw
root@am62x-var-som:~# ls -l /lib/firmware/total 10792-rw-r--r-- 1 root root 4178 Mar 9 2018 LICENCE.broadcom_bcm43xx-rw-r--r-- 1 root root 8914 Mar 9 2018 LICENCE.cypresslrwxrwxrwx 1 root root 68 Mar 9 2018 am62-main-r5f0_0-fw -> /lib/firmware/ti-ipc/am62xx/ipc_echo_test_mcu2_0_release_striflrwxrwxrwx 1 root root 75 Mar 9 2018 am62-main-r5f0_0-fw-sec -> /lib/firmware/ti-ipc/am62xx/ipc_echo_test_mcu2_0_release_dlrwxrwxrwx 1 root root 68 Mar 9 2018 am62-mcu-m4f0_0-fw -> /lib/firmware/ti-ipc/am62xx/ipc_echo_test_mcu2_0_release_stripflrwxrwxrwx 1 root root 75 Mar 9 2018 am62-mcu-m4f0_0-fw-sec -> /lib/firmware/ti-ipc/am62xx/ipc_echo_test_mcu2_0_release_sdlrwxrwxrwx 1 root root 47 Mar 9 2018 am62x-pru0-fw -> /lib/firmware/pru/PRU_RPMsg_Echo_Interrupt0.outlrwxrwxrwx 1 root root 47 Mar 9 2018 am62x-pru1-fw -> /lib/firmware/pru/PRU_RPMsg_Echo_Interrupt1.out-rw-r--r-- 1 root root 478552 Mar 9 2018 bl32.bin-rw-r--r-- 1 root root 4320000 Mar 9 2018 bl32.elfdrwxr-xr-x 2 root root 4096 Mar 9 2018 brcmdrwxr-xr-x 2 root root 4096 Mar 9 2018 cypressdrwxr-xr-x 2 root root 4096 Mar 9 2018 pru-rw-r--r-- 1 root root 4896 Mar 9 2018 regulatory.db-rw-r--r-- 1 root root 1085 Mar 9 2018 regulatory.db.p7s-rw-r--r-- 1 root root 126976 Mar 9 2018 rgx.fw.33.15.11.3-rw-r--r-- 1 root root 126976 Mar 9 2018 rgx.fw.33.15.11.3.64k-rw-r--r-- 1 root root 387960 Mar 9 2018 rgx.sh.33.15.11.3-rw-r--r-- 1 root root 28 Mar 9 2018 tee-header_v2.bin-rw-r--r-- 1 root root 0 Mar 9 2018 tee-pageable_v2.bin-rw-r--r-- 1 root root 478552 Mar 9 2018 tee-pager_v2.bin-rw-r--r-- 1 root root 478552 Mar 9 2018 tee-raw.bin-rw-r--r-- 1 root root 478580 Mar 9 2018 tee.bin-rw-r--r-- 1 root root 4320000 Mar 9 2018 tee.elfdrwxr-xr-x 3 root root 4096 Mar 9 2018 ti-ipc
root@am62x-var-som:~# dmesg | grep remoteproc
[ 6.190854] k3-m4-rproc 5000000.m4fss: configured M4 for remoteproc mode
[ 6.213952] remoteproc remoteproc0: 5000000.m4fss is available
[ 6.225414] remoteproc remoteproc0: powering up 5000000.m4fss
[ 6.234374] remoteproc remoteproc0: Booting fw image am62-mcu-m4f0_0-fw, size 54860
[ 6.273679] remoteproc remoteproc0: remote processor 5000000.m4fss is now up
[ 6.475541] remoteproc remoteproc1: 78000000.r5f is available
[ 6.489070] remoteproc remoteproc1: attaching to 78000000.r5f
[ 6.540836] remoteproc remoteproc1: remote processor 78000000.r5f is now attached
[ 7.528869] remoteproc remoteproc2: 30074000.pru is available
[ 7.536289] remoteproc remoteproc3: 30078000.pru is available
[ 178.729240] remoteproc remoteproc2: powering up 30074000.pru
[ 178.740398] remoteproc remoteproc2: Booting fw image am62x-pru0-fw, size 81344
[ 178.747778] remoteproc remoteproc2: invalid resource table: forced to NULL
[ 178.755124] remoteproc remoteproc2: remote processor 30074000.pru is now up