Posts: 5
Threads: 2
Joined: Jun 2018
Reputation:
0
Hi,
first of all thanks to everybody for spending time and efforts for this wonderful project. I've been using openplotter 1 on a pi3 together with the original 7'' screen as main navigation system for the last years. Together with the option to have cheap oesenc charts, openplotter+opencpn+raspberry is for me an extremely effective system.
Project for this winter is to add my Raymarine instruments/seatalk using the GPIO app new in openplotter 2. I updated therefore to openplotter 2 and installed the GPIO app: On the pi3, everything seems ok. Doing the same procedure for the pi zero which I plan to connect to the seatalk bus, I have the problem that I cannot connect to signalk: After boot, there's no signalk. Starting signalk then through the terminal with
gives as answer "Illegal instruction". Reinstalling signalk doesn't help.
Thanks for any suggestions! Michael
Posts: 1,241
Threads: 103
Joined: Mar 2016
Reputation:
73
Not sure openplotter will run on a Pi zero?
But..... splash out on a Pi zero 2 - loads faster and still very low power draw. I had a zero running for a while running headless with just the raspberry pi software, no openplotter and installed signalk which worked but it was running maxed out at 100% most of the time. You could try just installing signalk if you want to persevere with the zero you have, might be OK without influx database & app running -
https://github.com/SignalK/signalk-serve...llation.md
Posts: 118
Threads: 13
Joined: May 2017
Reputation:
7
Hi ! As Paddy indicates I think its wise to just install Signal K manually without OpenPlotter. Instructions here https://github.com/SignalK/signalk-serve...llation.md
But please note that Nodejs can NOT be installed via "apt". I wrote some hints at the end of this post https://pysselilivet.blogspot.com/2021/0...berry.html that maybe helps ?
/Mats
Posts: 5
Threads: 2
Joined: Jun 2018
Reputation:
0
2021-11-14, 08:20 PM
(This post was last modified: 2021-11-14, 08:22 PM by mika.)
(2021-11-12, 05:16 PM)PaddyB Wrote: Not sure openplotter will run on a Pi zero?
But..... splash out on a Pi zero 2 - loads faster and still very low power draw. I had a zero running for a while running headless with just the raspberry pi software, no openplotter and installed signalk which worked but it was running maxed out at 100% most of the time. You could try just installing signalk if you want to persevere with the zero you have, might be OK without influx database & app running -
https://github.com/SignalK/signalk-serve...llation.md
hhmm, I naively thought that a slower CPU just means slower command execution... or are the 512k RAM the problem? But then a pi zero 2 would have the same problem.
Michael
(2021-11-13, 06:56 PM)MatsA Wrote: Hi ! As Paddy indicates I think its wise to just install Signal K manually without OpenPlotter. Instructions here https://github.com/SignalK/signalk-serve...llation.md
But please note that Nodejs can NOT be installed via "apt". I wrote some hints at the end of this post https://pysselilivet.blogspot.com/2021/0...berry.html that maybe helps ?
/Mats
thanks both for the suggestion -- I'll try to follow your hint...
Best, Michael
Posts: 1,241
Threads: 103
Joined: Mar 2016
Reputation:
73
2021-11-15, 10:34 AM
(This post was last modified: 2021-11-15, 10:48 AM by PaddyB.)
(2021-11-14, 08:20 PM)mika Wrote: hhmm, I naively thought that a slower CPU just means slower command execution... or are the 512k RAM the problem? But then a pi zero 2 would have the same problem.
Michael
The Zero 2 is a Pi3 chip with 4 cores so quite a bit faster.
Power is much lower than a Pi2 though _
meter is showing mA
Pi2 -
Pi zero_
Pi zero 2-
Posts: 75
Threads: 3
Joined: Jan 2018
Reputation:
6
Pi Zero ( not pi zero 2) hast "old" CPU, that supports only arm6 instructions. Nodejs packages from nodesource.com are optimized for >= arm7 instructions. For Signalk on Zero you need packages from Debian
Code: pi@pi0:~ $ uname -m
armv6l
pi@pi0:~ $ dpkg --get-selections | grep nodejs
nodejs install
pi@pi0:~ $ sudo apt info nodejs
Package: nodejs
Version: 10.24.0~dfsg-1~deb10u1
Priority: optional
Section: javascript
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Installed-Size: 153 kB
Depends: libatomic1 (>= 4.8), libbrotli1 (>= 0.6.0), libc-ares2 (>= 1.7.0), libc6 (>= 2.4), libgcc1 (>= 1:3.0), libicu63 (>= 63.1-1~), libnode64 (= 10.24.0~dfsg-1~deb10u1), libssl1.1 (>= 1.1.0), libstdc++6 (>= 4.1.1), libuv1 (>= 1.20.0~), zlib1g (>= 1:1.1.4)
Recommends: ca-certificates, nodejs-doc
Suggests: npm
Conflicts: nodejs-legacy
Replaces: nodejs-legacy
Homepage: http://nodejs.org/
Download-Size: 87.2 kB
APT-Manual-Installed: yes
APT-Sources: http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
Description: evented I/O for V8 javascript - runtime executable
Node.js is a platform built on Chrome's JavaScript runtime for easily
building fast, scalable network applications. Node.js uses an
event-driven, non-blocking I/O model that makes it lightweight and
efficient, perfect for data-intensive real-time applications that run
across distributed devices.
.
Node.js is bundled with several useful libraries to handle server
tasks:
.
System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings
Posts: 5
Threads: 2
Joined: Jun 2018
Reputation:
0
(2021-11-16, 06:13 PM)BlackSea Wrote: Pi Zero ( not pi zero 2) hast "old" CPU, that supports only arm6 instructions. Nodejs packages from nodesource.com are optimized for >= arm7 instructions. For Signalk on Zero you need packages from Debian
thanks! The smaller instruction set explains the failure... and now I understand also why it should work with the pi zero 2.
Best, Michael
|