kersing / packet_forwarder

Multi protocol packet forwarder supporting the TTN gateway-connector protocol.
Other
86 stars 56 forks source link

Makefile:74: *** [error] Can’t find configuration for SPI phy. Stop. #20

Closed win7viena closed 6 years ago

win7viena commented 6 years ago

failed on make command with this error:

make all -e -C mp_pkt_fwd
make[1]: Entering directory ‘/home/pi/pck_fwd/packet_forwarder/mp_pkt_fwd’
Makefile:74: *** [error] Can’t find configuration for SPI phy. Stop.
make[1]: Leaving directory ‘/home/pi/pck_fwd/packet_forwarder/mp_pkt_fwd’
Makefile:11: recipe for target ‘all’ failed
make: *** [all] Error 2
sorki commented 6 years ago

you need add some flags for make - CFG_SPI=native and possibly LGW_PATH=/path/to/libloragw/. You can add these to mp_pkt_fwd/Makefile as well

kersing commented 6 years ago

You need to take a look at the build script for the RPi. That gets all dependencies and puts them in the right place. It modifies the required configuration files as well.