移值 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 查看到。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM