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.

[参考译文] PROCESSOR-SDK-AM62X:默认 PRU FW 映像不符合#39;t work -无效的资源表。

Guru**** 2399305 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1489573/processor-sdk-am62x-default-pru-fw-image-doesn-t-work---invalid-resource-table

器件型号:PROCESSOR-SDK-AM62X

工具与软件:

您好!

我正在使用 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 -a
Linux am62x-var-som 6.1.83-ti-g055ead3d5359 #1 SMP PREEMPT Mon Oct 28 14:56:49 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

root@am62x-var-som:~# ls -l /sys/class/remoteproc/
total 0
lrwxrwxrwx 1 root root 0 Jan  1 00:00 remoteproc0 -> ../../devices/platform/bus@f0000/bus@f0000:bus@4000000/5000000.m4fss/remote0
lrwxrwxrwx 1 root root 0 Jan  1 00:00 remoteproc1 -> ../../devices/platform/bus@f0000/bus@f0000:bus@b00000/bus@f0000:bus@b00000:1
lrwxrwxrwx 1 root root 0 Jan  1 00:00 remoteproc2 -> ../../devices/platform/bus@f0000/30040000.pruss/30074000.pru/remoteproc/rem2
lrwxrwxrwx 1 root root 0 Jan  1 00:00 remoteproc3 -> ../../devices/platform/bus@f0000/30040000.pruss/30078000.pru/remoteproc/rem3


root@am62x-var-som:~# lsmod | grep pru
irq_pruss_intc         16384  0
pru_rproc              24576  0
pruss                  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.cypress
lrwxrwxrwx 1 root root      68 Mar  9  2018 am62-main-r5f0_0-fw -> /lib/firmware/ti-ipc/am62xx/ipc_echo_test_mcu2_0_release_strif
lrwxrwxrwx 1 root root      75 Mar  9  2018 am62-main-r5f0_0-fw-sec -> /lib/firmware/ti-ipc/am62xx/ipc_echo_test_mcu2_0_release_d
lrwxrwxrwx 1 root root      68 Mar  9  2018 am62-mcu-m4f0_0-fw -> /lib/firmware/ti-ipc/am62xx/ipc_echo_test_mcu2_0_release_stripf
lrwxrwxrwx 1 root root      75 Mar  9  2018 am62-mcu-m4f0_0-fw-sec -> /lib/firmware/ti-ipc/am62xx/ipc_echo_test_mcu2_0_release_sd
lrwxrwxrwx 1 root root      47 Mar  9  2018 am62x-pru0-fw -> /lib/firmware/pru/PRU_RPMsg_Echo_Interrupt0.out
lrwxrwxrwx 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.elf
drwxr-xr-x 2 root root    4096 Mar  9  2018 brcm
drwxr-xr-x 2 root root    4096 Mar  9  2018 cypress
drwxr-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.elf
drwxr-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