Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get DAHDI working with kernel 4.19
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Fog_Watch
Apprentice
Apprentice


Joined: 24 Jul 2006
Posts: 201
Location: Utility Muffin Research Kitchen

PostPosted: Fri Dec 14, 2018 7:44 am    Post subject: How to get DAHDI working with kernel 4.19 Reply with quote

Following on:
Code:
# uname -r
4.19.8-gentoo

Code:
wget https://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
tar -xf dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-3.0.0+3.0.0/linux
mkdir drivers/staging
cp -fR /usr/src/linux/drivers/misc/echo drivers/staging
sed -i "s|#obj-m += dahdi_echocan_oslec.o|obj-m += dahdi_echocan_oslec.o|" drivers/dahdi/Kbuild
sed -i "s|#obj-m += ../staging/echo/|obj-m += ../staging/echo/|" drivers/dahdi/Kbuild
echo 'obj-m += echo.o' > drivers/staging/echo/Kbuild

drivers/dahdi/wctdm.c was missing, which was needed for my TDM400P.
So I downloaded the old version:
Code:
wget https://github.com/asterisk/dahdi-linux/archive/next.zip

Copied in wctdm.c. And added in the required lines:
Code:
# grep wctdm drivers/dahdi/{Kconfig,Kbuild}
drivers/dahdi/Kconfig:     module will be called wctdm24xxp.
drivers/dahdi/Kconfig:          module will be called wctdm.
drivers/dahdi/Kbuild:obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM24XXP)   += wctdm24xxp/
drivers/dahdi/Kbuild:obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM)             += wctdm.o

I could then
Code:
make
make install
reboot

Code:
# lsmod | grep -E 'oslec|dahdi'
dahdi_echocan_oslec    16384  2
echo                   16384  1 dahdi_echocan_oslec
dahdi                 221184  4 wctdm,dahdi_echocan_oslec
crc_ccitt              16384  1 dahdi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum