Networking :: What need I to compile drivers



I have buy a USB wifi from DLink, the DWL-G122 C1

I have made a lot of proves with ndiswrapper and doesn't go.
In the DSL wiki I see that there is a compiled driver for this dongle:

D-Link DWL-G122 Rev.C1 (driver & scripts => here http://homepages.vype.de/Peter.Misch/wlan/wlan_drivers.html)

but this driver is for kernel version 2.4.26 and don't go in DSL 4.1:

--------------------------------------------------------------------------------
Drivers and scripts for USB-WLAN Adapters -
(compiled for DSL - Kernel 2.4.26)
=========================================================

D-Link DWL-G122, rev.c1:
Driver: rt73.o
Scripts: WLAN_up.sh - WLAN_down.sh
--------------------------------------------------------------------------------

and I want this for DSL 4.1 with 2.4.31

I downloaded the linux-2.4.31.tar.gz and now I have to download the gcc compiler.
But I am confused and my question is:
I see in the myDSL repository, in system, a gcc1.dsl 3.3.4 version
but with
[/home/dsl]# cat proc/version
Linux version 2.4.31(root@box) (gcc version 2.95.4 20011002 (Debian prerelease) ) #6 SMP Fri Oct 21 15:15:54 EDT 2005

seems to be the 2.95.4

Can I compile with this 3.3.4 version?

In the other hand I see in testing the juanito's compile-3.3.5.uci but with linux-2.4.26 sources on it, so I can't use it.

Can I use this compile.uci but deleting the 2.4.26 sources and substitute whit the 2.4.31 one?

Thanks!

- A compiling extension - either gcc1-with-libs or compile-3.5.5.uci
- the source of the driver (either the official here or the 2x00 driver from here...)

Then follow the Ubuntu guide mostly: https://help.ubuntu.com/community/WifiDocs/Driver/RalinkRT73

You don't need to compile because ndiswrapper is in DSL 4:

Changes for 4.0
* Upgraded kernel from 2.4.26 to 2.4.31.
* Created new support modules: cloop, unionfs, ndiswrapper, fuse, and madwifi in support of kernel change....

http://damnsmalllinux.org/notes.html

Edit: In the menu, go to SETUP - NET SETUP - NDISWRAPPER.

Thanks Curaga,
I have forgotten that I have soon this sources and the same guide to follow it.

My dubt was about the gcc compiler, and now I know I can use the the 3.3.5 version.


lucky13,
Thanks, but with ndiswapper it says every time that can't connect, even I give correctly the route to the inf file, the sid and the wep.

Oh. Yes, you need to compile the kernel and modules with the same compiler.

So, it's gcc1-with-libs + gcc2.95 (so you will have the libs, make etc., but gcc will be 2.95)

Next Page...
original here.