-   Linux - Newbie (
-   -   Preparing the "Makefile" (

fancypants 01-19-2008 01:49 PM

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 :-))

budword 01-20-2008 08:37 AM

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.


All times are GMT -5. The time now is 04:11 AM.