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? |
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 ). |
Thanks very much Cliff, I'll give that a try right now.
|
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? |
Quote:
Quote:
|
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? |
Quote:
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. |
All times are GMT -5. The time now is 06:49 PM. |