Why has the rt8192cu driver been replaced with 8192cu?
Posted: Wed May 27, 2015 5:38 pm
Hi,
A few years back I used to use a Realtek RTL8188CUS USB card as a hotspot. Now when I try to use this USB card it tries to use the 8192cu driver, how can I stop this?
I have tried to compile the rt8192cu with no luck, as gcc "is too buggy; it is known to miscompile kernels"! Is there any way to switch back to the 3.6.11 kernel or a version where this driver was working?
I then downloaded proper driver from https://github.com/dz0ny/rt8192cu
I then try to fix missing kernel scripts issue...
But I can't as Raspberry Pi kernel uses an ancient version of GCC! How can I compile this driver and get wireless working like it used to? 
A few years back I used to use a Realtek RTL8188CUS USB card as a hotspot. Now when I try to use this USB card it tries to use the 8192cu driver, how can I stop this?
I have tried to compile the rt8192cu with no luck, as gcc "is too buggy; it is known to miscompile kernels"! Is there any way to switch back to the 3.6.11 kernel or a version where this driver was working?
Code: Select all
root@pi3:~/linux# lsusb
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
root@pi3:~/linux# lsmod
Module Size Used by
8192cu 569561 0Code: Select all
root@pi3:~# cat /proc/version
Linux version 3.18.11+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #781 PREEMPT Tue Apr 21 18:02:18 BST 2015
root@pi3:~# gcc --version | grep gcc
gcc (Raspbian 4.8.2-21~rpi3rpi1) 4.8.2Code: Select all
root@pi3:~# rpi-source
*** gcc version check: OK
*** Using: /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz
*** Latest firmware revision: 6cc27e02dde4f1e02cfddb3d0f23d54be87680cb
*** Linux source commit: bb6b4b6b331680bed807605685572d727638bb51
*** Kernel source already installed: /root/linux-bb6b4b6b331680bed807605685572d727638bb51Code: Select all
root@pi3:~# ln -s ~/linux/arch/arm ~/linux/arch/armv6lI then downloaded proper driver from https://github.com/dz0ny/rt8192cu
Code: Select all
root@pi3:~/rt8192cu# ls
blacklist-dkms-8192cu.conf clean core dkms-8192cu.install dkms.conf hal ifcfg-wlan0 include Kconfig Makefile os_dep README.md runwpa wlan0dhcp
root@pi3:~/rt8192cu# make
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/3.18.11+/build M=/root/rt8192cu modules
make[1]: Entering directory '/root/linux-bb6b4b6b331680bed807605685572d727638bb51'
CC [M] /root/rt8192cu/core/rtw_cmd.o
CC [M] /root/rt8192cu/core/rtw_security.o
CC [M] /root/rt8192cu/core/rtw_debug.o
CC [M] /root/rt8192cu/core/rtw_io.o
CC [M] /root/rt8192cu/core/rtw_ioctl_query.o
CC [M] /root/rt8192cu/core/rtw_ioctl_set.o
CC [M] /root/rt8192cu/core/rtw_ieee80211.o
CC [M] /root/rt8192cu/core/rtw_mlme.o
CC [M] /root/rt8192cu/core/rtw_mlme_ext.o
CC [M] /root/rt8192cu/core/rtw_wlan_util.o
CC [M] /root/rt8192cu/core/rtw_pwrctrl.o
CC [M] /root/rt8192cu/core/rtw_rf.o
CC [M] /root/rt8192cu/core/rtw_recv.o
CC [M] /root/rt8192cu/core/rtw_sta_mgt.o
CC [M] /root/rt8192cu/core/rtw_ap.o
CC [M] /root/rt8192cu/core/rtw_xmit.o
CC [M] /root/rt8192cu/core/rtw_p2p.o
CC [M] /root/rt8192cu/core/rtw_tdls.o
CC [M] /root/rt8192cu/core/rtw_br_ext.o
CC [M] /root/rt8192cu/core/rtw_iol.o
CC [M] /root/rt8192cu/core/rtw_sreset.o
CC [M] /root/rt8192cu/core/efuse/rtw_efuse.o
CC [M] /root/rt8192cu/hal/hal_intf.o
CC [M] /root/rt8192cu/hal/hal_com.o
CC [M] /root/rt8192cu/hal/dm.o
CC [M] /root/rt8192cu/hal/rtl8192c/rtl8192c_hal_init.o
CC [M] /root/rt8192cu/hal/rtl8192c/rtl8192c_phycfg.o
CC [M] /root/rt8192cu/hal/rtl8192c/rtl8192c_rf6052.o
CC [M] /root/rt8192cu/hal/rtl8192c/rtl8192c_dm.o
CC [M] /root/rt8192cu/hal/rtl8192c/rtl8192c_rxdesc.o
CC [M] /root/rt8192cu/hal/rtl8192c/rtl8192c_cmd.o
CC [M] /root/rt8192cu/hal/rtl8192c/usb/usb_halinit.o
CC [M] /root/rt8192cu/hal/rtl8192c/usb/rtl8192cu_led.o
CC [M] /root/rt8192cu/hal/rtl8192c/usb/rtl8192cu_xmit.o
CC [M] /root/rt8192cu/hal/rtl8192c/usb/rtl8192cu_recv.o
CC [M] /root/rt8192cu/hal/rtl8192c/usb/usb_ops_linux.o
CC [M] /root/rt8192cu/hal/rtl8192c/rtl8192c_sreset.o
CC [M] /root/rt8192cu/hal/rtl8192c/rtl8192c_xmit.o
CC [M] /root/rt8192cu/hal/rtl8192c/usb/Hal8192CUHWImg.o
CC [M] /root/rt8192cu/os_dep/osdep_service.o
CC [M] /root/rt8192cu/os_dep/linux/os_intfs.o
/root/rt8192cu/os_dep/linux/os_intfs.c:1017:2: warning: initialization from incompatible pointer type [enabled by default]
.ndo_select_queue = rtw_select_queue,
^
/root/rt8192cu/os_dep/linux/os_intfs.c:1017:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) [enabled by default]
CC [M] /root/rt8192cu/os_dep/linux/usb_intf.o
CC [M] /root/rt8192cu/os_dep/linux/usb_ops_linux.o
CC [M] /root/rt8192cu/os_dep/linux/ioctl_linux.o
CC [M] /root/rt8192cu/os_dep/linux/xmit_linux.o
CC [M] /root/rt8192cu/os_dep/linux/mlme_linux.o
CC [M] /root/rt8192cu/os_dep/linux/recv_linux.o
CC [M] /root/rt8192cu/os_dep/linux/ioctl_cfg80211.o
CC [M] /root/rt8192cu/os_dep/linux/rtw_android.o
LD [M] /root/rt8192cu/8192cu.o
Building modules, stage 2.
MODPOST 1 modules
/bin/sh: 1: scripts/mod/modpost: not found
scripts/Makefile.modpost:90: recipe for target '__modpost' failed
make[2]: *** [__modpost] Error 127
Makefile:1384: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/root/linux-bb6b4b6b331680bed807605685572d727638bb51'
Makefile:584: recipe for target 'modules' failed
make: *** [modules] Error 2Code: Select all
root@pi3:~/linux/scripts# cd ~/linux
root@pi3:~/linux# ls
arch COPYING crypto drivers fs init Kbuild kernel MAINTAINERS mm Module.symvers.backup README samples security tools virt
block CREDITS Documentation firmware include ipc Kconfig lib Makefile Module.symvers net REPORTING-BUGS scripts sound usr
root@pi3:~/linux# make modules_prepare
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
arch/arm/kernel/asm-offsets.c:53:2: error: #error Your compiler is too buggy; it is known to miscompile kernels
#error Your compiler is too buggy; it is known to miscompile kernels
^
arch/arm/kernel/asm-offsets.c:54:2: error: #error and result in filesystem corruption and oopses.
#error and result in filesystem corruption and oopses.
^
Kbuild:81: recipe for target 'arch/arm/kernel/asm-offsets.s' failed
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
Makefile:980: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2