因為內核比較新的關系,tenda官方網站上面提供給u1無線網卡的驅動並不能正常編譯使用,編譯的時候報一個類似錯誤
/usr/src/linux-headers-4.3.0-kali1-common/Makefile:1395: recipe for target '_module_/root/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux' failed make[3]: *** [_module_/root/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2 Makefile:146: recipe for target 'sub-make' failed make[2]: *** [sub-make] Error 2 Makefile:8: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.3.0-kali1-amd64' Makefile:394: recipe for target 'LINUX' failed make: *** [LINUX] Error 2
對於一個除了安裝以外極少使用gcc而且不常使用c的人來說,這種錯誤基本上是不可排除類型的錯誤。
在google上搜索了很久沒有找到特別好的辦法,唯一可以確定的就是驅動跟系統內核版本對不上。所以會出錯。
最終還是萬能的github派上用場,通過tenda官方提供的驅動確認了芯片(chipset)型號為Realtek 8192eu 於是上github上搜索相關比較新的還在維護的驅動找到
https://github.com/Mange/rtl8192eu-linux-driver
Realtek瑞昱rtl8192eu 這個chipset的驅動。看了一下最后更新的時間是2016.1月 而且面向的版本是4.30 我一看就知道有戲
於是git clone make and make install
這個時候出現
install -p -m 644 8192eu.ko /lib/modules/4.3.0-kali1-amd64/kernel/drivers/net/wireless/sbin/depmod -a 4.3.0-kali1-amd64
install it ,其實我並不知道-a是什么作用。看了一下install的help 也沒有找到-a參數 不明白這里。
我直接操作的前面但是提示沒有簡歷sbin/depmod目錄
帶上參數 或者 手動建立一下 再執行命令。然后點擊回車,沒有報錯。 linux哲學沒有報錯就是成功。
再次插上tenda u1網卡 發現kali 發現了wlan0 。大功告成。於是紀錄一下。
另外提一下 該芯片沒有monitor mode模式。
reference:
https://sites.google.com/site/easylinuxtipsproject/reserve-7
http://www.tendacn.com/en/product/specification/U1.html
https://github.com/Mange/rtl8192eu-linux-driver(thanks a lot)