LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2008, 01:49 PM   #1
fancypants
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Question Preparing the "Makefile"


I am trying to compile a driver for my D-Link DWA-140 Wifi USB adapter.
The chipset is from ralink and must have driver version rt2870 (native linux driver) I will not use ndiswrapper here. But I am totally stuck with the following txt in readme file with the driver.
===========================================================================
2> 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.

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
** Build for being controlled by WpaSupplicant with Ralink Custom Event
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
command: #./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
===========================================================================
I can not wrap my head around this these lines of instructions. :-|
I chose Ubuntu (Feisty Fawn) to try this on.
Can anybody give me any helpful hints. (Or a walktrough :-))
/fancypants
 
Old 01-20-2008, 08:37 AM   #2
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
First, I'd try a newer version of Ubuntu, your wireless may have a driver by now, and it might "just work".

Second, open up the makefile and change those parts as it directs. For instance, find the part that says "MODE =" and make sure it says STA. Or find, "HAS_WPA_SUPPLICANT=" and make sure it's a "y" there. Also, make sure you the kernel source installed, you might have to tell the make file where the include file is. But I'd try a newer version of linux first, your usb wireless adapter might already work.

Good luck, let us know how it went.

David
 
  


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
Problem in Makefile-" No rule to make target " asprakash Linux - Kernel 4 08-07-2008 08:39 AM
Makefile issue: "Makefile.src: File not found" m3rkury Linux - Software 1 02-22-2007 10:15 PM
How can I use "Makefile.in" for building an executable program? wuzhong Linux - Networking 1 10-06-2004 10:00 AM
"perl Makefile.PL" complains about cc & gcc (self solved tip) Raptor Ramjet Slackware 2 09-13-2004 02:24 PM
how does a "makefile" relate to the make command? mjewell Linux - Newbie 3 01-17-2004 08:27 PM


All times are GMT -5. The time now is 08:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration