LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2014, 07:07 PM   #1
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Rep: Reputation: 0
Need help creating a driver


To All,

I'm TYRING TO CREATE a wireless driver for an Ralink 3290 card. The card is installed in a HP Envy Desktop,
with Centos 6.5 loaded. I have the i5-4430 CPU @ 3.00GHz chipset in my cpu. Reading the file that I downloaded from Ralink I have some questions:



In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

Question 1 = the MODE = STA was already set as well as the TARGET = LINUX. i am assuming I don't need to change anything in this part?



In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.

Question 2 = what is the GCC and the LD?
2b = how do i define the computer flags?
3c = how do i modify them to meet my needs?


Thank you for your help.

cajunchief
 
Old 06-13-2014, 12:03 PM   #2
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Just run 'make' and then 'make install' as root. If it doesn't work post the error. All of the variables should already be set up.
 
Old 06-13-2014, 07:48 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,965

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
This is the general way and should work on yours.

http://linuxforums.org.uk/index.php?topic=10422.0


I agree with metaschima that if you have gcc or some compiler installed and the supporting other files you just run the makefile instead of editing it.

This all assumes you don't have some support for it already. Might as well see this too. http://rricketts.com/installing-rali...-ubuntu-12-04/
 
Old 06-14-2014, 02:18 AM   #4
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
This is the general way and should work on yours.

http://linuxforums.org.uk/index.php?topic=10422.0


I agree with metaschima that if you have gcc or some compiler installed and the supporting other files you just run the makefile instead of editing it.

This all assumes you don't have some support for it already. Might as well see this too. http://rricketts.com/installing-rali...-ubuntu-12-04/
jefro,
Do you know how I can get the " Vendorevice ID string"? I am pretty sure i have the Ralink 3290, but WANT TO CONFIRM I DO.

cajunchief
 
Old 06-14-2014, 11:01 AM   #5
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
'lsusb' works for USB devices.
 
Old 06-16-2014, 10:57 AM   #6
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by metaschima View Post
'lsusb' works for USB devices.
Meta, thanks mate!
cajunchief
 
Old 08-05-2014, 02:25 PM   #7
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by metaschima View Post
'lsusb' works for USB devices.
Meta,
I gat a command doesnt exist error for "isusb"?

WTFO?
cajunchief
 
Old 08-05-2014, 02:50 PM   #8
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by cajunchief View Post
Meta,
I gat a command doesnt exist error for "isusb"?

WTFO?
cajunchief
not an i rather an l (lower case L) lsusb
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Creating Ring Driver Gerr84 Linux - Kernel 0 03-26-2014 12:44 AM
Creating Driver demon007 Linux - Kernel 5 08-28-2012 08:00 AM
Creating a Filesystem Driver Zymus Linux - Newbie 6 07-16-2010 05:34 PM
Creating custom driver disk. DDoS YourseLF Red Hat 1 08-07-2005 08:27 AM
Creating new Printer Driver neilcuk Programming 2 04-13-2004 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:22 AM.

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