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: error when compiling IPC

Genius 13655 points
Part Number: AM5728


Hello Champs,

Customer compiled IPC according to below link.
https://e2echina.ti.com/blogs_/b/the_process/posts/am57xx-ipc-demo

When compiling the linux kernel, it prompted below error message, Besides, using locate command still can't find "linux-dtbs"

If ignoring this step and continuing to step5, it prompted below error message.


It is pending on sending message 3, it seems that the DSP has no repsonse. It has the same problem when excuting ./app_host DSP1(DSP2/IPU1/IPU2) . 

Below is the similar issue on e2e which has not been resolved yet. 

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/492034/can-t-run-am57xx-ipc-example


Customer also followed the software-dl.ti.com/.../index_examples_demos.html


Thanks.
Rgds

Shine

  • Hi Shine,

    What SDK version is this? Please try to use SDK 6.3.

    Regarding the build steps, are you trying to build Linux kernel and dtbs natively or through OE?

    The build target to build the dtbs natively is just "dtbs".

    regards

    Suman

  • Hi Suman,

    Thanks for your help.

    Customer used RTOS SDK 06.03.00.106

    He compiled the code on PC according to the above steps.

    1. cd /home/ti-processor-sdk-linux-am57xx-evm-06.03.00.106
    2. make linux-dtbs

    When he executed ./app_host HOST and ./app_host DSP1, it can receive data. But DSP2, IPU1/2 are still stucking at "sending message 3", then excuting the ./app_host HOST again, it occurred the same error.

    Does it mean customer can only use DSP1?

    Thanks.
    Rgds
    Shine
  • Hi Shine,

    The SDK 6.3 loads the firmwares at SPL. So, please make sure the firmwares are changed and board is rebooted before running the test.

    regards

    Suman

  • Hi Suman,

    Thanks for your support.

    Customer wanted to how to change the firmware and where is the firmware. He is not familiar with this step.

    Thanks.
    Rgds

    Shine

  • Hi Shine,

    Please look through the following training on IPC examples:

    https://training.ti.com/am572x-build-run-ipc-examples?context=1138862-1135259

    Additional documentation on Linux side is found here,  https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Foundational_Components_IPC.html#ipc-for-am57xx

    regards

    Suman

  • Hi Suman,

    I tried according to the content on this link. After reading it, I had some ideas, but I still couldn't fully

    understand it. Then the operation above the document is carried out.

    I have created a new ipc-starter according to the relevant steps and copied all five files into it. However,

    the following errors occur when unbinding and bundling (I strictly follow the steps in the document)

    Then I use the command cp ser* /lib/firmware to unbind and bind again, and it is normal again

    Unfortunately, when I got to this point, the same problem occurred as I mentioned at the beginning

    However, I know a solution is to follow the steps of Bigdata IPC example 

    Similarly, for the update soft link, there is only app_host and server_dsp.xe66 in the release directory. I try to create a new soft connection (as in the video):

    server_dsp1.xe66 & server_dsp2.xe66 & server_ipu1.xem4 & server_ipu2.xem4. But it does not work. There is no relevant content in the release directory,

    so I'm confused. Is it the wrong way for me to establish a soft link?

    Regards

    Yubo

  • Hi Yubo,

    Please try with the files already packaged in the filesystem.

    $ ls -R /usr/bin/ipc/examples/ex02_messageq
    
    usr/bin/ipc/examples/ex02_messageq:
    debug release
    
    usr/bin/ipc/examples/ex02_messageq/debug:
    app_host server_dsp1.xe66 server_dsp2.xe66 server_ipu1.xem4 server_ipu2.xem4
    
    usr/bin/ipc/examples/ex02_messageq/release:
    app_host server_dsp1.xe66 server_dsp2.xe66 server_ipu1.xem4 server_ipu2.xem4

    The 6.3 SDK examples do work.

    Please also see a similar recent post and a few suggestions there:

    e2e.ti.com/.../am5728-ipc-example-not-working

    regards

    Suman

  • Hi Suman,

    I looked at the link you gave me. It is very similar between two situations. However, when I use the command ls -l /lib/firmware | grep lrw

    Here is different in two board.


    You can see that the two soft connections correspond to server_dsp.xe66. Because I want to use DSP2. I suppose it will work, but actually it not. Only

    DSP1 can be used. And my print information much less than the other one.

    I do not have server_dsp1.xe66 & server_dsp2.xe66 & server_ipu1.xem4 & server_ipu2.xem4 except server_dsp-.xe66 in

    the /usr/bin/simple_buffer_example/release/

    How to use dsp2 and ipu1/2? How can I create a soft link in this release directory?

    By the way, I've packed these files in one folder.

    Linux version: linux-4.19.94+gitAUTOINC+be5389fd85-gbe5389fd85

    U-Boot version:u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3

    Regards

    Yubo

  • Hi Yubo,

    The simple_buffer_example executables in the SDK are being built only for DSP1, and not any other core. So, the firmware image cannot be used as is on DSP2. You would have to modify the source code and build new firmwares if you want to run that example of DSP2.

    Please use the fimrwares from /usr/bin/ipc/ex02_messageq/release folder, and the corresponding app_host Linux-side executable.

    regards

    Suman

  • Hi Suman,

    Thanks for your advice, I will have a try.

    Regards

    Yubo 

  • Hi Yubo,

    Do you need any further help on this, or should I consider this issue Resolved?

    regards

    Suman

  • Hi Suman,

    Thank you for your reply and help. I think I have solved the problem of messageq, but I have other problems about bigdata. I have raised questions in another

    post.

    Thank you again,

    regards

    Yubo