Hi,
well i have figured out how to install chan_dongle in ast linux .
i am not an expert but this is what i did , hope somebody will polish it very
well and according to rules .
in file : /root/astlinux/1.0/project/astlinux/geni586/linux.config
added the following :
USB_SERIAL_OPTION=m
USB_SERIAL_GENERIC=m
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
add "option" in /etc/modprobe.d/alias.conf or you can do it through astlinux
webgui .
and :
add /usr/lib/ in to /root/astlinux/1.0/output/target/etc/ld.so.conf
and then i created the Dongle package ( i know it's nasty , i don't know much
about make utlity etc , but i followed some other package's .config and .mk
files , and did what i understood )
i extracted the asterisk source in dl/ directory
then : mkdir /root/astlinux/1.0/package/dongle
put Config.in and dongle.mk in /root/astlinux/1.0/package/dongle
Config.in :
config BR2_PACKAGE_DONGLE
bool "dongle"
help
gsm dongle channel
http://code.google.com/p/asterisk-chan-dongle/
dongle.mk :
#############################################################
#
# dongle
#
#############################################################
DONGLE_VERSION = 18
DONGLE_SOURCE = chan-dongle-$(DONGLE_VERSION).tar
DONGLE_SITE = http://192.168.164.120/packages
DONGLE_AUTORECONF = NO
DONGLE_INSTALL_STAGING = YES
DONGLE_INSTALL_TARGET = YES
DONGLE_DEPENDENCIES = libiconv
DONGLE_CONF_OPT =
--with-asterisk=/root/astlinux/1.0/dl/asterisk-1.8.21.0/include
DESTDIR="$(TARGET_DIR)/usr/lib/asterisk/modules/" LDFLAGS="$(TARGET_LDFLAGS)
-L$(STAGING_DIR)/usr/lib/ -liconv"
$(eval $(call AUTOTARGETS,package,dongle))
first set DONGLE_AUTORECONF to YES , so that it can generate .configure file .
after generating .configure file , the compilation will stop and will complain
about .mk file ,
so set DONGLE_AUTORECONF to NO and then compile again .
that's it .
but i had a few problems .
if i add my chan_dongle package in fresh astlinux buildroot then dostools and
lmsensor will not be able to compile , they complain about iconv , so i had to
,at first ,compile astlinux as it is being provided from svn . when it compiled
all packages successfully then i added my dongle package in it and rebuilt it .
second problem was that the chan_dongle package from here
http://code.google.com/p/asterisk-chan-dongle/downloads/list , didn't have
.configure script by default and my dongle.mk complains about it . so i had to
set DONGLE_AUTORECONF to YES , so that it can generate .configure file , and
then DONGLE_AUTORECONF will complain about .mk file , so i again restet
DONGLE_AUTORECONF to NO and then compiled it , and it compiled successfully ,
the dongle.mk is not clean and up to the mark , becoz i don't know about make
utlity and pacakge development etc . but this procedure worked for me . and i
can use chan_dongle with asterisk 1.8.xx in astlinux .i hope some body can
write a clean .mk file .
Intizar Ali Kauser
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].