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.

How to execute program in console on EVM from RSE?

Other Parts Discussed in Thread: ASH

Hello,

I have recently followed the instructions listed here (Creating a HelloWorld CCS Project) and have booted my AM335x EVM with the Linux OS that came with the kit. I have compiled a basic helloworld program and have loaded it into the EVM device but when attempting to execute the program from console via RSE I get an error while executing. I have attached an image that shows my CCS project and the console terminal. The image is located here

Can anyone offer some insight into how to execute the program from the console? I have done some research and it would appear that not all bash commands are functional here but I'm unaware how to execute programs in ash, sh or busybox.

Thank you!

  • Hi Chad,

    I don't have the kit up and running yet - will try and get it going later today. Hopefully someone can help in the meantime :)

    Cheers,

    DJ

  • [Solution]

    After tearing what little hair I have left out of my head I found the solution. Once you have your executable on the EVM, if you run readelf -l helloworld|grep "program interpreter"  you will see the executable is trying to call on '/lib/d-linux-armhf.so.3' which does not exist in the /lib directory.

    I was able to extract the file from this .deb file and inject it into the /lib directory via RSE.

    After I had injected the file and gave it execute (chmod 777) access, I got the following error: "./helloworld: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

    It would appear the libc.so.6 file was missing from /usr/lib (which is odd it calls from two different paths). Once I placed the lib.so.6 file into /usr/lib and gave it execute (chmod 777) access I was able to finally run my executable!