|
Pages: [1] 2 3
|
 |
|
Author
|
Topic: RTL8185 driver with injection working with kernel 2.6.24 (Read 16346 times)
|
gocek
Newbie

Posts: 6
|
!!! UPDATE !!! (read below before proceeding)
As the topic's title says: drivers posted below are for kernel 2.6.24 (for example for ubuntu 8.04). If you have a distribution that uses a newer kernel then STOP READING, because those drivers aren't meant for you In newer kernels you get rtl8180 chipset working out of the box with mac80211 drivers. Moreover: they support monitoring and injecting withouth ANY need for patching.
!!! UPDATE !!! (read above before proceeding) Hello, it's my first post on this forum, I hope it's a good place for it. I haven't found anything concerning this subject among other forum topics so I decided to start my own. I'd like to share with you a driver I made for my card. It's a compilation of ieee80211 patch, rtl8180-0.21v2.patch (both from aircrack-ng patch site) and Pedro's patch for rtl-wifi drivers to work with 2.6.24 kernels. Original topic concerning mentioned patch can be found here: https://sourceforge.net/forum/forum.php?thread_id=1935188&forum_id=652149 (scroll to the bottom) It works with my RTL8185 card on Ubuntu 8.04 (running on Live CD) with kernel 2.6.24-16-generic. I basically made it for myself, but I hope somebody might find it useful as well. At least you don't have to: a) look for rtl-wifi driver working with 2.6.24 kernel b) manually patch it to support packet injection. If you want to test it, grab it here: http://rapidshare.com/files/129433127/rtl818x-mod2.6.24-injection.tar.bz2ubuntu@ubuntu:~$ modinfo r8180 filename: /lib/modules/2.6.24-16-generic/kernel/net/r8180.ko description: Linux driver for Realtek RTL8180 / RTL8185 WiFi cards author: Andrea Merello <andreamrl@tiscali.it> license: GPL srcversion: 3076A6D8A9BECE209E2DEA8 alias: pci:v000010ECd00008185sv*sd*bc*sc*i* alias: pci:v00001186d00003300sv*sd*bc*sc*i* alias: pci:v00001799d00006020sv*sd*bc*sc*i* alias: pci:v00001799d00006001sv*sd*bc*sc*i* alias: pci:v000010ECd00008180sv*sd*bc*sc*i* depends: ieee80211-rtl vermagic: 2.6.24-16-generic SMP mod_unload 586 parm: ifname:charp parm: devname: Net interface name, wlan%d=default parm: hwseqnum: Try to use hardware 802.11 header sequence numbers. Zero=default (int) parm: hwwep: Try to use hardware WEP support. Still broken and not available on all cards (int) parm: channels: Channel bitmask for specific locales. NYI (int) ubuntu@ubuntu:~$ sudo lshw -C network *-network:0 description: Wireless interface product: RTL-8185 IEEE 802.11a/b/g Wireless LAN Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 9 bus info: pci@0000:00:09.0 logical name: wlan0 version: 20 serial: [EDITED] width: 32 bits clock: 33MHz capabilities: pm bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=rtl8180 ip=192.168.0.3 latency=32 maxlatency=64 mingnt=32 module=r8180 promiscuous=yes wireless=802.11b/g linked ubuntu@ubuntu:~$ sudo aireplay-ng -9 wlan0 18:59:54 Trying broadcast probe requests... 18:59:54 Injection is working! 18:59:55 Found 1 AP
18:59:55 Trying directed probe requests... 18:59:55 [EDITED] - channel: 8 - 'ssid' 18:59:55 Ping (min/avg/max): 0.739ms/2.648ms/3.641ms Power: 0.00 18:59:55 30/30: 100%
cheers
|
|
|
|
« Last Edit: June 07, 2009, 10:57:06 pm by gocek »
|
Logged
|
|
|
|
|
.NetRolller 3D
|
Can you test the new rtl8180 (mac80211, not the same as r8180) driver too? I need feedback on mac80211 drivers.
|
|
|
|
|
Logged
|
|
|
|
gocek
Newbie

Posts: 6
|
Yeah, I'm quite curious about the mac80211 version as well. I'm about to test it in the near future.
|
|
|
|
|
Logged
|
|
|
|
gocek
Newbie

Posts: 6
|
Just a quick note: unfortunatelly I won't be able to test the new version before mid-August probably. I had to leave for work sooner than I planned and my desktop computer with RTL8185 is left at home. I'll post here as soon as I'm back, assuming no-one else confirms the mac80211 version works before.
|
|
|
|
|
Logged
|
|
|
|
Centrino
Newbie

Posts: 4
|
I have an RTL8185 built in card and I was trying to use these patched drivers but I am having some difficulty. As gocek stated, I tried this using Hardy with the live CD. I downloaded the archive from here: http://rapidshare.com/files/129433127/rtl818x-mod2.6.24-injection.tar.bz2Extracted it, and entered the "rtl-wifi" directory. From the I type "make" and everything seems to compile fine, after this I am somewhat lost. There are several directories in the rtl-wifi folder: ieee80211 rtl818x-newstack rtl8180-sa2400-dev rtl8187-dev rtl8187-newstack I'm assuming that the modules in the ieee80211 folders have to be inserted, so I go that folder and "make" then try to insert the ".ko" modules and get an "unknown symbol" error when trying to insert the modules. Also, I'm not sure which other folders require module insertion. Any help is appreciated.
|
|
|
|
|
Logged
|
|
|
|
|
.NetRolller 3D
|
Centrino: have you ever heard of "make install"? :-)
|
|
|
|
|
Logged
|
|
|
|
Centrino
Newbie

Posts: 4
|
Centrino: have you ever heard of "make install"? :-)
Thanks for your sarcastic dumbass response, but there is no installation script in the main directory, and my point was that there are SEVERAL different directories and I am unsure of which is the correct one for the card. So even if I "make install" in all the different subdirectories, it does not solve the problem.
|
|
|
|
|
Logged
|
|
|
|
gocek
Newbie

Posts: 6
|
hi I'll post here what I've sent to Centrino, others might find it useful: Yeah, the "make install" command doesn't work with this version of rtl-wifi drivers :p In general, you should run it in the main directory, the same you used the "make" command in. I think I saw a patch for this issue somewhere on the web, it was about adding one line to a certain file, but I never really bothered with that. 0.) you might want to run "make clean" in the rtl-wifi directory, or just unpack the archive to a new place. Running "make" in the rtl-wifi directory is all you have to do. It will compile necessary modules in all the subdirectories. Firstly, check this site: http://rtl-wifi.sourceforge.net/wiki/Installing. Basically: 1.) delete ieee80211 directory from the one returned by "find /lib/modules/`uname -r` -name ieee80211" 2.) run: insmod ieee80211/ieee80211_crypt-rtl.ko insmod ieee80211/ieee80211_crypt_wep-rtl.ko insmod ieee80211/ieee80211_crypt_tkip-rtl.ko insmod ieee80211/ieee80211_crypt_ccmp-rtl.ko insmod ieee80211/ieee80211-rtl.ko insmod rtl818x-newstack/r8180.ko in that order (with "sudo" of course) 3.) check if all is working with "lshw -C network" and "dmesg" 4.) and if you want to install it permanently run: # mkdir /lib/modules/`uname -r`/kernel/net/ieee80211 # cp ieee80211/*.ko /lib/modules/`uname -r`/kernel/net/ieee80211 # cp rtl818x-newstack/*.ko /lib/modules/`uname -r`/kernel/net # depmod -ae (( be careful with that one, I prefer to edit the mod dependancy list by myself, because "depmod -ae" often adds mac80211 module as a dependancy and it screws things up if you use this older version of a driver (the ieee80211 one) )) gocek
|
|
|
|
|
Logged
|
|
|
|
Centrino
Newbie

Posts: 4
|
Thanks gocek,
Your instructions worked perfectly.
If people would look at a problem people post before offering sarcasm, issues could be solved faster rather than creating more problems.
Netroller, notice how your sarcastic solution "make install" was exactly the problem as it didn't exist as gocek pointed out in this version of the drivers. Next time before offering sarcasm, try understanding the problem first, you might actually help someone by keeping your mouth shut.
|
|
|
|
|
Logged
|
|
|
|
|
darkAudax
|
Centrino,
Netrolller3D's comment was not out of line. As you know "make install" is typical final step. The fact that it did not work in this situation does not warrant your comments. 7 out 10 people posting to this forum have not taken the time to read the materials or even try to help themselves. I personally get tired of this laziness.
Netrolller3D has spent lots and lots of time helping people. So, in fact, you should be careful not to criticize him before seeing the big picture.
d.
|
|
|
|
|
Logged
|
|
|
|
Centrino
Newbie

Posts: 4
|
Centrino,
Netrolller3D's comment was not out of line. As you know "make install" is typical final step. The fact that it did not work in this situation does not warrant your comments. 7 out 10 people posting to this forum have not taken the time to read the materials or even try to help themselves. I personally get tired of this laziness.
Netrolller3D has spent lots and lots of time helping people. So, in fact, you should be careful not to criticize him before seeing the big picture.
d.
No, it seems that you are the one who fails to see the big picture. He was simply wrong, regardless of how many people he has allegedly helped or how many OTHER people have not taken the time to read materials or even help themselves doesn't change that fact. You should take a class in logic, because yours is poor. When you can't defend an action, you change the topic to how many people he helped or other people who failed to help themselves. What does that have to do with the fact that he was simply wrong and he was sarcastic about it. Sorry, that doesn't fly. I apparently search and read since I found this topic and I obviously tried to use the instructions given. So your comments about people not helping themselves DONT apply. Moreover, just because a surgeon may save dozens of lives throughout his career doesn't give him the right to murder someone. He was wrong, point blank. The fact that you and him are moderators or developers or otherwise, doesn't mean you can't be wrong. Perhaps that is a picture you should look at and that condescending remarks when you're in the wrong are not only uncalled for but make you look small and petty.
|
|
|
|
|
Logged
|
|
|
|
|
darkAudax
|
Centrino,
You are certainly entitled to your opinion and are free to express it.
Personally, I have been wrong in some of my answers over time and have openly admitted it. This simply reflects responding to thousands of posts over time. Nobody is perfect.
Since I have spent a few hundred hours writing documentation and who knows how many hours responding to posts, I will continue to be arbitrary at times. Especially aimed at people who don't try to help themselves (which I never said about you).
If you don't like my style, too bad.
d.
|
|
|
|
|
Logged
|
|
|
|
pelepele
Newbie

Posts: 3
|
Hello everyone I an new to this forum, but I have been struggling for a while with this driver. I have done everything as gocek described, and lshw -C network and dmesg show that they recognize the RTL8185 adapetr. However, I cannot make a connection, or even discover any AP's. Moreover, after I have created and copied new driver files to .../kernel/net/ieee80211 directory (as gocek described), after a restart I cannot see anymore interface wlan0. After running lshw -C network, I can see the rtl8185 as UNCLAIMED, without logical name line. Can you please help me with this issue? Thanks Pedja
|
|
|
|
|
Logged
|
|
|
|
pelepele
Newbie

Posts: 3
|
Hi Once I reboot, I can see no wlan0 any more. After I remove r8180 module, and insmod r8180.ko again, I can see it. The problem is that I can still make no connection or even see any AP's with this card. Is there anyone with similar issues? Thanks P
|
|
|
|
|
Logged
|
|
|
|
|
.NetRolller 3D
|
pelepele: did you use the r8180 version found in the first post? The version on the wiki won't work, that one is only for RTL8180L+SA2400 chipsets, and yours is an RTL8185L with a different radio.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1] 2 3
|
|
|
 |