Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: linux driver beschikbaar RTL-8185 installeren is te moeilijk  (gelezen 1683 keer)

Offline evarie

  • Lid
linux driver beschikbaar RTL-8185 installeren is te moeilijk
« Gepost op: 2009/06/11, 14:26:55 »
Dit is de readme tekst, maar ik snap daar helemaal niks van. Natuurlijk weet ik daar te weinig voor.
Maar ik wil het wel graag leren hoe je zoiets moet doen.

De driver kan je downloaden van af hier; driver
RTL8185 Linux Driver v1027.0823.2007 for linux kernel 2.6

  - Support Client mode for either infrastructure or adhoc mode
  - Support WEP and WPAPSK/WPA2PSK connection

===============================================================================================
< Component >
The driver is composed of several parts:
    (1)source code
rtl8185.tar.gz
stack.tar.gz

    (2)Script ot build the modules
        makedrv

    (3)Script to load/unload modules
        wlan0up
        wlan0down

    (4)Script and configuration for DHCP
wlan0dhcp
        ifcfg-wlan0

    (5)Supplicant source code
wpa_supplicant-0.4.9.tar.gz
    
    (6)Example of supplicant configuration file
wpa1.conf




< Installation >
Running the scripts can finish all operations of building up modules from source code and start the nic:

(1)Build up the driver from the source code
         ./makedrv

     (2)Load the driver module to kernel and start up nic
     ./wlan0up
           (if "insmod: error inserting 'r8180.ko': -File exists." met,
       ./wlan0rmv
./wlan0down
./wlan0up
   should be OK.
  )
(3)Refer to < Set wireless lan MIBs > to set Wireless LAN specific parameters.





< Set wireless lan MIBs >
This driver uses Wireless Extension as an interface allowing you to set
Wireless LAN specific parameters.

Current driver supports "iwlist" to show the device status of nic

        iwlist wlan0 [parameters]
where

        parameter explaination       [parameters]    
        -----------------------     -------------  
        Show available chan and freq freq / channel  
        Show and Scan BSS and IBSS scan[ning]          
        Show supported bit-rate         rate / bit[rate]        
        Show Power Management mode      power            

For example:

iwlist wlan0 channel
iwlist wlan0 scan
iwlist wlan0 rate
iwlist wlan0 power


Driver also supports "iwconfig", manipulate driver private ioctls, to set MIBs.

        iwconfig wlan0 [parameters] [val]
where

        parameter explaination      [parameters]         [val] constraints
        -----------------------     -------------       ------------------
        Connect to AP by address    ap               [essid]
        Set the essid, join (I)BSS  essid             [mac_addr]
        Set operation mode          mode           {Managed|Ad-hoc}
        Set keys and security mode  key / enc[ryption]          {N|open|restricted|off}


For example:

iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
iwconfig wlan0 essid "ap_name"
iwconfig wlan0 mode Ad-hoc
iwconfig wlan0 mode essid "name" mode Ad-hoc
iwconfig wlan0 key 0123456789 [2] open
iwconfig wlan0 key off
iwconfig wlan0 key restricted [3] 0123456789

< Getting IP address >
After start up the nic, the network needs to obtain an IP address before transmit/receive data.
This can be done by setting the static IP via "ifconfig wlan0 IP_ADDRESS" command, or using DHCP.

If using DHCP, setting steps is as below:

(1)connect to an AP via "iwconfig" settings
iwconfig wlan0 essid [name] or
iwconfig wlan0 ap XX:XX:XX:XX:XX:XX

(2)run the script which run the dhclient
./wlan0dhcp
           or
dhcpcd wlan0
               (Some network admins require that you use the
               hostname and domainname provided by the DHCP server.
               In that case, use
dhcpcd -HD wlan0)



< WPAPSK >
WPA_SUPPLICANT help the network to communicate under the protection of WPAPSK mechanism

(1)Unpack source code of WPA supplicant:
tar -zxvf wpa_supplicant-0.4.9.tar.gz
cd wpa_supplicant-0.4.9

(2)Create .config file:
cp defconfig .config

(3)Edit .config file, uncomment the following line:
#CONFIG_DRIVER_IPW=y.

(4)Build WPA supplicant:
make
        
If make error for lack of <include/md5.h>, install the openssl lib:
1. Install the openssl lib from corresponding installation disc:
   Fedora Core 2/3/4/5/6/7(openssl-0.9.71x-xx),
   Mandrake10.2/Mandriva10.2(openssl-0.9.7x-xmdk),
   Debian 3.1(libssl-dev), Suse 9.3/10.0/10.1(openssl_devl),
   Gentoo(dev-libs/openssl), etc.
2. Download the openssl open source package from www.openssl.org, build and install it.

(5)Edit wpa_supplicant.conf to set up SSID and its passphrase.
For example, the following setting in "wpa1.conf" means SSID to join is "BufAG54_Ch6"
and its passphrase is "87654321".

network={
ssid="BufAG54_Ch6"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="87654321"
priority=2
}
Note: 1. proto=WPA for WPA, proto=RSN for WPA2.
              2. If you want to connect an AP which works under WPA2 mixed mode, you'd better
                 use Realtek customed wpa_supplicant package.


(6)Execute WPA supplicant (Assume 8185 and related modules had been loaded):
./wpa_supplicant -D ipw -c wpa1.conf -i wlan0 &
« Laatst bewerkt op: 2009/06/11, 18:33:36 door siegi »

Offline Pjotr

  • Lid
    • Makkelijke Linuxtips
Re: linux driver beschikbaar RTL-8185 installeren is te moeilijk
« Reactie #1 Gepost op: 2009/06/11, 14:58:24 »
Ik denk dat het veel makkelijker is, om bij die Realtek draadloze chipset het Windows-stuurprogramma te gebruiken, via ndiswrapper:
http://sites.google.com/site/computertip/geendraadloosinternet
(punt 9)

Bij een volgende Ubuntuversie zit het Linuxstuurprogje hopelijk al in de kernel.

Offline evarie

  • Lid
Re: linux driver beschikbaar RTL-8185 installeren is te moeilijk
« Reactie #2 Gepost op: 2009/06/11, 15:58:14 »
Als je het teveel moeite vind om het uit te leggen. Dan hoeft je dat ook niet te doen. Ik ben al bij als ik geholpen ben.

Maar met de ndiswrapper wilt het niet lukken. De wpa wordt niet geaccepteerd.
Het zou fijn zijn als iemand me toch wilt uitleggen hoe je deze driver gemaakt voor linux kan installeren.

Helpers bedankt natuurlijk.

Offline Johan van Dijk

  • Administrator
    • johanvandijk
Re: linux driver beschikbaar RTL-8185 installeren is te moeilijk
« Reactie #3 Gepost op: 2009/06/11, 17:06:48 »
In Jaunty zit standaard een driver die met die kaart zou moeten werken (rtl8180).

Dus welke versie van Ubuntu gebruik je?
En wat voor kaart heb je? USB? PCI? Wat is het exacte type?

Offline evarie

  • Lid
Re: linux driver beschikbaar RTL-8185 installeren is te moeilijk
« Reactie #4 Gepost op: 2009/06/11, 22:18:56 »
In Jaunty zit standaard een driver die met die kaart zou moeten werken (rtl8180).

Dus welke versie van Ubuntu gebruik je?
En wat voor kaart heb je? USB? PCI? Wat is het exacte type?

Nu gebruik ik 8.04
ik wil graag weten welke module ik dan moet installeren.
Mijn kaart is een smc produkt smcwpci-g EZ-connect;
lspci geeft;
03:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8185 IEEE 802.11a/b/g Wireless LAN Controller

Notabene deze kaart had ik nog uit de tijd van ubuntu 7.
Toen kocht ik twee kaartjes een van smc en een van icidu.
Die van icidu bij mycom werkte meteen met ubuntu.
Maar deze van smc werkt niet meteen.
Maar toch zonde als ik deze niet in ubuntu kan gebruiken, toch?

Offline Johan van Dijk

  • Administrator
    • johanvandijk
Re: linux driver beschikbaar RTL-8185 installeren is te moeilijk
« Reactie #5 Gepost op: 2009/06/12, 01:53:35 »
Probeer de nieuwste versie van Ubuntu eens, dan zou het al vanaf de live cd moeten werken.