1 Fisrt you must download the kernel source code and to make select the optional which you instering
cd /usr/src
apt-get -y install linux-source
tar jxvf linux-source-2.6.31.tar.bz2
cd /usr/src/linux-source-2.6.31
apt-get -y install kernel-package ncurses-dev
make menuconfig
make
2 download the asterisk code such as:
asterisk-1.6.1.4.tar.gz
dahdi-tools-2.2.0.tar.gz
asterisk-addons-1.6.1.1.tar.gz
libpri-1.4.10.1.tar.gz
dahdi-linux-2.2.0.2.tar.gz
if you want to care about the detail :
voip-info.org/wiki/view/Cent … stallation
asterisk.org/downloads
asteriskguru.com/tutorials/
3 to install and prepare
apt-get -y install bison flex sox libncurses5-dev libnewt-dev mpg123
maybe you get problem about as bellow :
/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c: In function ‘wctc4xxp_net_register’:
/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:776: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:777: error: ‘struct net_device’ has no member named ‘open’
/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:778: error: ‘struct net_device’ has no member named ‘stop’
/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:779: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:780: error: ‘struct net_device’ has no member named ‘get_stats’
/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:781: error: ‘struct net_device’ has no member named ‘do_ioctl’
make[3]: *** [/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.o] Error 1
make[2]: *** [/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp] Error 2
make[1]: *** [module/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi] Error 2
please see :http://lists.digium.com/pipermail/dahdi-commits/2009-August/001214.html
76.164.171.234/svn/dahdi/linux/b … threv=6937
here is the message we can get in those ULR
Merged revisions 6717,6760 via svnmerge from
[origsvn.digium.com/svn/dahdi/linux/trunk](https://origsvn.digium.com/svn/dahdi/linux/trunk)
........
r6717 | sruffell | 2009-06-24 21:30:19 -0500 (Wed, 24 Jun 2009) | 3 lines
wctc4xxp: Update to use struct net_device_ops.
Accomodates a change in the linux kernel network device interface.
........
r6760 | sruffell | 2009-06-25 17:16:34 -0500 (Thu, 25 Jun 2009) | 1 line
wctc4xxp: Make the wctc4xxp_netdev_ops structure static.
maybe you get problem as bellow:
please see:http://lists.digium.com/pipermail/asterisk-users/2004-October/059553.html
Unknown symbol crc_ccitt_table
By coincidence, I upgraded my * box to 2.6.8.1 today. I encountered the
exact same problem.
Compile a kernel with CONFIG_CRC_CCITT=y and the problem will go away. Building
it as a module will probably also work.
(this is a kernel glitch; that symbol is being unconditionally included in
the module symbol table)
........
Author: qwell
Date: Wed Oct 22 13:49:41 2008
New Revision: 5124
maybe you get problem as bellow:
please see
lists.digium.com/pipermail/dahdi … 00446.html
URL: svn.digium.com/view/dahdi?view=rev&rev=5124
Log:
Need to make sure we check for udevadm in addition to udevinfo.
Some silly person (or people) decided that it wasn’t useful to have in their distro…
*cough*
Modified:
linux/trunk/build_tools/genudevrules
Modified: linux/trunk/build_tools/genudevrules
URL: [svn.digium.com/view/dahdi/linux/ ... 23&r2=5124](http://svn.digium.com/view/dahdi/linux/trunk/build_tools/genudevrules?view=diff&rev=5124&r1=5123&r2=5124)
==============================================================================
--- linux/trunk/build_tools/genudevrules (original)
+++ linux/trunk/build_tools/genudevrules Wed Oct 22 13:49:41 2008
@@ -3,8 +3,13 @@
ver=`udevinfo -V | cut -f3 -d" "`
if [ -z "${ver}" ]; then
- # nobody has that old version, anyway.
- ver=54
+ # Not found - try udevadm
+ ver=`udevadm info -V | cut -f3 -d" "`
+
+ if [ -z "${ver}" ]; then
+ # nobody has that old version, anyway.
+ ver=54
+ fi
fi
# udev versions prior to 055 use a single '=' for matching key values