In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use 360WIFI on Raspberry Pi Model B, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
First of all, download from MediaTek to the driver source code https://www.mediatek.cn/products/broadbandWifi/mt7601u
The downloaded file is DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2.
Obtain the root permission and decompress:
Cd ~ sudo sutar xjvf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/vi common/rtusb_dev_id.c
Add the following to {USB_DEVICE (0x148fjol 0x7601)}, / * MT 6370 * /
{USB_DEVICE (0x148fPower0x760b)}, / * 360360 Wifi * / {USB_DEVICE (0x2955 Wifi 0x1001)}, / * baidu Wifi * / {USB_DEVICE (0 × 2955,0 × 0001)}, / * XiaoDu Wifi * / {USB_DEVICE (0x27170x4106)}, / * Xiaomi Wifi * /
Download the rpi system source code, the version of my system is 3.12.28 download, to download the corresponding version.
Cd ~ wget https://github.com/raspberrypi/linux/archive/rpi-3.12.y.tar.gz
Extract and move the source code to / usr/src/
Tar xvfz rpi-3.12.y.tar.gzmv linux-rpi-3.12.y / usr/src/
Establish a soft link to the kernel module library directory
Ln-s / usr/src/linux-rpi-3.12.y / lib/modules/3.12.28+/buildcd / lib/modules/3.12.28+/build
Clean up the environment after entering the directory, and use the make mrproper command, which can be seen as a more powerful make clean command, which usually runs before compiling the kernel.
Make mrproper
Then check to see if the / proc/config.gz file exists, and if not, perform modprobe configs generation
Modprobe configs
Generate kernel configuration information through the kernel configuration of the / proc/config.gz system
Gzip-dc / proc/config.gz > .config
Generate what is needed to compile the kernel
Make modules_prepare
If there is an error in compilation, the system may be missing bison, flex, bc, libssl-dev libraries. Install and then compile.
Apt-get install bison flex bc libssl-dev
Get the kernel module export symbol file generated when the kernel is compiled, because the kernel is not compiled from scratch, so it is not available, but this is required to compile the kernel module.
Wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers
Then go to the source code directory of the Nic driver to compile the driver ~ / DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/
Cd ~ / DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/make & & make install
If you make the following error while compiling the driver
/ root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c:331:16: warning: unused variable 'pAd' [- Wunused-variable] RTMP_ADAPTER * pAd = (RTMP_ADAPTER *) pAdSrc ^ ~ ~ CC [M] / root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/assoc.o CC [M] / root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth.o CC [M] / root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../.. / sta/auth_rsp.o CC [M] / root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c: In function 'PeerBeacon':/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync .c: 2180 of 12: error: passing argument 8 of 'StaAddMacTableEntry' from incompatible pointer type [- Werror=incompatible-pointer-types] ie_list ^ ~ In file included from / root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:59 From / root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c:28:/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp.h:7900:15: note: expected 'IE_LISTS *' {aka 'struct _ IE_lists *'} but argument is of type 'BCN_IE_LIST *' {aka 'struct _ bcn_ie_list *'} IN IE_LISTS * ie_list ~ ^ ~ cc1: some warnings being treated as errorsmake [2]: * [scripts/Makefile.build:304: / root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o] Error 1make [1]: * [Makefile:1522: _ module_/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2make [1]: Leaving directory'/ usr/src / linux-rpi-3.12.y'make: * [Makefile:395: LINUX] Error 2
Please open the. / os/linux/Makefile.6 file: add the following line: EXTRA_CFLAGS + =-Wno-incompatible-pointer-types-Wno-date-time
Then recompile should be normal, and then add to the boot loading module to restart the system.
Modprobe mt7601Ustareboot
Check whether the driver loads normally after startup
Lsmod
And see if there are any mistakes.
Dmesg
Check to see if the device is working
Ifconfig
If everything can be displayed properly, the device is working properly, edit the configuration / etc/wpa_supplicant/wpa_supplicant.conf file
At the end of the file, add the name and password of wifi to save. If I want to configure multiple wifi, I only need to configure a variable of network {} for each wifi. Finally, try to restart the system with reboot.
The IP address can be obtained normally.
Thank you for reading this article carefully. I hope the article "how to use 360WIFI on Raspberry Pi Model B" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and follow the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.