LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-10-2011, 03:52 PM   #1
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
Compiling RTL8192SE Linux driver : Strange error after make


I am running Debian 6 & picked up a wireless nic for my desktop since I want to locate it in an area that would be a challenge to wire. I downloaded the driver and ran make and got the strange error below. I tried doing some web research but could not find anything. I also booted up the machine w/ a Ubuntu Live disk to ensure the card was good and found no issues ( I also have the same nic in my kids machine running Ubuntu 10.10. )

Any direction would be appreciated.



The Nic ->

http://www.newegg.com/Product/Produc...82E16833166063

The Error ->

Quote:

joe@Tux-Box:/media/E-Space/Packages/Roesewill Wireless/rtl8192se_linux_2.6.0019.1207.2010$ sudo bash
[sudo] password for joe:
root@Tux-Box:/media/E-Space/Packages/Roesewill Wireless/rtl8192se_linux_2.6.0019.1207.2010# make
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
make[3]: *** No rule to make target `Wireless/rtl8192se_linux_2.6.0019.1207.2010/HAL/rtl8192'. Stop.
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
make: *** [all] Error 2



Make File -->

Quote:

NIC_SELECT = RTL8192SE
LINUX_KSRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
RTL819x_DIR = $(shell pwd)
KVER = $(shell uname -r)
KSRC = /lib/modules/$(KVER)/build
RTL819x_FIRM_DIR = $(RTL819x_DIR)/firmware
HAL_SUB_DIR = rtl8192
MODULE_FILE = $(RTL819x_DIR)/rtllib/Module.symvers
SCRIPT_FOLDER = /etc/realtek

export LINUX_KSRC_MODULE_DIR RTL819x_FIRM_DIR

all:
ifeq ($(shell uname -r|cut -d. -f1,2), 2.4)
# @make -C $(RTL819x_DIR)/rtllib
@make -C $(RTL819x_DIR)/HAL/$(HAL_SUB_DIR)
@make -C $(RTL819x_DIR)/wapi_supplicant
else
# @make -C $(KSRC) SUBDIRS=$(RTL819x_DIR)/rtllib modules
# @test -f $(MODULE_FILE) && cp $(MODULE_FILE) $(RTL819x_DIR)/HAL/$(HAL_SUB_DIR) || echo > /dev/null
ifeq ($(NIC_SELECT), RTL8192SE_SA)
@make -C $(RTL819x_DIR)/hostapd-0.6.10/hostapd
endif
@make -C $(KSRC) SUBDIRS=$(RTL819x_DIR)/HAL/$(HAL_SUB_DIR) modules
# @make -C $(RTL819x_DIR)/wapi_supplicant
endif
install: all
@rm -f /etc/acpi/wireless-rtl-ac-dc-power.sh
@rm -f /etc/acpi/events/RadioPower.sh
@cp -fr realtek/ /etc
@make -C HAL/$(HAL_SUB_DIR)/ install
# @cp $(RTL819x_DIR)/wapi_supplicant/wapi_supplicant /usr/bin/
uninstall:
@make -C HAL/$(HAL_SUB_DIR)/ uninstall
@rm -fr $(SCRIPT_FOLDER)
@rm -f /usr/bin/wapi_supplicant
clean:
@make -C HAL/$(HAL_SUB_DIR)/ clean
@make -C rtllib/ clean
@test -r mshclass/ && make -C mshclass/ clean|| echo > /dev/null
@test -r wapi_supplicant/ && make -C wapi_supplicant/ clean|| echo > /dev/null
@rm -fr Modules.symvers
@rm -fr Module.symvers
@rm -fr Module.markers
@rm -fr modules.order
@rm -fr .tmp_versions
@rm -fr *~
@rm -f tags
ifeq ($(NIC_SELECT), RTL8192SE_SA)
@make -C $(RTL819x_DIR)/hostapd-0.6.10/hostapd clean
endif
ifeq ($(NIC_SELECT), RTL8192CE_BT30)
@make -C btlib clean
endif


 
Old 04-10-2011, 06:20 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,020

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
The README says nothing about permissions, I'm almost positive that you'll have to chmod before installing
http://www.rosewill.com/products/d_1...ductDetail.htm
 
Old 04-12-2011, 11:54 AM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Original Poster
Rep: Reputation: 102Reputation: 102
I'll give it a shot and post my results this weekend when I get back in town when I have access to my machine.

Set the permissions wide open 777 , you think .


Thanks for the input.
 
Old 04-15-2011, 08:11 PM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Original Poster
Rep: Reputation: 102Reputation: 102
Question

Opened up permissions and I got to work

I now have to issues that stemmed from the install.

1. I have to run the script step (6 section 2 ( .wlano0up)) to start it up each boot.

2. Signal is somewhat spotty and the computer now "freezes" ( refuses input ) for 10-20 seconds at a clip every 1-2 minutes minutes.

Any thoughts ?

Steps Taken :

Quote:
========================================================================================
II. Compile & Installation & uninstall
========================================================================================
You can enter top-level directory of driver and execute follwing command to
Compile, Installation, or uninstall the driver:
0. Change to Super User
sudo su

1. Compile driver from the source code
make

2. Install the driver to the kernel
make install
reboot

3. uninstall driver
make uninstall

========================================================================================
III. Start Up Wireless
========================================================================================
You can use two methord to start up wireless:
<<Method 1>>
1. Install driver like II. and reboot OS
2. Wireless will brought up by GUI, such as NetworkManager
3. If Wireless is not brought up by GUI, you can use:
ifconfig wlan0 up
Note: some times when you have two wireless NICs on your computer,
interface "wlan0" may be changed to "wlan1" or "wlan2", etc.
So before "ifconfig wlan0 up", you can use "iwconfig" to check
which interface our NIC is.

<<Method 2>>
Not install driver But Only load the driver module to kernel and
start up nic.
1. Compile the drivers from the source code
make

2. Copy firmware to /lib/firmware/ or /lib/firmware/(KERNEL_VERSION)/
cp -rf firmware/RTL8192SE /lib/firmware or
cp -rf firmware/RTL8192SE /lib/firmware/(KERNEL_VERSION)
Note: This depends on whether (KERNEL_VERSION) subdirectory exists
under /lib/firmware

3. Load driver module to kernel.
./wlan0up
Note: when "insmod: error inserting 'xxxx.ko': -1 File exists" comes
out after run ./wlan0up, please run ./wlan0down first, then it
should Be ok..
Note: If you see the message of "unkown symbol" during ./wlan0up, it
is suggested to start up nic use <<Method 1>>.

4. start up nic
ifconfig wlan0 up






wlan0up script ->

Quote:
#!/bin/bash

# Select NIC type
card=RTL8192se

SYSTEM=`uname -r|cut -d. -f1,2`


if [ $SYSTEM = 2.4 ]
then
cd rtllib
#insmod rtllib_crypt-rsl.o
#insmod crypto-rsl.o
#insmod michael_mic-rsl.o
#insmod aes-rsl.o
#insmod rtllib_crypt_wep-rsl.o
#insmod rtllib_crypt_tkip-rsl.o
#insmod rtllib_crypt_ccmp-rsl.o
#insmod rtllib-rsl.o

#insmod
case "$card" in
"RTL8192u")
cd ../HAL/rtl8192u;
insmod r8192_usb.o;;
"RTL8192su")
cd ../HAL/rtl8192u;
insmod r8192s_usb.o;;
"RTL8190p")
cd ../HAL/rtl8192;
insmod r8190_pci.o;;
"RTL8192e")
cd ../HAL/rtl8192;
insmod r8192e_pci.o;;
"RTL8192se")
cd ../HAL/rtl8192;
insmod r8192se_pci.o;;
"RTL8191se_Mesh")
cd ../HAL/rtl8192;
insmod r8192se_pci_mesh.o;;
"RTL8192ce")
cd ../HAL/rtl8192;
insmod r8192ce_pci.o;;
*)
echo "Unknown NIC type"
;;
esac

else
cp RadioPower.sh /etc/acpi/events

cd rtllib/
#insmod rtllib_crypt-rsl.ko
#insmod rtllib_crypt_wep-rsl.ko
#insmod rtllib_crypt_tkip-rsl.ko
#insmod rtllib_crypt_ccmp-rsl.ko
#insmod rtllib-rsl.ko

#insmod
case "$card" in
"RTL8192u")
cd ../HAL/rtl8192u;
insmod r8192_usb.ko;;
"RTL8192su")
cd ../HAL/rtl8192u;
insmod r8192s_usb.ko;;
"RTL8190p")
cd ../HAL/rtl8192;
insmod r8190_pci.ko;;
"RTL8192e")
cd ../HAL/rtl8192;
insmod r8192e_pci.ko;;
"RTL8192se")
cd ../HAL/rtl8192;
insmod r8192se_pci.ko;;
"RTL8191se_Mesh")
cd ../HAL/rtl8192;
insmod r8192se_pci_mesh.ko;;
"RTL8192ce")
cd ../HAL/rtl8192;
insmod r8192ce_pci.ko;;
*)
echo "Unknown NIC type"
;;
esac
fi

cd ../..
#ifconfig wlan0 up


 
Old 04-16-2011, 12:47 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,020

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Now that you've built your module you'll probably need to look at your dmesg to see if you have conflicts. You should probably post output of dmesg and let someone help you. At this point I may or may not be able to help you but someone here can.
This may help.

http://forum.doozan.com/read.php?2,563
 
Old 04-16-2011, 12:48 AM   #6
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 218

Rep: Reputation: 26
Quote:
Originally Posted by jv2112 View Post
Opened up permissions and I got to work

I now have to issues that stemmed from the install.

1. I have to run the script step (6 section 2 ( .wlano0up)) to start it up each boot.

2. Signal is somewhat spotty and the computer now "freezes" ( refuses input ) for 10-20 seconds at a clip every 1-2 minutes minutes.

Any thoughts ?

Steps Taken :




wlan0up script ->
The reason you needed to run make install as root is because it needs to write to the / file system.

You need the load the r8192se module at boot. See here for managing debian modules at boot:

http://kernel-handbook.alioth.debian...h-modules.html

I have this card in my thinkpad and it's pretty vile. System lockups occur fairly regularly. It's still in the kernel staging tree and won't be in a stable kernel until at least 2.6.40. You could hack the make file to remove the power saving functions, which I think are at the root of the lockups, but you'll still be stuck with a flaky connection!Unless you can swap out the card then you are stuck with most of these issues until realtek sort the driver out.

More explanation here:

http://www.thinkwiki.org/wiki/ThinkP...ess_Adapter_II
 
1 members found this post helpful.
Old 04-17-2011, 07:34 AM   #7
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Original Poster
Rep: Reputation: 102Reputation: 102
Thanks for the direction. Looks like I just got a bad card.......



Any Suggestions on a Good Card ?

Running Debian/ Testing - Kernel 2.6.38-2 amd64.


I really don't want to attempt to snake 100 feet of network cable from the basement to the third floor....
 
Old 04-22-2011, 05:41 AM   #8
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Original Poster
Rep: Reputation: 102Reputation: 102
I have tried this card on another machine running Ubuntu 10.10 and my machine running on a Live Ubuntu disk and no issue. Works perfectly. Can anybody direct me on what the difference is on the default "network" packages. I see that DHCP3 is on the Ubuntu install an not my Debian box. I installed them ( see below) and still no good.

Any ideas. I don't want to go back to Linux with training wheels.

Quote:
joe@Tux-Box:~$ sudo dpkg -l | grep -i dhcp
ii dhcp3-client 4.1.1-P1-16.1 ISC DHCP server (transitional package)
ii dhcp3-common 4.1.1-P1-16.1 ISC DHCP common files (transitional package)
ii dhcp3-server 4.1.1-P1-16.1 ISC DHCP server (transitional package)
rc dhcpcd 1:3.2.3-8 DHCP client for automatically configuring IPv4 networking
rc dhcpcd-dbus 0.5.2-2 DBus bindings for dhcpcd
ii dnsmasq-base 2.57-1 A small caching DNS proxy and DHCP/TFTP server
ii isc-dhcp-client 4.1.1-P1-16.1 ISC DHCP client
ii isc-dhcp-common 4.1.1-P1-16.1 common files used by all the isc-dhcp* packages
ii isc-dhcp-server 4.1.1-P1-16.1 ISC DHCP server for automatic IP address assignment



 
Old 04-22-2011, 06:08 AM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,020

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
I may be wrong and sometimes I am, but aren't transitional packages drivers to hold a position to place the actual driver?
I just checked my system and I'm running transitional too, so I guess I'll be also waiting for someone to enlighten me on that 1.

Last edited by EDDY1; 04-22-2011 at 06:14 AM.
 
Old 04-22-2011, 06:11 AM   #10
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Original Poster
Rep: Reputation: 102Reputation: 102
EDDY1,

I believe you are correct but the wierd thing is when I did an update on the Ubuntu machine it just this week updated dhcp3 ......

Thanks for the response.
 
Old 04-22-2011, 06:16 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,020

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Well I have transitional also, so I guess I need to research and see if it makes a difference.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rtl8192se driver install for rtl8191SEvB wireless adapter r2g2btru Linux - Wireless Networking 4 06-21-2011 09:03 AM
rtl8192se driver problems, with staging driver and ndiswrapper headrift Linux - Hardware 3 09-27-2009 11:07 PM
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - General 1 12-11-2007 07:54 AM
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - Newbie 0 12-11-2007 07:49 AM
'make' error compiling alsa driver rickh Debian 3 05-14-2005 01:28 AM


All times are GMT -5. The time now is 03:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration