I need to run some USB NCM related test cases for which i have written some test code in .c file. I have compiled the .c file from Ubuntu Host by using GCC compiler and trying to run from Device's console but i'm getting "-sh: Cannot execute binary file" error. Device side we don't have GCC installed.
uname -a command gives following o/p in,
> Host:
4.4.0-31-generic Ubuntu x86_64
> Device:
3.14.55-yocto-standard #1 SMP PREEMPT Fri Oct 12 13:34:50 CEST 2018 i686 GNU/Linux
I understand that there is environment difference from Host to Device. Anyways i need to compile and execute .c file in device side console.