Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-19-2008, 02:49 PM   #1
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/
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
** Build for being controlled by WpaSupplicant with Ralink Custom Event
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 :-))
Old 01-20-2008, 09:37 AM   #2
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.



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

All times are GMT -5. The time now is 03:07 PM.

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