Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-02-2015, 13:41   #1
Registered User

Join Date: Feb 2015
Posts: 11
opencpn 4.0 on cubietruck with HW acceleration

Hallo all;
Being new here i hope this is the right way and placevto put up a question for reactions and may be some hints.
I have Opencpn 4.0 build on a Cubietruck with Lubunto Linux and hardware graphis acceleration working glxgears 200fps!

There is only one small problem Dutch ENC charts only show shore and water but no objects all, no buoys, no beacons, no lighrs nothing. When opengl is disabled all is displayed but slow.

Anyone any ideas or suggestions will becwelcomed very much.

Martin
__________________

__________________
martin_br is offline   Reply With Quote
Old 02-02-2015, 16:11   #2
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 403
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by martin_br View Post
Hallo all;
Being new here i hope this is the right way and placevto put up a question for reactions and may be some hints.
I have Opencpn 4.0 build on a Cubietruck with Lubunto Linux and hardware graphis acceleration working glxgears 200fps!

There is only one small problem Dutch ENC charts only show shore and water but no objects all, no buoys, no beacons, no lighrs nothing. When opengl is disabled all is displayed but slow.

Anyone any ideas or suggestions will becwelcomed very much.

Martin
Beste Martin,

I'am using the Dutch ENC charts also, with the charts of the Delta area in high resolution (6).

The Cubie truck is about the same configuration as the BananaPi.

And with this hardware OpenCPN 4.00 is running perfect. But you have to zoom in before the navigation marks show up on the standard ENC charts. Try the Delta area charts if they show different behavior.

Groet,


Bram
__________________

__________________
verkerkbr is offline   Reply With Quote
Old 03-02-2015, 10:08   #3
Registered User

Join Date: Feb 2015
Posts: 11
Re: opencpn 4.0 on cubietruck with HW acceleration

Hallo Bram;

I will enclose some results of the RWS Zeeland ENC.
Behaviour is different from the gloabel Dutch ENC's,
but not more usable.
Since the maps display well without the HW Graph.Accell.
I assume the latter is the cause.
I will try to update the support for hardware acceleration.

Do you use HW acceleration and if yes how did you enable it.
Regards

Martin J.
Attached Thumbnails
Click image for larger version

Name:	Image1.jpg
Views:	100
Size:	30.6 KB
ID:	96492   Click image for larger version

Name:	Image2.jpg
Views:	85
Size:	27.0 KB
ID:	96493  

Click image for larger version

Name:	Image4.jpg
Views:	94
Size:	27.5 KB
ID:	96494  
__________________
martin_br is offline   Reply With Quote
Old 03-02-2015, 11:17   #4
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: opencpn 4.0 on cubietruck with HW acceleration

Some problems related to hardware acceleration seem to be in the particular Operating system Image.

If you have dredged Areas on the chart you are trying to look at this seems to be a problem; Try disabling it in: tools->charts->vector_chart_display->display_category==base or set it to Mariners_standard and un_check dredged_areas.

Or try another OS Image.

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 03-02-2015, 12:43   #5
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 403
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by martin_br View Post
Hallo Bram;

I will enclose some results of the RWS Zeeland ENC.
Behaviour is different from the gloabel Dutch ENC's,
but not more usable.
Since the maps display well without the HW Graph.Accell.
I assume the latter is the cause.
I will try to update the support for hardware acceleration.

Do you use HW acceleration and if yes how did you enable it.
Regards

Martin J.
Hallo Martin,

I'am using Lubuntu on a Banana Pi system. With accelleriation = on and 4 colours.

This is the result.

Image of the harbour channel of Zierikzee, were I have a berth.

There is another tread going about OpenCPN on ARM systems. But the Lubuntu in combination with the Banana worked out of the box.

I have also tried the Raspberry Pi 1. But that did not work.

Groeten uit Zeeland,

Bram
Attached Thumbnails
Click image for larger version

Name:	post-38571-0-61142200-1414327343_thumb.jpg
Views:	123
Size:	51.4 KB
ID:	96508   Click image for larger version

Name:	S05AJZ~W.PNG
Views:	105
Size:	103.6 KB
ID:	96509  

__________________
verkerkbr is offline   Reply With Quote
Old 03-02-2015, 13:07   #6
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by verkerkbr View Post
Hallo Martin,

I'am using Lubuntu on a Banana Pi system. With accelleriation = on and 4 colours.

This is the result.

Image of the harbour channel of Zierikzee, were I have a berth.

There is another tread going about OpenCPN on ARM systems. But the Lubuntu in combination with the Banana worked out of the box.

I have also tried the Raspberry Pi 1. But that did not work.

Groeten uit Zeeland,

Bram
Were you able to get the Hardware Video Acceleration working on Banana Pi?

Did you see my video of OpenCPN 4.0 on CubieTruck (A20) with HW Acceleration?
Attached Files
__________________
NahanniV is offline   Reply With Quote
Old 03-02-2015, 13:26   #7
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 403
Re: opencpn 4.0 on cubietruck with HW acceleration

This how my log looks:


21:20:23 CET: 2015-02-03
21:20:23 CET: ------- Starting OpenCPN -------
21:20:23 CET: Version 4.0.0 Build 2015-01-08
21:20:23 CET: wxWidgets version: wxWidgets 2.8.12
21:20:23 CET: MemoryStatus: mem_total: 874 mb, mem_initial: 8 mb
21:20:23 CET: SData_Locn is /usr/share/opencpn/
21:20:23 CET: Using existing Config_File: /home/bram/.opencpn/opencpn.conf
21:20:23 CET: Styles loading from /usr/share/opencpn/uidata/styles.xml
21:20:23 CET: No styles found at: /home/bram/
21:20:23 CET: No styles found at: /home/bram/.opencpn/
21:20:23 CET: Detected display size: 271 mm
21:20:23 CET: Detected display size: 271 mm
21:20:23 CET: Setting Viewpoint Lat/Lon 51.6239, 3.8931
21:20:23 CET: Setting Ownship Lat/Lon 51.35, 4.1913
21:20:23 CET: Loading navobjects from navobj.xml
21:20:23 CET: Done loading navobjects
21:20:23 CET: System default Language: nl_NL
21:20:23 CET: Opencpn language set to: nl_NL
21:20:24 CET: ChartSymbols loaded from /usr/share/opencpn/s57data/chartsymbols.xml
21:20:25 CET: Using s57data in /usr/share/opencpn/s57data
21:20:25 CET: Setting Viewpoint Lat/Lon 51.6239, 3.8931
21:20:25 CET: Setting Ownship Lat/Lon 51.35, 4.1913
21:20:25 CET: Creating glChartCanvas
21:20:26 CET: PlugInManager searching for PlugIns in location /usr/lib/opencpn
21:20:26 CET: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libgrib_pi.so
21:20:26 CET: /usr/lib/opencpn/libgrib_pi.so
API Version detected: 112
PlugIn Version detected: 203
21:20:26 CET: Opencpn language reload for: nl_NL
21:20:26 CET: Loading catalog for: opencpn-grib_pi
21:20:26 CET: Loading catalog for opencpn core.
21:20:26 CET: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
21:20:26 CET: /usr/lib/opencpn/libdashboard_pi.so
API Version detected: 106
PlugIn Version detected: 102
21:20:26 CET: Opencpn language reload for: nl_NL
21:20:26 CET: Loading catalog for: opencpn-grib_pi
21:20:26 CET: Loading catalog for: opencpn-dashboard_pi
21:20:26 CET: Loading catalog for opencpn core.
21:20:26 CET: OpenGL-> Renderer String: Software Rasterizer
21:20:26 CET: OpenGL-> Version reported: 2.1 Mesa 10.1.3
21:20:26 CET: OpenGL-> Texture rectangle format: de1
21:20:26 CET: OpenGL-> Using Vertexbuffer Objects
21:20:26 CET: OpenGL-> Using Framebuffer Objects
21:20:26 CET: OpenGL-> Using FBO Stencil buffer
21:20:26 CET: OpenGL-> Using Stencil buffer clipping
21:20:26 CET: OpenGL-> Using Scissor Clipping
21:20:26 CET: OpenGL-> Not Using compression
21:20:26 CET: OpenGL-> Minimum cartographic line width: 1.0
21:20:26 CET: OpenGL-> Minimum symbol line width: 1.0
21:20:28 CET: ChartDB Cache policy: Application target is 432 MBytes
21:20:28 CET: Loading chart db version: V018
21:20:28 CET: Chartdb: Chart directory list follows
21:20:28 CET: Chart directory #0: /home/bram/Downloads/vaarweg zeeland
21:20:28 CET: Chart directory #1: /home/bram/Downloads/ENC_ROOT
21:20:28 CET: GPS Watchdog Timeout is: 6 sec.
21:20:28 CET: Initializing Chart /home/bram/Downloads/vaarweg zeeland/20141217_U6Inland_Week51_NL/ENC_ROOT/1R/6/1R6688LI/1R6688LI.000
21:20:30 CET: Initializing Chart /home/bram/Downloads/vaarweg zeeland/20141217_U6Inland_Week51_NL/ENC_ROOT/1R/6/1R6688RI/1R6688RI.000
21:20:36 CET: ***GPS Watchdog timeout at Lat:51.35 Lon: 4.1913
21:20:46 CET: Initializing Chart /home/bram/Downloads/vaarweg zeeland/20141217_U6Inland_Week51_NL/ENC_ROOT/1R/6/1R66K8RI/1R66K8RI.000
21:20:47 CET: Initializing Chart /home/bram/Downloads/vaarweg zeeland/20141217_U6Inland_Week51_NL/ENC_ROOT/1R/6/1R66K8LI/1R66K8LI.000
21:21:08 CET: PlugInManager: Deactivating PlugIn: /usr/lib/opencpn/libgrib_pi.so
21:21:08 CET: PlugInManager: Deactivating PlugIn: /usr/lib/opencpn/libdashboard_pi.so
21:21:09 CET: opencpn::MyFrame exiting cleanly.
21:21:09 CET: Chart cache purge
21:21:10 CET: PlugInManager: UnLoading PlugIn: /usr/lib/opencpn/libgrib_pi.so
21:21:10 CET: PlugInManager: UnLoading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
21:21:10 CET: Chart cache purge
21:21:10 CET: LOGBOOK: 2015-02-03 20:21:10 UTC OFF: Lat 51.35000 Lon 4.19130
21:21:10 CET: opencpn::MyApp exiting cleanly...

Acceleration = on. And 4 colours.

Linux is Lubuntu.

Regards,


Bram
__________________
verkerkbr is offline   Reply With Quote
Old 03-02-2015, 13:36   #8
Registered User

Join Date: Feb 2015
Posts: 11
Re: opencpn 4.0 on cubietruck with HW acceleration

Dear NahanniV;

Pretty fast graphics!

Would you mind sharing what you have done about HW acceleration on Cubietruck?

I run Lubuntu with 12.10 kernel from SSD and glxgears yields some 200fps.

I have used the HW instructions here Building and installing on Cubieboard 2 with HW acceleration | Official OpenCPN Homepage

Looking forward to you reaction

Kind regards
Martin j
__________________
martin_br is offline   Reply With Quote
Old 03-02-2015, 15:17   #9
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by verkerkbr View Post
This how my log looks:
........
21:20:26 CET: OpenGL-> Renderer String: Software Rasterizer
........
Bram
You have OpenGL acceleration turned on, but it is being handled by software running on the main processors(ArmA7) instead of being offloaded to the dedicated graphics processor (mali400).

If you can get the correct software installed and working you should have the same performance as in the video I posted since BananaPi hardware is very similar to CubieTruck.

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 03-02-2015, 16:23   #10
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 403
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by NahanniV View Post
You have OpenGL acceleration turned on, but it is being handled by software running on the main processors(ArmA7) instead of being offloaded to the dedicated graphics processor (mali400).

If you can get the correct software installed and working you should have the same performance as in the video I posted since BananaPi hardware is very similar to CubieTruck.

Cheers,
JM.
Now I have looked at your demo. It runs indeed faster then the software GLs solution.

I'am pleased with the working of OpenCPN on my Banana thing. I'am using the Banana now almost allday for all my internet sessions. Although not yet on my boat.

If it can be improved further, I'am certainly in for it.

But at the moment I have no idea how to do this. If it is allready possible. Can you give a short instruction how it can be done in Lubuntu. I will certainly give it a try and inform you about the outcome.

Is there an improved driver from Mali available ?

But the question from the topic starter was about the display of the Dutch ENC Charts. This goes well on my Banana and not on his Cubie.

Regards,


Bram
__________________
verkerkbr is offline   Reply With Quote
Old 03-02-2015, 16:42   #11
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by verkerkbr View Post
Now I have looked at your demo. It runs indeed faster then the software GLs solution.

I'am pleased with the working of OpenCPN on my Banana thing. I'am using the Banana now almost allday for all my internet sessions. Although not yet on my boat.

If it can be improved further, I'am certainly in for it.

But at the moment I have no idea how to do this. If it is allready possible. Can you give a short instruction how it can be done in Lubuntu. I will certainly give it a try and inform you about the outcome.

Is there an improved driver from Mali available ?

But the question from the topic starter was about the display of the Dutch ENC Charts. This goes well on my Banana and not on his Cubie.

Regards,


Bram
The CubieTruck can also display the charts correctly, but at the same speed you have on the BanannaPi. Some problems are still there when we try to speed things up a bit.

So, perhaps, better for you to wait and try to speed up your BananaPi once all the bugs have been worked out.

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 04-02-2015, 05:19   #12
Registered User

Join Date: Feb 2015
Posts: 11
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by NahanniV View Post
You have OpenGL acceleration turned on, but it is being handled by software running on the main processors(ArmA7) instead of being offloaded to the dedicated graphics processor (mali400).

If you can get the correct software installed and working you should have the same performance as in the video I posted since BananaPi hardware is very similar to CubieTruck.

Cheers,
JM.
Dear NahanniV

And what would be the correct software?
What did you prepare your Cubietruck with?
Any hint or url would be much appreciated.
I think the method I used for Open GL is not OK.

Regards
Martin
__________________
martin_br is offline   Reply With Quote
Old 04-02-2015, 06:09   #13
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by martin_br View Post
Dear NahanniV

And what would be the correct software?
What did you prepare your Cubietruck with?
Any hint or url would be much appreciated.
I think the method I used for Open GL is not OK.

Regards
Martin
Martin,

Here are the instructions:

Building and installing on CubieTruck with Hardware Acceleration | Official OpenCPN Homepage

I have had success starting with Cubieez and Aruntu images; The only problem I see with them is rendering "Dredged Areas" in vector charts which will hopefully be fixed soon, and can easily be disabled in the mean time.

The CubianX image has a problem running OpenCPN.

If you get your Lubuntu system working, please let us know.

You can also check the "openCPN runs on Embedded ARM" thread for more information.

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 06-02-2015, 06:33   #14
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 403
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by NahanniV View Post
The CubieTruck can also display the charts correctly, but at the same speed you have on the BanannaPi. Some problems are still there when we try to speed things up a bit.

So, perhaps, better for you to wait and try to speed up your BananaPi once all the bugs have been worked out.

Cheers,
JM.
Dear JM,

For your information I have run glxgears on the Banana to compare this software rendering gls with your hardware gls. (with OpenCPN opened.)

273 frames in 5 sec gives 54.600 FBS

Regards,

Bram
__________________
verkerkbr is offline   Reply With Quote
Old 06-02-2015, 07:32   #15
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: opencpn 4.0 on cubietruck with HW acceleration

Quote:
Originally Posted by verkerkbr View Post
Dear JM,

For your information I have run glxgears on the Banana to compare this software rendering gls with your hardware gls. (with OpenCPN opened.)

273 frames in 5 sec gives 54.600 FBS

Regards,

Bram
Hi Bram,

The Basic harware of your BananaPi and My CubieTruck is very similar, both A20 based. Without hardware acceleration both show about 50FPS on glxgears, but enabling hardware accelleration increases it to over 100FPS:



The hardware acceleration also offloads most of the work from the main processor to the video processor. I don't know what size monitor you have, but try expanding the glxgears window size and you will see your frame rate go down while your processor usage goes up.

If you are not comfortable with compiling the software to test this yourself, just wait, the developer who did the original work to enable hardware acceleration on OpenGL ES may include the option in OpenCPN in the near future.

Cheers,
JM.
__________________

__________________
NahanniV is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools
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
Virtual OpenCPN - 'OpenCPN on a Stick' r.fairman OpenCPN 23 16-10-2011 20:51
Ruthless Acceleration Free Agent Off Topic Forum 0 12-05-2011 19:28
Yamaha Acceleration Problem landonshaw Auxiliary Equipment & Dinghy 15 09-01-2010 11:23
OpenCPN bdbcat OpenCPN 1343 19-09-2009 16:59



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 08:18.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.