In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the method of transplanting mt6620 hotspots in iTOP-4418/6818 in Android". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
01 preparation before transplantation
4418 prepare before using 4G migration:
Burn and write qt images that can use 4G Internet access. Insert the mobile phone card (this experiment uses a mobile 4G card) and connect the antenna. As shown in the following figure:
Enter the ". / etc/ppp/peers/netec20" command. Enter ping www.baidu.com. The successful test is shown in the following figure:
4418 prepare before using wired network for migration:
If you have connected the network cable, you can use the ping command to connect to the external network. As shown in the following figure:
02 migrate openssl
Copy the hostapd_topeet.tar.gz package to / usr/local and extract the input command tar-vxf openssl-1.0.1s.tar.gz to the current directory. This is shown in the following figure.
Enter the command cd openssl-1.0.1s to go to the openssl-1.0.1s directory. Enter the command. / config no-asm shared in this directory. After success, as shown in the following figure:
INSTALLTOP=/usr/local/opensslOPENSSLDIR=/usr/local/openssl
Delete the "- M64" parameter in CFLAG
Before modification:
After modification:
CC= arm-none-linux-gnueabi-gccEX_LIBS=-ldlAR= arm-none-linux-gnueabi-ar $(ARFLAGS) rRANLIB= arm-none-linux-gnueabi-ranlibNM= arm-none-linux-gnueabi-nm
Before modification:
After modification:
Save and exit after modification, and enter make in the current directory. After successful compilation, it is shown below:
Enter the command make install to install successfully, as shown in the following figure:
03 migrate libnl
Copy the package libnl-1.1.4.tar.gz to the / usr/local directory. Enter the command tar-vxf libnl-1.1.4.tar.gz to extract to the current directory, as shown in the following figure:
Enter the command cd libnl-1.1.4 to go to the libnl-1.1.4 folder and type. / configure-prefix=/usr/local/libnl1.1. After success, as shown in the following figure:
Enter the command make CC=arm-none-linux-gnueabi-gcc to compile successfully, as shown in the following figure:
Enter the command make install to install successfully, as shown in the following figure:
04 migrate hostapd
Copy the hostapd_topeet.tar.gz package to / usr/local and type tar-vxf hostapd_topeet.tar.gz to extract it to the current directory, as shown in the following figure:
Enter the command cd hostapd_topeet/hostapd to go to the hostapd directory and enter cp defconfig .config for default configuration, as shown in the following figure:
Open the .config file, comment CONFIG_DRIVER_HOSTAP=y, and uncomment CONFIG_DRIVER_NL80211=y, as shown below, save and exit
Enter the command vim Makefile to open the Makefile file under the current path, and pay attention to the OpenSSL path compiled in the previous step according to the path of your compiler header file and library. After the modification, it is shown in the following figure:
Enter make in the current directory to compile, and the successful compilation is shown in the following figure:
Enter make install in the current directory to install, and after successful installation, it is shown below:
05 migrate iptables
Copy the iptables-1.4.19.tar.bz2 package to the / usr/local directory and enter the command tar-vxf iptables-1.4.19.tar.bz2 to extract it to the current directory. As shown in the following figure:
Enter the command cd iptables-1.4.19 to go to the iptables-1.4.19 directory, where you enter the mkdir install command to create the installation directory. As shown in the following figure:
Enter the command. / configure-- host=arm-none-linux-gnueabi-- prefix=/usr/local/iptables-1.4.19/install/-- enable-static-- disable-shared in the iptables-1.4.19 directory
Note: enter your own path, as shown in the following figure:
After success, as shown in the following figure:
Enter make in the iptables-1.4.19 directory to compile. After successful compilation, it is shown in the following figure:
Enter make install in the iptables-1.4.19 directory to install, as shown in the following figure after successful installation:
Go to the install/lib directory and use the command tar zcvf lib_iptables.tar.gz * to compress the files under lib. As shown in the following figure:
06 copy file
Copy the files generated by yourself in the second section to the u disk, or you can directly use the hostapd under the libcrypto.so.1.0.0,libssl.so.1.0.0,/usr/local/iptables-1.4.19/install/lib path under / usr/local/openssl/lib and ib_iptables.tar.gz,/usr/local/hostapd_topeet/hostapd under the ib_iptables.tar.gz,/usr/local/hostapd_topeet/hostapd path provided by us. The xtables-multi under / usr/local/iptables-1.4.19/install/sbin copies the hostapd.conf,udhcpd.conf,mt6620_AP_4G,mt6620_AP_eth0 provided in this tutorial to a U disk. This is shown in the following figure.
Mount the u disk to the development board
Under the development board etc directory, use the command mkdir hostapd to create a hostapd folder.
Copy libcrypto.so.1.0.0 and libssl.so.1.0.0 to the lib of the development board
Copy hostapd.conf to the development board / etc/hostapd/ directory
Copy "udhcpd.conf" to the development board "/ etc/" directory
Copy "mt6620_AP_4G" to the development board "/ etc/init.d/" directory
Copy "mt6620_AP_eth0" to the development board "/ etc/init.d/" directory
Copy "hostapd" to the development board "/ etc/hostapd/" directory
Copy the compressed package lib_iptables.tar.gz to the bin directory of the development board and decompress it
Copy xtables-multi to the bin directory of the development board, enter chmod 777 xtables-multi to modify permissions, and rename it to iptables. As shown in the following figure:
Enter the / etc/init.d/ directory of the development board, where the author takes 4G as an example, enter vi mt6620_AP_4G to open the script file mt6620_AP_4G. Using the network cable connection, you need to modify the script file mt6620_AP_eth0 and modify the same place, and find the following command:
Chmod 0660 / dev/ttymxc1/usr/bin/6620_launcher-M1-b 921600-n / etc/firmware/mt6620_patch_hdr.bin-d / dev/ttymxc1 &
4418 modify it to the following:
Chmod 0660 / dev/ttyAMA2/usr/bin/6620_launcher-M1-b 921600-n / etc/firmware/mt6620_patch_hdr.bin-d / dev/ttyAMA2 &
6818 modify it to the following:
Chmod 0660 / dev/ttySAC2/usr/bin/6620_launcher-M1-b 921600-n / etc/firmware/mt6620_patch_hdr.bin-d / dev/ttySAC2 &
Here the author takes 4418 (4G online) as an example: before revision
After modification:
07 test
Under the premise of successful preparation and transplantation and networking in the first chapter, the author takes 4418 (4G Internet access) as an example, in the / etc/init.d/ "directory, enter. / mt6620_AP_4G as shown in the following figure:
Successful execution is shown in the following figure:
Open the mobile phone wifi, we will find the imx6_wifiAP hotspot, enter the password "12345678" to connect successfully. If the connection times out, check carefully whether the file path in the previous step has been copied correctly. The successful connection is shown in the following figure:
Open hostapd.conf and modify ssid and wpa_passphrase to change the name and password of the hotspot. As shown in the following figure:
08 use network cable to connect
Connect the network cable, according to their own network configuration for the same network segment, enter ping www.baidu.com, the test is successful as shown in the following figure, be sure to ping the external network before you can proceed to the next step!
After copying the file in section 3, go to the / etc/init.d/ "directory, enter the password for. / mt6620_AP_eth0, and connect wirelessly. After the connection is successful, the following information will be printed on the hyperterminal, as shown in the following figure:
This is the end of the content of "what is the method of porting mt6620 hotspots to iTOP-4418/6818 in Android". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.