rtl8192cu
rtl8192cu copied to clipboard
Failed Installing the driver on Lubuntu 15.04
I tried Installing it like other drivers here who has a tutrial. Anuway I got this:
shahar@Sonic:~$ git clone https://github.com/lwfinger/rtl8192cu Cloning into 'rtl8192cu'... remote: Counting objects: 344, done. remote: Total 344 (delta 0), reused 0 (delta 0), pack-reused 344 Receiving objects: 100% (344/344), 1.44 MiB | 1.18 MiB/s, done. Resolving deltas: 100% (183/183), done. Checking connectivity... done. shahar@Sonic:~$ cd rtl8192cu shahar@Sonic:~/rtl8192cu$ sudo make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.19.0-18-generic/build M=/home/shahar/rtl8192cu modules make[1]: Entering directory '/usr/src/linux-headers-3.19.0-18-generic' CC [M] /home/shahar/rtl8192cu/core/rtw_cmd.o CC [M] /home/shahar/rtl8192cu/core/rtw_security.o CC [M] /home/shahar/rtl8192cu/core/rtw_debug.o CC [M] /home/shahar/rtl8192cu/core/rtw_io.o CC [M] /home/shahar/rtl8192cu/core/rtw_ioctl_query.o CC [M] /home/shahar/rtl8192cu/core/rtw_ioctl_set.o CC [M] /home/shahar/rtl8192cu/core/rtw_ieee80211.o CC [M] /home/shahar/rtl8192cu/core/rtw_mlme.o CC [M] /home/shahar/rtl8192cu/core/rtw_mlme_ext.o CC [M] /home/shahar/rtl8192cu/core/rtw_wlan_util.o CC [M] /home/shahar/rtl8192cu/core/rtw_pwrctrl.o CC [M] /home/shahar/rtl8192cu/core/rtw_rf.o CC [M] /home/shahar/rtl8192cu/core/rtw_recv.o CC [M] /home/shahar/rtl8192cu/core/rtw_sta_mgt.o CC [M] /home/shahar/rtl8192cu/core/rtw_ap.o CC [M] /home/shahar/rtl8192cu/core/rtw_xmit.o CC [M] /home/shahar/rtl8192cu/core/rtw_p2p.o CC [M] /home/shahar/rtl8192cu/core/rtw_tdls.o CC [M] /home/shahar/rtl8192cu/core/rtw_br_ext.o CC [M] /home/shahar/rtl8192cu/core/rtw_iol.o CC [M] /home/shahar/rtl8192cu/core/rtw_sreset.o CC [M] /home/shahar/rtl8192cu/core/rtw_efuse.o CC [M] /home/shahar/rtl8192cu/hal/hal_intf.o CC [M] /home/shahar/rtl8192cu/hal/hal_com.o CC [M] /home/shahar/rtl8192cu/hal/dm.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192c_hal_init.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192c_phycfg.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192c_rf6052.o /home/shahar/rtl8192cu/hal/rtl8192c_rf6052.c: In function ‘PHY_RFShadowRefresh’: /home/shahar/rtl8192cu/hal/rtl8192c_rf6052.c:1020:37: warning: iteration 63u invokes undefined behavior [-Waggressive-loop-optimizations] RF_Shadow[eRFPath][Offset].Value = 0; ^ /home/shahar/rtl8192cu/hal/rtl8192c_rf6052.c:1018:3: note: containing loop for (Offset = 0; Offset <= RF6052_MAX_REG; Offset++) ^ CC [M] /home/shahar/rtl8192cu/hal/rtl8192c_dm.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192c_rxdesc.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192c_cmd.o CC [M] /home/shahar/rtl8192cu/hal/usb_halinit.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192cu_led.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192cu_xmit.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192cu_recv.o CC [M] /home/shahar/rtl8192cu/hal/usb_ops_linux.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192c_sreset.o CC [M] /home/shahar/rtl8192cu/hal/rtl8192c_xmit.o CC [M] /home/shahar/rtl8192cu/hal/Hal8192CUHWImg.o CC [M] /home/shahar/rtl8192cu/os_dep/osdep_service.o CC [M] /home/shahar/rtl8192cu/os_dep/os_intfs.o CC [M] /home/shahar/rtl8192cu/os_dep/usb_intf.o /home/shahar/rtl8192cu/os_dep/usb_intf.c: In function ‘rtw_drv_entry’: /home/shahar/rtl8192cu/os_dep/usb_intf.c:1580:52: error: macro "DATE" might prevent reproducible builds [-Werror=date-time] DBG_871X("build time: %s %s\n", DATE, TIME); ^ /home/shahar/rtl8192cu/os_dep/usb_intf.c:1580:1: error: macro "TIME" might prevent reproducible builds [-Werror=date-time] DBG_871X("build time: %s %s\n", DATE, TIME); ^ cc1: some warnings being treated as errors scripts/Makefile.build:257: recipe for target '/home/shahar/rtl8192cu/os_dep/usb_intf.o' failed make[2]: *** [/home/shahar/rtl8192cu/os_dep/usb_intf.o] Error 1 Makefile:1394: recipe for target 'module/home/shahar/rtl8192cu' failed make[1]: *** [module/home/shahar/rtl8192cu] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-18-generic' Makefile:569: recipe for target 'modules' failed make: *** [modules] Error 2 shahar@Sonic:~/rtl8192cu$ sudo make install install -p -m 644 8192cu.ko /lib/modules/3.19.0-18-generic/kernel/drivers/net/wireless/ install: cannot stat `8192cu.ko': No such file or directory Makefile:575: recipe for target 'install' failed make: *** [install] Error 1 shahar@Sonic:~/rtl8192cu$
Used to use 'pvaret' driver but wifi drops all the time...
I think that those warnings have been fixed.
Some comments:
- When trying to build out-of-kernel code, the use of -Werror in the gcc call is not usually advisable.
- Never try to do the 'sudo make install' step if the driver failed to build.
- The current version will spam your logs!! Good luck.
I downloaded and installed today. from here - Latest version. What is Werror and where Ive used it? And what spam? I don't understand.
Uguntu uses very restrictive options for their compiler calls. One of these is -Werror that causes any warning to be interpreted as an error. I have no idea where they apply these options.
Run the driver and then look at the output of the dmesg command. You will seen the spam.
So you tell me im better not to install it?
I did not tell you that at all. I just wanted you to know that this driver has some problems.
Oh ok. Sry to misunderstood. I wish someone could tell me how to install thios driver correctly. Though I made it work better with pvaret. reinstall while the wifi was disconnected.