Closed jan94 closed 3 years ago
When I try to start the binary I get an illegal instruction.. pi@raspberrypi:/usr/lib/systemd/system$ /usr/bin/pisugar-server --config config.json --model 'PiSugar 2 (2-LEDs)' --web /usr/share/pisugar-server/web --http 0.0.0.0:8421 --ws 0.0.0.0: Illegal instruction
Cross Compiling under Ubuntu produced an ARM V7 binary...
I want to run my PiSugar2 on a software emulated i2c bus (number 2), but the pisugar server does not connect. I tried to change the Rust code to use 'with_bus(2)' instead if 'new()' and compiled it under linux. But on the Raspberry Pi Zero W the systemd service constantly fails to start up:
pi@raspberrypi:/etc/pisugar-server$ sudo systemctl status pisugar-server.service pisugar-server.service - pisugar-server Loaded: loaded (/lib/systemd/system/pisugar-server.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: signal) since Tue 2021-06-15 15:34:41 UTC; 6s ago Process: 3902 ExecStart=/usr/bin/pisugar-server $OPTS (code=killed, signal=ILL) Process: 3903 ExecStopPost=/bin/rm -f /tmp/pisugar-server.sock (code=exited, status=0/SUCCESS) Main PID: 3902 (code=killed, signal=ILL)
Btw.: I can see the Pisugar2 using i2cdetect -y 2 ...