1. 程式人生 > >backports移植rtlwifi驅動

backports移植rtlwifi驅動

table .org channel def module export makefile else shel

/************************************************************************
 *                   backports移植rtlwifi驅動
 * 說明:
 *     Linux內核版本算是蠻多的,版本越高其內核自帶的驅動也是越多,對於低版本
 * 如何使用高版本中的驅動是個問題,左棟提醒使用backports來做移植,嘗試一下。
 *
 *                                      2017-9-13 深圳 龍華樟坑村 曾劍鋒
 **********************************************************************
*/ 一、參考文檔: 1. backports: Linux kernel backports http://drvbp1.linux-foundation.org/~mcgrof/rel-html/backports/ 2. ubuntu15.04安裝Atheros AR8161網卡驅動 https://jingyan.baidu.com/article/3ea51489d814c052e71bba7a.html 3. ath10k backports releases https://wireless.wiki.kernel.org/en/users/drivers/ath10k/backports
4. Linux wifi backports cross compile https://stackoverflow.com/questions/18855554/linux-wifi-backports-cross-compile 5. compat: exports duplicate symbol clk_disable (owned by kernel) corehtml5canvas.com/code-live/ 6. cfg80211: exports duplicate symbol __ieee80211_get_channel (owned by kernel) http:
//blog.csdn.net/wuqingwei/article/details/53374309 7. Beaglebone Black fails in installing RTL8892CU WIfi module https://github.com/beagleboard/kernel/issues/39 二、backports編譯、測試: 1. Download backports: http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v4.2.6/backports-4.2.6-1.tar.xz 2. 配置交叉編譯器和硬件架構: ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 3. 修改Makefile,主要是修改內核目錄,編譯後庫目錄: ... KMODDIR ?= updates KLIB := /home/Qt/kernel/RTL8188/backports-4.2.6-1/ ifneq ($(origin KLIB), undefined) KMODPATH_ARG := "INSTALL_MOD_PATH=$(KLIB)" else # KLIB := /lib/modules/$(shell uname -r)/ KLIB := /home/Qt/kernel/RTL8188/backports-4.2.6-1/ KMODPATH_ARG := "INSTALL_MOD_PATH=$(KLIB)" endif KLIB=/home/Qt/kernel/RTL8188/backports-4.2.6-1/ # KLIB_BUILD ?= $(KLIB)/build/ KLIB_BUILD ?= /home/Qt/kernel/linuxQt_kernel/ ... 4. 參考教程:https://wireless.wiki.kernel.org/en/users/drivers/ath10k/backports 5. make defconfig-rtlwifi 6. make 7. 拷貝當前目錄下lib目錄到文件系統lib目錄 8. 下載rtl8192cufw.bin,並拷貝到文件系統/lib/firmware/rtlwifi/: https://github.com/beagleboard/kernel/issues/39 9. wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf & 10. dhcpd wlan0獲取ip,路由; 11. 如果有雙網卡,需要檢查route表,是否將無線網卡的路由放在第一個,路由表默認采用第一個通信; 三、註意事項: 主要是要註意解決其中的duplicate symbol之類的問題,因為內核中可能選擇了,在backports中有選擇了,導致雙重聲明,或者沒有聲明之類的錯誤。

backports移植rtlwifi驅動