Hi,
I'm following the PRU training. In the Lab 4 is described how load and run the firmwares of the PRUs directly by the linux driver, after a modification of the uboot trees.
I tried to do this but it doesn't work. In other words the PRU firmware seems to be stopped.
I done these tests:
1) load and run the firmware.out files by Jtag, and I'm sure that both are ok
2) run the following commands by terminal:
root@am335x-evm:~# rmmod -f /lib/modules/4.4.19-gdb0b54cdad/kernel/drivers/remoteproc/pru_rproc.ko
[ 71.627118] Disabling lock debugging due to kernel taint
[ 71.632870] pru-rproc 4a338000.pru1: pru_rproc_remove: removing rproc 4a338000.pru1
[ 71.640594] pru-rproc 4a338000.pru1: stopping the manually booted PRU core
[ 71.652259] ti-pruss 4a300000.pruss: unconfigured system_events = 0xffffffffffffffff host_intr = 0x00000001
[ 71.674335] remoteproc2: stopped remote processor 4a338000.pru1
[ 71.680586] remoteproc2: releasing 4a338000.pru1
[ 71.698560] pru-rproc 4a334000.pru0: pru_rproc_remove: removing rproc 4a334000.pru0
[ 71.706461] pru-rproc 4a334000.pru0: stopping the manually booted PRU core
[ 71.718518] ti-pruss 4a300000.pruss: unconfigured system_events = 0x0000000000010000 host_intr = 0x00000002
[ 71.733626] remoteproc1: stopped remote processor 4a334000.pru0
[ 71.740037] remoteproc1: releasing 4a334000.pru0
root@am335x-evm:~# insmod /lib/modules/4.4.19-gdb0b54cdad/kernel/drivers/remoteproc/pru_rproc.ko
[ 131.397191] remoteproc1: 4a334000.pru0 is available
[ 131.408740] remoteproc1: Note: remoteproc is still under development and considered experimental.
[ 131.436706] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 131.448485] pru-rproc 4a334000.pru0: booting the PRU core manually
[ 131.459565] remoteproc1: powering up 4a334000.pru0
[ 131.472814] remoteproc1: Booting fw image am335x-pru0-fw, size 52236
[ 131.479577] ti-pruss 4a300000.pruss: configured system_events = 0x0000000000010000 intr_channels = 0x00000002 host2
[ 131.505304] remoteproc1: remote processor 4a334000.pru0 is now up
[ 131.511636] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss@4a300000/pru0@4a334000 probed successfully
[ 131.526605] remoteproc2: 4a338000.pru1 is available
[ 131.531645] remoteproc2: Note: remoteproc is still under development and considered experimental.
[ 131.555599] remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 131.567381] pru-rproc 4a338000.pru1: booting the PRU core manually
[ 131.578115] remoteproc2: powering up 4a338000.pru1
[ 131.591138] remoteproc2: Booting fw image am335x-pru1-fw, size 50792
[ 131.605613] remoteproc2: remote processor 4a338000.pru1 is now up
[ 131.612238] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss@4a300000/pru1@4a338000 probed successfully
root@am335x-evm:~# echo 4a334000.pru0 > /sys/bus/platform/drivers/pru-rproc/unbind
[ 182.813730] pru-rproc 4a334000.pru0: pru_rproc_remove: removing rproc 4a334000.pru0
[ 182.821488] pru-rproc 4a334000.pru0: stopping the manually booted PRU core
[ 182.841574] ti-pruss 4a300000.pruss: unconfigured system_events = 0x0000000000010000 host_intr = 0x00000002
[ 182.851683] remoteproc1: stopped remote processor 4a334000.pru0
[ 182.862339] remoteproc1: releasing 4a334000.pru0
root@am335x-evm:~# echo 4a334000.pru0 > /sys/bus/platform/drivers/pru-rproc/bind
[ 211.784313] remoteproc1: 4a334000.pru0 is available
[ 211.789359] remoteproc1: Note: remoteproc is still under development and considered experimental.
[ 211.804692] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 211.819313] pru-rproc 4a334000.pru0: booting the PRU core manually
[ 211.829933] remoteproc1: powering up 4a334000.pru0
[ 211.842742] remoteproc1: Booting fw image am335x-pru0-fw, size 52236
[ 211.849507] ti-pruss 4a300000.pruss: configured system_events = 0x0000000000010000 intr_channels = 0x00000002 host2
[ 211.875610] remoteproc1: remote processor 4a334000.pru0 is now up
[ 211.882389] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss@4a300000/pru0@4a334000 probed successfully
What can I do in order to go on with the debug? Up to now I can't understand where find the issue. I repeated more times the steps indicated in the training lab, but the result is always the same.
Thanks in advance for your help.
Matteo