Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 15-02-2018, 06:35   #1
Registered User
 
sailorF54's Avatar

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!
sailorF54 is offline   Reply With Quote
Old 15-02-2018, 07:10   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,395
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/"
bdbcat is offline   Reply With Quote
Old 15-02-2018, 09:19   #3
Registered User
 
sailorF54's Avatar

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 View Post
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2018-02-15 18-14-01.png
Views:	151
Size:	14.0 KB
ID:	164222  
sailorF54 is offline   Reply With Quote
Old 15-02-2018, 09:27   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7

is it in /usr/bin or in /usr/local/bin?
nohal is offline   Reply With Quote
Old 15-02-2018, 09:29   #5
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
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
stelian is offline   Reply With Quote
Old 15-02-2018, 09:33   #6
Registered User
 
sailorF54's Avatar

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 View Post
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
sailorF54 is offline   Reply With Quote
Old 15-02-2018, 09:38   #7
Registered User
 
sailorF54's Avatar

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 View Post
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 ?
sailorF54 is offline   Reply With Quote
Old 15-02-2018, 09:59   #8
Registered User
 
sailorF54's Avatar

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 ?)
sailorF54 is offline   Reply With Quote
Old 15-02-2018, 10:02   #9
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,395
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
bdbcat is offline   Reply With Quote
Old 15-02-2018, 10:06   #10
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,395
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
bdbcat is offline   Reply With Quote
Old 15-02-2018, 10:30   #11
Registered User
 
sailorF54's Avatar

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 View Post
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
sailorF54 is offline   Reply With Quote
Old 15-02-2018, 12:01   #12
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
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 ?
stelian is offline   Reply With Quote
Old 15-02-2018, 12:28   #13
Registered User
 
sailorF54's Avatar

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 View Post
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2018-02-15 21-16-37.png
Views:	82
Size:	17.9 KB
ID:	164228   Click image for larger version

Name:	Screenshot from 2018-02-15 21-17-21.png
Views:	93
Size:	26.8 KB
ID:	164229  

Click image for larger version

Name:	Screenshot from 2018-02-15 21-19-55.png
Views:	91
Size:	17.0 KB
ID:	164230  
sailorF54 is offline   Reply With Quote
Old 15-02-2018, 12:50   #14
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Failure to generate fingerprint with arm64 build of oesenc_pi 1.7

Quote:
Originally Posted by sailorF54 View Post
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...
stelian is offline   Reply With Quote
Old 15-02-2018, 13:09   #15
Registered User
 
sailorF54's Avatar

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...
sailorF54 is offline   Reply With Quote
Reply

Tags
enc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
oeSENC: Error on Fingerprint file creation Tanagra OpenCPN 17 29-05-2017 03:04
how to generate nmea sentence for configuration Pegase Marine Electronics 4 03-03-2015 14:30
A Crusing Boilermaker . . . Can I Generate Enough Income to Stay Afloat ? Aussie Monty Boat Ownership & Making a Living 2 28-10-2011 03:21
Interesting Way to Generate Power Wainui Marine Electronics 11 03-12-2010 19:55
What to build, what to build... Pura Vida Multihull Sailboats 67 19-05-2008 06:44

Advertise Here


All times are GMT -7. The time now is 04:59.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.