View Full Version : RealTek RTL8187 driver install problem
davfel
2006-12-29, 12:06 PM CST
Hello.
I am very new at this and I would greatly appreciate anyones help with installing this driver.
After downloadind and unzipping these driver files I do a "./makedrv" and this is the out put that i get, and i have no idea where to go from here. Thanks in advance.
Dave
./makedrv
ieee80211/
ieee80211/.tmp_versions/
ieee80211/.tmp_versions/ieee80211-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt_ccmp-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt_tkip-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt_wep-rtl.mod
ieee80211/ieee80211.h
ieee80211/ieee80211_crypt.c
ieee80211/ieee80211_crypt.h
ieee80211/ieee80211_crypt_ccmp.c
ieee80211/ieee80211_crypt_tkip.c
ieee80211/ieee80211_crypt_wep.c
ieee80211/ieee80211_module.c
ieee80211/ieee80211_rx.c
ieee80211/ieee80211_softmac.c
ieee80211/ieee80211_softmac_wx.c
ieee80211/ieee80211_tx.c
ieee80211/ieee80211_wx.c
ieee80211/license
ieee80211/Makefile
ieee80211/Modules.symvers
ieee80211/readme
beta-8187/
beta-8187/r8180_hw.h
beta-8187/r8187.h~
beta-8187/r8180_rtl8225.h
beta-8187/license
beta-8187/.tmp_versions/
beta-8187/.tmp_versions/r8187.mod
beta-8187/Makefile
beta-8187/r8180_93cx6.c
beta-8187/tags
beta-8187/authors
beta-8187/r8187_core.c~
beta-8187/r8180_pm.h
beta-8187/r8180_rtl8225.c
beta-8187/copying
beta-8187/r8180_wx.h
beta-8187/Modules.symvers
beta-8187/r8180_rtl8225z2.c
beta-8187/readme
beta-8187/r8187_core.c
beta-8187/ieee80211.h
beta-8187/r8180_93cx6.h
beta-8187/changes
beta-8187/r8187.h
beta-8187/r8180_pm.c
beta-8187/install
beta-8187/ieee80211_crypt.h
beta-8187/r8180_wx.c
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf /home/davfel/rtl8187_linux_26.1010.0622.2006/ieee80211/tmp
make -C /lib/modules/2.6.18-1.2868.fc6/build M=/home/davfel/rtl8187_linux_26.1010.0622.2006/ieee80211 modules
make: *** /lib/modules/2.6.18-1.2868.fc6/build: No such file or directory. Stop.
make: *** [modules] Error 2
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf /home/davfel/rtl8187_linux_26.1010.0622.2006/beta-8187/tmp
make -C /lib/modules/2.6.18-1.2868.fc6/build M=/home/davfel/rtl8187_linux_26.1010.0622.2006/beta-8187 modules
make: *** /lib/modules/2.6.18-1.2868.fc6/build: No such file or directory. Stop.
make: *** [modules] Error 2
davfel
2006-12-29, 12:22 PM CST
oh, and this is the code of makedrv
#!/bin/bash
cd ieee80211/
make clean
make
cd -
cd beta-8187/
make clean
make
cd -
please help me
thank you so much
dave
davfel
2006-12-29, 04:54 PM CST
a further update
it appears that i did not have the kernel sources available to do the makedrv file so after downloading, installing and running ./makedrv again my new error output is this.....
[root@user-0cevdo6 rtl8187_linux_26.1010.0622.2006]# ./makedrv
ieee80211/
ieee80211/.tmp_versions/
ieee80211/.tmp_versions/ieee80211-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt_ccmp-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt_tkip-rtl.mod
ieee80211/.tmp_versions/ieee80211_crypt_wep-rtl.mod
ieee80211/ieee80211.h
ieee80211/ieee80211_crypt.c
ieee80211/ieee80211_crypt.h
ieee80211/ieee80211_crypt_ccmp.c
ieee80211/ieee80211_crypt_tkip.c
ieee80211/ieee80211_crypt_wep.c
ieee80211/ieee80211_module.c
ieee80211/ieee80211_rx.c
ieee80211/ieee80211_softmac.c
ieee80211/ieee80211_softmac_wx.c
ieee80211/ieee80211_tx.c
ieee80211/ieee80211_wx.c
ieee80211/license
ieee80211/Makefile
ieee80211/Modules.symvers
ieee80211/readme
beta-8187/
beta-8187/r8180_hw.h
beta-8187/r8187.h~
beta-8187/r8180_rtl8225.h
beta-8187/license
beta-8187/.tmp_versions/
beta-8187/.tmp_versions/r8187.mod
beta-8187/Makefile
beta-8187/r8180_93cx6.c
beta-8187/tags
beta-8187/authors
beta-8187/r8187_core.c~
beta-8187/r8180_pm.h
beta-8187/r8180_rtl8225.c
beta-8187/copying
beta-8187/r8180_wx.h
beta-8187/Modules.symvers
beta-8187/r8180_rtl8225z2.c
beta-8187/readme
beta-8187/r8187_core.c
beta-8187/ieee80211.h
beta-8187/r8180_93cx6.h
beta-8187/changes
beta-8187/r8187.h
beta-8187/r8180_pm.c
beta-8187/install
beta-8187/ieee80211_crypt.h
beta-8187/r8180_wx.c
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf /home/davfel/rtl8187_linux_26.1010.0622.2006/ieee80211/tmp
make -C /lib/modules/2.6.18-1.2868.fc6/build M=/home/davfel/rtl8187_linux_26.1010.0622.2006/ieee80211 modules
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
CC [M] /home/davfel/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_softmac.o
/bin/sh: gcc: command not found
make[2]: *** [/home/davfel/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_softmac.o] Error 127
make[1]: *** [_module_/home/davfel/rtl8187_linux_26.1010.0622.2006/ieee80211] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
make: *** [modules] Error 2
rm -f *.mod.c *.mod *.o .*.cmd *.ko
rm -rf /home/davfel/rtl8187_linux_26.1010.0622.2006/beta-8187/tmp
make -C /lib/modules/2.6.18-1.2868.fc6/build M=/home/davfel/rtl8187_linux_26.1010.0622.2006/beta-8187 modules
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
CC [M] /home/davfel/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.o
/bin/sh: gcc: command not found
make[2]: *** [/home/davfel/rtl8187_linux_26.1010.0622.2006/beta-8187/r8187_core.o] Error 127
make[1]: *** [_module_/home/davfel/rtl8187_linux_26.1010.0622.2006/beta-8187] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
make: *** [modules] Error 2
[root@user-0cevdo6 rtl8187_linux_26.1010.0622.2006]#
please help if you can
thanks all
dave
jcliburn
2006-12-29, 08:14 PM CST
yum install gcc
davfel
2006-12-29, 09:04 PM CST
Thanks jcliburn you're a GIANT!
that works ....
now since i have you here any ideas on getting this to come up at boot?
thank you again
jcliburn
2006-12-30, 05:17 AM CST
You probably need to add this line to /etc/modprobe.conf:
alias interface_name module_name
where "interface_name" is something like eth0, wlan0, eth1, whatever, and
where "module_name" is the actual name of the module you created (it'll be a .ko file in your build tree somewhere).
davfel
2006-12-30, 06:10 PM CST
jcliburn,
what does adding that line to that file do for me please?
As of right now i have the interface working but i do not see it in the network manager and i am assuming there should be a way to put it in the Network manager (maybe???)
I assume that from the network manager i can bring the interface up at boot time.....or am i all wrong about this?
Thanks so much for all of your help'
dave
jcliburn
2006-12-30, 06:38 PM CST
I don't use NetworkManager, so I can't help you there.
The line in /etc/modprobe.conf instructs the kernel to load the module named module_name and bind it to the device called interface_name at boot time. It only loads the module; it does not configure the interface. To configure the interface with an IP address, DNS service, default gateway and so forth, you need to use other methods (like /usr/bin/system-config-network, for example).
davfel
2006-12-30, 06:54 PM CST
Thanks so much for the info. you have been a great help. so far all is well with this interface. hopefully i can get this thing to be totally automatic and secure
lol
again TY
Dave
davfel
2006-12-30, 07:00 PM CST
the system-config-network still does not list this device after doing the modprobe. Should it add this to list or am i doing something wrong?
Thanks,
Dave
davfel
2006-12-30, 08:05 PM CST
I am getting a fatal error in network config saying modprobe can not find r8187 which is the .ko file that the ./makedrv file built
do i need to put the module somewhere for imodprobe to find it? or do i have to give it a path?
TIA
dave
davfel
2006-12-30, 10:01 PM CST
update here
after moving the r8187.ko file into the /lib/modules/2.6.18-1.2868.fc6/kernel/drivers/net directory (at least that is what i think fixed this) the module was found, but ......
another fatal error occurs in the net config that says the module has unrecognized symbols.... apparantly the author;s program wlan0up resolves these issues ny loading other modules. here is a copy of the code wlan0up ....
#!/bin/sh
cd ieee80211/
insmod ieee80211_crypt-rtl.ko
insmod ieee80211_crypt_wep-rtl.ko
insmod ieee80211_crypt_tkip-rtl.ko
insmod ieee80211_crypt_ccmp-rtl.ko
insmod ieee80211-rtl.ko
cd ../beta-8187/
insmod r8187.ko
cd ../
ifconfig wlan0 up
Now my question is how can i get these particular modules to load automatically at boot time so net config can insert the r8187 module properly
and once again thanks so much for the help
Dave
davfel
2006-12-31, 09:28 AM CST
and finally another update
all is working now (at least as far as i can see as of yet)
what i did was move all of the modules listed in wlan0up into the /lib/modules/2.6.18-1.2868.fc6/kernel/drivers/net/ directory.
then i performed a depmod -a
and then rebooted and everything came up first time around
Now, I am not sure if this is the cleanest way of doing this but hey, it worked.
if anyone has any suggestions on how to do this in a better way please let me know
thanks jcliburn and baysailor for all of your help
dave
jcliburn
2006-12-31, 04:41 PM CST
You're welcome. You did all the heavy lifting. Good job.
yeti
2007-03-16, 06:31 PM CDT
davfel,
Can you post your r8187.ko and ieee80211_rtl.ko files here?
Also, what is the name of the directory these are kept in?
TIA
yeti
davfel
2007-03-17, 09:13 AM CDT
hi,
the ko files are built from source in the directory that you compile them in. In my case it is /home/davfel/downloads/rtl8187_linux_26.1010.0622.2006/beta-8187/
Then I moved the .ko file to the /lib/modules/2.6.18-1.2868.fc6/kernel/drivers/net/ directory
hope this helps
dave
Firewing1
2007-03-17, 09:33 AM CDT
See my post here:
http://fedoraforum.org/forum/showpost.php?p=762329&postcount=2
Using the new rtl-wifi drivers was the only way I got it to work, or compile for that matter.
Firewing1
davfel
2007-03-18, 12:48 AM CDT
hi,
I have not been successful with the source forge drivers yet. They compile but i am not able to bring up the NIC. I am not sure of the proper procedure since there is not any documentation available yet for this driver. Any help would be appreciated.
I use a asus motherboard with a Rtl8187l wireless lan on board.
thanks
dave
sideways
2007-03-18, 02:56 AM CDT
The realtek driver also compiles on 64 bit FC6, I don't think you posted the link:
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=1&PFid=1&Level=6&Conn=5&DownTypeID=3&GetDown=false&Downloads=true#362
(you need to do 'touch /usr/src/<kernel version>/include/linux/config.h' to get it to compile)
I didn't know about the sourceforge one, nice to know there are options. (Another is ndiswrapper (at least in 32-bit))
If I had seen this post earlier I would have suggested running the wlan0up script from /etc/rc.local, but you solved it neatly anyway.
davfel
2007-03-18, 10:20 AM CDT
Hi,
Yes it does compile in the older kernels but not in the new kernel. I now have the driver from sourceforge and it is compiling and installing and it brings up the NIC but....iafter a short while of using the NIC it freezes my computer. Anyone else having these problems?
TIA
dave
yeti
2007-03-18, 01:58 PM CDT
Hi,
Yes it does compile in the older kernels but not in the new kernel. I now have the driver from sourceforge and it is compiling and installing and it brings up the NIC but....iafter a short while of using the NIC it freezes my computer. Anyone else having these problems?
TIA
dave
davfel, FYI
WG111v2 usb wifi uses rtl8187. PCLOS uses _only_ ndiswrapper modules.
Howerver, that distro includes the native r8187 and 80211_rtl modules.
Here's what I was able to do in PCLOS to get that wifi enabled. (Quoting from one of the PCLOS forums):
(guote)
Here's how I got it working. The process will require some automating.
Assumes you've *diddled* all the GUIs with SSID, channel, WEP, DNS, DHCP choices, ad nauseum:
1. Add two lines to /etc/modprobe.conf
blacklist ndiswrapper
alias wlan0 rtl8187 ( I could swear I put in r8187)
2. Add two lines to /etc/resolv.conf
search home
nameserver 192.168.1.1 (router's address)
3. At a command line:
modprobe r8187 (wait for gui to say wlan0 connected)
dhclient wlan0 -s 255.255.255.255
iWconfig should show all your *diddled* choices.
iFconfig should show your inet (per DHCP) address;
note SSID is purposely scrambled from its actual value.
At this point I have DNS and internet. I hope you do, too.
You can probably put the command line stuff in /etc/rc.local or something like that.
(unquote)
No confirmed responses from anyone at PCLOS, however.
Interested if that might (also) work for fedora.
yeti
Firewing1
2007-03-18, 02:16 PM CDT
I saw this too...
Firewing1
davfel
2007-03-18, 03:33 PM CDT
hi,
I know ehw "alias wlan0 r8187 " (yes it is r8187 because it is the name of the .ko that is built) works to bring up the network, but mine locks up the system after a few minutes of using the web browser. It completely locks up no mouse movement at all and I have to power down and back up to get it working again. I am not sure if there is a log somewhere that I can read to see what is going on since it freezes. Any help is appreciated.
thanks
dave
Firewing1
2007-03-18, 04:43 PM CDT
Try looking at the output of dmesg
(After a reboot a lot of it will be from the current boot; I recommend putting the output into a file and then sorting through that, like this:
dmesg > filename.txt
Now edit filename.txt.
You can also check in /var/log/messages, which is probably your best bet.
Firewing1
davfel
2007-03-18, 04:52 PM CDT
hi.
Ok I have finally gotten this freaking thing to work and come up at boot time
I will start another thread so there is no confusion with all of this other mess that I have type before
Hopefully this will help others bring this card up on its own
and thanks to all for all of your help
Dave
sideways
2007-03-19, 05:58 AM CDT
hi,
I know ehw "alias wlan0 r8187 " (yes it is r8187 because it is the name of the .ko that is built) works to bring up the network, but mine locks up the system after a few minutes of using the web browser. It completely locks up no mouse movement at all and I have to power down and back up to get it working again. I am not sure if there is a log somewhere that I can read to see what is going on since it freezes. Any help is appreciated.
thanks
dave
I had this problem using the windows driver and ndiswrapper, I had to install a kernel with 16k stack support to fix it (You can dowload one pre-built from linuxant.com).
I also tried the netgear driver and compiled from source (it compiles on kernels < 2.6.19) and had no lock ups but stability seems poor, the connection is often dropped after an hour or so. But since this is for a 64-bit system I don't have the ndiswrapper option (no working 64-bit windows drivers, I tried the one on the netgear site).
So I may try the sourceforge driver when I have time, although I'm a little confused, is firewing1's link pointing to the same driver as this one
http://rtl8180-sa2400.sourceforge.net/
EDIT, ok, ignore that, I see that this is a new project and the rtl8180-sa2400 project was abandoned (unexplained) some time ago
davfel
2007-03-21, 04:12 PM CDT
hi,
check the new thread
dave
davfel
2007-03-21, 06:19 PM CDT
sorry here's the link
http://forum.fedoraforum.org/showthread.php?t=151020
dave
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.