IMST Lite Gateway setup

No I’am changing it to 5 in the script, look on the first link.

You could actually try to reset the sx1301 with:

#! /bin/bash

# Reset iC880a PIN
SX1301_RESET_BCM_PIN=5
echo "$SX1301_RESET_BCM_PIN"  > /sys/class/gpio/export 
echo "out" > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/direction 
echo "0"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value 
sleep 0.1  
echo "1"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value 
sleep 0.1  
echo "0"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value
sleep 0.1
echo "$SX1301_RESET_BCM_PIN"  > /sys/class/gpio/unexport 

I see there are some minor differences compared to /etc/init.d/sx1301-reset (which is based on https://github.com/Lora-net/lora_gateway/blob/master/reset_lgw.sh).

after some research i find out that my spi sends only zeros, tommorrow I will try with different rpi.

to check spi working properly:

wget https://raw.githubusercontent.com/torvalds/linux/master/tools/spi/spidev_test.c

compile it:
gcc -o spidev_test spidev_test.c
and run it:
./spidev_test -D /dev/spidev0.0 -v