Hi everyone,<div><br></div><div>I am having  issues with cross compiling DAHDI on the blackfin processor and Tzafrir suggested I post my question here.</div><div><br></div><div><span class="Apple-style-span" style="font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; color: rgb(90, 90, 137); line-height: 14px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; ">
Here is what I get when I simply run make KSRC=wherever my uClinux kernel  is - right in the dahdi linux directory:</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; ">
 </p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: smaller; ">danamarandei@ubuntu:~/apps/BAPS2/dahdi-linux-2.2.0.2$ make KSRC=~/apps/BAPS2/uClinux-dist/</span></p>
<span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: smaller; ">make -C drivers/dahdi/firmware firmware-loadersmake[1]: Entering directory `/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/firmware&#39;make[1]: Leaving directory `/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/firmware&#39;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=&quot; &quot; HOTPLUG_FIRMWARE=no modules DAHDI_BUILD_ALL=mmake[1]: Entering directory `/home/danamarandei/apps/BAPS2/uClinux-dist&#39;. linux-2.6.x/.config; if [ &quot;$CONFIG_MODULES&quot; = &quot;y&quot; ]; then \<span class="Apple-tab-span" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; white-space: pre; ">                </span>[ -d linux-2.6.x/modules ] || mkdir linux-2.6.x/modules; \<span class="Apple-tab-span" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; white-space: pre; ">                </span>make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -C linux-2.6.x modules; \<span class="Apple-tab-span" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; white-space: pre; ">        </span>fimake[2]: Entering directory `/home/danamarandei/apps/BAPS2/uClinux-dist/linux-2.6.x&#39;/home/danamarandei/apps/BAPS2/dahdi-linux-2.2.0.2/drivers/dahdi/Kbuild:85: CPU Architecture &#39;blackfin&#39; 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&#39;make[1]: *** [modules] Error 2make[1]: Leaving directory `/home/danamarandei/apps/BAPS2/uClinux-dist&#39;make: *** [modules] Error </span></span></div>
<div><font class="Apple-style-span" color="#5A5A89" face="Tahoma, Verdana, Arial, sans-serif" size="2"><span class="Apple-style-span" style="font-size: 10px; line-height: 14px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br>
</span></font></div><div><font class="Apple-style-span" color="#5A5A89" face="Tahoma, Verdana, Arial, sans-serif"><span class="Apple-style-span" style="line-height: 14px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">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 &quot;obj -$(CONFIG_DAHDI)     +=dahdi/&quot;  and in uClinux-dist/linux-2.6.x/drivers/Kconfig like this &quot;source &quot;drivers/dahdi/Kconfig&quot;&quot;. 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.</span></font></div>
<div><font class="Apple-style-span" color="#5A5A89" face="Tahoma, Verdana, Arial, sans-serif"><span class="Apple-style-span" style="line-height: 14px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br>
</span></font></div><div><font class="Apple-style-span" color="#5A5A89" face="Tahoma, Verdana, Arial, sans-serif"><span class="Apple-style-span" style="line-height: 14px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">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.</span></font></div>
<div><font class="Apple-style-span" color="#5A5A89" face="Tahoma, Verdana, Arial, sans-serif"><span class="Apple-style-span" style="line-height: 14px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br>
</span></font></div><div><font class="Apple-style-span" color="#5A5A89" face="Tahoma, Verdana, Arial, sans-serif"><span class="Apple-style-span" style="line-height: 14px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">Thanks.</span></font></div>