Raspberry Pi 2 3
Raspberry Pi 2 3
Raspberry Pi 2/3
2020/12/06
Important Note.
This is about Raspberry 3, which runs the armhf architecture. See Raspberry Pie 4 for 64-bit build
environments on RPi-4
Installing Raspbian
OpenCPN works on Raspberry Pi 2, 3 and 4 models. You can install OpenCPN adding an Ubuntu PPA
(Personal Packages Archives) to your system's Software Sources. We will see how to do this but first of all
you need to have a running system.
Raspbian is the official Operating System for Raspberry Pi. You have two options to install Raspbian on an
SD card: with NOOBS (New Out Of Box Software) or installing an SD image directly. We recommend
NOOBS.
If you feel lazy you can try OpenPlotter, a complete marine Operating System for Raspberry Pi with
OpenCPN + plugins installed and amazing extra tools ready to use. OpenPlotter can be installed with
NOOBS following this guide:
https://sailoog.gitbooks.io/openplotter-documentation/content/en/getting_started.html
See
http://www.cruisersforum.com/forums/f134/opencpn-version-4-8-4-released-200246-2.html#post2627925
and the later posts from bdbcat and CaptRon. How do I fix the GPG error “NO_PUBKEY”? Apt-key is
deprecated, see gpg: keyserver receive failed: No dirmngr and GPG error: http://ppa.launchpad.net
precise Release: The following signatures couldn't be verified because the public key is not available
Once you have Raspbian running on Raspberry Pi, go to Menu → Accessories → Terminal, and type:
A text editor will open. Move the cursor to the end and add this line and add a record for PPA repository
compatible with your Rasbbian release. If you are on Raspbian Stretch, the compatible Ubuntu release is
Xenial, for Raspbian Buster it is Bionic. The exactl record to add can be obtained from the Technical
details section of
Save the file pressing Ctrl X, say Yes and press enter. Now type:
(A certificate management service, needed for the next command) Then type
and press enter. Now be sure you have Internet connection and type:
The Software sources will be updated and finally you will have to type:
See
https://www.cruisersforum.com/forums/f134/rpi-hat-what-interface-for-gnss-244280.html#post3307322
For direct implementation with OpenCPN the easiest path is NMEA 0183, this is supported natively and
directly by OpenCPN - no other decoding software widget would be required. O recognizes serial ports on
the host directly - this is built-in functionality. On the NEO 8 NMEA is available on both the UART and USB
interfaces:
UART
9600 baud, 8 bits, no parity bit, 1 stop bit. Configured to transmit both NMEA and UBX protocols, but only
the following NMEA (and no UBX) messages have been activated at start-up: GGA, GLL, GSA, GSV, RMC,
VTG, TXT
USB
Configured to transmit both NMEA and UBX protocols, but only the following NMEA (and no UBX)
messages have been activated at start-up: GGA, GLL, GSA, GSV, RMC, VTG, TXT USB power mode: bus-
powered On Linux OpenCPN should be able to access either port with built-in drivers, not much difference
and not much configuration required, so whichever is easier to implement in the hat.
If, for some reason, you want to use SPI/DDC you could use the OpenPlotter installation to add some I2C
support or write your own code, but that is a more difficult path for the stated purpose of integration with
O (but there may be other reasons depending on alternate uses for your project).
Installing plugins
To install or update plugins, use the Plugin-Manager of openCPN. Go to Options → Plugins and update the
Plugin Catalog: Master. Scroll the plugin list to find the plugin you want to install or update. A green up
arrow indicates that there is an update available. Select the the plugin and install or update it. Finally,
enable the plugin.
Advanced
SD Cards
It is suggested to use 'High Endurance' microSDHC cards. Google 'Wear Level' on SD cards to discover
more information.
OpenGL acceleration
The latest version of Raspbian based on Debian Buster has OpenGL enabled by default if you are running
it on a Raspberry 4.
https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:developer_manual:developer_guide:compiling_li
nux:rpi2
Change the chart directories from ONE top-level choice to many. For the US ENC's, I did this based
on the CG districts.
Set up chart groups. I ended up with “US East Coast”, “US West Coast”, etc, a total of about 10
groups for the charts I have. This had the single largest effect!
Turn on OpenGL. Also a large effect.
Move Raspbian from an SD card to an SSD. It is plugged in to one of the USB 3.1 ports on the Pi.
From:
https://opencpn.org/wiki/dokuwiki/ - OpenCPN Manuals
Permanent link:
https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:getting_started:opencpn_installation:raspberrypi_rpi2