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  启动运行
posted @ 2017-09-19 11:16  陈富林  阅读(3092)  评论(0编辑  收藏  举报