[asterisk-dev] compiling Dahdi on blackfin

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Nov 13 02:18:32 CST 2009


On Thu, Nov 12, 2009 at 10:36:59PM -0500, Dan Amarandei wrote:
> 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:

Hmm... There's no point in building voicebus for your system unless it has PCI.

> 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. 

The rest are disabled due to missing PCI support. See
drivers/dahdi/Kconfig .

> 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.

What error do you get, exactly?

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list