Jump to content

Recommended Posts

Posted

I'm trying to run an executable on an OrangePi Prime. The message is:

-bash: <filename>: No such file or directory

The output of the file command on the executable is:

<filename>: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=xxx, not stripped

The app runs fine on OrangePi One, OrangePi Zero and Raspberry Pi.

Posted
16 minutes ago, Lucil said:

I'm trying to run an executable on an OrangePi Prime

The OPiPrime is an H5 SoC, therefore a 64bits processor ...

You preferably need to recompile that executable as 64bits.

What is that application ?

 

If you can't, there still some workaround :

From an H3 board, copy the missing files from it /lib/arm-linux-gnueabihf/ along with some symlinks, example :

mkdir /lib/arm-linux-gnueabihf
scp <ip_of_h3>:/lib/arm-linux-gnueabihf/ld-2.24.so /lib/arm-linux-gnueabihf/ld-2.24.so
ln -s /lib/arm-linux-gnueabihf/ld-2.24.so /lib/ld-linux-armhf.so.3
scp <ip_of_h3>:/lib/arm-linux-gnueabihf/libc-2.24.so /lib/arm-linux-gnueabihf/libc-2.24.so
ln -s /lib/arm-linux-gnueabihf/libc-2.24.so /lib/arm-linux-gnueabihf/libc.so.6

That was enough for me to try a plain C 32bits executable on the H5 !

But maybe your will need more libs to be copied/symlinked ...

 

Posted
46 minutes ago, martinayotte said:

The OPiPrime is an H5 SoC, therefore a 64bits processor ...

You preferably need to recompile that executable as 64bits.

What is that application ?

It's a comercial app, sources are closed. All platforms are supported (win, lin, mac), but ARM is provided just as a courtesy and I don't know if a 64 bit build can be made available.

Posted
3 hours ago, Lucil said:

Would it be possible to use a 32bit build made for another board?


Yes, you can have 32bit user land on 64bit board. This problem is generic and unrelated to Armbian.

Posted
4 hours ago, Lucil said:

Would it be possible to use a 32bit build made for another board?

I would rather install only the 32bits libraries needed as I explain above, leaving the rest of the OS to 64bits...

Posted

It's difficult to guess all the needed libs. I've installed the 32bit userland and now I get an "Illegal instruction" error. So that's why I was thinking of installing a complete 32bit build. Somewhat like RPi guys do and I guess it's because of them my ARM app build is 32bit, as the most widespread platform.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines