Raspbian 10 buster - ASL-asterisk installation

Trying to install ASL-asterisk, dahdi not working. Trying to install module, I get an error.

Selecting previously unselected package dahdi-dkms.
(Reading database … 130582 files and directories currently installed.)
Preparing to unpack …/dahdi-dkms_1%3a2.11.1.0.20170917~dfsg-7_all.deb …
Unpacking dahdi-dkms (1:2.11.1.0.20170917~dfsg-7) …
Setting up dahdi-dkms (1:2.11.1.0.20170917~dfsg-7) …
Loading new dahdi-DEB_VERSION DKMS files…
Building for 6.0.8-00789-g99a6460d70b3
Building initial module for 6.0.8-00789-g99a6460d70b3
Error! Bad return status for module build on kernel: 6.0.8-00789-g99a6460d70b3 (aarch64)
Consult /var/lib/dkms/dahdi/DEB_VERSION/build/make.log for more information.
dpkg: error processing package dahdi-dkms (–configure):
installed dahdi-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for man-db (2.8.5-2) …
Errors were encountered while processing:
dahdi-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is the make.log

DKMS make.log for dahdi-DEB_VERSION for kernel 6.0.8-00789-g99a6460d70b3 (aarch64)
Wed Nov 16 06:07:05 UTC 2022
make -C /lib/modules/6.0.8-00789-g99a6460d70b3/build SUBDIRS=/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi DAHDI_INCLUDE=/var/lib/dkms/dahdi/DEB_VERSION/build/include DAHDI_MODULES_EXTRA=“dahdi_dummy.o dahdi_echocan_oslec.o " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
SYNC include/config/auto.conf.cmd
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[3]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make[2]: *** [Makefile:632: syncconfig] Error 2
make[1]: *** [Makefile:734: include/config/auto.conf.cmd] Error 2
make[1]: *** [include/config/auto.conf.cmd] Deleting file ‘include/generated/autoconf.h’
make[1]: Leaving directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
make: *** [Makefile:74: modules] Error 2
make -C /lib/modules/6.0.8-00789-g99a6460d70b3/build SUBDIRS=/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi DAHDI_INCLUDE=/var/lib/dkms/dahdi/DEB_VERSION/build/include DAHDI_MODULES_EXTRA=” " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
SYNC include/config/auto.conf.cmd
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[3]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make[2]: *** [Makefile:632: syncconfig] Error 2
make[1]: *** [Makefile:734: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
make: *** [Makefile:74: modules] Error 2
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory ‘/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi/firmware’
Attempting to download dahdi-fwload-vpmadt032-1.25.0.tar.gz
–2022-11-16 06:07:16-- http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
Resolving downloads.digium.com (downloads.digium.com)… 170.249.154.172
Connecting to downloads.digium.com (downloads.digium.com)|170.249.154.172|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 149360 (146K) [application/x-gzip]
Saving to: ‘dahdi-fwload-vpmadt032-1.25.0.tar.gz’

 0K .......... .......... .......... .......... .......... 34%  604K 0s
50K .......... .......... .......... .......... .......... 68%  639K 0s

100K … … … … … 100% 1.19M=0.2s

2022-11-16 06:07:19 (734 KB/s) - ‘dahdi-fwload-vpmadt032-1.25.0.tar.gz’ saved [149360/149360]

make[1]: Leaving directory ‘/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi/firmware’
make -C /lib/modules/6.0.8-00789-g99a6460d70b3/build SUBDIRS=/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi DAHDI_INCLUDE=/var/lib/dkms/dahdi/DEB_VERSION/build/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
SYNC include/config/auto.conf.cmd
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[3]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make[2]: *** [Makefile:632: syncconfig] Error 2
make[1]: *** [Makefile:734: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
make: *** [Makefile:74: modules] Error 2

Any ideas how to get this working?

Thanks!

After installing missing flex and bison, I get a “can’t find file Kconfig”

DKMS make.log for dahdi-DEB_VERSION for kernel 6.0.8-00789-g99a6460d70b3 (aarch64)
Wed Nov 16 06:25:31 UTC 2022
make -C /lib/modules/6.0.8-00789-g99a6460d70b3/build SUBDIRS=/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi DAHDI_INCLUDE=/var/lib/dkms/dahdi/DEB_VERSION/build/include DAHDI_MODULES_EXTRA=“dahdi_dummy.o dahdi_echocan_oslec.o " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
SYNC include/config/auto.conf.cmd
can’t find file Kconfig
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:632: syncconfig] Error 2
make[1]: *** [Makefile:734: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
make: *** [Makefile:74: modules] Error 2
make -C /lib/modules/6.0.8-00789-g99a6460d70b3/build SUBDIRS=/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi DAHDI_INCLUDE=/var/lib/dkms/dahdi/DEB_VERSION/build/include DAHDI_MODULES_EXTRA=” " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
SYNC include/config/auto.conf.cmd
can’t find file Kconfig
make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:632: syncconfig] Error 2
make[1]: *** [Makefile:734: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
make: *** [Makefile:74: modules] Error 2
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory ‘/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi/firmware’
Attempting to download dahdi-fwload-vpmadt032-1.25.0.tar.gz
–2022-11-16 06:25:36-- http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
Resolving downloads.digium.com (downloads.digium.com)… 170.249.154.172
Connecting to downloads.digium.com (downloads.digium.com)|170.249.154.172|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 149360 (146K) [application/x-gzip]
Saving to: ‘dahdi-fwload-vpmadt032-1.25.0.tar.gz’

 0K .......... .......... .......... .......... .......... 34%  259K 0s
50K .......... .......... .......... .......... .......... 68%  331K 0s

100K … … … … … 100% 332K=0.5s

2022-11-16 06:25:37 (302 KB/s) - ‘dahdi-fwload-vpmadt032-1.25.0.tar.gz’ saved [149360/149360]

make[1]: Leaving directory ‘/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi/firmware’
make -C /lib/modules/6.0.8-00789-g99a6460d70b3/build SUBDIRS=/var/lib/dkms/dahdi/DEB_VERSION/build/drivers/dahdi DAHDI_INCLUDE=/var/lib/dkms/dahdi/DEB_VERSION/build/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
SYNC include/config/auto.conf.cmd

can’t find file Kconfig

make[3]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[2]: *** [Makefile:632: syncconfig] Error 2
make[1]: *** [Makefile:734: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
make: *** [Makefile:74: modules] Error 2

What headers do I need to have for the Libre Computer Raspbian Portability project patched image?

root@repeater:~# apt-get install linux-headers-‘uname -r’
Reading package lists… Done
Building dependency tree
Reading state information… Done
linux-headers-6.0.8-00789-g99a6460d70b3:arm64 is already the newest version (6.0.8-00789-g99a6460d70b3-1).
linux-headers-6.0.8-00789-g99a6460d70b3:arm64 set to manually installed.

Thanks!

Still stuck…

root@repeater:/home/repeater/ASL-DAHDI# make
make -C linux all
make[1]: Entering directory ‘/home/repeater/ASL-DAHDI/linux’
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory ‘/home/repeater/ASL-DAHDI/linux/drivers/dahdi/firmware’
make[2]: Leaving directory ‘/home/repeater/ASL-DAHDI/linux/drivers/dahdi/firmware’
make -C /lib/modules/6.0.8-00789-g99a6460d70b3/build M=/home/repeater/ASL-DAHDI/linux/drivers/dahdi DAHDI_INCLUDE=/home/repeater/ASL-DAHDI/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run ‘make oldconfig && make prepare’ on kernel src to fix it.

make[2]: *** [Makefile:742: include/config/auto.conf] Error 1
make[2]: Leaving directory ‘/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3’
make[1]: *** [Makefile:74: modules] Error 2
make[1]: Leaving directory ‘/home/repeater/ASL-DAHDI/linux’
make: *** [Makefile:9: all] Error 2

root@repeater:/usr/src/linux-headers-6.0.8-00789-g99a6460d70b3# make oldconfig && make prepare
can’t find file Kconfig
make[1]: *** [scripts/kconfig/Makefile:77: oldconfig] Error 1
make: *** [Makefile:632: oldconfig] Error 2

UGH!

Clean install of Raspbian 10 (then converted to Libre Computer) Getting stuck at the same place as converting an already installed dahdi module but trying to recompile for Libre Computer.

root@repeater:/tmp# apt -y install asl-dahdi
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
asl-dahdi-dkms asl-dahdi-linux dkms fxload gawk raspberrypi-kernel-headers
Suggested packages:
python3-apport menu gawk-doc
The following NEW packages will be installed:
asl-dahdi asl-dahdi-dkms asl-dahdi-linux dkms fxload gawk raspberrypi-kernel-headers
0 upgraded, 7 newly installed, 0 to remove and 38 not upgraded.
Need to get 34.8 MB of archives.
After this operation, 198 MB of additional disk space will be used.
Get:1 Index of /repos/asl_builds/ buster/main armhf asl-dahdi-dkms all 1:3.0.1.20200801-0.1 [6,132 kB]
Get:2 Index of /debian buster/main armhf raspberrypi-kernel-headers armhf 1:1.20220308~buster-1 [27.7 MB]
Get:3 Index of /repos/asl_builds/ buster/main armhf asl-dahdi-linux all 1:3.0.1.20200801-0.1 [43.1 kB]
Get:4 Index of /repos/asl_builds/ buster/main armhf asl-dahdi armhf 1:3.0.0.1.2 [318 kB]
Get:5 Index of /raspbian/raspbian/ buster/main armhf gawk armhf 1:4.2.1+dfsg-1 [590 kB]
Get:6 Index of /raspbian/raspbian/ buster/main armhf fxload armhf 0.0.20081013-1 [16.1 kB]
Get:7 Index of /raspbian/raspbian/ buster/main armhf dkms all 2.6.1-4 [74.4 kB]
Fetched 34.8 MB in 17s (2,073 kB/s)
Selecting previously unselected package gawk.
(Reading database … 60271 files and directories currently installed.)
Preparing to unpack …/0-gawk_1%3a4.2.1+dfsg-1_armhf.deb …
Unpacking gawk (1:4.2.1+dfsg-1) …
Selecting previously unselected package fxload.
Preparing to unpack …/1-fxload_0.0.20081013-1_armhf.deb …
Unpacking fxload (0.0.20081013-1) …
Selecting previously unselected package dkms.
Preparing to unpack …/2-dkms_2.6.1-4_all.deb …
Unpacking dkms (2.6.1-4) …
Selecting previously unselected package asl-dahdi-dkms.
Preparing to unpack …/3-asl-dahdi-dkms_1%3a3.0.1.20200801-0.1_all.deb …
Unpacking asl-dahdi-dkms (1:3.0.1.20200801-0.1) …
Selecting previously unselected package asl-dahdi-linux.
Preparing to unpack …/4-asl-dahdi-linux_1%3a3.0.1.20200801-0.1_all.deb …
Unpacking asl-dahdi-linux (1:3.0.1.20200801-0.1) …
Selecting previously unselected package asl-dahdi.
Preparing to unpack …/5-asl-dahdi_1%3a3.0.0.1.2_armhf.deb …
Unpacking asl-dahdi (1:3.0.0.1.2) …
Selecting previously unselected package raspberrypi-kernel-headers.
Preparing to unpack …/6-raspberrypi-kernel-headers_1%3a1.20220308~buster-1_armhf.deb …
Unpacking raspberrypi-kernel-headers (1:1.20220308~buster-1) …
Setting up gawk (1:4.2.1+dfsg-1) …
Setting up dkms (2.6.1-4) …
Setting up raspberrypi-kernel-headers (1:1.20220308~buster-1) …
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.103+
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.103-v7+
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.103-v7l+
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.103-v8+
Setting up fxload (0.0.20081013-1) …
Setting up asl-dahdi-dkms (1:3.0.1.20200801-0.1) …
Loading new asl-dahdi-3.0.1.20200801-0.1 DKMS files…
Building for 6.0.8-00789-g99a6460d70b3
Building initial module for 6.0.8-00789-g99a6460d70b3
Error! Bad return status for module build on kernel: 6.0.8-00789-g99a6460d70b3 (aarch64)
Consult /var/lib/dkms/asl-dahdi/3.0.1.20200801-0.1/build/make.log for more information.
dpkg: error processing package asl-dahdi-dkms (–configure):
installed asl-dahdi-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of asl-dahdi-linux:
asl-dahdi-linux depends on asl-dahdi-dkms | asl-dahdi-source; however:
Package asl-dahdi-dkms is not configured yet.
Package asl-dahdi-source is not installed.

dpkg: error processing package asl-dahdi-linux (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of asl-dahdi:
asl-dahdi depends on asl-dahdi-linux; however:
Package asl-dahdi-linux is not configured yet.

dpkg: error processing package asl-dahdi (–configure):
dependency problems - leaving unconfigured
Processing triggers for systemd (241-7~deb10u8+rpi1) …
Processing triggers for man-db (2.8.5-2) …
Errors were encountered while processing:
asl-dahdi-dkms
asl-dahdi-linux
asl-dahdi
E: Sub-process /usr/bin/dpkg returned an error code (1)

Cloned their asl-dahdi out of tree driver and fixed up a bunch of things but it will won’t compile on any kernel later than 5.15. The project authors needs to fix it before you can even attempt to install asterisk. It won’t compile on the latest Raspberry Pi kernels either. Their last update for 1.x is 4 years ago in 2018 and their last update for 2.x is more than a year ago in 2021.

The entire project is not very actively maintained software wise. You really need to get them to fix both the kernel module and the userspace software. We cannot be engineering support for projects in the wild, especially when dealing with out-of-tree drivers. You can point them to this thread.

1 Like