1

How can I install driver for Realtek 8188CU Wifi USB adapter?

I have tried this and this

But didn't worked nothing.

Is there a solution for that?

    /var/lib/dkms/rtl8192cu-tjp/1.6/build/os_dep/linux/os_intfs.c:444:7: error: dereferencing pointer to incomplete type
    entry->write_proc = proc_set_rx_signal;
   ^
   /var/lib/dkms/rtl8192cu-tjp/1.6/build/os_dep/linux/os_intfs.c:446:8: warning: assignment makes pointer from integer without a cast [enabled by default]
    entry = create_proc_read_entry("ampdu_enable", S_IFREG | S_IRUGO,
    ^
  /var/lib/dkms/rtl8192cu-tjp/1.6/build/os_dep/linux/os_intfs.c:452:7: error: dereferencing pointer to incomplete type
   entry->write_proc = proc_set_ampdu_enable;
   ^
   /var/lib/dkms/rtl8192cu-tjp/1.6/build/os_dep/linux/os_intfs.c:454:8: warning: assignment makes pointer from integer without a cast [enabled by default]
    entry = create_proc_read_entry("rssi_disp", S_IFREG | S_IRUGO,
    ^
 /var/lib/dkms/rtl8192cu-tjp/1.6/build/os_dep/linux/os_intfs.c:460:7: error: dereferencing pointer to incomplete type
    entry->write_proc = proc_set_rssi_disp;
   ^
  cc1: some warnings being treated as errors
  make[1]: ** [/var/lib/dkms/rtl8192cu-tjp/1.6/build/os_dep/linux/os_intfs.o] Erro 1
  make: ** [_module_/var/lib/dkms/rtl8192cu-tjp/1.6/build] Erro 2
   make: Saindo do diretório `/usr/src/linux-headers-3.13.0-63-generic'
Vitor Mazuco
  • 1,441

1 Answers1

2

Big, big update.

To me it seems you are missing out on a couple of basic things:

  • A driver is a software module that needs to match both, your actual kernel version and your actual make and model of your device. So, if you have a Ralink RT5370, as your lsusb log indicates, you should use the Ralink driver indeed. The Realtek driver will not help you in any way with this.

  • To find out what driver you need you can:

    1. look at the device itself. Most of the time you'll find a very good identification printed on it. Google is your friend.
    2. use the tools in your computer like lsusb, lsmod or lspci. Google for the device ID's.

If you build your driver from source, and it does not build with your actual kernel version, try building with another kernel version. With linux it is really easy to switch kernel versions at boot. If you need help to install an older kernel version, follow this post to Install older kernel version.

if you positively identified that you have a Ralink RT5370

You probably should follow the instructions from here, here or here.

if (and only if) you have a RealTek 8188:

Try this from google code. It's patched driver from realtek.

But you have to blacklist the native drivers: put a file in to /etc/modprobe.d/ with the following in it:

# Blacklist native RealTek 8188CUs drivers
blacklist rtl8192cu
blacklist rtl8192c_common
blacklist rtlwifi
user23573
  • 515
  • 1
  • 5
  • 19
  • Hi Bogdan Willi, It return me a error of kernel. – Vitor Mazuco Sep 13 '15 at 21:52
  • @VitorMazuco This is a wrong version for your kernel. Try my answer. It will build. – Pilot6 Sep 13 '15 at 21:53
  • humm I'm install kernel 4.2 it will fix it? – Vitor Mazuco Sep 13 '15 at 21:55
  • The link in this answer is to an old driver. It will not build for new kernels. I gave you commands that will install a driver that will build for your kernel. – Pilot6 Sep 13 '15 at 22:02
  • Ok, I have installed new kernel 4.2 and removed the old. – Vitor Mazuco Sep 13 '15 at 22:08
  • I tried to install in a new kernel, but it continue with error – Vitor Mazuco Sep 13 '15 at 22:16
  • Done. Unpacking rtl8192cu-tjp-dkms (1.6) over (1.6) ... Configurando rtl8192cu-tjp-dkms (1.6) ... Loading new rtl8192cu-tjp-1.6 DKMS files... First Installation: checking all kernels... Building only for 4.2.0-040200-generic Building for architecture x86_64 Building initial module for 4.2.0-040200-generic ERROR (dkms apport): kernel package linux-headers-4.2.0-040200-generic is not supported Error! Bad return status for module build on kernel: 4.2.0-040200-generic (x86_64) Consult /var/lib/dkms/rtl8192cu-tjp/1.6/build/make.log for more information. – Vitor Mazuco Sep 13 '15 at 22:16