Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Update: I have successfully fixed this problem. Skip to the bottom of this post for the final change I made.
I'm running BackTrack 5 (Kernel Ver: 2.6.39.4) on a Lenovo Edge 14 with a Realtek RTL8192SE Wireless card built-in.
This card does not work out of the box, so here is what I have done so far.
Yes all commands are run as root user.
Checked that I have the most recent version of linux-headers and linux-kernel. I do, all located in /usr/src.
I downloaded the Linux drivers from Realtek's web page for this card. I extracted the archive, and followed the directions in the "readme" file. The first step for installing was to run "make". I received an error when running this command, I'll explain more below..
I researched this and could not find a similar issue concerning wireless cards (mostly GPU issues).
I contacted Realtek technical support via email with the following:
Me > Realtek Support:
Hello,
I have a Debian based Linux distribution on my Lenovo Edge 14 laptop with a Realtek 8192SE wireless chip.
I downloaded the "rtl_92ce_92se_92de_linux_mac80211_0003.0620.2011" file from the Realtek website.
I have extracted the archive and read the "readme" file included.
From what I understand the first step is to run "make" as root. When I run make in the root "rtl_92ce_92se_92de_linux_mac80211_0003.0620.2011" directory my terminal outputs the following below:
root@bt:~/rtl_92ce_92se_92de_linux_mac80211_0003.0620.2011# make
make -C /lib/modules/2.6.39.4/build M=/root/rtl_92ce_92se_92de_linux_mac80211_0003.0620.2011 modules
make[1]: Entering directory `/lib/modules/2.6.39.4/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.39.4/build'
make: *** [all] Error 2
root@bt:~/rtl_92ce_92se_92de_linux_mac80211_0003.0620.2011#
I have also tried running make from the included "rtl8192se" directory in the archive and I receive:
root@bt:~/rtl_92ce_92se_92de_linux_mac80211_0003.0620.2011/rtl8192se# make
make -C /lib/modules/2.6.39.4/build M=/root/rtl_92ce_92se_92de_linux_mac80211_0003.0620.2011/rtl8192se modules
make[1]: Entering directory `/lib/modules/2.6.39.4/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.39.4/build'
make: *** [default] Error 2
root@bt:~/rtl_92ce_92se_92de_linux_mac80211_0003.0620.2011/rtl8192se#
I have done a few Google searches and have not found a work around for this problem. Is there some change that I need to do in the Makefile? Am I running "make" in the correct directory, or am I possibly missing some dependencies that I need to install this driver. Any guidance would be appreciated.
Thanks!
End Email
I received a (surprisingly prompt) response from Realtek with the following:
Realtek > Me
Dear Sir / Madam,
Thanks for your email.
Please find the latest RTL8191SE Linux driver source as attached.
This driver source only support PC-based x86 platform, not support embedded system.
Please refer to readme file within the package for installation and follow below steps.
You should clean/delete previous/default/inbox driver first after you install this driver source.
The previous driver will be stored within /lib/modules/2.6.XXX/kernel/driver/staging.
Please remove "r8192se_pci.ko" files by following command.
1. sudo su (you should input you root password after it)
2. find /lib/modules/ -name "r8192se_*.ko" -exec ls -l {} \;
After, You could execute "find /lib/modules/ -name "r8192se_*.ko" -exec ls -l {} \;" to confirm it’s clear properly.
And then, install this driver source as below steps. Don’t forget to extract this package before you install it.
1. sudo su
2. make
3. make install
4. reboot
Then, you could use " NetworkManager " to site survey AP and link it.
But, we think you encountered the issue of build environment. You don’t install the kernel completely.
Please install the kernel header or kernel source properly. Thanks.
Best Regards,
Roger_XXXXX
Realtek Semiconductor Corp.
End Email
I have tried the above solutions with a little more luck than I had when I began. I received a similar error however I was able to get some more information out in my terminal. I have responded to the Realtek Rep with the following:
Me > Realtek
Thank you for the quick response.
I executed the "find" commands to remove the old files.
I ran "make" after extracting the archive that you attached. I still received the same error as before. I double checked that I had both the linux-source and linux-headers installed and updated on my system.
I opened Makefile and changed the KSRC := to /usr/src/linux-headers-2.6.39.4 which is the directory of my kernel source header files.
Now after that change I got some more output to my terminal, which I have copied below:
root@bt:~/rtl_92ce_92se_92de_linux_mac80211_0004.0816.2011# make
make -C /usr/src/linux-headers-2.6.39.4 M=/root/rtl_92ce_92se_92de_linux_mac80211_0004.0816.2011 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.39.4'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.39.4'
make[1]: Entering directory `/root/rtl_92ce_92se_92de_linux_mac80211_0004.0816.2011/rtl8192ce'
make -C /lib/modules/2.6.39.4/build M=/root/rtl_92ce_92se_92de_linux_mac80211_0004.0816.2011/rtl8192ce modules
make[2]: Entering directory `/lib/modules/2.6.39.4/build'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/lib/modules/2.6.39.4/build'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/rtl_92ce_92se_92de_linux_mac80211_0004.0816.2011/rtl8192ce'
make: *** [all] Error 2
root@bt:~/rtl_92ce_92se_92de_linux_mac80211_0004.0816.2011#
As you can see I am still receiving an error about no target 'modules'. I'm wondering if I need to make another change in the Makefile to a directory location for this 'modules' file. It may not be located in /lib/modules/2.6.39.4/build.
Any other suggestions you can give me for this?
Thanks again!
End Email
I'm still awaiting a reply from Realtek.
I have attached the contents of the "readme" file I received from the Realtek rep as well as the contents of my edited "Makefile".
Can anyone understand what's going on here? I'm thinking I need to move some header files or change some directories in the "Makefile".
Any input is appreciated everyone!
I'll also make sure I keep this updated with anything I come up with to help others with this problem as there isn't much information out there at all on this card.
UPDATE
I received the following email from Realtek:
Realtek > Me
Dear Sir,
Could you help to provide the message of “ ls /lib/modules/2.6.39.4/build –l ” for reference? Thanks.
Best Regards,
Roger_XXXXX
Realtek Semiconductor Corp.
End Email
I ran the command [ls -l /lib/modules/2.6.39.4/build] and replied with the following:
Not sure if this will help anyone here or not, just figured I should update!
Issue still unresolved.
Final Solution:
The Realtek rep replied to my email stating that he believes I do not have the kernel source and headers installed correctly.
I double checked that I have the kernel source (2.6.39.4) and header files installed correctly. I did and they can be located in their respective directories under /usr/src. I copied the contents of the header and kernel source directories to /lib/modules/2.6.39.4/build and I was able to compile the software successfully after this change. The device now shows up as wlan0 and I can scan for wireless networks, connect, etc.
Last edited by Delta_X; 10-15-2011 at 02:26 PM.
Reason: Update; Solved
This is definitely helping me. I am using Slackware and my kernel files are in /usr/include/linux. Exactly what did you copy from your kernel header and source files over to the /lib/modules/${KVER}/build directory and did you keep their folder structure or just dumped everything in it?
I have BT5 and have the same problem with my rt5370 driver install from them and was wondering if you could post a step by step to get those files in that directory as i don't see kernel but see headers or maybe you could just upload a copy of what you put in the modules folder to 4shared or something for me please.
UPDATE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Code:
locate Module.symvers
cp "dir without quotes where found" /usr/src/linux
I tried changing the following in the makefile with after using locate to locate some of the requirements of the makefile
Code:
LINUX_SRC =/lib/modules/$(shell uname -r)/build
to
LINUX_SRC =/usr/src/linux
and below it:
Code:
LINUX_SRC =/lib/modules/$(shell uname -r)/kernel/drivers/net/wireless
to
LINUX_SRC =/usr/src/linux/drivers/net/wireless
ran
Code:
make
make install
modprobe rt5370sta
and now it works in Wicd after changing the preferences for wlan0 to Ra0 I can connect and it works
Last edited by extraweb1; 02-26-2012 at 12:37 AM.
Reason: i fixed my problem
So im running BT 5 on Virtual box and i cant get BT to detect my Realtek RTL8188CE Wireless LAN 802.11n PCI-E NIC. Can u please help me step by step? I am new to this so if u could help me i would appreciate it a lot. Thanks
So im running BT 5 on Virtual box and i cant get BT to detect my Realtek RTL8188CE Wireless LAN 802.11n PCI-E NIC. Can u please help me step by step? I am new to this so if u could help me i would appreciate it a lot. Thanks
Beyond following the steps I posted above I am unable to help any farther.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.