Skip to content

Illegal Instruction error on Pi Zero W #757

Description

@interfect

I'm trying to make a tiny SSB server out of a Pi Zero W, but some of the native libraries (I think) that ssb-server ships with don't actually seem to run on the Pi Zero's ARM v6 CPU:

pi@cipher:~ $ ssb-server start --logging.level=info
ssb-server 15.3.0 /home/pi/.ssb logging.level:info
my key ID: +wHIXfU3/VzcbarXf5128gOtWM9slqWnRow+lNXVtCQ=.ed25519
ssb-friends: stream legacy api used
Trace: deprecated api used: ssb-ref.parseAddress
    at Object.parseAddress (/usr/local/lib/node_modules/ssb-server/node_modules/ssb-ref/index.js:96:15)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ssb-server/node_modules/ssb-local/index.js:55:22)
    at Socket.emit (events.js:198:13)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ssb-server/node_modules/broadcast-stream/index.js:51:12)
    at Socket.emit (events.js:198:13)
    at UDP.onMessage [as onmessage] (dgram.js:628:8)
Illegal instruction
pi@cipher:~ $ cat /proc/cpuinfo
processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 997.08
Features	: half thumb fastmult vfp edsp java tls 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7

Hardware	: BCM2835
Revision	: 9000c1
Serial		: 000000000d3f1b0a
Model		: Raspberry Pi Zero W Rev 1.1

I'm using ssb-server@15.3.0 from sudo npm install -g ssb-server, and Node v10.24.0 from the Raspbian repos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions