[asterisk-dev] Dahdi modules error with OpenVZ kernel on Debian 7 (2.6.32-openvz-042stab111.11-amd64)
Johan Wilfer
lists at jttech.se
Mon Sep 28 14:07:34 CDT 2015
Hello,
Originally sent the email below to asterisk-users, with no response.
Maybe it belongs to asterisk-dev, as Dahdi no longer compiles/installs
the modules under the conditions described below.
Any thoughts?
--
After upgrading kernel from 2.6.32-openvz-042stab108.8-amd64 to
2.6.32-openvz-042stab111.11-amd64 I fail to load the DAHDI kernel modules.
It's the package dahdi-linux-complete-2.10.2+2.10.2 and it looks like it
compiles and installs just fine (a few error in the text indicates that
something is wrong however)
After "make ; make install ; modprobe dahdi"
This is the output:
libkmod: ERROR ../libkmod/libkmod.c:505
kmod_lookup_alias_from_builtin_file: could not open builtin file
'/lib/modules/2.6.32-openvz-042stab111.11-amd64/modules.builtin.bin'
FATAL: Module dahdi not found.
When I look in /lib/modules/2.6.32-openvz-042stab111.11-amd64 the
dahdi-subtree that exists in the
/lib/modules/2.6.32-openvz-042stab108.8-amd64 (previous kernel) is missing.
Output for make is attached below.
Anyone that is a little bit less lost with compiling kernel modules than
I am?
Many greetings!
/Johan
---
uname -a
Linux pi 2.6.32-openvz-042stab111.11-amd64 #1 SMP Tue Sep 1 18:27:11 MSK
2015 x86_64 GNU/Linux
root at pi:/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux# make
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory
`/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/firmware'
make[1]: Leaving directory
`/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/firmware'
make -C /usr/src/linux
SUBDIRS=/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi
DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/include
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
expr: syntaxfel
make[1]: Entering directory
`/usr/src/linux-headers-2.6.32-openvz-042stab108.8-amd64'
VERSION
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/xpp_version.h
Building modules, stage 2.
MODPOST 36 modules
WARNING: could not find
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_64.o.cmd
for
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o
make[1]: Leaving directory
`/usr/src/linux-headers-2.6.32-openvz-042stab108.8-amd64'
root at pi:/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux# make install
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory
`/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/firmware'
make[1]: Leaving directory
`/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/firmware'
make -C /usr/src/linux
SUBDIRS=/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi
DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/include
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
expr: syntaxfel
make[1]: Entering directory
`/usr/src/linux-headers-2.6.32-openvz-042stab108.8-amd64'
VERSION
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/xpp_version.h
Building modules, stage 2.
MODPOST 36 modules
WARNING: could not find
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_64.o.cmd
for
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o
make[1]: Leaving directory
`/usr/src/linux-headers-2.6.32-openvz-042stab108.8-amd64'
build_tools/uninstall-modules dahdi 2.6.32-openvz-042stab111.11-amd64
make -C /usr/src/linux
SUBDIRS=/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi
DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/include
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes INSTALL_MOD_PATH=
INSTALL_MOD_DIR=dahdi modules_install
expr: syntaxfel
make[1]: Entering directory
`/usr/src/linux-headers-2.6.32-openvz-042stab108.8-amd64'
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_dummy.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_dynamic.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_dynamic_eth.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_dynamic_ethmf.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_dynamic_loc.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_echocan_jpah.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_echocan_kb1.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_echocan_mg2.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_echocan_sec.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_echocan_sec2.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_transcode.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/dahdi_vpmadt032_loader.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/oct612x/oct612x.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/pciradio.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/tor2.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/voicebus/dahdi_voicebus.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wcaxx.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wcb4xxp/wcb4xxp.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wcfxo.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wct1xxp.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wct4xxp/wct4xxp.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wctc4xxp/wctc4xxp.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wctdm.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wctdm24xxp/wctdm24xxp.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wcte11xp.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wcte12xp/wcte12xp.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wcte13xp.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/wcte43x.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/xpd_bri.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/xpd_echo.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/xpd_fxo.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/xpd_fxs.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/xpd_pri.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/xpp.ko
INSTALL
/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/xpp_usb.ko
DEPMOD 2.6.32-openvz-042stab108.8-amd64
make[1]: Leaving directory
`/usr/src/linux-headers-2.6.32-openvz-042stab108.8-amd64'
[ `id -u` = 0 ] && /sbin/depmod -a 2.6.32-openvz-042stab111.11-amd64 || :
WARNING: could not open
/lib/modules/2.6.32-openvz-042stab111.11-amd64/modules.builtin: No such
file or directory
for hdr in kernel.h user.h fasthdlc.h wctdm_user.h dahdi_config.h; do \
install -D -m 644 include/dahdi/$hdr /usr/include/dahdi/$hdr; \
done
make -C drivers/dahdi/firmware hotplug-install DESTDIR= HOTPLUG_FIRMWARE=yes
make[1]: Entering directory
`/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/firmware'
Firmware dahdi-fw-oct6114-032.bin is already installed with required
version 1.05.01
Firmware dahdi-fw-oct6114-064.bin is already installed with required
version 1.05.01
Firmware dahdi-fw-oct6114-128.bin is already installed with required
version 1.05.01
Firmware dahdi-fw-oct6114-256.bin is already installed with required
version 1.05.01
Firmware dahdi-fw-tc400m.bin is already installed with required version
MR6.12
Firmware dahdi-fw-hx8.bin is already installed with required version 2.06
Firmware dahdi-fw-vpmoct032.bin is already installed with required
version 1.12.0
Firmware dahdi-fw-te820.bin is already installed with required version 1.76
Firmware dahdi-fw-te133.bin is already installed with required version
7a001e
Firmware dahdi-fw-te134.bin is already installed with required version
780017
Firmware dahdi-fw-te435.bin is already installed with required version
13001e
Firmware dahdi-fw-te436.bin is already installed with required version 10017
Firmware dahdi-fw-a8a.bin is already installed with required version 1d0017
Firmware dahdi-fw-a8b.bin is already installed with required version 1f001e
Firmware dahdi-fw-a4a.bin is already installed with required version a0017
Firmware dahdi-fw-a4b.bin is already installed with required version d001e
make[1]: Leaving directory
`/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/firmware'
make -C drivers/dahdi/xpp/firmwares install
make[1]: Entering directory
`/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/firmwares'
mkdir -p /usr/share/dahdi
install ../init_card_1_30 ../init_card_2_30 ../init_card_3_30
../init_card_4_30 ../init_card_5_30 /usr/share/dahdi/
install -m 644 ../XppConfig.pm USB_FW.hex USB_FW.201.hex USB_RECOV.hex
FPGA_FXS.hex FPGA_1141.hex FPGA_1151.hex FPGA_1161.hex FPGA_1161.201.hex
FPGA_1161.202.hex PIC_TYPE_1.hex PIC_TYPE_2.hex PIC_TYPE_3.hex
PIC_TYPE_4.hex /usr/share/dahdi/
for id in 202 203; do \
if [ ! -r /usr/share/dahdi/USB_FW.$id.hex ]; then \
ln -s USB_FW.201.hex /usr/share/dahdi/USB_FW.$id.hex;\
fi; \
done
if [ ! -r /usr/share/dahdi/FPGA_1161.203.hex ]; then \
ln -s FPGA_1161.201.hex /usr/share/dahdi/FPGA_1161.203.hex;\
fi
make[1]: Leaving directory
`/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/xpp/firmwares'
###################################################
###
### DAHDI installed successfully.
### If you have not done so before, install the package
### dahdi-tools.
###
###################################################
root at pi:/usr/src/dahdi-linux-complete-2.10.2+2.10.2/linux#
More information about the asterisk-dev
mailing list