Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Unable to load WLAN driver: (5 Items)
   
Unable to load WLAN driver  
Hi,

I am working on WLAN driver with SPI interface. Initially i am loading SPI driver as ".so"(DLL) using :
spi-master -d dra446 base=0x01C24400,irq=33,edma=0 which is loading successfully.

Later i am loading WLAN driver as ".so"(DLL) using:
io-net -dwlan ioport=0x2a000000,irq=51 -ptcpip

I am getting following errors:
Unknown relocation type
Unknown relocation type
Unknown relocation type
unable to load dll devn-wlan: Unresolved symbols
Unable to access "/dev/io-net/en0"

I am linking libspi-master.a to my WLAN driver in order to resolve APIs related to spi-master(spi_open, spi_read, 
spi_write etc).
Can i link ".a" (static library) to WLAN driver?

In my WLAN driver i am accessing SPI module via API's provided by spi-master.spi-master runs in its own process space 
and io-net runs in its own process space. 
Can i access SPI(spi-master) process space from WLAN (io-net ) process space?

What i think is relocation error which i am getting is because of linking libspi-master.a in my WLAN driver.
Please help me in this regard.


Thanks & Regards
---------------------------- 
 Arun L Hegde
Re: Unable to load WLAN driver  
On Thu, Feb 14, 2008 at 10:25:47AM -0500, Arun Hegde wrote:
> Hi,
> 
> I am working on WLAN driver with SPI interface. Initially i am loading SPI driver as ".so"(DLL) using :
> spi-master -d dra446 base=0x01C24400,irq=33,edma=0 which is loading successfully.
> 
> Later i am loading WLAN driver as ".so"(DLL) using:
> io-net -dwlan ioport=0x2a000000,irq=51 -ptcpip
> 
> I am getting following errors:
> Unknown relocation type
> Unknown relocation type
> Unknown relocation type
> unable to load dll devn-wlan: Unresolved symbols
> Unable to access "/dev/io-net/en0"
> 
> I am linking libspi-master.a to my WLAN driver in order to resolve APIs related to spi-master(spi_open, spi_read, 
spi_write etc).
> Can i link ".a" (static library) to WLAN driver?
> 
> In my WLAN driver i am accessing SPI module via API's provided by spi-master.spi-master runs in its own process space 
and io-net runs in its own process space. 
> Can i access SPI(spi-master) process space from WLAN (io-net ) process space?
> 
> What i think is relocation error which i am getting is because of linking libspi-master.a in my WLAN driver.
> Please help me in this regard.

You probably need to link against libspi-masterS.a (static PIC
library).  Create an a.shared variant (assuming you're using
our makefile structure): eg lib/spi-master/x86/a.shared/

-seanb
Re: Unable to load WLAN driver  
Hi Sean,
Thanks for the help. But the spi-master source code which comes with BSP does not contain spi_open, spi_close, spi_read 
functions. I have got libspi-master.a in my prebuilt directory and i am linking this .a to resolve SPI related APIs.

1)Can you please tell from whre shall i get spi_open, spi_close, spi_read etc functions or can you please send me a link
 from where shall i get these source files? or do you have libspi-masterS.a?
Please let me know.

Thanks
Arun
Re: Unable to load WLAN driver  
On Fri, Feb 15, 2008 at 04:56:12AM -0500, Arun Hegde wrote:
> Hi Sean,
> Thanks for the help. But the spi-master source code which comes with BSP does not contain spi_open, spi_close, 
spi_read functions. I have got libspi-master.a in my prebuilt directory and i am linking this .a to resolve SPI related 
APIs.
> 
> 1)Can you please tell from whre shall i get spi_open, spi_close, spi_read etc functions or can you please send me a 
link from where shall i get these source files? or do you have libspi-masterS.a?
> Please let me know.
> 

I'm not familiar with the spi library.  You might try
asking this question in the bsp forum.

-seanb
Re: Unable to load WLAN driver  
Thanks sean. I will post this query in BSP forum.