Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 10-03-2019, 10:34   #31
cruiser

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

Quote:
Originally Posted by Lake-Effect View Post
A hopefully relevant question, especially for n00bs: is there a prepackaged distro (Linux distribution) for Raspberry Pi or other small computers that has most/all of the useful marine apps installed?


A few years back I tried Marinux and others on an ASUS eee netbook, with some success. I'm just wondering if there's currently a distro like this that can be put onto an SD card and run without hassles on an RPi 3. Thx.
Yes. And it's excellent

https://docs.sailoog.com/openplotter-v1-x-x/
Sailing with free hardware | Sailoog
conachair is offline   Reply With Quote
Old 10-03-2019, 11:04   #32
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Re: Raspberry PI - Installing OpenCPN Version 5

Jean...
re OpenGL on rPI.


I have rPI 3, generic Noobs (stretch). I find OpenGL OK with FKMS driver, and 256 MB memory split. Not a screamer, but certainly no coffee between zooms.


My setup won't even boot with pure KMS GL driver.

Wonder what is different?


Dave
bdbcat is offline   Reply With Quote
Old 10-03-2019, 11:31   #33
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,101
Re: Raspberry PI - Installing OpenCPN Version 5

Quote:
Originally Posted by bdbcat View Post
Jean...
re OpenGL on rPI.

I have rPI 3, generic Noobs (stretch). I find OpenGL OK with FKMS driver, and 256 MB memory split. Not a screamer, but certainly no coffee between zooms.

My setup won't even boot with pure KMS GL driver.

Wonder what is different?


Dave

Here on my RPI3B+ with KMS GL driver on. Latest upgrades and with latest kernel 4.19.27 System runs very well and fast with the latest O 5 beta. Using the OpenPlotter image. Is Linux stretch.

The extra's switched on, like AP wifi acces point, SignalK server, VNC server also use memory.

Memory video standing on 64.

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 10-03-2019, 22:19   #34
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: Raspberry PI - Installing OpenCPN Version 5

Talking about OpenGL for OpenCPN on Rpi is a bit confusing.

There seems to be 3 different variations of OpenGL available to OpenCPN on the Rpi:

OpenGL On Presumably using the legacy driver.

Software OpenGL.

OpenGL On with experimental VC4 driver, either Fake or real KMS.

Some other points of confusion:

Memory Split: seems to only be relevant to the legacy driver. Eric Arnholt the author of the experimental VC4 driver says that it is not using the memory split. Seems that it uses CMA (continuous memory allocation) which is set to 256Mb on OpenPlotter. It seems that if using the experimental driver it might be beneficial to set the GPU memory to minimum (16Mb) to free up memory?

Screen Size: It might be useful if people mentioned the screen size they are using.

I've been playing with a Rpi3b+ on our boat for the last few months, and when it works it works very well. But, unfortunately there still seems to be a few problems.

I have a 1024*768 touchscreen monitor.
Rpi 3b+ with open plotter updated.
kernel updated to latest 4.19.XX
The network is configured as an Access-point and also sometimes shares an internet connection from a Ubiquity Bullet connected by Ethernet.
I have Sean's weather sensor connected by USB that feeds wind and Barometric data.
Vesper AIS currently connected by WiFi; has also been connected by USB.

I have tried all the options for OpenGL:

Non OpenGL worked well but often became unresponsive after a day of use.

Software OpenGL caused the idle CPU usage to go up and the temperature warning symbol to appear on the screen; I could not detect much if any performance improvement over nonGL.

The experimental driver with fake KMS seems to work the best, it is fast, has low CPU usage and seems to cause the least amount of hang-ups. Sometimes the screen freezes, but the rest of the system continues to work.
I occasionally see errors in dmesg something like "VC4 failed to allocate XXXXX bytes CMA buffer".

The system seems to like to fail at the worst times, there have been a few hang-ups just as we are entering a harbor after running all day without a hitch. I run a second OpenCPN setup on a Windows10 computer so I can instantly switch over; Never a hiccup on that system.

The AIS on the Rpi is not the same as on Windows, I do not see the CPA graphics on the Rpi.

I'd like to see this working, so any suggestions about how to help de-bug it would be appreciated.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 11-03-2019, 01:33   #35
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,101
Re: Raspberry PI - Installing OpenCPN Version 5

Quote:
Originally Posted by NahanniV View Post
Talking about OpenGL for OpenCPN on Rpi is a bit confusing.

There seems to be 3 different variations of OpenGL available to OpenCPN on the Rpi:

OpenGL On Presumably using the legacy driver.

Software OpenGL.

OpenGL On with experimental VC4 driver, either Fake or real KMS.

Some other points of confusion:

Memory Split: seems to only be relevant to the legacy driver. Eric Arnholt the author of the experimental VC4 driver says that it is not using the memory split. Seems that it uses CMA (continuous memory allocation) which is set to 256Mb on OpenPlotter. It seems that if using the experimental driver it might be beneficial to set the GPU memory to minimum (16Mb) to free up memory?

Screen Size: It might be useful if people mentioned the screen size they are using.

I've been playing with a Rpi3b+ on our boat for the last few months, and when it works it works very well. But, unfortunately there still seems to be a few problems.

I have a 1024*768 touchscreen monitor.
Rpi 3b+ with open plotter updated.
kernel updated to latest 4.19.XX
The network is configured as an Access-point and also sometimes shares an internet connection from a Ubiquity Bullet connected by Ethernet.
I have Sean's weather sensor connected by USB that feeds wind and Barometric data.
Vesper AIS currently connected by WiFi; has also been connected by USB.

I have tried all the options for OpenGL:

Non OpenGL worked well but often became unresponsive after a day of use.

Software OpenGL caused the idle CPU usage to go up and the temperature warning symbol to appear on the screen; I could not detect much if any performance improvement over nonGL.

The experimental driver with fake KMS seems to work the best, it is fast, has low CPU usage and seems to cause the least amount of hang-ups. Sometimes the screen freezes, but the rest of the system continues to work.
I occasionally see errors in dmesg something like "VC4 failed to allocate XXXXX bytes CMA buffer".

The system seems to like to fail at the worst times, there have been a few hang-ups just as we are entering a harbor after running all day without a hitch. I run a second OpenCPN setup on a Windows10 computer so I can instantly switch over; Never a hiccup on that system.

The AIS on the Rpi is not the same as on Windows, I do not see the CPA graphics on the Rpi.

I'd like to see this working, so any suggestions about how to help de-bug it would be appreciated.

Dear NV,

VC4 driver with OpenGL works very well here with the latest updates and kernel version. Processor loads are around 30%. Video memory on 64 or 80. No software OpenGL or fake driver.

Wifi and the Wireless Acces Point can both run at the same time. Simply be adding a Wifi usb dongle. Then you get Wlan0 and Wlan1.

VNC server used by other VNC client systems works OK.

You can use wireless the GPS/AIS data on another system with other navigation software or another OpenCPN version.

Then there is the SignalK server. It is work in progress but very promising.

Tried it here with a very small Usb-canbus board (US $ 29,-) connected to NMEA2000 connection. Now the system converts, via SignalK, NMEA2000 to NMEA183 for my OpenCPN. Now running NMEA2000 reception on OpenCPN. Is done by the SignalK/canboat software.

You have also available a multiplexer with Kplex.

All this is combined in one powersaving small system.

CPA graphics ? What is this ?


Very important is to have a good power supply. Onboard I have an stabilized isolated Powersupply set on 5.2 volt. Do not use these cheap sigaret ligther things.



I also have a touchscreen with Egalax driver. But the driver has to be added manualy.


Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 11-03-2019, 03:27   #36
Registered User
 
Ivanm's Avatar

Join Date: Jan 2015
Posts: 267
Re: Raspberry PI - Installing OpenCPN Version 5

Quote:
Originally Posted by geoffr View Post
I now have it working - what I did is below.

Pavel - Raspberry pi needs it done a bit differently as the add-apt-repository isn't supported (as I found with google etc).

Code:
sudo apt-get install software-properties-common
sudo apt-get install dirmngr

Edit /etc/apt/sources.list add:

deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ xenial main
deb http://ppa.launchpad.net/bdbcat/opencpn/ubuntu/ xenial main

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 67E4A52AC865EB40
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 284976FD7425C74D

sudo apt-get update

sudo apt-get install opencpn
Hope this helps others who stumble on this thread..

Geoff
ps. now onto actually testing OCPN4.99 on a Pi!
I get to the point Edit/ect/apt..... show permision denied
Ivanm is offline   Reply With Quote
Old 11-03-2019, 04:49   #37
Registered User

Join Date: Aug 2016
Posts: 149
Re: Raspberry PI - Installing OpenCPN Version 5

use "sudo", Ivanm!
BlackSea is offline   Reply With Quote
Old 11-03-2019, 05:01   #38
Registered User
 
Ivanm's Avatar

Join Date: Jan 2015
Posts: 267
Re: Raspberry PI - Installing OpenCPN Version 5

Quote:
Originally Posted by BlackSea View Post
use "sudo", Ivanm!
I did find it to work with sudo nano but now it show as in picture addedClick image for larger version

Name:	1552305667415.jpeg
Views:	145
Size:	89.3 KB
ID:	187759
Ivanm is offline   Reply With Quote
Old 11-03-2019, 05:31   #39
Registered User

Join Date: Aug 2016
Posts: 149
Re: Raspberry PI - Installing OpenCPN Version 5

your debian is "jessie"...old stable. Update your installation to "stretch" and try again... Or better make clean new installation
BlackSea is offline   Reply With Quote
Old 11-03-2019, 05:37   #40
Registered User
 
Ivanm's Avatar

Join Date: Jan 2015
Posts: 267
Re: Raspberry PI - Installing OpenCPN Version 5

Quote:
Originally Posted by Ivanm View Post
I did find it to work with sudo nano but now it show as in picture addedAttachment 187759
I am on Openplotter
Ivanm is offline   Reply With Quote
Old 11-03-2019, 05:52   #41
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: Raspberry PI - Installing OpenCPN Version 5

Quote:
Originally Posted by verkerkbr View Post
VC4 driver Video memory on 64 or 80. No software OpenGL or fake driver.
After you did : $sudo rpi-update, what do you see when you type $uname -r ?
On my system, even though the update seems to work correctly the kernal version is still reported as 4.14.98-v7+.
Have you ever tried reducing the video memory to 16Mb? I don't see any difference at 16Mb or 256Mb when using the new VC4 driver.
When I tried "real KMS" my monitor ended up blank after power-up.


Quote:
Originally Posted by verkerkbr View Post
CPA graphics ? What is this ?
AIS Closest Point of Approach.
On windows there is a line and dots drawn between predictor lines of two vessels in a crossing situation to show the closest point of approach.

Quote:
Originally Posted by verkerkbr View Post
Very important is to have a good power supply. Onboard I have an stabilized isolated Powersupply set on 5.2 volt. Do not use these cheap sigaret ligther things.
I have a YEECO 3A DC-DC converter (looks the same as CPT).
What brand do you have. What are it's specs ?

Quote:
Originally Posted by verkerkbr View Post
I also have a touchscreen with Egalax driver. But the driver has to be added manualy.
My USB touchscreen is also Egalax.
It is discovered by the kernal with no extra driver installed.
The only problem I have with it (other than some OpenCPN usability issues) is that it stops working if the monitor is turned off, which I do to save power.
Will the driver you have loaded re-connect after the monitor is power cycled ? How do I install that ?
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 11-03-2019, 05:55   #42
Registered User

Join Date: Aug 2016
Posts: 149
Re: Raspberry PI - Installing OpenCPN Version 5

@Ivanm

openplotter is based on debian/raspbian. your openplotter is very old. Upgrade your openplotter, only after that you can try to install O5
BlackSea is offline   Reply With Quote
Old 11-03-2019, 09:42   #43
Registered User
 
Ivanm's Avatar

Join Date: Jan 2015
Posts: 267
Re: Raspberry PI - Installing OpenCPN Version 5

Quote:
Originally Posted by BlackSea View Post
@Ivanm

openplotter is based on debian/raspbian. your openplotter is very old. Upgrade your openplotter, only after that you can try to install O5
Updated now there is no wifi conection how do I fix this
Ivanm is offline   Reply With Quote
Old 11-03-2019, 09:58   #44
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,101
Re: Raspberry PI - Installing OpenCPN Version 5

Quote:
Originally Posted by Ivanm View Post
Updated now there is no wifi conection how do I fix this

sudo systemtcl enable hostapd.service


If you like to use Wifi Access Point (AP) together with Wifi. Then add a usb wifi dongle. Then you have Wlan0 and Wlan1.


Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 11-03-2019, 10:10   #45
Registered User
 
Ivanm's Avatar

Join Date: Jan 2015
Posts: 267
Re: Raspberry PI - Installing OpenCPN Version 5

Quote:
Originally Posted by verkerkbr View Post
sudo systemtcl enable hostapd.service


If you like to use Wifi Access Point (AP) together with Wifi. Then add a usb wifi dongle. Then you have Wlan0 and Wlan1.


Regards,


Bram
Does not work for me any other way
Ivanm is offline   Reply With Quote
Reply

Tags
enc, 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
Installing opencpn on a Raspberry ph 3 Pokettuk OpenCPN 39 20-11-2017 05:58
Woes launching compiled version 4.8 on Raspberry Pi 3 rjoe OpenCPN 2 31-10-2017 03:40
Need Help Installing on Raspberry Pi wedivebc OpenCPN 5 04-07-2017 16:35
Problem installing openCPN 3. version amelia OpenCPN 4 30-01-2013 12:48
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 23:02.


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.