Kernel sources

After upgrading my Debian from 4.0r1 to 4.0r2, my TDM 400 card stopped working

asterisk:/usr/src/zaptel-1.4.5.1# ztcfg -vv
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl’

1 error(s) detected

I tried to compile zaptel again:

asterisk:/etc/asterisk# cd /usr/src/zaptel-1.4.5.1/
asterisk:/usr/src/zaptel-1.4.5.1# make
grep: /include/linux/autoconf.h: No such file or directory
grep: /include/linux/autoconf.h: No such file or directory
make[1]: Entering directory /usr/src/zaptel-1.4.5.1' [b]You do not appear to have the sources for the 2.6.22-3-686 kernel installed.[/b] make[1]: *** [modules] Error 1 make[1]: Leaving directory/usr/src/zaptel-1.4.5.1’
make: *** [all] Error 2
asterisk:/usr/src/zaptel-1.4.5.1#

How do I install the sources for the 2.6.22-3-686 kernel? :unamused:

hi
uname -a your current kernel version

apt-get install linux-headers-versionnumber(got from uname)

chhers
smaikol

[quote=“smaikol”]hi
uname -a your current kernel version

apt-get install linux-headers-versionnumber(got from uname)

chhers
smaikol[/quote]

It works again. :stuck_out_tongue:

Thanks for your reply.