移植RTL8188CUS USB-WIFI(移植失败)
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.0/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.1.5_7309_patched_20130515 RTL871X: build time: Nov 26 2018 17:47:34 usbcore: registered new interface driver rtl8188eu /mnt # lsmod Module Size Used by Tainted: P 8188eu 715738 0 hi_mipi 22587 0 hi3518e_adec 6546 0 hi3518e_aenc 46989 0
在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[1]: 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.20101208/core/rtw_cmd.o In file included from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/include/drv_types.h:80:0, from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/core/rtw_cmd.c:24: /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/include/rtw_xmit.h:343:24: error: field ‘xmit_tasklet’ has incomplete type struct tasklet_struct xmit_tasklet; ^ In file included from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/include/drv_types.h:81:0, from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/core/rtw_cmd.c:24: /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/include/rtw_recv.h:208:24: error: field ‘recv_tasklet’ has incomplete type struct tasklet_struct recv_tasklet; ^ In file included from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/include/drv_types.h:86:0, from /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/core/rtw_cmd.c:24: /home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/include/rtw_io.h:35:28: fatal error: linux/smp_lock.h: No such file or directory #include <linux/smp_lock.h> ^ compilation terminated. scripts/Makefile.build:307: recipe for target '/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/core/rtw_cmd.o' failed make[2]: *** [/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208/core/rtw_cmd.o] Error 1 Makefile:1365: recipe for target '_module_/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208' failed make[1]: *** [_module_/home/swann/hi3518e/rtl8192CU_linux_v2.0.1212.20101208] Error 2 make[1]: Leaving directory '/home/swann/hi3518e/Hi3518E_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y' Makefile:279: recipe for target 'modules' failed make: *** [modules] Error 2
无法解决
...
posted on 2018-11-26 18:53 平凡的世界&&技术博客 阅读(599) 评论(0) 编辑 收藏 举报