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 21-12-2015, 11:00   #76
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: OpenCPN on Raspberry Pi2

Champ...
Yeah - sound nice and doable but I've no printer. So I think I've to do as usual, acrylic glass or plywood.
Hakan is offline   Reply With Quote
Old 23-12-2015, 20:41   #77
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 on Raspberry Pi2

Is the power draw .8 Amos @5v or @12v?


Sent from my iPhone using Cruisers Sailing Forum
akopac is offline   Reply With Quote
Old 23-12-2015, 23:28   #78
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: OpenCPN on Raspberry Pi2

akopac..
Sorry.. @5V equals < 5W, but say 5W since the voltage regulation from 12V will also use some power.
Håkan
Hakan is offline   Reply With Quote
Old 24-12-2015, 01:35   #79
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN on Raspberry Pi2

it's .2 to .3 amps draw at 12 volts
seandepagnier is offline   Reply With Quote
Old 24-12-2015, 08:23   #80
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: OpenCPN on Raspberry Pi2

@NahanniV...

Looking into your trouble with incorrect raster mipmap display on 4.1.1108.

Can you tell me your build process? I am having trouble building O with glshim on (noobs) Wheezy. I get a software rasterizer only. This works, but slow....

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 24-12-2015, 09:59   #81
Registered User
 
NahanniV's Avatar

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

Quote:
Originally Posted by bdbcat View Post
@NahanniV...

Looking into your trouble with incorrect raster mipmap display on 4.1.1108.

Can you tell me your build process? I am having trouble building O with glshim on (noobs) Wheezy. I get a software rasterizer only. This works, but slow....

Thanks
Dave
I am building on a CubieTruck. The distribution is called Aruntu (Ubuntu 14.0.4LTS (I think).

I had to build and install WxWidgets 3.0.2.
Also had some difficulty getting LibCurl installed; Resolved that with Apptitude.

Otherwise the build is standard LINUX. Watch cmake log to see that it finds gGLes; On another distro, I had to hack cmakelists? to force to to assume GLes.

I don't have a Pi, but I am getting an NVIDIA Jetson TK1 for a Christmas prez. I'll let you know how that works, I am hopeful!

Merry Christmas,
JM.
NahanniV is offline   Reply With Quote
Old 24-12-2015, 10:56   #82
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: OpenCPN on Raspberry Pi2

JM...

OK, thanks for the info.

Sean, or anyone else have GLshim working on RPI2?

BTW, I am also working with the new OpenSource VC4 GL driver for RPI2.
Disable the GLES stuff in CMakeLists.txt, and build as for standard gtk OpenGL environment.

Latest build for Jessie seems plenty fast enough to run OCPN GUI. But there is no texture compression support, so we run out of RAM pretty fast on raster charts. I'm still learning how to drive RPI2, so there may be some tweaking to do. Not looked vector charts yet.

We get a very nice OCPN OpenGL configuration, though. VBOs and FBOs available

Code:
18:44:36 UTC: OpenGL-> Renderer String: Gallium 0.4 on VC4
18:44:36 UTC: OpenGL-> Version reported:  2.1 Mesa 11.2.0-devel (git-97eee90)
18:44:36 UTC: OpenGL-> Texture rectangle format: de1
18:44:36 UTC: OpenGL-> Using Vertexbuffer Objects
18:44:36 UTC: OpenGL-> Using Framebuffer Objects
18:44:36 UTC: OpenGL-> Using FBO Stencil buffer
18:44:36 UTC: OpenGL-> Using Stencil buffer clipping
18:44:36 UTC: OpenGL-> Using Scissor Clipping
18:44:36 UTC: OpenGL-> Not Using compression
18:44:36 UTC: OpenGL-> Minimum cartographic line width:  1.0
18:44:36 UTC: OpenGL-> Minimum symbol line width:  1.0
Comments, Sean?

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 24-12-2015, 17:35   #83
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by NahanniV View Post
I am building on a CubieTruck. The distribution is called Aruntu (Ubuntu 14.0.4LTS (I think).

I had to build and install WxWidgets 3.0.2.
Also had some difficulty getting LibCurl installed; Resolved that with Apptitude.

Otherwise the build is standard LINUX. Watch cmake log to see that it finds gGLes; On another distro, I had to hack cmakelists? to force to to assume GLes.

I don't have a Pi, but I am getting an NVIDIA Jetson TK1 for a Christmas prez. I'll let you know how that works, I am hopeful!

Merry Christmas,
JM.
JM:
I have two Jetson TK1's, and O builds and works flawlessly on both. Quad core 2.225GHz processors make these things move. Its faster than my 2.25GHz Mac Mini. Jetson comes with full OpenGL working from the git go.
They also don't use much more power than the CubieTrucks either.

Merry Christmas,
Freddie
sbfreddie is offline   Reply With Quote
Old 24-12-2015, 22:13   #84
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN on Raspberry Pi2

Dave,

I don't know if the image I downloaded with the vc4 driver was corrupted or what, but it gave me a very broken system.

So instead I used glshim with the broadcom drivers, and got pretty good frame rates. Also the FBO works, but only with power of 2 sizes...

Anyway, I have reproduced the problems on my cubie truck. No doubt it is doing something wrong with mipmaps, but also maybe something with the FBO. The old version works fine, so I have only to git-bisect. I am waiting for the first of 10 builds to complete...
seandepagnier is offline   Reply With Quote
Old 25-12-2015, 07:51   #85
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: OpenCPN on Raspberry Pi2

Sean...

OK, thanks for helping. I never have gotten a GLshim/GLES environment running on RPI2/Wheezy. Stuck in SW renderer.

The latest Jessie image with VC4 driver I found is:
http://sukzessiv.net/~gohai/vc4-buil...-vc4-image.zip

Installs and boots with no problems. No changes needed to config.txt. Build OCPN by hacking CMakeLists to skip GLES detection, and use plain old OpenGL mode. I can do OCPN over X11 VNC link, so debugging is easier with a full size keyboard and monitor.

Today I plan to add some debug messages and fiddle with the OCPN declared texture memory limit. We are getting asserts from the VC4 driver about GL_OUT_OF_MEMORY, then a clean crash.

Vector charts work fine.

Dave
bdbcat is offline   Reply With Quote
Old 28-12-2015, 10:27   #86
Registered User
 
NahanniV's Avatar

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

Quote:
Originally Posted by boat_alexandra View Post
Dave,

I don't know if the image I downloaded with the vc4 driver was corrupted or what, but it gave me a very broken system.

So instead I used glshim with the broadcom drivers, and got pretty good frame rates. Also the FBO works, but only with power of 2 sizes...

Anyway, I have reproduced the problems on my cubie truck. No doubt it is doing something wrong with mipmaps, but also maybe something with the FBO. The old version works fine, so I have only to git-bisect. I am waiting for the first of 10 builds to complete...
I don't know if this is relevant or not. I am trying out the TK1 Arm board and everything works well so far except if I select OpenGL mode without texture compression using raster charts. In this mode I see the busy spinner get stuck on and eventually get a crash. The debug information is not too helpful:

Code:
(gdb) run
Starting program: /usr/local/bin/opencpn 
warning: File "/usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.19-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb374a240 (LWP 2405)]
[New Thread 0xb2dff240 (LWP 2406)]
[New Thread 0xb2153240 (LWP 2423)]
[New Thread 0xb1953240 (LWP 2424)]
[New Thread 0xb1153240 (LWP 2425)]
[Thread 0xb1953240 (LWP 2424) exited]
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
[New Thread 0xb1953240 (LWP 2444)]
[Thread 0xb1953240 (LWP 2444) exited]
[New Thread 0xb1953240 (LWP 2445)]
[Thread 0xb1953240 (LWP 2445) exited]
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
[New Thread 0xb1953240 (LWP 2446)]
[Thread 0xb1953240 (LWP 2446) exited]
[New Thread 0xb1953240 (LWP 2447)]
[Thread 0xb1953240 (LWP 2447) exited]
[New Thread 0xb1953240 (LWP 2448)]
[Thread 0xb1953240 (LWP 2448) exited]
[Thread 0xb1153240 (LWP 2425) exited]
[Thread 0xb2dff240 (LWP 2406) exited]
[Thread 0xb374a240 (LWP 2405) exited]
[Thread 0xb3a96000 (LWP 2404) exited]

Program terminated with signal SIGKILL, Killed.
The program no longer exists.
(gdb)
I also am trying to figure out how to build OpenCPN to use GLes on this system, just to see how it works.

Cheers,
JM.
NahanniV is offline   Reply With Quote
Old 28-12-2015, 10:29   #87
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry Pi2

Hi,

first a friendly hello, cause I´m new here. I´m Andreas, coming from Germany and sails round the netherlands coast and the North sea.
I´ve read much about opencpn and the pi so I decided to start with it.
I try to run opencpn on a pi (Raspi 2 Model B). I use the build from agurney. I was sucessful, cause it works with my self scanned rastercharts of the netherlands coast.
I also get run a remote control to my android tablet via xrdp and an app (not Microsoft remote desktop-does not work) via a wlan.
But I´m not able to install any plugins.
How can I install e.g. watchdog?
Im new in Linux and new with the raspi so I need a how to for dummies.
Thanks

Andreas
Andreas29 is offline   Reply With Quote
Old 28-12-2015, 10:54   #88
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by Andreas29 View Post
Hi,

first a friendly hello, cause I´m new here. I´m Andreas, coming from Germany and sails round the netherlands coast and the North sea.
I´ve read much about opencpn and the pi so I decided to start with it.
I try to run opencpn on a pi (Raspi 2 Model B). I use the build from agurney. I was sucessful, cause it works with my self scanned rastercharts of the netherlands coast.
I also get run a remote control to my android tablet via xrdp and an app (not Microsoft remote desktop-does not work) via a wlan.
But I´m not able to install any plugins.
How can I install e.g. watchdog?
Im new in Linux and new with the raspi so I need a how to for dummies.
Thanks

Andreas
Try the openplotter rasp pi image, it has opencpn v4 with most of the plugins, and much more as well.

Sailing with free hardware | Sailoog
conachair is offline   Reply With Quote
Old 28-12-2015, 14:03   #89
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry Pi2

Hi,

solved the problem with the plugins but not finally. I can now install the plugin with sudo apt-get install ... and the plugin will be downloaded and istalled. But I can´t see it in the plugin list under opencpn. Here are only the two build in plugins.
I´ve also a problem with the settings of the plugins. After rebooting or power off the pi and starting again the Settings for the plugins are lost.

Sugestions?

Andreas
Andreas29 is offline   Reply With Quote
Old 28-12-2015, 17:12   #90
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by Andreas29 View Post
Hi,

solved the problem with the plugins but not finally. I can now install the plugin with sudo apt-get install ... and the plugin will be downloaded and istalled. But I can´t see it in the plugin list under opencpn. Here are only the two build in plugins.
I´ve also a problem with the settings of the plugins. After rebooting or power off the pi and starting again the Settings for the plugins are lost.

Sugestions?

Andreas
Witch version of opencpn are you running ?. Have you downloaded the image from agurney or used the script wget http://agurney.com/raspi/opencpn_install.sh ??
petter5 is offline   Reply With Quote
Reply

Tags
enc, opencpn


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
OpenCPN on Raspberry PI2 starnakel OpenCPN 284 16-03-2017 13:58
Has anyone gotten any Plugins working on Raspberry Pi2 Uncle Augie OpenCPN 5 27-06-2015 06:19
Has anyone managed to get hardware supported OpenGL on Rasperry Pi2 to work? Gunnar1 OpenCPN 53 16-06-2015 02:10
Raspberry Pi2 ratsea OpenCPN 5 26-02-2015 08:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here


All times are GMT -7. The time now is 12:07.


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.