[asterisk-dev] compiling Dahdi on blackfin

Dan Amarandei dan.amarandei at gmail.com
Sat Nov 21 14:38:18 CST 2009


On Thu, 2009-11-19 at 09:33 +0200, Tzafrir Cohen wrote:
> On Thu, Nov 19, 2009 at 12:13:03AM -0500, Dan Amarandei wrote:
> > 
> > Now that DAHDI is complied I still can't go to the next step: if I
> > do /.configure --host=bfin-linux-uclibc --disable-largefile \
> > --without-pwlib --without-curl --disable-xmldoc 
> 
> Without xmldoc you'll have no on-line help :-(
> 
> >                                                  --with-dahdi
> > --with-tonezone in the for asterisk-1.6.1.6 I get 
> > 
> > 
> > checking for bfin-linux-uclibc-pkg-config... no
> > checking for pkg-config... pkg-config
> > checking for mandatory modules:  DAHDI TONEZONE... fail
> 
> Either <dahdi/tonezone.h> or -ltonezone weren't found.
> 
> Or is it <dahdi/user.h> ?
> 
> Can you see from config.log which exactly?
> 
> > 
> > configure: ***
> > configure: *** The DAHDI installation appears to be missing or broken.
> > configure: *** Either correct the installation, or run configure
> > configure: *** including --without-dahdi.
> > 
> > configure: ***
> > configure: *** The TONEZONE installation appears to be missing or
> > broken.
> > configure: *** Either correct the installation, or run configure
> > configure: *** including --without-tonezone.
> > make: *** [/home/dan/apps/BAPS2/asterisk-1.6.1.6/.configured] Error 1
> > 
> > if I do /.configure --host=bfin-linux-uclibc --disable-largefile \
> > --without-pwlib --without-curl --disable-xmldoc --with-dahdi=
> > $(UCLINUX_DIST)/linux-2.6.x/drivers/dahdi \ --with-tonezone in the for
> > asterisk-1.6.1.6 I get the same thing as above.
> > 
> > What am I missing, it should be looking for "dahdi.ko", right?
> > 
> > Same goes for /.configure --host=bfin-linux-uclibc in the
> > dahdi-tools-2.2.0 directory.
> 

All fixed. All I had left to do is copy the include folder from
dahdi-linux-2.2.0.2 to uClinux-dist/staging/usr/include for the DAHDI
linux

and

make a new make file for dahdi-tools with make -C $(DAHDI-TOOLS_DIR)/
STAGEDIR=$(STAGING_DIR) install DESTDIR=$(STAGING_DIR) where STAGING_DIR
is the same staging directory as above for dahdi-tools

now I have Asterisk-1.6.1.6 compiled with DAHDI for Blackfin. I need to
clean up my makefiles before releasing anything and I still need to
finish my porting of wcfxs.ko.  The dahdi-linux install is against the
uClinux staging tree - I still need to implement the /dev/dahdi on the
target - I might need some more help with that later....

Thanks.







More information about the asterisk-dev mailing list