need to bump version of dahdi-2.2.0.2 to work with linux-2.6.30-gentoo-r6 Reproducible: Always
Created attachment 205512 [details] dahdi-2.2.0.2.ebuild ebuild for dahdi-2.2.0.2 which compiles and works with kernel 2.6.30-r6 includes support for linux staging driver oslec (software echo cancellation)
Created attachment 205514 [details, diff] patch from asterisk.org necessary to compile dahdi with kernels >= 2.6.29
Created attachment 205516 [details, diff] module dependency patch
Created attachment 205518 [details, diff] patch to compile dahdi_echocan_oslec.ko
I've compiled dahdi-2.2.0.2 using this ebuild and have enabled oslec support on each of the ports of my TDM400P cards. Haven't had any problems using dahdi + oslec + asterisk-1.6 # lsmod | grep oslec dahdi_echocan_oslec 1480 0 echo 3360 1 dahdi_echocan_oslec dahdi 172692 18 dahdi_echocan_oslec,dahdi_transcode,dahdi_echocan_mg2,xpp,wctdm,wcfxo #uname -a Linux pbx 2.6.30-gentoo-r6 #4 SMP Thu Sep 24 20:39:58 EDT 2009 i686 AMD Athlon(TM) XP 2800+ AuthenticAMD GNU/Linux #gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/gcc-4.2.4/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.2.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.2.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.2.4/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.2.4 (Gentoo 4.2.4-r1 p1.1) #emerge --info Portage 2.2_rc40 (default/linux/x86/2008.0, gcc-4.2.4, glibc-2.10.1-r0, 2.6.30-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r6-i686-AMD_Athlon-TM-_XP_2800+-with-gentoo-2.0.1 Timestamp of tree: Tue, 06 Oct 2009 09:30:01 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p33 dev-java/java-config: 1.3.7-r1, 2.1.9-r1 dev-lang/python: 2.4.4-r15, 2.5.4-r2, 2.6.2-r1, 3.1.1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" It might make sense to have one up-to-date dahdi ebuild which includes both kernel's oslec and Digium's hpec echo cancellors. This ebuild should probably check for kernel version >=2.6.28 and check for kernel configuration parameters: CONFIG_STAGING=y and CONFIG_ECHO=m I could either patch this ebuild to include hpec support, ala http://bugs.gentoo.org/show_bug.cgi?id=270283 (see comment #34) or add oslec support to that ebuild.
dahdi-2.2.0.2 has been in the voip overlay for some time already, including build fix for 2.6.31
(In reply to comment #6) > dahdi-2.2.0.2 has been in the voip overlay for some time already, including > build fix for 2.6.31 > I just sync'd my voip overlay. I don't see any explicit support for software echo cancellation in the 2.2.0.2 ebuild.
If you have a feature request, then you are best advised to open a separate bug report.
What difference opening another bug would make, increase the number of bugs? Jeremy is correct the new dahdi should include oslec. I was thinking of using new USBfxo and need this oslec; so I guess I'll have to use Jeremy's ebuild.
*** Bug 275635 has been marked as a duplicate of this bug. ***
Sorry, copying half of the kernel sources in is just not acceptable. Version bumped all the same though, thanks for the bug :) +*dahdi-2.2.0.2 (22 Oct 2009) + + 22 Oct 2009; <chainsaw@gentoo.org> +dahdi-2.2.0.2.ebuild, + +files/dahdi-2.2.0.2-driver_data-2.6.32.patch, + +files/dahdi-2.2.0.2-gcc44-hack.patch, + +files/dahdi-2.2.0.2-includes.patch, + +files/dahdi-2.2.0.2-net-device-ops.patch, + +files/dahdi-2.2.0.2-no-depmod.patch: + Version bump, closes bug #286829 by Jeremy Johnson. Build all target + instead of modules target so echo cancellation becomes available, as + suggested by Jay Pfeifer in bug #268652. Ported to 2.6.32 kernels (release + candidate 5 at the time of writing), filed upstream bug. Quick hack for + GCC4.4 compilation.