Discussion:
[asterisk-users] DAHDI and Oslec
Doug Lytle
2013-02-26 16:38:15 UTC
Permalink
I'm hoping someone can help me here.

I've purchased replacement systems for 3 aging 1.4.x installs. I'm hoping to setup Asterisk 11, dahdi 2.6.1 and Oslec.

I'm also moving those installs from Mandriva 10.0 to Debian 6.06 (Squeeze).

In my testing, the TE220P PCIe cards that I have, the timing was awful on both slots, so I compiled Kernel 3.6.9 from kernel.org. Timing jumped to what I was expecting, so I moved on to recompiling dahdi complete for Oslec.

Browsed the Linux source directory for drivers/staging/echo and copied it to the proper tree in the dahdi complete directory.

Did a make distclean;make clean;make all

And everything compiled cleanly, including oslec.

But, when trying to set my E.C. to oslec, I get:

Feb 26 11:21:37 indyvoip modprobe: FATAL: Error inserting dahdi_echocan_oslec (/lib/modules/3.6.9-custom-3.6.9/dahdi/dahdi_echocan_oslec.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Feb 26 11:21:37 indyvoip kernel: [ 1395.262334] dahdi_echocan_oslec: Unknown symbol oslec_create (err 0)
Feb 26 11:21:37 indyvoip kernel: [ 1395.262348] dahdi_echocan_oslec: Unknown symbol oslec_update (err 0)
Feb 26 11:21:37 indyvoip kernel: [ 1395.262365] dahdi_echocan_oslec: Unknown symbol oslec_free (err 0)
Feb 26 11:21:41 indyvoip modprobe: FATAL: Error inserting dahdi_echocan_oslec (/lib/modules/3.6.9-custom-3.6.9/dahdi/dahdi_echocan_oslec.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Feb 26 11:21:41 indyvoip kernel: [ 1398.799227] dahdi_echocan_oslec: Unknown symbol oslec_create (err 0)
Feb 26 11:21:41 indyvoip kernel: [ 1398.799241] dahdi_echocan_oslec: Unknown symbol oslec_update (err 0)
Feb 26 11:21:41 indyvoip kernel: [ 1398.799258] dahdi_echocan_oslec: Unknown symbol oslec_free (err 0)

And dmesg shows:

[ 1395.262334] dahdi_echocan_oslec: Unknown symbol oslec_create (err 0)
[ 1395.262348] dahdi_echocan_oslec: Unknown symbol oslec_update (err 0)
[ 1395.262365] dahdi_echocan_oslec: Unknown symbol oslec_free (err 0)
[ 1398.799227] dahdi_echocan_oslec: Unknown symbol oslec_create (err 0)
[ 1398.799241] dahdi_echocan_oslec: Unknown symbol oslec_update (err 0)
[ 1398.799258] dahdi_echocan_oslec: Unknown symbol oslec_free (err 0)

My Googlng-Fu failed me, as everything was dated from 201 0 and earlier on this error. I'm guessing that I compiled the kernel wrong, I followed these instructions to create .debs

http://www.howtoforge.com/kernel_compilation_ubuntu

Everything seemed to work well.

Coming from a Mandrake/Mandriva background, I'm used to just:

make oldconfig
make menuconfig (Make my changes)
make all
make modules_install
make install

Any hints would be appreciated,

Doug
--
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Christopher Harrington
2013-02-26 16:54:16 UTC
Permalink
Post by Doug Lytle
Feb 26 11:21:37 indyvoip modprobe: FATAL: Error inserting
dahdi_echocan_oslec
(/lib/modules/3.6.9-custom-3.6.9/dahdi/dahdi_echocan_oslec.ko): Unknown
symbol in module, or unknown parameter (see dmesg)
Unknown symbol oslec_create (err 0)
Unknown symbol oslec_update (err 0)
Unknown symbol oslec_free (err 0)
Feb 26 11:21:41 indyvoip modprobe: FATAL: Error inserting
dahdi_echocan_oslec
(/lib/modules/3.6.9-custom-3.6.9/dahdi/dahdi_echocan_oslec.ko): Unknown
symbol in module, or unknown parameter (see dmesg)
Unknown symbol oslec_create (err 0)
Unknown symbol oslec_update (err 0)
Unknown symbol oslec_free (err 0)
[ 1395.262334] dahdi_echocan_oslec: Unknown symbol oslec_create (err 0)
[ 1395.262348] dahdi_echocan_oslec: Unknown symbol oslec_update (err 0)
[ 1395.262365] dahdi_echocan_oslec: Unknown symbol oslec_free (err 0)
[ 1398.799227] dahdi_echocan_oslec: Unknown symbol oslec_create (err 0)
[ 1398.799241] dahdi_echocan_oslec: Unknown symbol oslec_update (err 0)
[ 1398.799258] dahdi_echocan_oslec: Unknown symbol oslec_free (err 0)
I encountered the same. Turns out, you need to disable OSLEC in your codec
.config, and delete the modules in your /lib/modules/[kernel
version]/drivers/staging directory, and then (in your kernel sources)
make && make modules && make modules install

The dahdi tools actually contains an out-of-tree version that worked out of
the box.
--
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
Doug Lytle
2013-02-26 17:09:04 UTC
Permalink
I encountered the same. Turns out, you need to disable OSLEC in your codec .config, and delete the modules in your /lib/modules/[kernel version]/drivers/staging directory, and then >> (in your kernel sources)
make && make modules && make modules install
There was nothing listed in /usr/src/linux/.config for OSLEC
There were no modules in /lib/modules/3.6.9-custom-3.6.9/kernel/drivers/staging for OSLEC

Doug
--
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Christopher Harrington
2013-02-26 17:14:34 UTC
Permalink
It's called "echo" in the kernel configs.
Post by Christopher Harrington
I encountered the same. Turns out, you need to disable OSLEC in your
codec .config, and delete the modules in your /lib/modules/[kernel
version]/drivers/staging directory, and then >> (in your kernel sources)
Post by Christopher Harrington
make && make modules && make modules install
There was nothing listed in /usr/src/linux/.config for OSLEC
There were no modules in
/lib/modules/3.6.9-custom-3.6.9/kernel/drivers/staging for OSLEC
Doug
--
"Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety."
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
http://www.asterisk.org/hello
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
--
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
Doug Lytle
2013-02-26 17:28:32 UTC
Permalink
Post by Christopher Harrington
It's called "echo" in the kernel configs.
cat .config|grep -i echo

CONFIG_SND_ECHO3G=m
# CONFIG_ECHO is not set

Doug
--
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Marco Signorini
2013-02-26 17:03:00 UTC
Permalink
Hi.
I had the same problem in the past and I've found that there was already
an echo.ko module built in my kernel module folder.
I've renamed it and replaced with the one compiled with dahdi+oslec and
it started working as expected.

I was on OpenSuse with kernel 2.6.27.56-0.1... it's very old so I can't
tell you if this is something true for Debian 6.06 too.

Thanks.
Marco Signorini.
Post by Doug Lytle
I'm hoping someone can help me here.
I've purchased replacement systems for 3 aging 1.4.x installs. I'm
hoping to setup Asterisk 11, dahdi 2.6.1 and Oslec.
I'm also moving those installs from Mandriva 10.0 to Debian 6.06 (Squeeze).
In my testing, the TE220P PCIe cards that I have, the timing was awful
on both slots, so I compiled Kernel 3.6.9 from kernel.org. Timing
jumped to what I was expecting, so I moved on to recompiling dahdi
complete for Oslec.
Browsed the Linux source directory for drivers/staging/echo and copied
it to the proper tree in the dahdi complete directory.
Did a make distclean;make clean;make all
And everything compiled cleanly, including oslec.
Feb 26 11:21:37 indyvoip modprobe: FATAL: Error inserting
dahdi_echocan_oslec
Unknown symbol in module, or unknown parameter (see dmesg)
Unknown symbol oslec_create (err 0)
Unknown symbol oslec_update (err 0)
Unknown symbol oslec_free (err 0)
Feb 26 11:21:41 indyvoip modprobe: FATAL: Error inserting
dahdi_echocan_oslec
Unknown symbol in module, or unknown parameter (see dmesg)
Unknown symbol oslec_create (err 0)
Unknown symbol oslec_update (err 0)
Unknown symbol oslec_free (err 0)
[ 1395.262334] dahdi_echocan_oslec: Unknown symbol oslec_create (err 0)
[ 1395.262348] dahdi_echocan_oslec: Unknown symbol oslec_update (err 0)
[ 1395.262365] dahdi_echocan_oslec: Unknown symbol oslec_free (err 0)
[ 1398.799227] dahdi_echocan_oslec: Unknown symbol oslec_create (err 0)
[ 1398.799241] dahdi_echocan_oslec: Unknown symbol oslec_update (err 0)
[ 1398.799258] dahdi_echocan_oslec: Unknown symbol oslec_free (err 0)
My Googlng-Fu failed me, as everything was dated from 201 0 and
earlier on this error. I'm guessing that I compiled the kernel wrong,
I followed these instructions to create .debs
http://www.howtoforge.com/kernel_compilation_ubuntu
Everything seemed to work well.
make oldconfig
make menuconfig (Make my changes)
make all
make modules_install
make install
Any hints would be appreciated,
Doug
--
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
http://www.asterisk.org/hello
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
Tzafrir Cohen
2013-02-26 17:03:21 UTC
Permalink
Post by Doug Lytle
I'm hoping someone can help me here.
I've purchased replacement systems for 3 aging 1.4.x installs. I'm hoping to setup Asterisk 11, dahdi 2.6.1 and Oslec.
I'm also moving those installs from Mandriva 10.0 to Debian 6.06 (Squeeze).
Grab a recent dahdi-source from somewhere:

http://packages.debian.org/search?keywords=dahdi-source

If that does not work, try:

http://updates.xorcom.com/pkg-voip/

With that installed, run:

m-a a-i dahdi

It already includes OSLEC.
--
Tzafrir Cohen
icq#16849755 jabber:***@xorcom.com
+972-50-7952406 mailto:***@xorcom.com
http://www.xorcom.com iax:***@local.xorcom.com/tzafrir
Doug Lytle
2013-02-26 17:31:59 UTC
Permalink
Did just that and ran your listed command. The compile fails at:


make[3]: Entering directory `/usr/src/linux-3.6.9'
CC [M] /usr/src/modules/dahdi/drivers/dahdi/dahdi-base.o
/usr/src/modules/dahdi/drivers/dahdi/dahdi-base.c:52:28: error: linux/smp_lock.h: No such file or directory

I did a:

updatedb
locate smp_lock.h

Came back with not found


Doug
--
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Tzafrir Cohen
2013-02-26 19:26:29 UTC
Permalink
Post by Doug Lytle
make[3]: Entering directory `/usr/src/linux-3.6.9'
CC [M] /usr/src/modules/dahdi/drivers/dahdi/dahdi-base.o
/usr/src/modules/dahdi/drivers/dahdi/dahdi-base.c:52:28: error: linux/smp_lock.h: No such file or directory
What version did you use? 2.6.1 or the older 2.3.0 one? If the latter,
try 2.6.1 .
--
Tzafrir Cohen
icq#16849755 jabber:***@xorcom.com
+972-50-7952406 mailto:***@xorcom.com
http://www.xorcom.com iax:***@local.xorcom.com/tzafrir
Doug Lytle
2013-02-26 20:40:11 UTC
Permalink
or the older 2.3.0 one? If the latter, try 2.6.1 .
Started from scratch, and then downloaded the 2.6.1. This time is succeeded.

Thanks for everybody input and Tzafrir's help!

Doug
--
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Loading...