wifi 模塊RTL8188以及mt7601u 移植測試


  • kernel version:4.4.12

  • kernel make menuconfig

    // make menuconfig 
    [*] Networking support  --->
          Networking options  --->
                 < >   The IPv6 protocol  ----    // 禁止ipv6 協議,因為我不會用
         -*-   Wireless  --->
               <*>   cfg80211 - wireless configuration API
               [*]     enable powersave by default 
               <*>   Generic IEEE 802.11 Networking Stack (mac80211) 
                [*]   Minstrel
                [*]     Minstrel 802.11n support

    Device Drivers  --->                                           // 驅動
        [*] Network device support  --->
            [*]   Wireless LAN  --->
                [*]   Mediatek Wireless LAN support  --->
                        <*>   MediaTek MT7601U (USB) support
                <*>   Realtek rtlwifi family of devices  --->
                        <*>   Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter
                        [*]   Debugging output for rtlwifi driver family
                <*>   RTL8723AU/RTL8188[CR]U/RTL819[12]CU (mac80211) support
  • 利用buildroot添加這兩個WiFi模塊的固件以及 wpa_supplicant 工具

    // cd  ~/filesytem_buildroot/buildroot-2017.02.5
    // make menuconfig 
    Target packages  --->
        Networking applications  --->
            [*] dhcpcd                     // 動態獲取IP工具
            [*] wpa_supplicant        // 將所有的 wpa 的選項都選上
            [*]   Enable nl80211 support  
            [*]   Enable AP mode
            [*]     Enable Wi-Fi Display 
            [*]     Enable mesh networking
            [*]   Enable autoscan 
            [*]   Enable EAP 
            [*]   Enable HS20
            [*]   Enable syslog support 
            [*]   Enable WPS 
            [*]   Install wpa_cli binary
            [*]   Install wpa_client shared library
            [*]   Install wpa_passphrase binary  

        Hardware handling  --->                    // WIFI 固件
            Firmware  --->
                [*] linux-firmware
                    WiFi firmware  --->  
                        [*] MediaTek MT7601U 
                        [*] Realtek 81xx
  • 啟動系統后設置配置文件

    # cat /etc/wpa_supplicant .conf 
    network={
	    ssid="LTE_CPE_EDEDBE"      // 要連接的wifi 的名稱
         	psk="EDEDBED2"               // 密碼
    }
    // 啟動腳本
    # cat mytest.sh 
    #!/bin/sh

    ifconfig wlan0 up
    sleep 1
    wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf > /dev/null 2>&1 &
    sleep 1
    dhcpcd wlan0

    ./mytest.sh  啟動運行


免責聲明!

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



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