Cannot get RAK7391 working with RAK5146 and basics/anything

Well this has been a frustrating journey thus far…

I have the machine up and running rakpios. I had to re flash it to get access.

Next I have installed via rakpio-cli the BasicsStation but it refuses to “see” the SPI/RAK5146

I have tried every combination I can think of get the two to talk but nothing… I even downloaded the SX1302 test suite and get the same message:-

2023-06-14 23:48:38.423 [S00:INFO] Station device: spi:/dev/spidev0.0 (PPS capture enabled)
2023-06-14 23:48:38.424 [S00:INFO] [lgw_com_open:84] Opening SPI communication interface
2023-06-14 23:48:38.424 [S00:INFO] [lgw_spi_open:88] Setting SPI speed to 8000000
2023-06-14 23:48:38.424 [S00:INFO] [lgw_connect:1192] chip version is 0x00 (v0.0)
2023-06-14 23:48:40.025 [S00:ERRO] [lgw_start:908] failed to setup radio 0
2023-06-14 23:48:40.025 [S00:ERRO] Concentrator start failed: lgw_start
2023-06-14 23:48:40.025 [S00:CRIT] Slave radio start up failed with status 0x08
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
2023-06-14 23:48:40.019 [RAL:ERRO] Slave (0) - EOF
2023-06-14 23:48:40.019 [any:CRIT] Slave pid=32 idx=0: Fatal exit

I have tried swapping out with the RAK5146 with a spare I happen to have and still the same results!

Is this someting to do with special GPIO options ??

Help/Documentation welcome!

Colin

Full logs from docker

rak@rakpios:~/.config/rakpios-cli $ docker logs -f 81ce660b011a
------------------------------------------------------------------
Protocol
------------------------------------------------------------------
Mode:          DYNAMIC
Protocol:      LNS
LNS Server:    wss://nam1.cloud.thethings.network:8887
Main NIC:      eth0
Gateway EUI:   D83ADDFFFE05A3E4
------------------------------------------------------------------
Radio
------------------------------------------------------------------
Model:         RAK5146
Concentrator:  SX1303
Design:        CORECELL
Radio Device:  /dev/spidev0.0
Interface:     SPI
SPI Speed:     8000000
Reset GPIO:    17
Enable GPIO:   0
------------------------------------------------------------------
2023-06-14 23:48:32.252 [SYS:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
2023-06-14 23:48:32.252 [SYS:INFO] Station Ver : 2.0.6(corecell/stdn) 2023-02-17 17:37:12
2023-06-14 23:48:32.252 [SYS:INFO] Package Ver : (null)
2023-06-14 23:48:32.252 [SYS:INFO] mbedTLS Ver : 2.28.0
2023-06-14 23:48:32.252 [SYS:INFO] proto EUI   : d83a:ddff:fe05:a3e4    (station.conf)
2023-06-14 23:48:32.252 [SYS:INFO] prefix EUI  : ::1    (builtin)
2023-06-14 23:48:32.252 [SYS:INFO] Station EUI : d83a:ddff:fe05:a3e4
2023-06-14 23:48:32.252 [SYS:INFO] Station home: ./     (builtin)
2023-06-14 23:48:32.252 [SYS:INFO] Station temp: /var/tmp/      (builtin)
2023-06-14 23:48:32.252 [SYS:WARN] Station in NO-CUPS mode
2023-06-14 23:48:32.254 [RAL:DEBU] execvp argv[0]: </proc/self/exe>
2023-06-14 23:48:32.254 [RAL:DEBU]        argv[1]: <-S>
2023-06-14 23:48:32.254 [RAL:DEBU]        argv[2]: <(null)>
2023-06-14 23:48:32.257 [S00:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
2023-06-14 23:48:32.257 [S00:INFO] Station Ver : 2.0.6(corecell/stdn) 2023-02-17 17:37:12
2023-06-14 23:48:32.258 [S00:INFO] Package Ver : (null)
2023-06-14 23:48:32.258 [S00:INFO] mbedTLS Ver : 2.28.0
2023-06-14 23:48:32.258 [S00:INFO] proto EUI   : d83a:ddff:fe05:a3e4    (station.conf)
2023-06-14 23:48:32.258 [S00:INFO] prefix EUI  : ::1    (builtin)
2023-06-14 23:48:32.258 [S00:INFO] Station EUI : d83a:ddff:fe05:a3e4
2023-06-14 23:48:32.258 [S00:INFO] Station home: ./     (builtin)
2023-06-14 23:48:32.258 [S00:INFO] Station temp: /var/tmp/      (builtin)
2023-06-14 23:48:32.259 [S00:INFO] Station slave: 0
2023-06-14 23:48:32.259 [S00:WARN] Station in NO-CUPS mode
2023-06-14 23:48:32.259 [S00:INFO] Slave LGW (0) - started.
2023-06-14 23:48:32.254 [RAL:INFO] Master has started slave: pid=40 idx=0 (attempt 1)
2023-06-14 23:48:32.454 [TCE:INFO] Starting TC engine
2023-06-14 23:48:32.515 [AIO:INFO] ./tc.trust:
cert. version     : 3
serial number     : 04:00:00:00:00:01:15:4B:5A:C3:94
issuer name       : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
subject name      : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
issued  on        : 1998-09-01 12:00:00
expires on        : 2028-01-28 12:00:00
signed using      : RSA with SHA1
RSA key size      : 2048 bits
basic constraints : CA=true
key usage         : Key Cert Sign, CRL Sign
2023-06-14 23:48:32.515 [TCE:INFO] Connecting to INFOS: wss://nam1.cloud.thethings.network:8887
2023-06-14 23:48:33.203 [TCE:INFO] Infos: d83a:ddff:fe05:a3e4 muxs-::0 wss://nam1.cloud.thethings.network:8887/traffic/eui-D83ADDFFFE05A3E4
2023-06-14 23:48:33.203 [AIO:DEBU] [4] ws_close reason=1000
2023-06-14 23:48:33.203 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
2023-06-14 23:48:33.203 [AIO:DEBU] [4] WS connection shutdown...
2023-06-14 23:48:33.261 [AIO:INFO] ./tc.trust:
cert. version     : 3
serial number     : 04:00:00:00:00:01:15:4B:5A:C3:94
issuer name       : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
subject name      : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
issued  on        : 1998-09-01 12:00:00
expires on        : 2028-01-28 12:00:00
signed using      : RSA with SHA1
RSA key size      : 2048 bits
basic constraints : CA=true
key usage         : Key Cert Sign, CRL Sign
2023-06-14 23:48:33.261 [TCE:VERB] Connecting to MUXS...
2023-06-14 23:48:34.168 [S00:VERB] ./reset.sh: Forked, waiting...
2023-06-14 23:48:34.168 [S00:DEBU] execvp argv[0]: <./reset.sh>
2023-06-14 23:48:34.168 [S00:DEBU]        argv[1]: </dev/spidev0.0>
2023-06-14 23:48:34.169 [S00:DEBU]        argv[2]: <0>
Concentrator reset through GPIO17 (using sysfs)
2023-06-14 23:48:34.091 [TCE:VERB] Connected to MUXS.
2023-06-14 23:48:34.164 [RAL:INFO] Region plan hwspec 'sx1301/1' mapped to 1 slaves 'sx1301/1'
2023-06-14 23:48:34.164 [RAL:INFO] Master sending 645 bytes of JSON sx1301conf to slave (0)
2023-06-14 23:48:34.165 [S2E:INFO] Configuring for region: US915 -- 923.0MHz..928.0MHz
2023-06-14 23:48:34.165 [S2E:INFO]   DR0  SF10/BW125
2023-06-14 23:48:34.165 [S2E:INFO]   DR1  SF9/BW125
2023-06-14 23:48:34.165 [S2E:INFO]   DR2  SF8/BW125
2023-06-14 23:48:34.165 [S2E:INFO]   DR3  SF7/BW125
2023-06-14 23:48:34.165 [S2E:INFO]   DR4  SF8/BW500
2023-06-14 23:48:34.165 [S2E:INFO]   DR5  FSK
2023-06-14 23:48:34.165 [S2E:INFO]   DR6  FSK
2023-06-14 23:48:34.165 [S2E:INFO]   DR7  FSK
2023-06-14 23:48:34.165 [S2E:INFO]   DR8  SF12/BW500
2023-06-14 23:48:34.165 [S2E:INFO]   DR9  SF11/BW500
2023-06-14 23:48:34.165 [S2E:INFO]   DR10 SF10/BW500
2023-06-14 23:48:34.165 [S2E:INFO]   DR11 SF9/BW500
2023-06-14 23:48:34.165 [S2E:INFO]   DR12 SF8/BW500
2023-06-14 23:48:34.165 [S2E:INFO]   DR13 SF7/BW500
2023-06-14 23:48:34.165 [S2E:INFO]   DR14 FSK
2023-06-14 23:48:34.165 [S2E:INFO]   DR15 FSK
2023-06-14 23:48:34.165 [S2E:INFO]   TX power: 26.0 dBm EIRP
2023-06-14 23:48:34.165 [S2E:INFO]   JoinEui list: 0 entries
2023-06-14 23:48:34.165 [S2E:INFO]   NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
2023-06-14 23:48:34.165 [S2E:INFO]   Dev/test settings: nocca=1 nodc=1 nodwell=1
2023-06-14 23:48:34.165 [S2E:INFO] Beaconing every 2m8s on 923.3MHz(8) @ DR8 (frame layout 5/11/23)
2023-06-14 23:48:34.165 [S2E:INFO] Beaconing suspend - missing GPS data: time
2023-06-14 23:48:34.255 [S00:INFO] Process ./reset.sh (pid=51) completed
2023-06-14 23:48:34.255 [S00:INFO] Lora gateway library version: Version: 2.1.0;
2023-06-14 23:48:34.256 [S00:INFO] [LGW sx1302] full_duplex=0 clksrc=0 lorawan_public=1
2023-06-14 23:48:34.256 [S00:DEBU] SX130x txlut table (16 entries)
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  0:  rf_power=12 pa_gain=0 pwr_idx=15
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  1:  rf_power=13 pa_gain=0 pwr_idx=16
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  2:  rf_power=14 pa_gain=0 pwr_idx=17
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  3:  rf_power=15 pa_gain=0 pwr_idx=19
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  4:  rf_power=16 pa_gain=0 pwr_idx=20
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  5:  rf_power=17 pa_gain=0 pwr_idx=22
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  6:  rf_power=18 pa_gain=1 pwr_idx=1
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  7:  rf_power=19 pa_gain=1 pwr_idx=2
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  8:  rf_power=20 pa_gain=1 pwr_idx=3
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut  9:  rf_power=21 pa_gain=1 pwr_idx=4
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut 10:  rf_power=22 pa_gain=1 pwr_idx=5
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut 11:  rf_power=23 pa_gain=1 pwr_idx=6
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut 12:  rf_power=24 pa_gain=1 pwr_idx=7
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut 13:  rf_power=25 pa_gain=1 pwr_idx=9
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut 14:  rf_power=26 pa_gain=1 pwr_idx=11
2023-06-14 23:48:34.256 [S00:INFO] SX1302 txlut 15:  rf_power=27 pa_gain=1 pwr_idx=14
2023-06-14 23:48:34.256 [S00:INFO]  RX/TX RF0:    904.3MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
2023-06-14 23:48:34.256 [S00:INFO]  RX    RF1:    905.0MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
2023-06-14 23:48:34.256 [S00:INFO]  [mSF]   0:    903.9MHz rf=0 freq=-400.0 datarate=0
2023-06-14 23:48:34.256 [S00:INFO]  [mSF]   1:    904.1MHz rf=0 freq=-200.0 datarate=0
2023-06-14 23:48:34.256 [S00:INFO]  [mSF]   2:    904.3MHz rf=0 freq=  +0.0 datarate=0
2023-06-14 23:48:34.256 [S00:INFO]  [mSF]   3:    904.5MHz rf=0 freq=+200.0 datarate=0
2023-06-14 23:48:34.256 [S00:INFO]  [mSF]   4:    904.7MHz rf=1 freq=-300.0 datarate=0
2023-06-14 23:48:34.256 [S00:INFO]  [mSF]   5:    904.9MHz rf=1 freq=-100.0 datarate=0
2023-06-14 23:48:34.257 [S00:INFO]  [mSF]   6:    905.1MHz rf=1 freq=+100.0 datarate=0
2023-06-14 23:48:34.257 [S00:INFO]  [mSF]   7:    905.3MHz rf=1 freq=+300.0 datarate=0
2023-06-14 23:48:34.257 [S00:INFO]  [STD]   8:    904.6MHz rf=0 freq=+300.0 datarate=8 bw=6 Explicit header
2023-06-14 23:48:34.257 [S00:INFO]  channel 9 disabled
2023-06-14 23:48:34.257 [S00:INFO] Station device: spi:/dev/spidev0.0 (PPS capture enabled)
2023-06-14 23:48:34.257 [S00:INFO] [lgw_com_open:84] Opening SPI communication interface
2023-06-14 23:48:34.257 [S00:INFO] [lgw_spi_open:88] Setting SPI speed to 8000000
2023-06-14 23:48:34.257 [S00:INFO] [lgw_connect:1192] chip version is 0x00 (v0.0)
2023-06-14 23:48:35.860 [S00:ERRO] [lgw_start:908] failed to setup radio 0
2023-06-14 23:48:35.860 [S00:ERRO] Concentrator start failed: lgw_start
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
2023-06-14 23:48:35.860 [S00:CRIT] Slave radio start up failed with status 0x08
2023-06-14 23:48:35.857 [RAL:ERRO] Slave (0) - EOF
2023-06-14 23:48:35.857 [any:CRIT] Slave pid=40 idx=0: Fatal exit
------------------------------------------------------------------
Protocol
------------------------------------------------------------------
Mode:          STATIC
Protocol:      LNS
LNS Server:    wss://nam1.cloud.thethings.network:8887
Main NIC:      eth0
Gateway EUI:   D83ADDFFFE05A3E4
------------------------------------------------------------------
Radio
------------------------------------------------------------------
Model:         RAK5146
Concentrator:  SX1303
Design:        CORECELL
Radio Device:  spi:/dev/spidev0.0
Interface:     SPI
SPI Speed:     8000000
Reset GPIO:    17
Enable GPIO:   0
------------------------------------------------------------------
Killing process 38
2023-06-14 23:48:36.635 [SYS:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
2023-06-14 23:48:36.635 [SYS:INFO] Station Ver : 2.0.6(corecell/stdn) 2023-02-17 17:37:12
2023-06-14 23:48:36.635 [SYS:INFO] Package Ver : (null)
2023-06-14 23:48:36.635 [SYS:INFO] mbedTLS Ver : 2.28.0
2023-06-14 23:48:36.635 [SYS:INFO] proto EUI   : d83a:ddff:fe05:a3e4    (station.conf)
2023-06-14 23:48:36.635 [SYS:INFO] prefix EUI  : ::1    (builtin)
2023-06-14 23:48:36.635 [SYS:INFO] Station EUI : d83a:ddff:fe05:a3e4
2023-06-14 23:48:36.635 [SYS:INFO] Station home: ./     (builtin)
2023-06-14 23:48:36.635 [SYS:INFO] Station temp: /var/tmp/      (builtin)
2023-06-14 23:48:36.635 [SYS:WARN] Station in NO-CUPS mode
2023-06-14 23:48:36.637 [RAL:DEBU] execvp argv[0]: </proc/self/exe>
2023-06-14 23:48:36.637 [RAL:DEBU]        argv[1]: <-S>
2023-06-14 23:48:36.637 [RAL:DEBU]        argv[2]: <(null)>
2023-06-14 23:48:36.640 [S00:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
2023-06-14 23:48:36.640 [S00:INFO] Station Ver : 2.0.6(corecell/stdn) 2023-02-17 17:37:12
2023-06-14 23:48:36.640 [S00:INFO] Package Ver : (null)
2023-06-14 23:48:36.640 [S00:INFO] mbedTLS Ver : 2.28.0
2023-06-14 23:48:36.640 [S00:INFO] proto EUI   : d83a:ddff:fe05:a3e4    (station.conf)
2023-06-14 23:48:36.640 [S00:INFO] prefix EUI  : ::1    (builtin)
2023-06-14 23:48:36.640 [S00:INFO] Station EUI : d83a:ddff:fe05:a3e4
2023-06-14 23:48:36.640 [S00:INFO] Station home: ./     (builtin)
2023-06-14 23:48:36.640 [S00:INFO] Station temp: /var/tmp/      (builtin)
2023-06-14 23:48:36.640 [S00:INFO] Station slave: 0
2023-06-14 23:48:36.641 [S00:WARN] Station in NO-CUPS mode
2023-06-14 23:48:36.641 [S00:INFO] Slave LGW (0) - started.
2023-06-14 23:48:36.637 [RAL:INFO] Master has started slave: pid=32 idx=0 (attempt 1)
2023-06-14 23:48:36.836 [TCE:INFO] Starting TC engine
2023-06-14 23:48:36.894 [AIO:INFO] ./tc.trust:
cert. version     : 3
serial number     : 04:00:00:00:00:01:15:4B:5A:C3:94
issuer name       : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
subject name      : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
issued  on        : 1998-09-01 12:00:00
expires on        : 2028-01-28 12:00:00
signed using      : RSA with SHA1
RSA key size      : 2048 bits
basic constraints : CA=true
key usage         : Key Cert Sign, CRL Sign
2023-06-14 23:48:36.895 [TCE:INFO] Connecting to INFOS: wss://nam1.cloud.thethings.network:8887
2023-06-14 23:48:37.496 [TCE:INFO] Infos: d83a:ddff:fe05:a3e4 muxs-::0 wss://nam1.cloud.thethings.network:8887/traffic/eui-D83ADDFFFE05A3E4
2023-06-14 23:48:37.496 [AIO:DEBU] [4] ws_close reason=1000
2023-06-14 23:48:37.496 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
2023-06-14 23:48:37.496 [AIO:DEBU] [4] WS connection shutdown...
2023-06-14 23:48:37.553 [AIO:INFO] ./tc.trust:
cert. version     : 3
serial number     : 04:00:00:00:00:01:15:4B:5A:C3:94
issuer name       : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
subject name      : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
issued  on        : 1998-09-01 12:00:00
expires on        : 2028-01-28 12:00:00
signed using      : RSA with SHA1
RSA key size      : 2048 bits
basic constraints : CA=true
key usage         : Key Cert Sign, CRL Sign
2023-06-14 23:48:37.553 [TCE:VERB] Connecting to MUXS...
2023-06-14 23:48:38.333 [S00:VERB] ./reset.sh: Forked, waiting...
2023-06-14 23:48:38.333 [S00:DEBU] execvp argv[0]: <./reset.sh>
2023-06-14 23:48:38.333 [S00:DEBU]        argv[1]: </dev/spidev0.0>
2023-06-14 23:48:38.333 [S00:DEBU]        argv[2]: <0>
Concentrator reset through GPIO17 (using sysfs)
2023-06-14 23:48:38.288 [TCE:VERB] Connected to MUXS.
2023-06-14 23:48:38.325 [RAL:INFO] Region plan hwspec 'sx1301/1' mapped to 1 slaves 'sx1301/1'
2023-06-14 23:48:38.325 [RAL:INFO] Master sending 645 bytes of JSON sx1301conf to slave (0)
2023-06-14 23:48:38.325 [S2E:INFO] Configuring for region: US915 -- 923.0MHz..928.0MHz
2023-06-14 23:48:38.325 [S2E:INFO]   DR0  SF10/BW125
2023-06-14 23:48:38.325 [S2E:INFO]   DR1  SF9/BW125
2023-06-14 23:48:38.325 [S2E:INFO]   DR2  SF8/BW125
2023-06-14 23:48:38.325 [S2E:INFO]   DR3  SF7/BW125
2023-06-14 23:48:38.325 [S2E:INFO]   DR4  SF8/BW500
2023-06-14 23:48:38.325 [S2E:INFO]   DR5  FSK
2023-06-14 23:48:38.325 [S2E:INFO]   DR6  FSK
2023-06-14 23:48:38.325 [S2E:INFO]   DR7  FSK
2023-06-14 23:48:38.325 [S2E:INFO]   DR8  SF12/BW500
2023-06-14 23:48:38.325 [S2E:INFO]   DR9  SF11/BW500
2023-06-14 23:48:38.325 [S2E:INFO]   DR10 SF10/BW500
2023-06-14 23:48:38.325 [S2E:INFO]   DR11 SF9/BW500
2023-06-14 23:48:38.325 [S2E:INFO]   DR12 SF8/BW500
2023-06-14 23:48:38.325 [S2E:INFO]   DR13 SF7/BW500
2023-06-14 23:48:38.325 [S2E:INFO]   DR14 FSK
2023-06-14 23:48:38.325 [S2E:INFO]   DR15 FSK
2023-06-14 23:48:38.325 [S2E:INFO]   TX power: 26.0 dBm EIRP
2023-06-14 23:48:38.325 [S2E:INFO]   JoinEui list: 0 entries
2023-06-14 23:48:38.325 [S2E:INFO]   NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
2023-06-14 23:48:38.325 [S2E:INFO]   Dev/test settings: nocca=1 nodc=1 nodwell=1
2023-06-14 23:48:38.325 [S2E:INFO] Beaconing every 2m8s on 923.3MHz(8) @ DR8 (frame layout 5/11/23)
2023-06-14 23:48:38.325 [S2E:INFO] Beaconing suspend - missing GPS data: time
2023-06-14 23:48:38.419 [S00:INFO] Process ./reset.sh (pid=33) completed
2023-06-14 23:48:38.419 [S00:INFO] Lora gateway library version: Version: 2.1.0;
2023-06-14 23:48:38.420 [S00:INFO] [LGW sx1302] full_duplex=0 clksrc=0 lorawan_public=1
2023-06-14 23:48:38.420 [S00:DEBU] SX130x txlut table (16 entries)
2023-06-14 23:48:38.420 [S00:INFO] SX1302 txlut  0:  rf_power=12 pa_gain=0 pwr_idx=15
2023-06-14 23:48:38.420 [S00:INFO] SX1302 txlut  1:  rf_power=13 pa_gain=0 pwr_idx=16
2023-06-14 23:48:38.420 [S00:INFO] SX1302 txlut  2:  rf_power=14 pa_gain=0 pwr_idx=17
2023-06-14 23:48:38.420 [S00:INFO] SX1302 txlut  3:  rf_power=15 pa_gain=0 pwr_idx=19
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut  4:  rf_power=16 pa_gain=0 pwr_idx=20
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut  5:  rf_power=17 pa_gain=0 pwr_idx=22
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut  6:  rf_power=18 pa_gain=1 pwr_idx=1
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut  7:  rf_power=19 pa_gain=1 pwr_idx=2
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut  8:  rf_power=20 pa_gain=1 pwr_idx=3
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut  9:  rf_power=21 pa_gain=1 pwr_idx=4
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut 10:  rf_power=22 pa_gain=1 pwr_idx=5
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut 11:  rf_power=23 pa_gain=1 pwr_idx=6
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut 12:  rf_power=24 pa_gain=1 pwr_idx=7
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut 13:  rf_power=25 pa_gain=1 pwr_idx=9
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut 14:  rf_power=26 pa_gain=1 pwr_idx=11
2023-06-14 23:48:38.421 [S00:INFO] SX1302 txlut 15:  rf_power=27 pa_gain=1 pwr_idx=14
2023-06-14 23:48:38.422 [S00:INFO]  RX/TX RF0:    904.3MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
2023-06-14 23:48:38.422 [S00:INFO]  RX    RF1:    905.0MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
2023-06-14 23:48:38.422 [S00:INFO]  [mSF]   0:    903.9MHz rf=0 freq=-400.0 datarate=0
2023-06-14 23:48:38.422 [S00:INFO]  [mSF]   1:    904.1MHz rf=0 freq=-200.0 datarate=0
2023-06-14 23:48:38.422 [S00:INFO]  [mSF]   2:    904.3MHz rf=0 freq=  +0.0 datarate=0
2023-06-14 23:48:38.422 [S00:INFO]  [mSF]   3:    904.5MHz rf=0 freq=+200.0 datarate=0
2023-06-14 23:48:38.423 [S00:INFO]  [mSF]   4:    904.7MHz rf=1 freq=-300.0 datarate=0
2023-06-14 23:48:38.423 [S00:INFO]  [mSF]   5:    904.9MHz rf=1 freq=-100.0 datarate=0
2023-06-14 23:48:38.423 [S00:INFO]  [mSF]   6:    905.1MHz rf=1 freq=+100.0 datarate=0
2023-06-14 23:48:38.423 [S00:INFO]  [mSF]   7:    905.3MHz rf=1 freq=+300.0 datarate=0
2023-06-14 23:48:38.423 [S00:INFO]  [STD]   8:    904.6MHz rf=0 freq=+300.0 datarate=8 bw=6 Explicit header
2023-06-14 23:48:38.423 [S00:INFO]  channel 9 disabled
2023-06-14 23:48:38.423 [S00:INFO] Station device: spi:/dev/spidev0.0 (PPS capture enabled)
2023-06-14 23:48:38.424 [S00:INFO] [lgw_com_open:84] Opening SPI communication interface
2023-06-14 23:48:38.424 [S00:INFO] [lgw_spi_open:88] Setting SPI speed to 8000000
2023-06-14 23:48:38.424 [S00:INFO] [lgw_connect:1192] chip version is 0x00 (v0.0)
2023-06-14 23:48:40.025 [S00:ERRO] [lgw_start:908] failed to setup radio 0
2023-06-14 23:48:40.025 [S00:ERRO] Concentrator start failed: lgw_start
2023-06-14 23:48:40.025 [S00:CRIT] Slave radio start up failed with status 0x08
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
2023-06-14 23:48:40.019 [RAL:ERRO] Slave (0) - EOF
2023-06-14 23:48:40.019 [any:CRIT] Slave pid=32 idx=0: Fatal exit
------------------------------------------------------------------
Protocol
------------------------------------------------------------------
Mode:          STATIC
Protocol:      LNS
LNS Server:    wss://nam1.cloud.thethings.network:8887
Main NIC:      eth0
Gateway EUI:   D83ADDFFFE05A3E4
------------------------------------------------------------------
Radio
------------------------------------------------------------------
Model:         RAK5146
Concentrator:  SX1303
Design:        CORECELL
Radio Device:  spi:/dev/spidev0.0
Interface:     SPI
SPI Speed:     8000000
Reset GPIO:    17
Enable GPIO:   0
------------------------------------------------------------------
Killing process 30
------------------------------------------------------------------
Protocol
------------------------------------------------------------------
Mode:          STATIC
Protocol:      LNS
LNS Server:    wss://nam1.cloud.thethings.network:8887
Main NIC:      eth0
Gateway EUI:   D83ADDFFFE05A3E4
------------------------------------------------------------------
Radio
------------------------------------------------------------------
Model:         RAK5146
Concentrator:  SX1303
Design:        CORECELL
Radio Device:  spi:/dev/spidev0.0
Interface:     SPI
SPI Speed:     8000000
Reset GPIO:    17
Enable GPIO:   0
------------------------------------------------------------------
Killing process 30
------------------------------------------------------------------
Protocol
------------------------------------------------------------------
Mode:          STATIC
Protocol:      LNS
LNS Server:    wss://nam1.cloud.thethings.network:8887
Main NIC:      eth0
Gateway EUI:   D83ADDFFFE05A3E4
------------------------------------------------------------------
Radio
------------------------------------------------------------------
Model:         RAK5146
Concentrator:  SX1303
Design:        CORECELL
Radio Device:  spi:/dev/spidev0.0
Interface:     SPI
SPI Speed:     8000000
Reset GPIO:    17
Enable GPIO:   0
------------------------------------------------------------------
Killing process 30
------------------------------------------------------------------
Protocol
------------------------------------------------------------------
Mode:          STATIC
Protocol:      LNS
LNS Server:    wss://nam1.cloud.thethings.network:8887
Main NIC:      eth0
Gateway EUI:   D83ADDFFFE05A3E4
------------------------------------------------------------------
Radio
------------------------------------------------------------------
Model:         RAK5146
Concentrator:  SX1303
Design:        CORECELL
Radio Device:  spi:/dev/spidev0.0
Interface:     SPI
SPI Speed:     8000000
Reset GPIO:    17
Enable GPIO:   0
------------------------------------------------------------------
Killing process 30
------------------------------------------------------------------
Protocol
------------------------------------------------------------------
Mode:          STATIC
Protocol:      LNS
LNS Server:    wss://nam1.cloud.thethings.network:8887
Main NIC:      eth0
Gateway EUI:   D83ADDFFFE05A3E4
------------------------------------------------------------------
Radio
------------------------------------------------------------------
Model:         RAK5146
Concentrator:  SX1303
Design:        CORECELL
Radio Device:  spi:/dev/spidev0.0
Interface:     SPI
SPI Speed:     8000000
Reset GPIO:    17
Enable GPIO:   0
------------------------------------------------------------------
Killing process 30
------------------------------------------------------------------
Protocol
------------------------------------------------------------------
Mode:          STATIC
Protocol:      LNS
LNS Server:    wss://nam1.cloud.thethings.network:8887
Main NIC:      eth0
Gateway EUI:   D83ADDFFFE05A3E4
------------------------------------------------------------------
Radio
------------------------------------------------------------------
Model:         RAK5146
Concentrator:  SX1303
Design:        CORECELL
Radio Device:  spi:/dev/spidev0.0
Interface:     SPI
SPI Speed:     8000000
Reset GPIO:    17
Enable GPIO:   0
------------------------------------------------------------------
Killing process 30
------------------------------------------------------------------
Protocol
------------------------------------------------------------------
Mode:          STATIC
Protocol:      LNS
LNS Server:    wss://nam1.cloud.thethings.network:8887
Main NIC:      eth0
Gateway EUI:   D83ADDFFFE05A3E4
------------------------------------------------------------------
Radio
------------------------------------------------------------------
Model:         RAK5146
Concentrator:  SX1303
Design:        CORECELL
Radio Device:  spi:/dev/spidev0.0
Interface:     SPI
SPI Speed:     8000000
Reset GPIO:    17
Enable GPIO:   0
------------------------------------------------------------------
Killing process 30
rak@rakpios:~/.config/rakpios-cli $
rak@rakpios:~/.config/rakpios-cli $ docker inspect 81ce660b011a
[
    {
        "Id": "81ce660b011afeaac7ca69355a51971e087287d97b63b9e05e7e9efe038dacba",
        "Created": "2023-06-14T23:48:31.816748967Z",
        "Path": "/usr/bin/entry.sh",
        "Args": [
            "bash",
            "start.sh"
        ],
        "State": {
            "Status": "restarting",
            "Running": true,
            "Paused": false,
            "Restarting": true,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 130,
            "Error": "",
            "StartedAt": "2023-06-15T00:08:48.266628163Z",
            "FinishedAt": "2023-06-15T00:08:48.461743325Z"
        },
        "Image": "sha256:7bac2a8123f76f09abb21348a55eeeb05228edd01e6c12eedfcf0c711e0d9a0d",
        "ResolvConfPath": "/var/lib/docker/containers/81ce660b011afeaac7ca69355a51971e087287d97b63b9e05e7e9efe038dacba/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/81ce660b011afeaac7ca69355a51971e087287d97b63b9e05e7e9efe038dacba/hostname",
        "HostsPath": "/var/lib/docker/containers/81ce660b011afeaac7ca69355a51971e087287d97b63b9e05e7e9efe038dacba/hosts",
        "LogPath": "/var/lib/docker/containers/81ce660b011afeaac7ca69355a51971e087287d97b63b9e05e7e9efe038dacba/81ce660b011afeaac7ca69355a51971e087287d97b63b9e05e7e9efe038dacba-json.log",
        "Name": "/BasicsStation",
        "RestartCount": 29,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": null,
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "host",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                33,
                204
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": true,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": [
                "label=disable"
            ],
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": [],
            "BlkioDeviceWriteBps": [],
            "BlkioDeviceReadIOps": [],
            "BlkioDeviceWriteIOps": [],
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": null,
            "ReadonlyPaths": null
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/5fd5ae2eb9e7e0fa0ad02fa40c856ff18c497d7d1e86e57b5279a6d27d44d807-init/diff:/var/lib/docker/overlay2/db9d13a5ce1eaa935929b33ee09d542bdec99339e89cccf3959f3b036edb500d/diff:/var/lib/docker/overlay2/5aa6aada81aa6653a4c4423d8cc3a9d448b7b91e8df35cbad12c87023554112e/diff:/var/lib/docker/overlay2/f739d9a2944a580cc0d43b5545e7ef10ba33277f86b1d4a4d3f2c7f5871fe86d/diff:/var/lib/docker/overlay2/1801644c5fbfa9198c3af269f09915b162e3bae052d8ae766be0e58500ab1b95/diff:/var/lib/docker/overlay2/509c38639ca1a01cbeedbe3a436b041a903efc728fd02d29227f13037872a2b3/diff:/var/lib/docker/overlay2/d04df88ee253e37318f974d31e478219c1a05d872bd4ceb6351fce37180803d3/diff:/var/lib/docker/overlay2/19d0ed7e8bd9e44321b0e84e1b6116623905ffbd2cba4fb18fd191242f423127/diff:/var/lib/docker/overlay2/c8851953a65312b65c9ee83ca1adb09d6c9b626cff0de0ceee4696ae1d26d42e/diff:/var/lib/docker/overlay2/d3c4f46fd5162f58649ed0151c23636c8df3a6b84bc14b7bc2885704ccaed001/diff:/var/lib/docker/overlay2/a8689abce180d83b1c27ef4e8facb233dedf4d491cb4d06f9ab369648cfbdc1b/diff:/var/lib/docker/overlay2/0ad13bcebdb6f39e4c177a53bf1b3451b6c97b028b830488dd2a788118713a8a/diff:/var/lib/docker/overlay2/c0f7ffdd3b791ba216832a6dd71a602f89bd501fd5ac8e28408dd4257da54c0f/diff:/var/lib/docker/overlay2/af1d4293ff8193e06f01e27dd26860bab6037faa38744ac1e10ff605541e2d97/diff:/var/lib/docker/overlay2/5ac9e1ee233e8e4fdc8a3eb7066c66ed1617b08381dd0d054c73cb937d29e56c/diff:/var/lib/docker/overlay2/0f892e4e3cc1140230124878ce2198c01c522e5bfdc4ac7e1a3958562ee29985/diff:/var/lib/docker/overlay2/63717e95a8977cd5b134354662496d347ab3d6f3c336ad8dca266e96cb97bf2e/diff:/var/lib/docker/overlay2/9147de9fe648929f9bf50238debbcddd55e30930d3d0bb7914dccf084ebe7c82/diff",
                "MergedDir": "/var/lib/docker/overlay2/5fd5ae2eb9e7e0fa0ad02fa40c856ff18c497d7d1e86e57b5279a6d27d44d807/merged",
                "UpperDir": "/var/lib/docker/overlay2/5fd5ae2eb9e7e0fa0ad02fa40c856ff18c497d7d1e86e57b5279a6d27d44d807/diff",
                "WorkDir": "/var/lib/docker/overlay2/5fd5ae2eb9e7e0fa0ad02fa40c856ff18c497d7d1e86e57b5279a6d27d44d807/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [],
        "Config": {
            "Hostname": "basicstation",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PUID=1000",
                "TZ=America/Los_Angeles",
                "GATEWAYEUI=",
                "GATEWAY_EUI_NIC=eth0",
                "DEVICE=/dev/spidev0.0",
                "GW_ENABLE_GPIO=0",
                "TTN_REGION=nam1",
                "INTERFACE=SPI",
                "MODEL=RAK5146",
                "PGID=100",
                "GW_RESET_GPIO=17",
                "TC_KEY=*********REMOVED***************************",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "LC_ALL=C.UTF-8",
                "DEBIAN_FRONTEND=noninteractive",
                "UDEV=off"
            ],
            "Cmd": [
                "bash",
                "start.sh"
            ],
            "Image": "xoseperez/basicstation:v2",
            "Volumes": null,
            "WorkingDir": "/app",
            "Entrypoint": [
                "/usr/bin/entry.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "authors": "Jose Marcelino, Marc Pous, Xose Pérez and Semtech",
                "io.balena.architecture": "aarch64",
                "io.balena.features.balena-api": "1",
                "io.balena.qemu.version": "7.0.0+balena1-aarch64",
                "maintainer": "Xose Pérez <[email protected]>",
                "org.label-schema.arch": "aarch64",
                "org.label-schema.build-date": "2023-02-17T17:25:37Z",
                "org.label-schema.description": "LoRaWAN gateway with Basics™ Station Packet Forward protocol",
                "org.label-schema.license": "BSD License 2.0",
                "org.label-schema.name": "LoRaWAN Basics™ Station",
                "org.label-schema.schema-version": "1.0",
                "org.label-schema.vcs-ref": "f1fdda2",
                "org.label-schema.vcs-type": "Git",
                "org.label-schema.vcs-url": "https://github.com/xoseperez/basicstation",
                "org.label-schema.version": "v2.6.1 based on v2.0.6-stdn"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "0823da00d8a3389facf77d170c9032fce4c236e7db1f37776cd0058866bfc92b",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {},
            "SandboxKey": "/var/run/docker/netns/default",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "host": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "0c43ef6202c7e477335132d224d8fb4c55cfbd021bb4fc34428e1e6286f02a05",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "",
                    "DriverOpts": null
                }
            }
        }
    }
]
rak@rakpios:~/.config/rakpios-cli $

I tried deploying via docker directly and still same results … Grr

basicstation  | 2023-06-15 01:39:06.968 [S00:INFO] Station device: spi:/dev/spidev0.0 (PPS capture enabled)
basicstation  | 2023-06-15 01:39:06.968 [S00:INFO] [lgw_com_open:84] Opening SPI communication interface
basicstation  | 2023-06-15 01:39:06.968 [S00:INFO] [lgw_spi_open:88] Setting SPI speed to 8000000
basicstation  | 2023-06-15 01:39:06.968 [S00:INFO] [lgw_connect:1192] chip version is 0x00 (v0.0)
basicstation  | ERROR: Failed to set SX1250_0 in STANDBY_RC mode
basicstation  | 2023-06-15 01:39:08.570 [S00:ERRO] [lgw_start:908] failed to setup radio 0
basicstation  | 2023-06-15 01:39:08.570 [S00:ERRO] Concentrator start failed: lgw_start
basicstation  | 2023-06-15 01:39:08.570 [S00:CRIT] Slave radio start up failed with status 0x08
basicstation  | 2023-06-15 01:39:08.521 [RAL:ERRO] Slave (0) - EOF
basicstation  | 2023-06-15 01:39:08.521 [any:CRIT] Slave pid=32 idx=0: Fatal exit
basicstation exited with code 30

Clueless :frowning:

Are you certain you have an SPI RAK5146?
In the latest UDP packet forwarder image we created there is a tool that tries to find any concentrator connected to the board. Just stop your basicstation service and try running this command:

docker run --privileged --rm rakwireless/udp-packet-forwarder ./find.sh

It will fetch the UDP Packet Forwarder image that you won’t need and you can delete it afterwards and then run the command and exit printing out any concentrators (USB or SPI) it can see.

This to me looks like a hardware issue on the motherboard at this point… One of my RAK5146 is marked SPI the other that came with the RAK7391 has no mention of SPI/USB but neither show anything in lsusb so I suspect are SPI

rak@rakpios:~/sx1302_hal/tools $ docker run --privileged --rm rakwireless/udp-packet-forwarder ./find.sh
Unable to find image 'rakwireless/udp-packet-forwarder:latest' locally
latest: Pulling from rakwireless/udp-packet-forwarder
3ca7b6c7180e: Pull complete
c2d1235e980a: Pull complete
6532e50fba4f: Pull complete
3c8be3db7bbc: Pull complete
183b5c633a73: Pull complete
de1afd9c8571: Pull complete
863bc40f936c: Pull complete
ab53f55f8404: Pull complete
a6b57d77a9a3: Pull complete
2530f69e78e6: Pull complete
e7e1983af350: Pull complete
5edb6c930600: Pull complete
4f03ae1f5da9: Pull complete
57040a5ede6b: Pull complete
5a38fce6fc8b: Pull complete
f650bde32385: Pull complete
c76646f352cd: Pull complete
7aa45871e43b: Pull complete
dd4efb9a6895: Pull complete
e6d3d075e43d: Pull complete
Digest: sha256:5ac28c2481567fdcd69d479deff45048a4a46085f6a8982d3ab77ca2ce2a4eed
Status: Downloaded newer image for rakwireless/udp-packet-forwarder:latest
DEVICE             DESIGN             RESPONSE
---------------------------------------------------------
/dev/spidev0.0     Corecell
/dev/spidev0.1     Corecell
/dev/ttyUSB0       Corecell
/dev/ttyUSB0       2g4
/dev/ttyUSB0       Picocell
/dev/ttyUSB1       Corecell
/dev/ttyUSB1       2g4
/dev/ttyUSB1       Picocell
rak@rakpios:~/sx1302_hal/tools $

I do not see the PCI card but I do see the controllers…

rak@rakpios:~ $ lspci -vvv
00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2711 PCIe Bridge (rev 20) (prog-if 00 [Normal decode])
        Device tree node: /sys/firmware/devicetree/base/scb/pcie@7d500000/pci@0,0
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 0
        Bus: primary=00, secondary=01, subordinate=06, sec-latency=0
        I/O behind bridge: 00000000-00000fff [size=4K]
        Memory behind bridge: c0000000-c01fffff [size=2M]
        Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
        BridgeCtl: Parity- SERR- NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: <access denied>

01:00.0 PCI bridge: ASMedia Technology Inc. ASM1184e PCIe Switch Port (prog-if 00 [Normal decode])
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 0
        Bus: primary=01, secondary=02, subordinate=06, sec-latency=0
        I/O behind bridge: 0000f000-00000fff [disabled]
        Memory behind bridge: c0000000-c01fffff [size=2M]
        Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: <access denied>

02:01.0 PCI bridge: ASMedia Technology Inc. ASM1184e PCIe Switch Port (prog-if 00 [Normal decode])
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 0
        Bus: primary=02, secondary=03, subordinate=03, sec-latency=0
        I/O behind bridge: 0000f000-00000fff [disabled]
        Memory behind bridge: c0000000-c00fffff [size=1M]
        Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: <access denied>

02:03.0 PCI bridge: ASMedia Technology Inc. ASM1184e PCIe Switch Port (prog-if 00 [Normal decode])
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 0
        Bus: primary=02, secondary=04, subordinate=04, sec-latency=0
        I/O behind bridge: 0000f000-00000fff [disabled]
        Memory behind bridge: fff00000-000fffff [disabled]
        Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: <access denied>

02:05.0 PCI bridge: ASMedia Technology Inc. ASM1184e PCIe Switch Port (prog-if 00 [Normal decode])
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 0
        Bus: primary=02, secondary=05, subordinate=05, sec-latency=0
        I/O behind bridge: 0000f000-00000fff [disabled]
        Memory behind bridge: c0100000-c01fffff [size=1M]
        Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: <access denied>

02:07.0 PCI bridge: ASMedia Technology Inc. ASM1184e PCIe Switch Port (prog-if 00 [Normal decode])
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 0
        Bus: primary=02, secondary=06, subordinate=06, sec-latency=0
        I/O behind bridge: 0000f000-00000fff [disabled]
        Memory behind bridge: fff00000-000fffff [disabled]
        Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: <access denied>

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 33
        Region 0: I/O ports at <unassigned> [disabled]
        Region 2: Memory at 600000000 (64-bit, non-prefetchable) [size=64K]
        Region 4: Memory at 600010000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169

05:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01) (prog-if 30 [XHCI])
        Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 34
        Region 0: Memory at 600100000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd

rak@rakpios:~ $

So progress… I use the second PCI slot and things work ! I have a USB and a SPI RAK5146 and they both work fine but only in the second PCI slot…

How do I RMA ? I guess is the next question

MMMM I think I know the problem here… The Box arrived with the RAK5146 in the 3rd PCI slot ! Which according to the documentation does not support the RAK5146!

Could you confirm! I will try puting the RAK5146 in the first Slot and see!

Yup Slot 1/2 work just fine. But slot 3 where the RAK5146 was as I received it the RAK5146 is not seen at all !

Phew no hardware issues but boy o boy could these be put in the right slot before shipping !

Two issues I had from new:

  1. RAKPIOS image was installed but the password was unknown - Had to reflash
  2. RAK5146 in wrong slot and cost me a day of trouble shooting - Grr

But …

LOVE the platform now the issues are behind me…

Hi Colin
Glad to hear you made it work. Will check these two issues.
Did you get the device directly from us?

Yes… Everything direct.

Last bug for you… The GPS antenna connector on the box is male and itvshouod be female!

I have some spare pigtails but its another frustration!

Just to let you know:
I had the same issue on MPCIE 3. None of my MPCIE Cards worked.

Check if there is any GPIO connected to your MPCIE which could cause this issue, i found out that the MPCIE have multiple connections , attached a screenshot of the support…
You should be able to set these GPIOs with the following:

Control IO0_0 (!wake on mPCIe#3) and IO0_3 (!disable on mPCIe#3) you can use gpioset to control gpiochip2 like this:

gpioset gpiochip2 0=0 # set IO0_0 to LOW
gpioset gpiochip2 0=1 # set IO0_0 to HIGH
gpioset gpiochip2 3=0 # set IO3_0 to LOW
gpioset gpiochip2 3=1 # set IO3_0 to HIGH

1 Like