LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-22-2011, 08:06 AM   #1
the hope
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Rep: Reputation: 0
Question how can i port a driver with a specific architecture into another architecture?


hello,
i have already bought a SPB104-WIFI card.when I plugged this card into my board, the results weren't good, the kernel didn't recognize this card or exactly the part of SDIO card. The problem is that my host is normaly able to recognize this card as a sdio card, because it contains the driver of the sdio card.
SO,i tried to download the driver of the SPB104 card and i discovered that these drivers were managed by Atmel based on ARM architecture. However, my drivers were developped on an other architecture.
Please, is there someone who can tell me how can i built the ARM drivers on my architecture, how can i extend my drivers to make it able to recognize the SPB104-wifi card?
Thank you in advance
best regards
 
Old 03-22-2011, 09:48 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If you have the source code for the driver, you can compile it for another architecture.
 
Old 03-22-2011, 08:22 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Porting a driver is a very complex task. At first glance one may be able to use some of the code but going between processors like that is almost too much difference to be easy like going from a level of kernel. You'd need to find code how to's for your system then use any open code for your device and try to guess a driver.

You may be able to contact the maker for more detailed data along with any sdk or code they may provide.

"The SPB104 has full driver support integrated into the AVR32 Software Framework and is fully tested for 802.11b/g compliance on the EVK1104 platform."

Unless there is a windows driver for your arch or another arch source then you have to make it or find someone to make it. It isn't easy to make a wireless driver unless you have some close working copy in my opinion.
 
Old 03-23-2011, 02:50 AM   #4
the hope
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Original Poster
Rep: Reputation: 0
@bigrigdriver: the problem is that SPB104 WiFi card is supported on AVR and ARM platforms from Atmel so its drivers.
as a result, using an external device driver implies that the relative one available with the linux kernel has to be disabled. I mean, thatthe atmel driver is already available in the kernel, it has to be disabled to build the external module (to be loaded after kernel boots).
@jefro: yes,it seems so hard but,not impossible.i have downloaded the driver of the SPB104-wifi card which is supported on AVR and ARM from ATMEL and i want to make my host also with another arch (sh)able to recognize my card.
My question is: should i make the modification on my driver or edit the driver that i downloaded and copy it in my kernel.
i had to function my card.it's my projest.at least,I need some guide.
Thank you
best regards
 
Old 03-23-2011, 05:39 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
I doubt you could use any part of the current driver. You'd have to de-compile it and that gets way harder. I'd forget that approach.

It would be most easy to find a linux driver for a board with a similar chip and only a level or version off. Second may be to find examples of that chipset somewhere and use them for a model. Any similar chip would reveal settings that are unique to that chip. Then testing begins.

You'd be best off to start with other web pages or from developers that have made drivers. They tend to know what can and can't be done. I have played with drivers a long time ago and they are not for a newbie unless they know how to make drivers.

Contact the OEM for their info. Since they did create a driver they may have parts that they would provide for a port.

I guess it is possible that one could try any windows drivers for use under ndiswrapper too.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to force compile for a specific architecture ie Athlon ? hadding Programming 6 02-15-2016 04:00 PM
what is 'architecture' in 'binary for an architecture'?multiple architecture support? wagaboy Linux - Newbie 2 07-10-2010 11:18 AM
Architecture specific targets to MIPS greplinux Linux - Newbie 4 07-30-2008 07:52 AM
Architecture-specific CFLAGS Captain_Bodge Programming 1 01-30-2008 10:55 AM
how to do architecture specific compiles? irfanhab Linux - Software 1 03-26-2005 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration