|
|
15-02-2018, 07:35
|
#1
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
Using a ROCK64 board, I have to build oesenc_pi as the package for arm64 is not available. Building O 4.99.0 in /usr/local/share... went OK, the built oesenc 1.7 plugin is available, I have checked that oeserverd is present in /usr/local/bin, but trying to generate the fingerprint fails
Fearing some mistake from my part, I downloaded an "old" 4.8.2 (in /usr/share...) then built oesenc_pi in the proper directories. The plugin is available, including oeserverd, but the same failure occurs when attempting to generate a fingerprint.
In both cases, the log says
Code:
14:51:48 CET: PlugInManager: Initializing PlugIn: /usr/lib/opencpn/liboesenc_pi.so
14:51:48 CET: Path to oeserverd is: /usr/bin/oeserverd
14:51:53 CET: Create FPR command: /usr/bin/oeserverd -g "/home/rock64/.opencpn/"
14:51:53 CET: oesenc_pi: oeserverd results:
14:51:53 CET: execvp(/usr/bin/oeserverd, -g, /home/rock64/.opencpn/) failed with error 2!
|
|
|
15-02-2018, 08:10
|
#2
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,689
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
sailorF54...
Try this in a console window, and report results.
/usr/bin/oeserverd -g "/home/rock64/.opencpn/"
|
|
|
15-02-2018, 10:19
|
#3
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
Quote:
Originally Posted by bdbcat
sailorF54...
Try this in a console window, and report results.
/usr/bin/oeserverd -g "/home/rock64/.opencpn/"
|
Here it is
although oeserverd is in /usr/bin ....
also
rock64@rock64:/usr/bin$ file oeserverd
oeserverd: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=bb2e355e3f4c10a60016b326e2d7fd480967060d, stripped
rock64@rock64:/usr/bin$ uname -a
Linux rock64 4.4.77-rockchip-ayufan-136 #1 SMP Thu Oct 12 09:14:48 UTC 2017 aarch64 GNU/Linux
|
|
|
15-02-2018, 10:27
|
#4
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,293
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
is it in /usr/bin or in /usr/local/bin?
|
|
|
15-02-2018, 10:29
|
#5
|
Registered User
Join Date: Mar 2017
Location: Brittany, France
Boat: First 30 (1976)
Posts: 329
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
Try this in the console:
ls -l /usr/bin/oeserverd
file /usr/bin/oeserverd
ldd /usr/bin/oeserverd
|
|
|
15-02-2018, 10:33
|
#6
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
Quote:
Originally Posted by nohal
is it in /usr/bin or in /usr/local/bin?
|
Both: one for my compiled O 4.99.0 and one for dowloaded O. 4.8.2
|
|
|
15-02-2018, 10:38
|
#7
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
Quote:
Originally Posted by stelian
Try this in the console:
ls -l /usr/bin/oeserverd
file /usr/bin/oeserverd
ldd /usr/bin/oeserverd
|
rock64@rock64:/usr/bin$ ls -l /usr/bin/oeserverd
-rwxr-xr-x 1 root root 60592 Feb 15 14:45 /usr/bin/oeserverd
for the file command see my reply to Dave
rock64@rock64:/usr/bin$ ldd /usr/bin/oeserverd
not a dynamic executable
Ps same problem as with Maitai's qtVlm ?
|
|
|
15-02-2018, 10:59
|
#8
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
I've failed to mention this
Yesterday, I built oesenc_pi for O 4.99.0 and I could generate a fingerprint and access oesenc charts.
This morning, trying to upgrade Strech, I bricked my Rock64 and had to rebuild everything from scratch (loosing the fingerprint)
Did something change overnight (European time ?)
|
|
|
15-02-2018, 11:02
|
#9
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,689
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
sailorF54...
Clear enough.
oeserverd has not been built for ARM64, so it just wont load.
That is why we have no "official" release of oeSENC for ARM64.
I'll try to bring up an ARM64 emulator system. Failing that, I'll get some simple hardware platform to build on. Recommendations, anyone?
Please stand by
Dave
|
|
|
15-02-2018, 11:06
|
#10
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,689
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
sailorF54...
Now I am confused.
No change to oeSENC overnight, so something about your libs or loader has changed.
Dave
|
|
|
15-02-2018, 11:30
|
#11
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
Quote:
Originally Posted by bdbcat
sailorF54...
Now I am confused.
No change to oeSENC overnight, so something about your libs or loader has changed.
Dave
|
That must be it...
A needle in a haystack
The joy of being a trailblazer
Anyway, thanks everyone for your help
|
|
|
15-02-2018, 13:01
|
#12
|
Registered User
Join Date: Mar 2017
Location: Brittany, France
Boat: First 30 (1976)
Posts: 329
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
Hmmm, if oeserverd is an arm32 binary, first find the 32bit loader, it should be in /lib32 or /lib/, named something like /lib32/ld-2.26.so or /lib32/ld-linux.so.2
Then, type:
LD_TRACE_LOADED_OBJECTS=1 /lib32/ld-linux.so.2 /usr/bin/oeserverd
Does this work ?
|
|
|
15-02-2018, 13:28
|
#13
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
Quote:
Originally Posted by stelian
Hmmm, if oeserverd is an arm32 binary, first find the 32bit loader, it should be in /lib32 or /lib/, named something like /lib32/ld-2.26.so or /lib32/ld-linux.so.2
Then, type:
LD_TRACE_LOADED_OBJECTS=1 /lib32/ld-linux.so.2 /usr/bin/oeserverd
Does this work ?
|
What I've found (see pics)
rock64@rock64:~$ LD_TRACE_LOADED_OBJECTS=1 /lib/aarch64-linux-gnu/ld-2.24.so /usr/bin/oeserverd
/usr/bin/oeserverd: error while loading shared libraries: /usr/bin/oeserverd: wrong ELF class: ELFCLASS32
|
|
|
15-02-2018, 13:50
|
#14
|
Registered User
Join Date: Mar 2017
Location: Brittany, France
Boat: First 30 (1976)
Posts: 329
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
Quote:
Originally Posted by sailorF54
What I've found (see pics)
rock64@rock64:~$ LD_TRACE_LOADED_OBJECTS=1 /lib/aarch64-linux-gnu/ld-2.24.so /usr/bin/oeserverd
/usr/bin/oeserverd: error while loading shared libraries: /usr/bin/oeserverd: wrong ELF class: ELFCLASS32
|
That is the 64 bit loader. You need the 32 bit one (in /lib32 or something like this). If it's missing, maybe you don't have the 32 bit loader and libc.
I'm not sure how debian works on arm64, but maybe something like
apt-get install libc:armhf
could work...
|
|
|
15-02-2018, 14:09
|
#15
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7
I now recall something...
When trying to run 32 bit qtVlm on my 64 bit board, I tried many suggestions found on Google (to no avail)
But one must have been OK to enable oeserverd
sudo apt-get install libc:armhf
Unable to locate package libc:armhf
I'll keep trying
BTW, Stelian, you've won a drink sometime in Perros...
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|