bdbcat / o-charts_pi

GNU General Public License v2.0
8 stars 11 forks source link

wrong arch from linuxarm64/oexserverd #4

Closed free-x closed 3 years ago

free-x commented 3 years ago

Hi @bdbcat ,

while building plugin for ARM64 i noticed that blob has wrong architecture. It is ARMHF ( 32bit) instead of AARCH64/ARM64

pi@xnav:~/tmp/o-charts_pi $ file libs/oeserverd/linuxarm64/oexserverd 
libs/oeserverd/linuxarm64/oexserverd: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=42000dca2db7c850b4212c9b909813ad17a22e69, stripped

Regards free-x

bdbcat commented 3 years ago

Not an error. The 32 bit binary runs just fine on aarch64, in our tests. No advantage to 64 bits for this app, and gives one less source image to maintain.

free-x commented 3 years ago

Hi @bdbcat,

i'm trying ocharts for @wellenvogel avnav-ocharts-provider. We are using RaspiOS ARM64 Buster image. Here are my experiences Try to create permit

pi@avnav:~ $ /usr/lib/avnav/plugins/ocharts/bin/oexserverd -s /home/pi/avnav/data/ocharts
-bash: /usr/lib/avnav/plugins/ocharts/bin/oexserverd: No such file or directory
pi@avnav:~ $ ls -la /usr/lib/avnav/plugins/ocharts/bin/oexserverd
-rwxr-xr-x 1 root root 96284 May  3 11:17 /usr/lib/avnav/plugins/ocharts/bin/oexserverd
pi@avnav:~ $ strace /usr/lib/avnav/plugins/ocharts/bin/oexserverd
execve("/usr/lib/avnav/plugins/ocharts/bin/oexserverd", ["/usr/lib/avnav/plugins/ocharts/b"...], 0x7fd1efd770 /* 29 vars */) = -1 ENOENT (No such file or directory)
strace: exec: No such file or directory
+++ exited with 1 +++
pi@avnav:~ $ ldd /usr/lib/avnav/plugins/ocharts/bin/oexserverd
    not a dynamic executable

Regards free-x

free-x commented 3 years ago

Hi @bdbcat thx for providing new oexserverd for ARM64 after https://github.com/bdbcat/o-charts_pi/commit/bfb2473f747a4810274723f57709dd27732acded it works as expected

Regards free-x