I am successfully able to use Android NDK and run and execute sample hello app on this iMX board.
But instead of using NDK i want to cross compile C / C++ code using some tool-chain or some other method and execute it it on target hardware i.e iMX8M Mini EVK. As per my understanding on embedded Linux we need tool-chains and sysroot to cross compile any program or libraries but i am new to Embedded Android so i am not understanding how to do the same thing in Android. Basically I want to know how to cross compile C code for android without NDK.
Also After my boards boots up when i try to execute basic commands such as sudo or vi or vim or dmesg on iMX8M mini then it gives me errors like - su: invalid uid/gid 'dmesg' or commands not found etc.. Even GCC is also not available i think,