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.
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.
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.
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.
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.
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.
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".
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
Reboot and verify that you are currently running on the custom kernel you compiled as per step 1. $ uname - r
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
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
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
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.