Raspberry Pi 2B install Xiaomi WiFi Drive

Source: Internet
Author: User
<span id="Label3"></p><p><p>Xiaomi WiFi using MediaTek mt7601u card chip:</p></p><p><p>http://www.mediatek.com/en/downloads1/downloads/mt7601u-usb/</p></p><p><p></p></p><p><p><span style="color: #ff0000; font-size: large;"><strong>Programme I</strong></span></p></p><p><p></p></p><p><p>1. Use the command LSUSB to see the USB access device, Xiaomi WiFi for the bottom of the</p></p><p><p></p></p><p><p>1. First need to download the driver, can be downloaded to http://download.csdn.net/detail/u010245383/8466021</p></p><p><p>2. After decompression, modify the COMMON/RTUSB_DEV_ID.C</p></p><p><p></p></p><p><p>Plus Xiaomi Wifi:</p></p><pre><pre>{usb_device (<span style="color: #800080;">0x2717</span>,<span style="color: #800080;">0x4106</span>/<span style="color: #008000;">*</span><span style="color: #008000;"></span><span style="color: #008000;">* *</span></pre></pre><p><p>3. Modify a compilation error that may occur: include/os/rt_linux.h</p></p><p><p>change int to the corresponding kuid_t, kgid_t</p></p><p><p></p></p><p><p>4. Uname-r View current kernel version, e.g. (best update under kernel, sudo Rpi-update)</p></p><p><p></p></p><p><p>5. Download Linux Source code</p></p><p><p>can download the corresponding source code to http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/</p></p><p><p>6. Unzip</p></p><pre><pre><span style="color: #0000ff;">tar</span> xvfz rpi-<span style="color: #800080;">4.0</span>. Y.<span style="color: #0000ff;">tar</span>. gz</pre></pre><p><p>7. Copy TO/USR/SRC</p></p><pre><pre><span style="color: #0000ff;">sudo</span> <span style="color: #0000ff;">MV</span> linux-rpi-</pre></pre><span style="color: #800080;"><span style="color: #800080;">4.0</span></span><pre><pre>. y/usr/src</pre></pre><p><p>8. Link Kernel Modules</p></p><pre><pre><span style="color: #0000ff;">LN</span> -s/usr/src/linux-rpi-<span style="color: #800080;">4.0</span>. y/lib/modules/4.0.7-v7+/build</pre></pre><p><p>9. Compiling</p></p><pre><pre>cd/lib/modules/<span style="color: #800080;">4.0</span>. <span style="color: #800080;">7</span>-v7+/<span style="color: #000000;">build</span><span style="color: #0000ff;">sudo</span><span style="color: #0000ff;"></span> make<span style="color: #000000;"> mrproper</span><span style="color: #0000ff;">sudo</span><span style="color: #0000ff;">modprobe</span> <span style="color: #000000;"> Configs</span><span style="color: #0000ff;">gzip</span> -dc/proc/config.gz ><span style="color: #000000;"> . config</span><span style="color: #0000ff;">sudo</span><span style="color: #0000ff;"></span> make Modules_prepare</pre></pre><p><p>10. Copy the Module.symvers (drive path/os/linux/module.symvers) under the WiFi drive path to the current directory</p></p><p><p>11. Modify Makefile Select Chip model</p></p><p><p></p></p><p><p>12. Build WiFi driver, Enter under drive path</p></p><pre><pre><span style="color: #0000ff;"></span>make make<span style="color: #0000ff;">install</span> <span style="color: #0000ff;"></span><span style="color: #000000;"></span></pre></pre><p><p>13. Load Driver</p></p><pre><pre><span style="color: #0000ff;">sudo</span> <span style="color: #0000ff;">modprobe</span> Mt7610u_sta</pre></pre><p><p></p></p><p><p></p></p><p><p><span style="color: #ff0000; font-size: large;">Programme ii,</span></p></p><p><p>1. Download Driver</p></p><p><p>Https://github.com/porjo/mt7601/blob/master/src/mcu/bin/MT7601.bin</p></p><p><p>2. Copy the downloaded bin to</p></p><pre><pre>/lib/firmware/mt7601u.bin</pre></pre><pre><pre>Note case</pre></pre><pre><pre>3. Download the driver source code</pre></pre><pre><pre>git clone https:<span style="color: #008000;">//</span><span style="color: #008000;">github.com/kuba-moo/mt7601u.git</span></pre></pre><p><p><span style="font-family: ‘Courier New‘;">4. Compiling</span></p></p><pre><pre><span style="color: #000000;">CD mt7601u</span> <span style="color: #0000ff;">sudo</span> <span style="color: #0000ff;"></span> make <span style="color: #0000ff;">sudo</span> <span style="color: #0000ff;">modprobe</span> <span style="color: #000000;">mac80211</span> <span style="color: #0000ff;">sudo</span> <span style="color: #0000ff;">Insmod</span> ./mt7601u.ko</pre></pre><p><p><span style="font-family: ‘Courier New‘;">5. To load the drive automatically</span></p></p><pre><pre><span style="color: #0000ff;"></span> make <span style="color: #0000ff;">sudo</span> <span style="color: #0000ff;"></span> make <span style="color: #0000ff;">Install</span> && depmod</pre></pre><p><p>Note that searching for the location under Mt7601u.ko may need to be moved to the corresponding/lib/modules/' uname-r '/kernel/drivers/net/wireless/</p></p><p><p></p></p><p><p><span style="color: #ff0000; font-size: large;"><strong>Connect to WiFi</strong></span></p></p><p><p>Modify/etc/wpa_supplicant/wpa_supplicant.conf (see/etc/network/interfaces)</p></p><p><p>Plus</p></p><pre><pre>network=<span style="color: #000000;">{ SSID</span>=<span style="color: #800000;">"</span><span style="color: #800000;">yourssid</span><span style="color: #800000;">"</span><span style="color: #000000;"> PSK</span>=<span style="color: #800000;">"</span><span style="color: #800000;">YourPassword </span> <span style="color: #800000;">"</span><span style="color: #000000;"> proto</span>=<span style="color: #000000;">RSN key_mgmt</span>=wpa-<span style="color: #000000;">PSK pairwise</span>=<span style="color: #000000;">CCMP TKIP Group</span>=<span style="color: #000000;">CCMP TKIP auth_alg</span>=<span style="color: #000000;">OPEN </span>priority =<span style="color: #800080;">3</span><span style="color: #000000;">}</span></pre></pre><p><p>Raspberry Pi 2B install Xiaomi WiFi Drive</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.