[beagleboard] executable won't execute?

Hi,

So if I understand it correctly you have an executable which works on the RPi and you just copied it from there to your BeagleBone?
I think that can not work. Both processors may be based on ARM, but are different versions as far as I understand. Therefore you can not run the same programs without recompiling them. The only solutions I can come up with is either find a precompiled package from the ubuntu-repositories (that you copied it suggests that there is none) or get the source code of your program and recompile it on the BB.

Executables you can copy quite safely from platform to platform are generally scripts for e.g. the shell or python.

Best regards,

    Jan

"Jan Sommer" <jan.sommer@s2008.tu-chemnitz.de> writes:

Hi,

So if I understand it correctly you have an executable which works on
the RPi and you just copied it from there to your BeagleBone?
I think that can not work. Both processors may be based on ARM, but
are different versions as far as I understand. Therefore you can not
run the same programs without recompiling them.

The Cortex-A8 CPU in the beagle can run anything the rpi's ARM11 can.

ubuntu@arm:~$ file setup
setup: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically
linked
(uses shared libs), for GNU/Linux 2.6.26,
BuildID[sha1]=0x513b92fe0f221852334eaf59e20b0c384711d768, stripped
ubuntu@arm:~$ sudo ./setup
sudo: unable to execute ./setup: No such file or directory

The 'setup' file is probably linked against a different version/variant
of glibc and thus requesting a different dynamic loader. Compare the
output of 'readelf -l' on this file to one that works. Look for a line
that says "Requesting program interpreter: ..."

I see. So the instruction set of the ARM11 is a subset of A8. Then it is the other way round.

Nope..

see:
https://wiki.linaro.org/OfficeofCTO/HardFloat/LinkerPathCallApr2012

#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3"
#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3"

RPi is runing Debian with the "soft_float" linker.. "/lib/ld-linux.so.3"

Ubuntu is using the "hard_float" linker: "/lib/ld-linux-armhf.so.3"

Just install gcc on your ubuntu system and "rebuild" your software..

Regards,

Robert Nelson <robertcnelson@gmail.com> writes: