[Home]

Summary:DAHLIN-00261: Not enough info in README about successfully building OSLEC echo canceller
Reporter:Anton Kvashenkin (kvashenkin)Labels:
Date Opened:2011-11-02 07:12:49Date Closed:2012-01-17 08:34:01.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:dahdi (the module)
Versions:2.5.0.1 Frequency of
Occurrence
Related
Issues:
is related toDAHLIN-00110 [patch] A little more quick and dirty way to build OSLEC
is related toDAHLIN-00249 floating point issues at startup
Environment:Debian GNU/Linux 6.0.1 (squeeze)Attachments:
Description:There are a lot of tutorials about building OSLEC on the internet, but if you build dahdi-linux from source, the first reference, which people will use, obviously, is README. But if you're following README, you do not build staging/echo/echo.o cause:

When you're copying drivers/staging/echo (i was using linux-source-2.6.32.tar.bz2 from debian repository), you're copying _kernel_ makefile drivers/staging/echo/Makefile, containing $(CONFIG_ECHO) variable

{noformat}obj-$(CONFIG_ECHO) += echo.o{noformat}

So, when running make you get warnings like that:

{noformat}WARNING: "oslec_create" [/home/kvashenkin/dahdi-linux-complete-2.5.0.1+2.5.0.1/linux/drivers/dahdi/dahdi_echocan_oslec.ko] undefined!
WARNING: "oslec_free" [/home/kvashenkin/dahdi-linux-complete-2.5.0.1+2.5.0.1/linux/drivers/dahdi/dahdi_echocan_oslec.ko] undefined!
WARNING: "oslec_update" [/home/kvashenkin/dahdi-linux-complete-2.5.0.1+2.5.0.1/linux/drivers/dahdi/dahdi_echocan_oslec.ko] undefined!{noformat}

To solve this problem, you _also_ need to edit drivers/staging/echo/Makefile, make it looks like this:

{noformat}obj-m += echo.o{noformat}

And then the output will be without errors:

{noformat}
...
CC [M] /home/tzafrir/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.o
CC [M] /home/tzafrir/dahdi-linux/drivers/dahdi/../staging/echo/echo.o

{noformat}
Comments: