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. Jamie and Binary Sequence (changed after round) CodeForces - 916B (贪心)

    链接 大意: 求将n划分为k个2的幂的和, 且最大幂最小,字典序尽量大 比较简单的贪心练习题, 但放在div2的B题感觉偏难了..... 先只考虑最大幂最小, 首先注意到直接按n的二进制划分即可得到最 ...

  2. POJ-3414 Pots (BFS)

    Description You are given two pots, having the volume of A and B liters respectively. The following ...

  3. html5- 摘自网友dudu

    HTML5中新增了<canvas>画布标签,通过它,可以使用JavaScript在网页中绘制图像.<canvas>标签在网页中得到的是一个矩形空白区域,可以通过width和he ...

  4. linux create a process

    When the system starts up it is running in kernel mode and there is, in a sense, only one process, t ...

  5. 4.16复杂级数的前n项和

    注意:实际编程中要注意变量类型的选取. #include <iostream> #include<cstdio> using namespace std; int main() ...

  6. 使用MyEclipse将HTML5移动项目迁移到PhoneGap(一)

    MyEclipse开年钜惠 在线购买低至75折!立即开抢>> [MyEclipse最新版下载] 一.创建一个新的PhoneGap应用程序项目 PhoneGap应用程序项目的结构与HTML5 ...

  7. Windows 7 + PHP 5.3 + WAMP 下 Imagick 扩展安装

    1.首先,下载 ImageMagick 安装包.下载地址 下载后运行此安装包.在系统环境变量中添加 MAGICK_HOME 变量,指向安装目录下的modules\coders. 2.下载 Imagic ...

  8. axure 认证授权注册码2017-12-25

    Licensee: University of Science and Technology of China (CLASSROOM)Key: DTXRAnPn1P65Rt0xB4eTQ+4bF5IU ...

  9. anu - event

    import { document } from "./browser"; import { isFn, noop, options } from "./util&quo ...

  10. Mysql命令insert into:向表中插入数据(记录)

    insert into命令用于向表中插入数据. insert into命令格式:insert into <表名> [(<字段名1>[,..<字段名n > ])] v ...