[SOLVED] Help installing drivers from source (RTL8187L)

Questions about hardware and drivers
Forum rules
Before you post please read how to get help

[SOLVED] Help installing drivers from source (RTL8187L)

Postby noah++ on Thu May 24, 2012 9:45 pm

Hi,

Recently I posted here about my difficulties with the stock rtl8187 module. It turns out that many Linux users have the same problems. And for many of them, the fix was to install drivers downloaded from Realtek.

My AWUS036H USB card is supposed to have an RTL8187L chip, so I downloaded that package and installed it. Then I marked the thread solved. It turned out that was a bit premature, because after a decent couple of hours, my problems started cropping up again. I think that somehow I didn't really install the drivers.

The output of the 'make' process seems to report that an rtl8187l.ko file was built. But I've searched my entire filesystem, and there's no such file there. I've also checked the only rtl8187.ko file extant under /lib/modules. Its datestamp is from last week, I think from the day I built my custom kernel and modules. In any case, that date is well before my last attempt to install the Realtek drivers, today.

Here's a transcript of my most recent terminal session, with output from 'make clean', 'make', and 'make install'. I hope you can help.

Code: Select all
mint rtl8187L_linux_1041.0209.2012 # make clean
make[1]: Entering directory `/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187'
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
rm -fr Module.symvers
rm -fr modules.order
rm -fr Module.markers
rm -rf tags
make[1]: Leaving directory `/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187'
make[1]: Entering directory `/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/ieee80211'
rm -f *.mod.c *.mod *.o .*.cmd *.ko *~
rm -rf /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/ieee80211/tmp
rm -fr Module.symvers
rm -fr modules.order
rm -fr Module.markers
make[1]: Leaving directory `/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/ieee80211'


mint rtl8187L_linux_1041.0209.2012 # make
make[1]: Entering directory `/usr/src/linux-source-3.2'
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8180_tx’:
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1382:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8187_usb_initendpoints’:
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1588:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8180_93cx6.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8180_wx.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8180_rtl8225.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8180_rtl8225z2.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_led.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8180_pm.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8180_dm.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_softmac.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_rx.o
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_rx.c: In function ‘ieee80211_network_init’:
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_rx.c:1046:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat]
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_tx.o
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_tx.c: In function ‘ieee80211_xmit’:
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_tx.c:426:28: warning: assignment makes integer from pointer without a cast [enabled by default]
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_wx.o
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_wx.c: In function ‘ieee80211_wx_set_gen_ie’:
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_wx.c:887:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ [-Wformat]
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_module.o
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_module.c: In function ‘store_debug_level’:
/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_module.c:271:22: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_softmac_wx.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_crypt.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_crypt_tkip.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_crypt_ccmp.o
  CC [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/../ieee80211/ieee80211_crypt_wep.o
  LD [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8187l.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8187l.mod.o
  LD [M]  /usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187/r8187l.ko
make[1]: Leaving directory `/usr/src/linux-source-3.2'


mint rtl8187L_linux_1041.0209.2012 # make install
kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko: kernel/drivers/usb/core/usbcore.ko kernel/drivers/usb/usb-common.ko kernel/net/mac80211/mac80211.ko kernel/net/wireless/cfg80211.ko kernel/net/rfkill/rfkill.ko kernel/drivers/misc/eeprom/eeprom_93cx6.ko
kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko: kernel/drivers/usb/core/usbcore.ko kernel/drivers/usb/usb-common.ko kernel/net/mac80211/mac80211.ko kernel/net/wireless/cfg80211.ko kernel/net/rfkill/rfkill.ko kernel/drivers/misc/eeprom/eeprom_93cx6.ko
make[1]: Entering directory `/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187'
make -C /lib/modules/3.2.9/build M=/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187 CC=gcc modules
make[2]: Entering directory `/usr/src/linux-source-3.2'
  Building modules, stage 2.
  MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-source-3.2'
find /lib/modules/3.2.9 -name "r8187.ko" -exec ls -l {} \;
find /lib/modules/3.2.9 -name "r8187.ko" -exec rm {} \;
install -p -m 644 r8187l.ko /lib/modules/3.2.9/kernel/drivers/net/wireless
depmod -a
make[1]: Leaving directory `/usr/src/linux-source-3.2/drivers/net/wireless/rtl8187L_linux_1041.0209.2012/rtl8187'
Last edited by noah++ on Mon May 28, 2012 5:40 pm, edited 1 time in total.
noah++
Level 1
Level 1
 
Posts: 15
Joined: Wed Nov 03, 2010 10:10 pm

Linux Mint is funded by ads and donations.
 

Re: Help installing drivers from source (RTL8187L)

Postby jp734 on Fri May 25, 2012 9:58 pm

I believe you have to enter the command on terminal after "make"

sudo modprobe name.ko
IBM-X41 1.5GHz 1GB 32Gb - Lubuntu 12.10
---
Custom PC: Core2Quad 2.83GHz - 4GB - (3) Dell E197FP, (2) Radeon HD 5450
--- Linux Mint 15 Mate - Lubuntu 13.04 - CrunchBang Waldorf


Image
jp734
Level 3
Level 3
 
Posts: 174
Joined: Wed Apr 27, 2011 12:18 pm

Re: Help installing drivers from source (RTL8187L)

Postby noah++ on Sat May 26, 2012 1:15 am

You're telling me I have to modprobe the .ko file? But, like I said, the file doesn't actually exist.
noah++
Level 1
Level 1
 
Posts: 15
Joined: Wed Nov 03, 2010 10:10 pm

Re: Help installing drivers from source (RTL8187L)

Postby jp734 on Sat May 26, 2012 6:05 am

I don't know what to tell you but that's what I did to get my wireless working last time and it is also an RTL
IBM-X41 1.5GHz 1GB 32Gb - Lubuntu 12.10
---
Custom PC: Core2Quad 2.83GHz - 4GB - (3) Dell E197FP, (2) Radeon HD 5450
--- Linux Mint 15 Mate - Lubuntu 13.04 - CrunchBang Waldorf


Image
jp734
Level 3
Level 3
 
Posts: 174
Joined: Wed Apr 27, 2011 12:18 pm

Solution

Postby noah++ on Mon May 28, 2012 5:39 pm

Actually, the new driver was called r8187l. I modprobed it, and it wouldn't bind to my card. So I forced it to. It caused a kernel panic every time I associated to a network. I guess the kernel was just trying to protect itself.

My solution was to download, patch, and install the newest kernel driver from compat-wireless using this guide. Now I'm happily using rtl8187 again.
noah++
Level 1
Level 1
 
Posts: 15
Joined: Wed Nov 03, 2010 10:10 pm


Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 2 guests