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.

AM625: How to compile ti_rpmsg_char

Part Number: AM625

Hi,

         I am used to AM62x GP Board and then processor SDK 09.01. How to compile rpmsg_char_simple.c file. I followed the readme file compiling done every command is running successfully. I copy the compiled binary file in my processor SDK and paste usr/bin location. Power up my board then I put the comment  rpmsg_char_simple -r 9 -n 10 then coming error I attached below.

root@am62xx-evm:~# rpmsg_char_simple -r 9 -n 10
-sh: /usr/bin/rpmsg_char_simple: cannot execute binary file: Exec format error
root@am62xx-evm:~# 

How to fix this problem.

Regards,

Veerapandiyan V.

  • Hi,

    Sorry for the inconvenience previous msg not editable. So, I am again writing for the reply section.

             I am used to AM62x GP Board and then ti-processor-sdk-linux-am62xx-evm-09.00.00.03 How to compile rpmsg_char_simple.c file. I followed the readme file compiling done every command is running successfully. I copy the compiled binary file in my processor SDK and paste usr/bin location. Power up my board then I put the comment  rpmsg_char_simple -r 9 -n 10 then coming error I attached below.

    root@am62xx-evm:~# rpmsg_char_simple -r 9 -n 10
    -sh: /usr/bin/rpmsg_char_simple: cannot execute binary file: Exec format error
    root@am62xx-evm:~# uname -a
    Linux am62xx-evm 6.1.33-g40c32565ca #1 SMP PREEMPT Thu Jul  6 14:17:24 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
    root@am62xx-evm:~# 
    

    ti_rpmsg_char download link: git clone git://git.ti.com/rpmsg/ti-rpmsg-char.git

    compiled same below readme file only:

     1. Configure the autotools with necessary host and optional prefix to be
        used to install the build libraries and executables
          cd <ti-rpmsg-char-dir>
          autoreconf -i
          ./configure --host=aarch64-none-linux-gnu --prefix=<target-dir>
     2. Build and Install Library
          make
          make install
     3. Build Examples, the top-level Makefile builds only the library by
        default
          make -C examples
          make -C examples install
    

    How to fix this problem.

    Regards,

    Veerapandiyan V.

  • Hello Veerapandiyan,

    I already showed you exactly how to do this 3 months ago:
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1307125/sk-am62-ipc/4983481#4983481

    And I already gave you all the support that we can give on these forums:
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1307125/sk-am62-ipc/5014324#5014324 

    Regards,

    Nick

  • Hi Nick,

          Previously I asked for this basic error only but did not solve the thread so I created this thread.

    Today I solved this architecture error. I change two commands: 

    1. sudo apt install gcc make gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu

    2. ./configure --build x86_64-pc-linux-gnu --host aarch64-linux-gnu

    readme configure command remove put this command is working fine with no error.

    ok, no problem. 

    Regards,

    Veerapandiyan