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.

AM5728: Remoteproc error for IPU

Part Number: AM5728

I'm trying to run a "hello world" TIRTOS app on the m4 IPU, launched from Linux/remoteproc.

I am able to execute on m4 through JTAG, so the binary seems ok. (assuming same m4 binary for jtag and from-linux launch?)

symlink in /lib/firmware points to the bin....
root@am57xx:/lib/firmware# ls -la ... lrwxrwxrwx 1 root root 28 Aug 1 01:39 dra7-ipu1-fw.xem4 -> /home/root/m4images/test.out

root@am57xx:/sys/bus/platform/drivers/omap-rproc# echo 58820000.ipu > unbind
root@am57xx:/sys/bus/platform/drivers/omap-rproc# echo 58820000.ipu > bind

results in dmesg:

940910] remoteproc remoteproc0: releasing 58820000.ipu
[1118401.756555] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
[1118401.756681] remoteproc remoteproc0: 58820000.ipu is available
[1118401.759810] remoteproc remoteproc0: powering up 58820000.ipu
[1118401.759829] remoteproc remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 1759120
[1118401.759947] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[1118401.759968] remoteproc remoteproc0: Failed to find resource table

Seems that I'm close, what am I missing?

Thanks!!

~mm

940910] remoteproc remoteproc0: releasing 58820000.ipu
[1118401.756555] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
[1118401.756681] remoteproc remoteproc0: 58820000.ipu is available
[1118401.759810] remoteproc remoteproc0: powering up 58820000.ipu
[1118401.759829] remoteproc remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 1759120
[1118401.759947] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[1118401.759968] remoteproc remoteproc0: Failed to find resource table

  • Hello Mike,

    What version of Linux / RTOS SDK are you using?

    Please attach your .cfg file for the ipu, and the linker / make settings for your project.

    Regards,

    Nick

  • Hi Mike,

    You will need to include the resource table in your IPU project. The resource table is a Linux construct that informs the Linux kernel remoteproc driver about the available resources of the remote processor, and typically refers to memory and local peripheral registers. When a remote processor image is loaded, the remoteproc driver will parse the system resources defined in the resource table, which is linked into the remote processor image. Also, the remoteproc allocates rpmsg vring buffers, trace buffers, and configures MMUs according to the resource table. The IPU image needs to be built with the resource table to match the partitioned memory from the Linux device tree. The IPU resource table for the AM57x is distributed in the Processor SDK RTOS package, and is located in the IPC_<version> directory:

    packages/ti/ipc/remoteproc/rsc_table_vayu_ipu.h

    The following resources provide further guidance on this.

    Linux IPC on AM57xx

    AM57x Processor SDK Linux®: Customizing Multicore Applications to Run on New Platforms

    Resource customTable

    If you have any questions please let us know.

    Regards,
    Sahin

  • Hi Sahin, 

    Thank you for the reply -- super helpful. I need to do some more research and get back to you with the requested files.Please keep the issue open for a few days.

    Thanks!!!

    ~mm