Closed mindforger closed 5 years ago
pi@raspberrypi:~ $ sudo systemctl status ledspi.service ● ledspi.service - LedSPI UDP Receiver Loaded: loaded (/home/pi/led/ledSPI/ledspi.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2019-01-15 07:08:59 GMT; 24s ago Process: 241 ExecStart=/home/pi/led/ledSPI/run-ledspi (code=exited, status=134) Main PID: 241 (code=exited, status=134) Jan 15 07:08:58 raspberrypi run-ledspi[241]: modprobe: FATAL: Module uio_pruss not found in directory /lib/modules/4.14.79+ Jan 15 07:08:58 raspberrypi run-ledspi[241]: [main] Starting server on ports (tcp=7890, udp=7890) for 43 pixels on 1 strips Jan 15 07:08:58 raspberrypi run-ledspi[241]: Allocating buffers for 43 pixels (1032 bytes) Jan 15 07:08:58 raspberrypi run-ledspi[241]: can't set spi mode: Bad file descriptor Jan 15 07:08:58 raspberrypi run-ledspi[241]: [main] Demo Mode Enabled Jan 15 07:08:58 raspberrypi run-ledspi[241]: [main] Initializing / Updating server...frame_size1=43 Jan 15 07:08:58 raspberrypi run-ledspi[241]: [main] Connecting SPI...Aborted Jan 15 07:08:59 raspberrypi systemd[1]: ledspi.service: Main process exited, code=exited, status=134/n/a Jan 15 07:08:59 raspberrypi systemd[1]: ledspi.service: Unit entered failed state. Jan 15 07:08:59 raspberrypi systemd[1]: ledspi.service: Failed with result 'exit-code'. pi@raspberrypi:~ $ date Di 15. Jan 07:09:24 GMT 2019 pi@raspberrypi:~ $
did try several ideas, like a .timer with error "Connecting SPI...Abort" but i am a linux noob in that case
FIXED
just added
Type=idle
inside the [SERVICE] section
did try several ideas, like a .timer with error "Connecting SPI...Abort" but i am a linux noob in that case