Unable to install DAHDI in raspberry pi

Hi All,

I Want to install DAHDI on raspbian OS. I spent a lot of time installing it, but It looks like none of it is working. Following are some of the steps I tried.

  1. Download DHADI directly and install it.

$ wget https://downloads.asterisk.org/pub/tele … 1.1.tar.gz
$ tar -xvf dahdi-linux-complete-2.11.1+2.11.1.tar.gz
$ cd dahdi-linux-complete-2.11.1+2.11.1.tar.gz
$ sudo make

But I get the following error

I also cloned rpi linux source v 5.10.y and executed following
$ sudo make KSRC=/home/pi/rpi-linux-5.10.y/
This will take a complete day to compile, after executing make install , it will show installation is completed but I could not find any dahdi.ko modules being installed.

  1. I tried the above step (1) for directly cloning the dahdi-linux source for almost all the versions of dahdi, but no luck . Similar errors.

  2. I followed up with lixinswitchpi · GitHub , here they used dahdi v 2.11.1, which was the reason why I used the same version in step1 . But the same errors here too.

  3. Here GitHub - lixinswitchpi/oakpro: The OAK PRO analog Raspberry Pi module is a revolution version of OAK and OAKR2, it adds a DSP chip to implement the echo cancelation algorithm, significantly improved the voice quality on traditional PSTN network to VoIP phones. It also supports one(1) built-in low power FXS module and one (1) FXO module. they used linux kernel 4.19. I downloaded old raspbina and tried the same process, in this case, compilation just takes 15 minutes, I could see dahdi modules being built . After installation, I could not find any dahdi modules being installed.

Please help me on installing DAHDI on Rasberry Pi Zero.

First question would be why are you trying to do this, given that RPi doesn’t support PCI or PCIe, and timing and conference bridging are no longer dependent on it?

I have a ProSLIC Si32297-A-GM based HAT board attached to Raspberry Pi. I am trying to make aasterisk to communicate to that via dahdi. So that I can achieve a phone call from asterisk to a telephone connected to HAT board.

The general forum policy in such cases is to get support from the hardware supplier.

After trying a lot, I found a way to install dahdi correctly in Raspbian. This works in Rpi OS with Kernel 4.19.y. This will save a lot of time for those who want to install dahdi in raspbian.

  1. Download the Raspberry Pi Kernel from https://www.raspberrypi.org/documentati … uilding.md build and install the kernel as given in the instructions. Make sure to give your custom kernel name in the .config f ile “CONFIG_LOCALVERSION=”-v7l-MY_CUSTOM_KERNEL".

  2. Configure the PI to boot using the new kernel by modifying and adding the below line to “/boot/config.txt”.
    kernel=-v7l-MY_CUSTOM_KERNEL.img

  3. Reboot and verify that you are currently running on the custom kernel you compiled as per step 1.
    $ uname - r

  4. Now get the dahdi-complete 3.1.0 from https://downloads.asterisk.org/pub/tele … -complete/ or from switch Pi GitHub - lixinswitchpi/oakpro: The OAK PRO analog Raspberry Pi module is a revolution version of OAK and OAKR2, it adds a DSP chip to implement the echo cancelation algorithm, significantly improved the voice quality on traditional PSTN network to VoIP phones. It also supports one(1) built-in low power FXS module and one (1) FXO module..

  5. If you have downloaded dahdi-linux-complete-3.1.0+3.1.0.tar.gz or any higher version, then extract the zip file and navigate to dahdi linux directory.
    $ cd dahdi-linux-complete-3.1.0+3.1.0

  6. Now compile and install the dadhi source by executing the make command and giving the path to the kernel source you have compiled in step1.
    $ make KSRC=/home/pi/linux
    $ sudo make KSRC=/home/pi/linux install
    $ sudo make KSRC=/home/pi/linux install-config

  7. If you have downloaded the switch pi repo, then go to ~/oakpro/software and then compile and install.
    $ cd ~/oakpro/software
    $ make KSRC=/home/pi/linux
    $ sudo make KSRC=/home/pi/linux install

  8. In step 7, we are installing only dahdi-linux. So we need to install dahdi-tools (v 2.11.1) ( dahdi-tools available at → https://downloads.asterisk.org/pub/tele … hdi-tools/)
    $ wget https://downloads.asterisk.org/pub/tele … 1.1.tar.gz
    $ tar -xvf dahdi-tools-2.11.1.tar.gz
    $ cd dahdi-tools-2.11.1.tar.gz
    $ ./configure
    $ make
    $ sudo make install
    $ sudo make install-config

Note : While compiling dahdi we should give the path to linux source, and this kernel source must be exactly same as that on which raspbian is running. This is why we have to compile the kernel first and make sure were are running on that kernel as in step 1.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.