Hello
I am trying to load the Hello World demo of the SDK from a running Linux on to the first R5F core of my AM6442 using remoteproc. I always get the following output:
root@am64xx-evm:/sys/class/remoteproc/remoteproc0# echo start > state
-sh: echo: write error: Invalid argument
[ 8090.904281] 001: remoteproc remoteproc0: powering up 78000000.r5f
root@am64xx-evm:/sys/class/remoteproc/remoteproc0# [ 8090.905150] 001: remoteproc remoteproc0: Booting fw image r5f.elf, size 411176
[ 8090.905790] 001: remoteproc remoteproc0: Boot failed: -22
I have gone through the examples in the academy, but I cannot find my mistake. I have the suspicion that it lies in my linker.cmd, but I couldn't find an example for the AM6442, and the git patch for the AM62x doesn't seem applicable.
In example.syscfg I activated IPC and checked the "Linux A53 IPC RP Message" box. I also changed the UART from UART0 to UART2, in case Linux is already using UART0.
I did not modify anything else. After compiling I load the .out file (which is supposed to be a .elf file, right?) onto Linux via SCP and move it to /lib/firmware/r5f.elf. Then I run
echo stop > /sys/class/remoteproc/remoteproc0/state
echo r5f.elf > /sys/class/remoteproc/remoteproc0/firmware
echo start > /sys/class/remoteproc/remoteproc0/state
and I get the error from above.
Can you find out what I am missing?
Thank you very much.