I am trying to run binary file on Odroid-C2 with
ubuntu64-16.04.3-minimal-odroid-c2-20171005 OS. This file has 777 privileges and is compiled for ARM.
# ls -l my_file -rwxrwxrwx 1 root root 136409 Sep 30 13:17 my_file #pwd /home #file my_file my_file: ELF 32-bit LSB executable, ARM, version 1, statically linked, not stripped #uname -a Linux odroid64 3.14.79-116 #1 SMP PREEMPT Tue Sep 26 01:19:06 BRT 2017 aarch64 aarch64 aarch64 GNU/Linux
When I try to run it (
./my_file), I get an error: -bash: ./my_file: cannot execute binary file:Exec format error
I am aware that my binary file is 32bit and my Ubuntu is 64bit, so I followed this tutorial to add new architecture. This did not help, same error is occuring.
I also searched for another solutions, but it seems that the only problem occuring with this error is unmatching architecture. I am quite sure this is not my problem - elf is ARM, so is Odroid. I used to run similar binary files on this Odroid before, so I am really confused now.
Can you, please, help me find my mistake?