---
title: "realtek rtl8192cu设备驱动无法在linux 3.10.x上编译"
author: "jilen"
date: "2013-07-30T13:07:22Z"
tags: []
categories: ["操作系统"]
slug: "realtek-rtl8192cu-linux-3-10-x"
draft: false
lastmod: "2013-09-14T11:22:33Z"
id: 1915500
url: "https://jilen.iteye.com/blog/1915500"
---

目前使用的是无线USB网卡（lsusb出来以下设备型号）

Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter

 

虽然说内核带rtl8192驱动，但是存在频繁掉线的问题，基本上是**5分钟一掉**，是可忍孰不可忍。

aur里有realtek开发的驱动[https://aur.archlinux.org/packages.php?ID=60716](https://aur.archlinux.org/packages.php?ID=60716)，

4个月没更新了，在3.10.x内核无法编译。因为create\_proc\_entry，和create\_proc\_read\_entry这两个函数在3.10里被torvals删除了。。。

 

找了半天找到了rtl8192里修复这个问题的代码[https://raw.github.com/raspberrypi/linux/rpi-3.10.y/drivers/net/wireless/rtl8192cu/os\_dep/linux/os\_intfs.c](https://raw.github.com/raspberrypi/linux/rpi-3.10.y/drivers/net/wireless/rtl8192cu/os_dep/linux/os_intfs.c) 为了省事就没用patch，直接把源代码包里的文件替换了，并且修改了PKGBUILD的md5sum，build安装之后，居然好了

 

这个驱动现在已经有人继续维护了。直接从aur编译就可以了