DeBuffel
(DeBuffel)
June 22, 2021, 4:05pm
1
Hi,
I have successfully installed the RAK common gateway software (GitHub - RAKWireless/rak_common_for_gateway ) on a RAK2247 (SPI / Pi-Supply).
After following the installation procedure Chirpstack is installed and all working fine.
Now I am following the same procedure to install the RAK common gateway on a RPI CM4 with the RAK2245. After installation I am not able to find ChirpStack.
Are additional steps required to install ChirpStack from the RAK2245?
Thanks
DeBuffel
DeBuffel
(DeBuffel)
June 23, 2021, 7:27am
2
Found the issue that caused Chirpstack not to be installed on the CM4 - solution below
RAK Gateway is per default installed with ChirpStack
A check is performed on the RPi model - this is done in do_get_rpi_model()
Located in: ~/rak_common_for_gateway/rak/rak/shell_script/rak_common.sh
Only the RPi3, RPi4 and Pi Z are “OKed” in this check (and RPi CM4 is not considered)
Solution is to modify the script:
In the folder ~/rak_common_for_gateway/rak/rak/shell_script/
Edit the following: sudo nano rak_common.sh
> do_get_rpi_model()
> {
> model=255
> text=`tr -d '\0' </proc/device-tree/model | grep -a 'Pi 3'`
> if [ ! -z "$text" ]; then
> model=3
> fi
>
> if [ $model -eq 255 ]; then
> text=`tr -d '\0' </proc/device-tree/model | grep -a 'Pi 4'`
> if [ ! -z "$text" ]; then
> model=4
> fi
> fi
>
> # *********************************************************************************************
> # Added for support of the "Raspberry Pi Compute Module 4 Rev 1.0" (DeBuffel)
> # *********************************************************************************************
> if [ $model -eq 255 ]; then
> text=`tr -d '\0' </proc/device-tree/model | grep -a 'Pi Compute Module 4'`
> if [ ! -z "$text" ]; then
> model=4
> fi
> fi
> # ********************************************************************************************
>
> if [ $model -eq 255 ]; then
> text=`tr -d '\0' </proc/device-tree/model | grep -a 'Pi Z'`
> if [ ! -z "$text" ]; then
> model=0
> fi
> fi
> echo $model
> }
I issued the above on github as well (here )
With the above changes Chirpstack is working fine on the RPi CM4.
1 Like
system
(system)
Closed
June 25, 2021, 7:28am
3
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.