Lucil Posted March 21, 2019 Posted March 21, 2019 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.
martinayotte Posted March 21, 2019 Posted March 21, 2019 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 ...
Lucil Posted March 21, 2019 Author Posted March 21, 2019 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.
martinayotte Posted March 21, 2019 Posted March 21, 2019 50 minutes ago, Lucil said: It's a comercial app, sources are closed. Then, no choice ... Use the above method as a workaround ...
Lucil Posted March 22, 2019 Author Posted March 22, 2019 Would it be possible to use a 32bit build made for another board?
Igor Posted March 22, 2019 Posted March 22, 2019 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.
martinayotte Posted March 22, 2019 Posted March 22, 2019 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...
Lucil Posted March 22, 2019 Author Posted March 22, 2019 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.
martinayotte Posted March 22, 2019 Posted March 22, 2019 In this case, maybe it is better to purchase a new board like OPi+2E ...
Recommended Posts