[asterisk-dev] compiling Dahdi on blackfin

Dan Amarandei dan.amarandei at gmail.com
Thu Nov 12 21:36:59 CST 2009


Hi everyone,

I am having  issues with cross compiling DAHDI on the blackfin processor and
Tzafrir suggested I post my question here.

Here is what I get when I simply run make KSRC=wherever my uClinux kernel
 is - right in the dahdi linux directory:



danamarandei at ubuntu:~/apps/BAPS2/dahdi-linux-2.2.0.2$ make
KSRC=~/apps/BAPS2/uClinux-dist/
make -C drivers/dahdi/firmware firmware-loadersmake[1]: Entering directory
`/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'make[1]:
Leaving directory
`/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'echo
Prreq runningPrreq runningmake -C
/home/danamarandei/apps/BAPS2/uClinux-dist/
SUBDIRS=/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi
DAHDI_INCLUDE=/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/include
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=no modules
DAHDI_BUILD_ALL=mmake[1]: Entering directory
`/home/danamarandei/apps/BAPS2/uClinux-dist'. linux-2.6.x/.config; if [
"$CONFIG_MODULES" = "y" ]; then \ [ -d linux-2.6.x/modules ] || mkdir
linux-2.6.x/modules; \ make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -C
linux-2.6.x modules; \ fimake[2]: Entering directory
`/home/danamarandei/apps/BAPS2/uClinux-dist/linux-2.6.x'/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/Kbuild:85:
CPU Architecture 'blackfin' does not support VPMADT032 or HPEC.
Skipping.  CC [M]
 /home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.o/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:
In function
‘vb_initialize_descriptors’:/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:316:
warning: implicit declaration of function
‘pci_alloc_consistent’/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:317:
warning: assignment makes pointer from integer without a
cast/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:
In function
‘vb_initialize_tx_descriptors’:/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:336:
error: ‘DMA_TO_DEVICE’ undeclared (first use in this
function)/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:336:
error: (Each undeclared identifier is reported only
once/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:336:
error: for each function it appears
in.)/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:
In function
‘vb_initialize_rx_descriptors’:/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:343:
error: ‘DMA_FROM_DEVICE’ undeclared (first use in this
function)/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:
In function
‘__vb_getctl’:/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:428:
warning: passing argument 1 of ‘readl’ makes pointer from integer without a
cast/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:
In function
‘vb_free_descriptors’:/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:493:
warning: implicit declaration of function
‘pci_free_consistent’/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:
In function
‘vb_submit’:/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:741:
warning: implicit declaration of function
‘dma_map_single’/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:
In function
‘vb_retrieve’:/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.c:757:
warning: implicit declaration of function ‘dma_unmap_single’make[4]: ***
[/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus/voicebus.o]
Error 1make[3]: ***
[/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/voicebus]
Error 2make[2]: ***
[_module_/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi]
Error 2make[2]: Leaving directory
`/home/danamarandei/apps/BAPS2/uClinux-dist/linux-2.6.x'make[1]: ***
[modules] Error 2make[1]: Leaving directory
`/home/danamarandei/apps/BAPS2/uClinux-dist'make: *** [modules] Error

As an alternative I have copied the dahdi-linux-2.2.0.2/drivers/dahdi into
uClinux-dist/linux-2.6.x/drivers and added a line in
uClinux-dist/linux-2.6.x/drivers/Makefile like this "obj -$(CONFIG_DAHDI)
  +=dahdi/"  and in uClinux-dist/linux-2.6.x/drivers/Kconfig like this
"source "drivers/dahdi/Kconfig"". When I run make xconfig in the
uClinux-dist folder  Customize kernel settings now shows DAHDI support  with
DAHDI Echo Cancelers as a submenu, DAHDI transcoding support as the second
submenu, and Xorcom Astribank Support as a further option. I disabled
everything but the DAHDI transcoding support - yet when I go on to make I
get build errors where it looks like include folders are not there.

All I am really looking for is to have the DAHDI basics only for Asterisk
1.6 however  ultimately I need to port the wcfxs driver - any help would be
greatly appreciated.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20091112/b2786f40/attachment-0001.htm 


More information about the asterisk-dev mailing list