This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Signal K doesn't start on pi zero
#1
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
Reply
#2
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
Reply
#3
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
________________________________________

Blog; https://pysselilivet.blogspot.com/
Reply
#4
(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
Reply
#5
(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]
Reply
#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
Reply
#7
(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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)