1.主makefile

CONFIG_POWER_SAVING = n

CONFIG_PLATFORM_I386_PC = n

CONFIG_PLATFORM_HI3518E = y
##swann add
ifeq ($(CONFIG_PLATFORM_HI3518E), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-hisiv300-linux-
KVER := 3.4.y
KSRC := /home/swann/hi3518e/Hi3518E_SDK_V1.0.3./osdrv/opensource/kernel/linux-3.4.y
endif

make clean&&make -j8

cp 8188eu.ko ~/nfs_hi

/mnt # insmod 8188eu.ko
RTL871X: rtl8188eu driver version=v4..5_7309_patched_20130515
RTL871X: build time: Nov ::
usbcore: registered new interface driver rtl8188eu
/mnt # lsmod
Module Size Used by Tainted: P
8188eu
hi_mipi
hi3518e_adec
hi3518e_aenc

Terminal,先查看自己的无线网卡的usb id

lsusb

示例输出:

/mnt # lsusb
Bus 001 Device 002: ID 0bda:8176
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001

 

USB ID和驱动的对应关系如下:

Driver USB ID
RTL8188CUS 0bda:8176
RTL8192CU 0bda:8178
RTL8723AU 0bda:b720
RTL8188EU 0bda:8179
RTL8192EU 0bda:818b
RTL8812AU 0bda:8812
RTL8723BU 0bda:b720

发现源码是RTL8188EUS,设备是RTL8188CUS,重新下载驱动源码安装

编译报错

make[]: Entering directory '/home/swann/hi3518e/Hi3518E_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y'
CC [M] /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./core/rtw_cmd.o
In file included from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./include/drv_types.h::,
from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./core/rtw_cmd.c::
/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./include/rtw_xmit.h::: error: field ‘xmit_tasklet’ has incomplete type
struct tasklet_struct xmit_tasklet;
^
In file included from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./include/drv_types.h::,
from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./core/rtw_cmd.c::
/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./include/rtw_recv.h::: error: field ‘recv_tasklet’ has incomplete type
struct tasklet_struct recv_tasklet;
^
In file included from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./include/drv_types.h::,
from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./core/rtw_cmd.c::
/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./include/rtw_io.h::: fatal error: linux/smp_lock.h: No such file or directory
#include <linux/smp_lock.h>
^
compilation terminated.
scripts/Makefile.build:: recipe for target '/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/core/rtw_cmd.o' failed
make[]: *** [/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212./core/rtw_cmd.o] Error
Makefile:: recipe for target '_module_/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208' failed
make[]: *** [_module_/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.] Error
make[]: Leaving directory '/home/swann/hi3518e/Hi3518E_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y'
Makefile:: recipe for target 'modules' failed
make: *** [modules] Error

无法解决

...

移植RTL8188CUS USB-WIFI(移植失败)的更多相关文章

  1. android4.0.3源码之USB wifi移植心得

    http://blog.csdn.net/eastmoon502136/article/details/7850157 http://forum.cubietech.com/forum.php?mod ...

  2. EP-N8530S USB WIFI 驱动移植

    /*********************************************************************** * EP-N8530S USB WIFI 驱动移植 * ...

  3. 嵌入式Linux USB WIFI驱动的移植

    硬件平台:飞思卡尔MX258开发板 操作系统:Linux2.6.31 WIFI:    RT2860 USB WIFI模组 交叉编译环境:gcc version 4.1.2 调试步骤: 第一步:测试U ...

  4. Android KitKat 4.4 Wifi移植AP模式和网络共享的调试日志

    Tethering技术在移动平台上已经运用的越来越广泛了.它能够把移动设备当做一个接入点,其它的设备能够通过Wi-Fi.USB或是Bluetooth等方式连接到此移动设备.在Android中能够将Wi ...

  5. Android KitKat 4.4 Wifi移植之Wifi driver

    本文讲述在Linux 3.10下Realek RTL8723A Linux Wifi 驱动的移植. Prerequisites 硬件平台:Atmel SAMA5 软件平台:Linux 3.10 + A ...

  6. Qt移植对USB鼠标键盘、触摸屏的支持

    .USB键盘 经过一番搜索,发现对Qt键盘的支持主要关系到两个方面: 1. 键盘类型确定: 4.7以前的Qt版本,如果是PS2圆孔键盘,Qt编译时需加上选项:-qt-kbd-vr41xx(未测试):如 ...

  7. (wifi)wifi移植之命令行调试driver和supplicant

    前言 小弟从事android wifi framework部分开发已经有一年的时间了,虽然感觉什么都没有学习到,但是回想起刚接手android wifi时候的那份无知,其实肚子里面还是有点东西的,本着 ...

  8. Android系统如何移植wpa_supplicant及wifi驱动

    一.WPA_SUPPLICANT简介 1. 什么是wpa_supplicant wpa_supplicant is a WPA Supplicant for Linux, BSD, Mac OS X, ...

  9. USB wifi调试笔记

    本文以realtek 8192CU WiFi模块为例,介绍USB wifi在Jelly Bean 4.1的调试笔记. 1.WIFI打不开现象概述 WiFi打不开是指您在UI的settings下选中Wi ...

  10. 树莓派学习笔记——USB wifi配置指南

    0 前言     树莓派既能够使用有线网络又能够无线网络,假设使用有线网络不方便的话能够借助USB wifi无线网卡让树莓派也插上无线"翅膀". 可是和使用有线网络即插即用的方式不 ...

随机推荐

  1. Python进阶--常用模块

    一.模块.包 什么是模块? 模块实质上就是一个python文件,它是用来组织代码的,意思就是说把python代码写到里面,文件名就是模块的名称,test.py test就是模块名称. 什么是包? 包, ...

  2. JDBC连接SqlServer数据库(非默认实例)方法

    一般我们在连接数据库的时候都是用的默认实例名,今天遇到了用非默认是实例名:连接代码如下(Java): URL=jdbc:microsoft:sqlserver://192.168.1.85//DEMO ...

  3. JavaScript学习总结(一)——JavaScript基础

    一.JavaScript语言特点 1.1.JavaScript是基于对象和事件驱动的(动态的) 它可以直接对用户或客户输入做出响应,无须经过Web服务程序.它对用户的响应,是采用以事件驱动的方式进行的 ...

  4. learning uboot how to enable watchdog in qca4531 cpu

    find cpu datasheet , watchdog relate registers: 0x18060008 watchdong timer control 0x1806000c watchd ...

  5. 我的一起开源网 www.17ky.net上线了

    .net开源生态的落后,使得.net开发人员所拥有的开源资源比其他语言的开发者少了很多,这也使得笔者很早之前就喜欢收集各种开源项目,经常会去逛codeplex,开源中国社区等网站,同时也喜欢在自己或公 ...

  6. python执行系统命令后获取返回值

    import os, subprocess # os.system('dir') #执行系统命令,没有获取返回值,windows下中文乱码 # result = os.popen('dir') #执行 ...

  7. os、os.path模块中关于文件、目录常用的函数使用方法

    os模块中关于文件/目录常用的函数使用方法 函数名 使用方法   getcwd()   返回当前工作目录   chdir(path)   改变工作目录   listdir(path='.')   列举 ...

  8. python笔记04:字典

    4.1 字典的使用 字典:通过名字来引用值的数据结构,又称为映射 字典中的值并没有特殊的顺序,但是都存储在一个特定的键下 字典提供的功能:快速查找特定键值对应关系   某些情况下,字典比列表更好用一些 ...

  9. C++面向对象多线程入门

    第1节   背景 为了更好的理解多线程的概念,先对进程,线程的概念背景做一下简单介绍. 早期的计算机系统都只允许一个程序独占系统资源,一次只能执行一个程序.在大型机年代,计算能力是一种宝贵资源.对于资 ...

  10. jq 的onchange事件

    按商品类型显示:<select onchange="location.href='__ACTION__/type_id/'+this.value;">    <o ...