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-01-2015, 15:16   #586
Registered User
 
akopac's Avatar

Join Date: Oct 2014
Location: South Pacific -> World Cruising Long Term
Boat: Morgan, West Indies 38 Ketch
Posts: 562
Re: OpenCPN Runs on Embedded ARM

Go Freddie Go!!! Banana Pro arrived yesterday and going with beta build and mesa installed. GLXgears shows steady ~53. Bren your right about everything else... It just works in this Lubuntu Banana Pro image. Wifi, printers, etc. no issues. I would like to be able to change the freq. of the CPU and hardware acceleration for the video too... Seems the CPU never goes near 1 ghz but is set to change automatically.
akopac is offline   Reply With Quote
Old 21-01-2015, 20:52   #587
Registered User

Join Date: Jul 2014
Posts: 158
Re: OpenCPN Runs on Embedded ARM

Have been watching this thread with great interest after failing to get the Rpi to run OpenCPN with Open GL capabilities. BoatAlexander had a version but I could not replicate that, I had been holding out for progress on the Rpi, but it looks like that is not going to happen anytime soon, and as new Arm devices become available it seems unlikely that it will happen for the Rpi B+ etc.

Looking at the forums and support sites for the Bpi Pro it seems there are similar problems with the Mali chip. As a very long term Ubuntu user this Bpi Pro platform would seem to offer the best hope for a Ogl accelerated version of OpenCPN running on Ubuntu(lubuntu) 14.04LTS.

I just wondered what the other peoples views were on this.

The Rpi B+ (the 4USB ports are a huge bonus) is fantastic as a black box NMEA processor and wireless cloud device. We have it processing all GPS/AIS and NMEA data onboard and serving as a NMEA Data Cloud. It never gets anywhere near 5W typically .6 - .8 A @ 5V. We have 3 x 110Ah batteries on the domestic circuit. Hope is top have a system that can run nav computer etc. for upto 14days without recharging.

Cheers
Spart
sparticle is offline   Reply With Quote
Old 23-01-2015, 07:11   #588
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Runs on Embedded ARM

Despite a few small remaining problems, I wanted to point out that OpenCPN is running very well on my CubieTruck board.

Since speed is very subjective, here is a short video of panning and zooming using RNC charts (pre compressed), OS and charts are stored on an SD card. I'm planning to add a small SSD to further improve performance and reliability.

Thanks to all the developers and testers who made this possible.

Cheers,
JM.
Attached Files
NahanniV is offline   Reply With Quote
Old 23-01-2015, 08:41   #589
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Runs on Embedded ARM

Here is a video that illustrates the biggest remaining problem I see with OpenCPN on the CubieTruck ARM platform.

Other problems have mostly been related to the operating system/video drivers of particular images, but this has been common to all, so I am thinking it may be in the OpenCPN or GLshim code.

As initially reported by GHammond, Certain levels of detail do not display correctly for CM93 charts in OpenGL mode on the CubieTruck.

Note that a problem with the display of OwnShip (as reported by WRONG) is also visible in this video.
Attached Files
NahanniV is offline   Reply With Quote
Old 23-01-2015, 12:16   #590
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
Re: OpenCPN Runs on Embedded ARM

NahanniV Thank you. Cubie truck seems perfectly fast enough from the video. From my experience with Dell Laptop XPS 15 I have noticed some similar detail problems but have not focused on them really. Perhaps I should.
rgleason is offline   Reply With Quote
Old 23-01-2015, 20:49   #591
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by NahanniV View Post
Here is a video that illustrates the biggest remaining problem I see with OpenCPN on the CubieTruck ARM platform.

Other problems have mostly been related to the operating system/video drivers of particular images, but this has been common to all, so I am thinking it may be in the OpenCPN or GLshim code.

As initially reported by GHammond, Certain levels of detail do not display correctly for CM93 charts in OpenGL mode on the CubieTruck.
First, try disabling vbo (set to false on line glChartCanvas.cpp:993)

Next, try using software opengl libraries (replace libGL.so.1)?
Finally, try disabling opengles in cmakelists?
Quote:
Note that a problem with the display of OwnShip (as reported by WRONG) is also visible in this video.
I am not really sure, but it looks like the problem is with opengl off.
seandepagnier is offline   Reply With Quote
Old 23-01-2015, 21:57   #592
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by boat_alexandra View Post
First, try disabling vbo (set to false on line glChartCanvas.cpp:993)

Next, try using software opengl libraries (replace libGL.so.1)?
Finally, try disabling opengles in cmakelists?


I am not really sure, but it looks like the problem is with opengl off.
OK, Tried disabling vbo by commenting out line 993+994 in glChartCanvas.cpp
Verified "Vertexbuffer Objects unavailable" in log file. But no change in behavior of CM93 in OpenGL mode.

Guess I need to get the libGL.so.1 from the original image since I overwrote it with the GLshim version ?

I did already try disabling opengles in cmakelists, but it made things much worse, even the base map was corupted.

Will try more tomorrow.

Cheers,
JM.
NahanniV is offline   Reply With Quote
Old 24-01-2015, 21:30   #593
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by boat_alexandra View Post
First, try disabling vbo (set to false on line glChartCanvas.cpp:993)

Next, try using software opengl libraries (replace libGL.so.1)?
Finally, try disabling opengles in cmakelists?


I am not really sure, but it looks like the problem is with opengl off.
Next, I restored the software Opengl library from the original image:

Code:
00:00:25 EST: OpenGL-> Renderer String: Software Rasterizer
00:00:25 EST: OpenGL-> Version reported:  2.1 Mesa 8.0.5
00:00:25 EST: OpenGL-> Texture rectangle format: de1
00:00:25 EST: OpenGL-> Using Vertexbuffer Objects
00:00:25 EST: OpenGL-> Using Framebuffer Objects
00:00:25 EST: OpenGL-> FBO Stencil buffer unavailable
00:00:25 EST: OpenGL-> Using Depth buffer clipping
00:00:25 EST: OpenGL-> Using 3dfx fxt1 compression
00:00:25 EST: OpenGL-> Compressed tile size: 128kb (6:1)
00:00:25 EST: OpenGL-> Minimum cartographic line width:  1.0
00:00:25 EST: OpenGL-> Minimum symbol line width:  1.0
All the levels of CM93 displayed correctly. It was painfully slow.

So, I guess the problem is either in GLshim or something lower ?

When I tried disabling opengles before, it caused a lot of problems with the display.

Why would this problem only show up on certain levels ?

Do you have these CM93 charts ? Are you not seeing this problem ? What could be different ?

Cheers,
JM.
NahanniV is offline   Reply With Quote
Old 25-01-2015, 20:21   #594
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Runs on Embedded ARM

Would it be very hard to write a program that would test all the OpenGL functions needed by OpenCPN ? It would certainly help to figure out where the problems are. It would also be an easy way to see if hardware and software support is adequate to run OpenCPN with OpenGL.
NahanniV is offline   Reply With Quote
Old 28-01-2015, 00:49   #595
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN Runs on Embedded ARM

I don't think I can write such a program soon. I think opencpn is using a feature in opengl that is not in opengles and not emulated by glshim properly.

Does this happen frequently? Can you check/uncheck vector chart display options to find it? (start with as much stuff not checked and see if there is a problem)
seandepagnier is offline   Reply With Quote
Old 28-01-2015, 07:34   #596
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by boat_alexandra View Post
I don't think I can write such a program soon. I think opencpn is using a feature in opengl that is not in opengles and not emulated by glshim properly.

Does this happen frequently? Can you check/uncheck vector chart display options to find it? (start with as much stuff not checked and see if there is a problem)
OK, Thanks for the guidance.

It is definitely the "Dredged area" option that causes the problem.

Hopefully, it's easy to fix, but I can live with it turned off for now.

Cheers,
JM.
NahanniV is offline   Reply With Quote
Old 29-01-2015, 00:51   #597
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN Runs on Embedded ARM

Great to know, I will try to debug when I get the chance.
seandepagnier is offline   Reply With Quote
Old 01-02-2015, 21:10   #598
Registered User
 
travellerw's Avatar

Join Date: Jan 2014
Location: Martinique
Boat: Fortuna Island Spirit 40
Posts: 2,298
Re: OpenCPN Runs on Embedded ARM

Damn.. I swore I wouldn't get sucked into trying to build a low power ships PC..... but I just couldn't resist..

So... It looks like I will be adding a completely different hardware to the mix. I decided on the Radxa Rock Pro. Its a bit more money than a Raspberry, Cubie or Banana but has the features to back up the cost. 8mb of onboard NAND for the OSs, quad core 1.6ghz CPU, 2GB of RAM, Bluetooth to name a few.

Of course I will be trying to get OpenCPN to run on it. I'm hoping with the horsepower and OpenGL ES support that OpenCPN will run smooth. We will see. I will post back once it arrives and I've had a play around with it.
travellerw is offline   Reply With Quote
Old 02-02-2015, 03:09   #599
Registered User

Join Date: Oct 2012
Location: Brighton, UK
Boat: Westerly Oceanlord
Posts: 513
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by sparticle View Post
I had been holding out for progress on the Rpi, but it looks like that is not going to happen anytime soon, and as new Arm devices become available it seems unlikely that it will happen for the Rpi B+ etc.
Many people will have already seen the announcement but....new pi coming:
BBC News - Raspberry Pi 2 unveiled with faster processor and more memory
Edit: Here's a better link:
http://www.raspberrypi.org/raspberry...e-new-product/
Edit #2....Element14's website seems verrrrrrrrrry slow....
muttnik is offline   Reply With Quote
Old 02-02-2015, 03:34   #600
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN Runs on Embedded ARM

What graphics processor? looks like broadcom again... probably better to use bananna pi, unless the drivers have improved to work in windowing systems.
seandepagnier is offline   Reply With Quote
Reply

Tags
opencpn

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
Open CPN and Google Earth bgrimwade OpenCPN 19 09-12-2011 15:32
OpenCPN Version 2.5 Release bdbcat OpenCPN 86 02-09-2011 18:14
OpenCPN Stops Running BobLarkin OpenCPN 2 30-08-2011 23:38
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 16:03.


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.