OpenMarine
Signal K doesn't start on pi zero - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: Signal K doesn't start on pi zero (/showthread.php?tid=3767)



Signal K doesn't start on pi zero - mika - 2021-11-12

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

Code:
signalk-server run

gives as answer "Illegal instruction". Reinstalling signalk doesn't help.

Thanks for any suggestions! Michael


RE: Signal K doesn't start on pi zero - PaddyB - 2021-11-12

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-server/blob/master/raspberry_pi_installation.md


RE: Signal K doesn't start on pi zero - MatsA - 2021-11-13

Hi ! As Paddy indicates I think its wise to just install Signal K manually without OpenPlotter. Instructions here https://github.com/SignalK/signalk-server/blob/master/raspberry_pi_installation.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/02/victron-vedirect-with-raspberry.html that maybe helps ? 

/Mats


RE: Signal K doesn't start on pi zero - mika - 2021-11-14

(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-server/blob/master/raspberry_pi_installation.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-server/blob/master/raspberry_pi_installation.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/02/victron-vedirect-with-raspberry.html that maybe helps ? 

/Mats

thanks both for the suggestion --  I'll try to follow your hint...

Best, Michael


RE: Signal K doesn't start on pi zero - PaddyB - 2021-11-15

(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.

[Image: Qpj3Ghn.png]

Power is much lower than a Pi2 though _
meter is showing mA
Pi2 -
[Image: A6JF2RQ.jpg]

Pi zero_
[Image: GEX0v2T.jpg]

Pi zero 2-
[Image: qAguwEc.jpg]


RE: Signal K doesn't start on pi zero - BlackSea - 2021-11-16

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



RE: Signal K doesn't start on pi zero - mika - 2021-11-17

(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