zoukankan      html  css  js  c++  java
  • 移值 RTL8188EUS linux4.1.36 驱动

    网卡为
    COMFAST CF-WU720N

    RTL8188EUS
    VID 0x0bda
    PIV 0x8179

    驱动下载网址是
    http://www.comfast.cn/download/qdcx/item-66.html

    8188EUS_linux_v4.1.4_6773.20130222.zip

    1). Copy the driver source folder into drivers/net/wireless/ and rename it as <folder_name>, rtl8192cu.
    driver/rtl8188EUS_linux_v4.1.4_6773.20130222.tar.gz
    解压 后改名为 rtl8188eu 复制到内核 drivers/net/wireless/ 源码目录

    2). Add the following line into drivers/net/wireless/Makefile, CONFIG_RTL8192CU is for <compile_flag>, rtl8192cu is for <folder_name>:
    修改 drivers/net/wireless/Makefile 加入 支持
    obj-$(CONFIG_RTL8188EU) += rtl8188eu/

    3). Add the following line into drivers/net/wireless/Kconfig, rtl8192cu is for <folder_name>:
    添加 Kconfig
    source "drivers/net/wireless/rtl8188eu/Kconfig"

    make menuconfig

    make uImage
    出错
    drivers/net/wireless/rtl8188eu/include/osdep_service.h: In function 'thread_enter':
    drivers/net/wireless/rtl8188eu/include/osdep_service.h:1423: error: implicit declaration of function 'daemonize'

    打开,去掉这个函数
    static __inline void thread_enter(char *name)
    {
    #ifdef PLATFORM_LINUX
        //daemonize("%s", name);
        allow_signal(SIGTERM);
    #endif
    再编译
    drivers/net/wireless/rtl8188eu/os_dep/linux/rtw_android.c:234: error: implicit declaration of function 'strnicmp'
    再编译
    drivers/net/wireless/rtl8188eu/os_dep/linux/os_intfs.c: In function 'rtw_proc_init_one':
    drivers/net/wireless/rtl8188eu/os_dep/linux/os_intfs.c:351: error: implicit declaration of function 'create_proc_read_entry'

    却少函数
    create_proc_read_entry

    解决方法在最下面,这里放不开。


    strnicmp 没有定义 改为 strncasecmp

    再编译
    /rtl8188eu/os_dep/linux/ioctl_linux.c:264: undefined reference to `wireless_send_event'
    drivers/built-in.o: In function `rtw_indicate_wx_assoc_event':

    经过查看内核中有此源码
    /net/wireless/wext-core.c
    检查 Makefile 是否需要配置
    obj-$(CONFIG_WEXT_CORE) += wext-core.o

    配置上在编译正常了。

    ==========================

    create_proc_read_entry 错误

    linux 从 3.1 开始移除了,并且也移除了

    结构体  struct proc_dir_entry 中的

    read_proc 、 write_proc

    解决方案,是改用 file_operations 中的 读写函数实现。

    最后,还是编译成功内核,但是不能使用。 有时间在弄。 

    ifconfig 可以看到网卡,但不能使用 iw list 查看到。

  • 相关阅读:
    bzoj 3779 重组病毒——LCT维护子树信息
    bzoj 4010 [HNOI2015]菜肴制作——贪心
    bzoj 2535 && bzoj 2109 [Noi2010]Plane 航空管制——贪心
    bzoj 3671 [Noi2014]随机数生成器——贪心(时间复杂度分配)
    bzoj 2395 [Balkan 2011]Timeismoney——最小乘积生成树
    bzoj 3157 && bzoj 3516 国王奇遇记——推式子
    bzoj 1101 [POI2007]Zap——反演
    hdu 4372 Count the Buildings——第一类斯特林数
    bzoj 2406 矩阵——有源汇上下界可行流
    bzoj 2039 [2009国家集训队]employ人员雇佣——二元关系
  • 原文地址:https://www.cnblogs.com/ningci/p/6830136.html
Copyright © 2011-2022 走看看