LinuxQuestions.org
Review your favorite Linux distribution.
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 01-13-2013, 08:01 PM   #1
rollingw
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
Question Looking for Device Driver for N-300 D-LINK wireless ethernet for CentOS 6.3


Having issues getting wireless working on my new Lenovo laptop that is running with CentOS 6.3 final release (64bit) via the chip.

I just bought a new USB wireless ethernet device by D-Link (model N300/DWA-131) and have decided install it instead of using the wireless built into the chip.

I plugged in the USB but CentOS does not recognize it. Searched the web and found Linux driver here:

http://drivers.softpedia.com
Tried running make, but it fails ( I suspect it does not support CentOS 6.3)
Is there another driver site that includes driver support for the D-LINK N300 for CentOS 6.3?
 
Old 01-13-2013, 08:53 PM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
The correct driver is available from D-LINK, at this URL

-->http://www.dlink.com/us/en/home-solu...no-usb-adapter

There is a README in the archive. It tells you how to build the driver, and install. There is also firmware you have to install to get this USB nic to work.

You need the kernel headers for your current kernel installed in order to compile this driver ( or any other driver ).
 
Old 01-13-2013, 09:36 PM   #3
rollingw
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks very much Cliff, I'll give that a try right now.
 
Old 01-27-2013, 01:42 PM   #4
rollingw
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Cliff,

I am circling back to confirm the steps you mention regarding getting a model N300/DWA-131 wireless adapter to work with my CentOS 6.3 install. If I do:

yum install kernel-devel

Package kernel-devel-2.6.32-279.19.1.el6.x86_64 already installed and latest version
Nothing to do

I looked at the install package you mention above, and the bytes match the ones I had already downloaded. I also confirmed from the ReadMe, the driver details here:

sh-4.1# cat readme.txt
Release Date: 2009-0825, ver 0003
RTL8192SU Linux driver
--This driver supports RealTek rtl8192SU USB Wireless LAN NIC
for
2.6 kernel:
Fedora Core 2/3/4/5, Debian 3.1, Mandrake 10.2/Mandriva 2006,
SUSE 9.3/10.1/10.2, Gentoo 3.1, Ubuntu 7.10/8.04, etc.
2.4 kernel:
Redhat 9.0/9.1

I do indeed have kernel 2.6:

rpm -q kernel

sh-4.1# rpm -q kernel
kernel-2.6.32-220.el6.x86_64

if I do a 'make clean' and then a 'make' I get back the following errors:

make[1]: Entering directory `/usr/src/kernels/2.6.32-279.19.1.el6.x86_64'
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8180_93cx6.o
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_wx.o
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_wx.c: In function ‘r8192_wx_set_countrycode’:
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_wx.c:237: warning: cast from pointer to integer of different size
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192S_phy.o
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192S_rtl6052.o
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192S_rtl8225.o
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r819xU_cmdpkt.o
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_dm.o
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192SU_HWImg.o
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192S_firmware.o
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192S_Efuse.o
CC [M] /home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.o
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c: In function ‘rtl8192_rx_initiate’:
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:1603: warning: passing argument 4 of ‘usb_fill_bulk_urb’ makes pointer from integer without a cast
include/linux/usb.h:1328: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c: In function ‘rtl8192_rx_isr’:
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:2060: warning: passing argument 4 of ‘usb_fill_bulk_urb’ makes pointer from integer without a cast
include/linux/usb.h:1328: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:2067: warning: assignment makes pointer from integer without a cast
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c: In function ‘rtl8192_usb_probe’:
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12317: error: ‘struct net_device’ has no member named ‘open’
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12318: error: ‘struct net_device’ has no member named ‘stop’
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12319: error: ‘struct net_device’ has no member named ‘tx_timeout’
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12320: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12321: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12322: error: ‘struct net_device’ has no member named ‘set_mac_address’
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12323: error: ‘struct net_device’ has no member named ‘get_stats’
/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12324: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
make[2]: *** [/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.o] Error 1
make[1]: *** [_module_/home/rollingw/Downloads/dwa/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.19.1.el6.x86_64'
make: *** [all] Error 2


Still not certain as to why make is failing. Am I perhaps still missing CentOS development libs? What would you try next?
 
Old 01-27-2013, 01:56 PM   #5
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
kernel-2.6.32-220.el6.x86_64
Kernel version.

Quote:
kernel-devel-2.6.32-279.19.1.el6.x86_64
If kernel-devel has the kernel headers, these do not match. They must match for the compile to work.
 
Old 01-27-2013, 03:50 PM   #6
rollingw
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy 2 kernels

Thanks Cliff,

Taking a step back, staring at this a bit more, I see I have 2 kernels installed:

rpm -qa kernel\*|sort

kernel-2.6.32-220.el6.x86_64
kernel-2.6.32-279.19.1.el6.x86_64
kernel-devel-2.6.32-220.el6.x86_64
kernel-devel-2.6.32-279.14.1.el6.x86_64
kernel-devel-2.6.32-279.19.1.el6.x86_64
kernel-devel-2.6.32-279.2.1.el6.x86_64
kernel-devel-2.6.32-279.5.1.el6.x86_64
kernel-firmware-2.6.32-279.19.1.el6.noarch
kernel-headers-2.6.32-279.19.1.el6.x86_64

I upgraded recently to get Skype running--I'm thinking that's the root cause.

I am, however, running the '279' kernel:

uname -r

2.6.32-279.19.1.el6.x86_64

running yum:

yum install kernel-devel-`uname -r`
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.liquidweb.com
* extras: mirrors.liquidweb.com
* updates: mirrors.cmich.edu
Setting up Install Process
Package kernel-devel-2.6.32-279.19.1.el6.x86_64 already installed and latest version
Nothing to do

Doesn't the above suggest that the kernel development headers match the kernel? Reading other treads out there, as I understand it, yum does not even allow one to downgrade to older packages, one needs to use rpm to do that.

Any thoughts?
 
Old 01-27-2013, 04:09 PM   #7
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Doesn't the above suggest that the kernel development headers match the kernel?
Yes, they should.

I had another look through the error messages. Sorry I have no other ideas why this is failing. I hope someone else with more experience with compiling from source can help.
 
  


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
Ethernet Device Driver new_321 Linux - Embedded & Single-board computer 1 01-14-2011 01:56 PM
Connect acer nb wireless 2200bg centOS 5.4 to D-link DSL-2640T wireless router LinpusKelvin Linux - Networking 2 05-10-2010 11:32 AM
Advantage Using an Ethernet link + a Wireless Link?? drmjh Linux - General 2 08-10-2009 08:54 AM
Media Link Up Trigger in Linux Ethernet driver bond_7942 Linux - Software 3 06-18-2005 07:03 AM
Slack 10.1: Problems with D-Link DFE 538TX ethernet card driver Bill Gates 666 Slackware 1 04-12-2005 11:38 PM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration