Compile and install the latest ircddbGateway in Pi-Star

Pi-Star allows everyone to setup and run a digital voice Hotspot easily, its ease of use largely contributed to the late Hotspot invasion. However, the DStar software shipping with it is quite outdated. It is a version dating back from 2015 and it misses some nice features : Forwarding DPRS data to APRS for Kenwood THD74, multiple ircddb networks capability, G2 Nat Traversal to allow call sign routing without any port forwarding…In the following steps will compile and install the latest ircddbgateway software into the guts of Pi-Star. I assume you are somehow familiar with command line and editing files through nano.

DISCLAIMER : I have no idea of possible side-effects or if it’ll break pi-star update mechanism, you do all this at your own risks. Compilation takes about 2 or 3 hours on a Pi-Zero, and only 15 or 20 minutes on a Pi3 so make sure you have plenty of time ahead ! Also make sure you have enough free space on your SD card, approx 1GB should be fine.

OK let’s go!

First make sure we have and up to date system and install some prerequisites and tools.

Remount file system as read/write and download the source code

Get into the freshly cloned source code and open the file Makefile into nano

Edit the first lines of the Makefile so that they read exactly like this

Save the file and exit nano and start the compilation.

The compilation might take a rather long time. If it fails complaining about a read only file system this is because after some time pi-star remounts the file system as read only. Whenever this happens just remount the file system as follow and restart the compilation.

Once successfully compiled, it is time to install our freshly compiled binary.

There is one small step to be done before you can enjoy your new ircddbGateway. Edit the configuration file /etc/ircddbgateway

Add the following line, replacing 12345 with your actual personal APRS password.

This is required because ircddbgateway no longer auto generates a password to authenticate on the APRS network.

You can now reboot and, if you did not screw up, the D-Star network shoudl light up green on your dashboard !

13 Comments:

  1. I get “No space left on device” while updating (or doing anything else after updating). I have a 16 Gb sd card, so I suppose there’s still space on it but probably I need to expand the file system, which I’m currently unable to do. 🙁

  2. Having an issues running through this twice now, the command “sudo cp ~/ircDDBGateway/ircddbgatewayd /usr/local/bin/” returns the following “cp: cannot stat ‘/home/pi-star/ircDDBGateway/ircddbgatewayd /usr/local/bin”, this has happened on two seperate native pi-star images.

  3. Yes, I was in the default “pi-star” user directory path “/home/pi-star/” and this is where I performed the GIT clone.

    • Did the compilation complete with no errors ?
      What does
      ls ~/ircDDBGateway/ircddbgatewayd
      return when ran after the compilation ?

  4. I did not get any build errors that I could see, the output and commands finished fine until I got to this point. When I run the ls command you requested above, I get “ls cannot find” but when I ls manually I can see files there; so I guess the build just fails and there is no output then in the current pi-star image.

    • This is weird… Can you run the build with
      make -j6 > output.txt
      This will pipe all the output to a file called output.txt.
      Can you mail me the file for me to analyze ?

  5. Geoffrey, as requested I have run the make -j6 > output.txt command and have emailed you the output.txt file for your review. Thanks and 73…

    • Hi Jerry,

      I did not receive your email. Is your email you are using to comment valid?

      • Yes and per our email conversation, I also tried a clean install of Pi-Star, even used a new 32GB Class 10 Micro-SD card, expanded the Micro-SD card, ran update/upgrade in Pi-Star and confirmed that all was working as expected. Followed the instructions above as previous noted and I keep getting stuck with the “sudo cp” command with the following message returning:

        pi-star@uhf-fr6000(rw):ircDDBGateway$ sudo cp ~/ircDDBGateway/ircddbgatewayd /usr/local/bin/
        cp: cannot stat ‘/home/pi-star/ircDDBGateway/ircddbgatewayd’: No such file or directory

        Additionally, I followed your later article for DStarRepeater and I get the same error with the “sudo cp” command there as well. This is with Pi-Star image 3.4.16 with updates as of 20181111 if that makes a difference or not. Also, I am setup as MMDVMHost and not DStarRepeater in the control software setup; could this be affecting this by chance?

  6. Pingback: Compile and install the latest DStarRepeater in Pi-Star – F4FXL

  7. I also tried the process using the “DStarRepeater” option vs. “MMDVMHost” in Pi-Star and the same error output happens, so that does not appear to be the issue.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.