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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-22-2011, 08:06 AM
|
#1
|
LQ Newbie
Registered: Mar 2011
Posts: 12
Rep:
|
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
|
|
|
03-22-2011, 09:48 AM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
If you have the source code for the driver, you can compile it for another architecture.
|
|
|
03-22-2011, 08:22 PM
|
#3
|
Moderator
Registered: Mar 2008
Posts: 22,107
|
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.
|
|
|
03-23-2011, 02:50 AM
|
#4
|
LQ Newbie
Registered: Mar 2011
Posts: 12
Original Poster
Rep:
|
@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
|
|
|
03-23-2011, 05:39 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,107
|
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.
|
|
|
All times are GMT -5. The time now is 10:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|