Hi Deva, Thank you for replying. Yes, I did. But I face same error... I executed grep in kernel directory with these functions, but I could not find them.
/Yoshi On 3ζ10ζ₯, εεΎ7:16, Deva R <[email protected]> wrote: > Hi Yoshi, > i guess => spi api should be part of kernel, and wlan module can access it. > did u set KERNEL_DIR properly? > > $ cd $MYDROID/system/wlan/ti/wilink_6_1/platforms/os/linux > $ export PATH=<path to compiler>:$PATH > $ export CROSS_COMPILE=arm-none-linux-gnueabi- > $ export ARCH=arm > $ export HOST_PLATFORM=zoom2 > $ export KERNEL_DIR=$MYDROID/kernel/android-2.6.29 > $ make clean > $ make > > this might give nice hints to you > -http://omappedia.org/wiki/WiLink_Connectivity_Project#Build_WLAN_Driver > > Thanks, > Deva > > On Wed, Mar 10, 2010 at 11:39 AM, k.yoshi <[email protected]> wrote: > > Now I'm trying to port driver for WL1271 to my custom board. > > I got TI WLAN source code from below link and I'm trying to port based > > on it. > > >http://android.git.kernel.org/?p=platform/system/wlan/ti.git;a=summary > > > WL1271 is connected via McSPI to OMAP on my board. > > So, I changed "WSPI ?= n" to "WSPI ?= y" in "wlan/ti/sta_dk_4_0_4_32/ > > common.inc". > > Then when I build it, I'm facing some error like below. > > > ---- > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:360: undefined reference to `SPI_Write' > > drivers/built-in.o: In function `WSPI_WriteAsync': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:1292: undefined reference to `SPI_Write' > > drivers/built-in.o: In function `WSPI_WriteAsyncOld': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:1196: undefined reference to `SPI_WriteSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:1203: undefined reference to `SPI_Write' > > drivers/built-in.o: In function `WSPI_WriteSync': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:694: undefined reference to `SPI_WriteSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:699: undefined reference to `SPI_WriteSync' > > drivers/built-in.o: In function `WSPI_HandleFixedBusy': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:1093: undefined reference to `SPI_WriteRead' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:1111: undefined reference to `SPI_WriteRead' > > drivers/built-in.o: In function `WSPI_ReadAsync': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:792: undefined reference to `SPI_WriteRead' > > drivers/built-in.o: In function `WSPI_ReadSync': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:454: undefined reference to `SPI_WriteSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:462: undefined reference to `SPI_ReadSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:481: undefined reference to `SPI_ReadSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:482: undefined reference to `SPI_ReadSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:486: undefined reference to `SPI_ReadSync' > > drivers/built-in.o: In function `WSPI_ReadAsyncOld': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:557: undefined reference to `SPI_WriteSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:566: undefined reference to `SPI_ReadSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:591: undefined reference to `SPI_ReadSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:592: undefined reference to `SPI_ReadSync' > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:600: undefined reference to `SPI_Read' > > drivers/built-in.o: In function `WSPI_Configure': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:311: undefined reference to `SPI_Write' > > drivers/built-in.o: In function `WSPI_Close': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:219: undefined reference to `SPI_Close' > > drivers/built-in.o: In function `WSPI_Open': > > /drivers/wlan/ti/sta_dk_4_0_4_32/./common/src/TNETW_Driver/TNETWIF/ > > BusTxn/wspi.c:195: undefined reference to `SPI_Open' > > ---- > > Note: I changed location of this driver from "platform/system/wlan" to > > "driver/wlan". > > > I found that these functions are declared in "sta_dk_4_0_4_32\pform > > \linux\inc\spi_api.h", but there are no implementation. > > Should I implement it by myself? > > Did someone try to build TI WLAN driver with SPI interface? > > > -- > > unsubscribe: [email protected] > > website:http://groups.google.com/group/android-porting > > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
