What I did on my vacation from reality

Home About RTL8187B Laptop Cam Quotes Login

September 26, 2007

No more Vista!

2:49 pm — Code, Geek, Linux, Main, laptop

I got the drivers for the RTL8187B straight from Realtek, who was nice enough to respond to my email. However, when I compiled it and insmodded it under the Ubuntu live CD, it barfed out with an “Unknown RF chip” error.

After a bit of trial and error, I figured out how to get it to work: my card’s USB product ID is 0×8197, and it’s functionally identical to product ID 0×8189. All you have to do is go into rtl8187/r8187_core.c, and around line 2837, change

case 0x8189:

to

case 0x8197:
case 0×8189:

Works like a champ.

That said, why, WHY would you make the onboard NIC in a laptop a USB device? Why?

[EDIT] Drivers are at http://www.datanorth.net/~cuervo/rtl8187b/. Please read the README there, since I’ve made further changes since writing this post.




RSS feed | Trackback URI

44 Comments»

Pingback by What I did on my vacation from reality » Linux on the Toshiba Satellite A215-S7407 —September 27, 2007 @ 1:15 am

[...] wireless card, a Realtek 8187B, needs a quick hack to the driver source., which I’ve detailed here. Sound and the modem are big question marks. I get 1280×800 with Xorg and the fglrx [...]

 

Tyson —October 9, 2007 @ 9:23 am

How did you edit this file? Where is it located? I’m having the same problem with RTL8187B. Any help is appreciated!

 

cuervo —October 9, 2007 @ 1:15 pm

I’ve put the modified driver up at http://www.datanorth.net/~cuervo/rtl8187b/

Good luck!

 

Moacyr —October 15, 2007 @ 11:58 am

Where had you download this driver? I haven’t find it in realtek site.

 

cuervo —October 15, 2007 @ 12:09 pm

    Matt —October 20, 2007 @ 6:42 pm

    Hi - thanks for sharing this info!

    1. Were you able to get everything set up so that you didn’t have to run wlan0up manually every startup?

    2. Were you able to get WPA working? I could see the ESSID in Network Manager (Ubuntu 7.10) and enter in the appropriate key but was unable to get an ip address via dhcp. Manually trying wlan0dhcp was unsuccessful.

    (I am able to connect to the network via WPA2 in Vista / XP)

      cuervo —October 21, 2007 @ 4:52 pm

      1. Were you able to get everything set up so that you didn’t have to run wlan0up manually every startup?

      In /etc/network/interfaces, in the wlan0 section, add pre-up /path/to/wlan0up

      2. Were you able to get WPA working? I could see the ESSID in Network Manager (Ubuntu 7.10) and enter in the appropriate key but was unable to get an ip address via dhcp. Manually trying wlan0dhcp was unsuccessful.

      Haven’t tried; my home net still uses WEP. (Shame on me, I know.) I’ll play around with it a bit.

        szabie —March 17, 2008 @ 1:41 am

        Hi Cuervo,

        How can you use WEP with this driver? I can not connect to the network which uses WEP, because totally freeze the system after dhclient command.

        I can connect to open network without WEP/WPA, but no success with WEP.

        Have you some tips for this?

         
       
     
 

Tyson —October 22, 2007 @ 5:52 am

“In /etc/network/interfaces, in the wlan0 section, add pre-up /path/to/wlan0up”

This is the help I’m needing as well. I’ve tried this, but when adding the path, I get a message saying “no file or directory found”. Here’s what I added:

pre-up /home/tyson/rtl8187B_drivers/wlan0up

Why would it not be able to find this file? I can execute it from the terminal just fine.

    cuervo —October 28, 2007 @ 9:05 am

    Odd. Can you cut/paste the output from ifup?

     
 

Coney —November 11, 2007 @ 1:29 pm

Great to find this page and fix. Thx. Lemme see if it wirks. ;o)

 

Coney —November 11, 2007 @ 2:05 pm

Compiled … installed … worked!

What else can you ask for?

What else can you say?

Thanx

Coney (Berlin, Germany)

 

Wolfgang Rackebrandt (Wolf, for short) —November 18, 2007 @ 10:10 am

Hi,

I am sorry to bother you with my Linux newbie problems, but I appear to be having the same problem that you had with the RTL8187B chipset: I cannot get it to work on my Toshiba laptop (under Ubuntu 7.10).

I was very happy to find your solution, but am not quite able to use it. I have downloaded the driver and the patch, but here’s my problem: What do I do now? How does one install a driver under Linux?

With many thanks in advance for your answers

Wolf
(Potsdam, Germany)

 

Rich —November 20, 2007 @ 10:30 am

Works on a Gateway ML6720. I should have emailed realtek…*sigh*

Thank you sir.

 

forrest —December 3, 2007 @ 2:39 pm

Hello.
I have been having issues with this same card using Fedora 8 64bit. I noticed in the Readme that it supports up to Fedora 7. Is there any reason I should not try to install it on my system? I have tried ndiswrapper with the X64 drivers which caused the card to be recognized but it would not scan for networks.
Thanks,
Forrest

    cuervo —December 4, 2007 @ 10:07 am

    Fedora 8 probably wasn’t released yet when the version of the driver I patched was released. It should work with recent 2.6 kernels.

     
 

cripto —December 3, 2007 @ 9:38 pm

hi,
im using mandriva 2008,
in network manager it “sees” it, however
it doesnt connect :(

and i dont know how to install your patch in
mandriva. will it install in the same way?

thanks in advance

    cuervo —December 4, 2007 @ 10:11 am

    The compile and install instructions should be pretty universal. I’m not sure how Mandriva does things, but you can give it a shot.

     
 

Wolf —December 6, 2007 @ 12:09 pm

Jack,

many thanks for your help! Everything works fine now (apart from WPA…)

Wolf

 

Jeff —December 22, 2007 @ 10:56 am

Jack,
Many thanks for putting up this file. I’ve battled with ndiswrapper, and battled with the in-kernel driver, both without being able to get a sucessful connection. This driver is the only one that I’ve been able to use to get a wireless connection on my PC.

I’m running gentoo linux with a 2.6.23 gentoo-sources kernel.

It does seem to suffer from some big pauses when accessing websites, and the knetworkmanager doesn’t seem to recognise the connection it makes, but what the hell - I’m connected :-)

I’d be interested to hear if you had any comments to offer on the access speed issue. At the moment, I am bringing it up by doing ./wlan0up (which creates the wlan1 interface), then /etc/init.d/net.wlan1 start (which gets me the connection). I don’t have an /etc/network/interfaces file, as I think gentoo handles thinks slightly different to ubuntu, so I still need to su to root to get things connected.

Thanks again

Jeff

    Jeff —December 22, 2007 @ 11:54 am

    Quick correction. I think I just accessed a couple of slow sites. As I’ve worked with it this afternoon, it appears to be working nice and fast.

    Nice job on the driver.

    Jeff

     
 

Emperial Dissection —January 3, 2008 @ 8:27 pm

thanks for this driver, its the only one which works with kernel 2.6.22!
do you have any information about “injection patches”? aireplay-ng seems not to work properly, but airodump-ng and kismet does!

anyway, good work about modifying this original driver! ;-)

 

Jimmy —January 7, 2008 @ 6:33 pm

hi, i was wondering as to how you found/got your NIC? I’ve been trying to find my card’s USB product ID (the 0×8197 that you got), and I can’t see where it is.

 

Ryan —January 9, 2008 @ 9:26 am

Your patched driver works great on my Toshiba A215-S7462 in Ubuntu Gutsy 64-bit. Is there any chance of getting your changes into the mainline kernel tree? ( I couldn’t get your driver to compile under Ubuntu Hardy. I got some sort of complaint about CFLAGS vs EXTRA_CFLAGS. )

 

Steve —January 11, 2008 @ 6:26 pm

Hey;

First off thanks for the site and the information, it’s really appreciated. I have an issue in doing the installation. Everything seems to run ok, but when I initiated the insmod command to install it, it pauses and comes back with an error:
insmod: error inserting '/home/arcitech/rtlumod/rtl8187/r8187.ko': -1 Unknown symbol in module

Any ideas or thoughts? Thanks.
Steve / arcitech (at) gmail.com

    Steve —January 13, 2008 @ 4:47 pm

    Fixed the issue, root user lost path info for some reason.

      kohlrabi —August 6, 2008 @ 2:00 pm

      I have the same problem. I don’t know, what’s going wrong. How did you solve it?

       
     
 

Henry Ward —January 15, 2008 @ 1:51 pm

Jack:

Per the listed instructions, I unpacked the modified driver and then compiled it. I then loaded the driver and received this message:

insmod: error inserting ‘ieee80211_crypt-rtl.ko’: -1 Operation not permitted
insmod: error inserting ‘ieee80211_crypt_wep-rtl.ko’: -1 Operation not permitted
insmod: error inserting ‘ieee80211_crypt_tkip-rtl.ko’: -1 Operation not permitted
insmod: error inserting ‘ieee80211_crypt_ccmp-rtl.ko’: -1 Operation not permitted
insmod: error inserting ‘ieee80211-rtl.ko’: -1 Operation not permitted
insmod: error inserting ‘r8187.ko’: -1 Operation not permitted

The computer is a Toshiba Satellite laptop A200.

Hank

Too new to know

    cuervo —March 27, 2008 @ 3:00 am

    Need to be root. Try “su -”, enter your password, then cd to the directory and try again. :-)

     
 

Matt Bailey —January 15, 2008 @ 9:29 pm

As others here, this is the ONLY driver I’ve managed to make work at all. Unfortunately I get a kernel panic when attempting to connect to WEP-enabled networks….I can only connect to open networks. Anyone else have this problem, and a fix?

Anyway, I do want to say a huge THANK YOU to the host for figuring out this mod and making it available in the first place.

 

zeb —February 6, 2008 @ 9:32 pm

Same problem as matt above.

open networks work (for the most part) wep causes a total freeze.

but. at least it’s working to some extent.

 

Seth —February 12, 2008 @ 11:34 pm

I’m having the same issue as Hank…. getting the operation not permitted error. Please help!!!

 

PCWeb —March 4, 2008 @ 8:17 am

I wasted a lot of time on this issue, seems that I have an ad-hoc system that would only sieze my laptop whenever I attempted to make any changes in the module. I really believe that both toshiba and realtek should get their heads back into the daylight and release some of the propertary information into the mainline kernel groups so that these can develop an adequate driver. Either that or get their developers to fix the problem so that we can simply add the driver into the kernel .config file and fire up our new kernel.
Finally I have decided to get a usb dongle and use it to connect to my home network. Even that has taken some time due to the current kernel standards meeting status’ in the ieee80211 stack, but after several attempts I now have an operational ad-hoc wifi link.
I would someday love to get the native hardware operational without using the dongle, but this really needs some development. If I had known that these problems existed I am certain that I would have grabbed the HP when I picked up my laptop.

PCW

    turningprop —March 7, 2008 @ 3:21 pm

    I am using Fedora 8 on Gateway laptop model M6309 with Realtek 8187B, USB Id 8189. The modified driver worked well with kernel 2.6.23 until I updated to kernal 2.6.24. On kernel 2.6.24 it couldnot ‘make’ using ‘makedrv’ script; as the result no *.ko and *.o files created. It toasted.

    I tried with Jadams version, it went through the ‘make’ compiling and wlan0up, iwconfig ,etc.
    But the computer froze when I tried to ‘wlan0dhcp’

    Well I went back to kernel 2.6.23, the modified version worked as normal.

    Anyone has the same problem with kernel 2.6.24 and what the fix?

      Don —March 8, 2008 @ 7:08 am

      Hello all,
      I’m using Fedora 8 on a Toshiba Satellite A205-S5804, and had just
      gotten Mr Cuervo’s modified RTL8187 working. Updated kernel to
      2.6.24, and had the same bomb. Regressed to 2.6.23, and am sending
      this through my wireless. Don’t know what the matter is with 2.6.24…
      thanks to all for sharing their observations, and double thanks
      to Cuervo for the patch!

      With kindest regards,

      Don

        compy —March 12, 2008 @ 9:14 pm

        Hello,
        I have compiled this driver with the 2.6.24.3-12 kernel on Fedora 8. Fedora 8 does not install the kernel sources with this kernel. Also if you want the kernel sources you have to get them as a kernel-devel package. After I did that the driver compiles. I am still testing things out. I used ATrpm packages to start. I had to use the src rpm for the main driver. The problem with this is that the ATrpm spec file still doesn’t see the installed sources. Therefore I had to compile it manually and install using the regular scripts found in the BUILD directory. It compiles fine and seems to work. I am still testing out connections. I will post more info once I find it out.

         
       
     
 

Peter —April 6, 2008 @ 3:57 am

I installed your modified driver for 8187B on my Toshiba Notebook Satellite A210 with with AMD64 dual core processor and a Kubuntu 64 system.Sometimes the system find the card but I cannot connect to my network. Do you have a driver which works on 64bit systems with WPA?
Thanks for your great work.

Greetings
Peter

 

some guy —April 26, 2008 @ 5:46 pm

It worked for me.

many many many thanks.

one point

– make sure to have libc6-dev package installed.

 

Hardwick —April 30, 2008 @ 11:28 am

Hey - thanks for all your work on getting RTL8187 working.

Unfortunately, I’m having real difficulties following these instructions with Hardy Heron. Unlike most of the people here, I’m not running a Toshiba, but a Advent 9315, which is a relatively rare system apparantly and may not be produced outside England??

Anyway - I can’t seem to get past the first hurdle of getting the wifi to even turn on! Like others have mentioned, there seems to be some bizarre internal configuration which has the internal wireless adapter connected via an internal USB port.

Anyway, I have attempted to follow the instructions in all of three of the patches with no joy. As far as I can tell I’ve executed all the commands in the readme files (in sudo) but still cannot get past the initial hurdle of turning the bloody thing on.

I’m very new to Linux, so please forgive me for any stupid things I’ve overlooked. I have installed things from the prompt before however and I do think I’ve followed the instructions pretty closely.

Cheers in advance!

H

 

Hardwick —April 30, 2008 @ 3:50 pm

Just to qualify that last message:

In Windows XP/Vista the Wifi is “disabled” after a computer is “shut down” or hard switched off. To turn it on, I am required to press the Function Key in conjunction with F10 which brings on a little light on my laptop case and plays the “USB device inserted” wav. If the computer is restarted, hibernated or suspended, the wifi adapter will be on automatically as Windows Starts.

In Ubuntu 8.04, no amount of fiddling with drivers or following abovementioned instructions could get me past the first step of actually turning the bloody thing on. I suspect I’m overlooking something simple as I can’t find anyone else with the same problem anywhere!

I had no bother at all connecting with an external dongle. Unfortunately today I busted it when being a little too rough with my laptop ;(. Don’t know the model, but it’s an “Acer” brand USB 2.0.

I was almost prepared to just bite the bullet and buy another dongle, but my frequent clumsiness and anal desire to prove Ubuntu can do anything better than the p.o.s we call vista has left me unwilling to compromise.

Hopefully someone out there far more technically minded with me can help! Kind of strange going from being a (self proclaimed) advanced Windows user to a complete newbie!

    Lane —May 3, 2008 @ 11:35 pm

    This could be an insulting question, but it could also be the answer: is the little switch on the front part of the laptop (next to the card reader, headphone jacks, and all that) turned on?

     
 

Lane —May 3, 2008 @ 11:36 pm

Oh my, I grossly misread your comment. Have you checked in the BIOS to see if there’s an option to power on the wifi card at boot?

 

Marko —June 17, 2008 @ 12:07 am

Hi,

will there be update for 2.6.24-19 kernel?

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.