In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How to build an OpenWRT compilation environment, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
The latest version of this tutorial: update v1.4 20161107.
1 tool
Desktop or laptop
Ubnutu Desktop 16.10
VMware Workstation 12.5
Ensure that the network is stable, reliable and fast
2 basic software installation if you do not install / set basic software such as Windows, VMware Workstation, Ubuntu, please do not need to browse further.
Windows installation, setup:
Make sure your Windows operating system is stable, highly configured, and runs smoothly. It is recommended to use Windows 7 or Windows 10 operating system, install it, and make sure your computer can surf the Internet properly. In order to prevent the OpenWRT firmware from entering the screensaver, dormant, shutting down the hard disk during the compilation process, resulting in network interruption and firmware compilation being unable to connect to the network, it is recommended to turn off the Windows screensaver, hibernation and other settings.
Download and install VMware Workstation:
Please download and install the latest version of VMware Workstation 12.5 from VMware's official website and check the serial number required by Baidu during the installation process.
Download, install, set up Ubnutu
1. Download the latest version of Ubnutu Desktop 16.10 from the official website of Ubnutu. When installing Ubnutu16.10 in VMware Workstation 12.5, it is recommended to use the default setting for each step, and the partition is recommended to be no less than 30g.
2. Select the Ubnutu component update server and open "System Settings"-"Software&Updates".
Select "Other"
Click "Select Best Server" and the system will select the best server according to your current city, broadband operator, broadband quality, network speed and other comprehensive conditions. After selecting the best server, click "Choose Server".
Password: enter the Ubuntu boot login password, and then click "Authenticate"
3. Ubuntu screensaver settings:
Due to many links and long time involved in the OpenWRT firmware compilation process, in order to avoid the OpenWRT firmware entering the screensaver, dormant, closing the hard disk and other problems caused by the network interruption and the firmware compilation can not be connected to the network, it is recommended to turn off the Ubuntu screensaver setting.
Note: there are no special parameter settings in this section, it is recommended to use the default setting in the Ubuntu system.
Installation of components required for 3Ubuntu platform
Before compiling, we need to build the environment, use Ctrl+Alt+T, open the following Shell mode, and install the following components required for the OpenWrt firmware compilation environment in Ubuntu Shell mode. The following component installation commands are all run in the root directory. Make sure that Ubuntu can be connected to the Internet normally, otherwise the update cannot be completed:
Sudo apt-get update (used to update the index file of the software package in the Ubuntu software repository and enter the Ubuntu boot login password when prompted for a password)
Sudo apt-get install libssl-dev
Sudo apt-get install flex
Sudo apt-get install bison
Sudo apt-get install autoconf
Sudo apt-get install texinfo
Sudo apt-get install sharutils
Sudo apt-get install ncurses-term
Sudo apt-get install libncurses5-dev
Sudo apt-get install zlib1g-dev
Sudo apt-get install subversion
Sudo apt-get install gawk
Sudo apt-get install git-core
Sudo apt-get install original-awk
Sudo apt-get install gcc
Sudo apt-get install binutils
Sudo apt-get install bzip2
Sudo apt-get install python
Sudo apt-get install perl
Sudo apt-get install grep
Sudo apt-get install tlp
Note: if the above or one of the other software cannot be installed properly, switch the server to the Ubnutu US server in the following figure, and continue to install the incomplete components, as shown below:
4 download the OpenWRT firmware source code and log in to the configuration directory
Download the latest OpenWRT firmware source code
Git clone git://git.openwrt.org/15.05/openwrt.git (it will take about 10 minutes according to the comprehensive factors such as computer hardware performance and network speed. If there is an interruption caused by some factors during the update process, please rerun this command)
Log in to the OpenWRT firmware compilation configuration directory
Cd openwrt
Note: all the following commands are run in the / openwrt directory.
5 update and install OpenWRT firmware system package
. / scripts/feeds update-a (update OpenWRT firmware system software source, the file is large, please wait patiently. According to the computer hardware performance, network speed and other comprehensive factors, it will take about 15 minutes. If there is an interruption caused by some factors in the update process, please rerun this command sudo apt-get install command to install)
. / scripts/feeds install-a (install all packages of OpenWRT firmware)
Make defconfig (test the compilation environment, if you are prompted that some components are missing when testing the compilation environment, please install it with the sudo apt-get install command)
6 enter the OpenWRT firmware compilation environment
Enter the following command to enter the compilation environment. If everything is normal, the following firmware configuration menu will appear. You can select the hardware platform and model to compile, and you can also select the features and components to be added in the firmware. At this point, the compilation environment is built.
Make menuconfig
After the OpenWRT firmware compilation platform selects the hardware platform, model, functions and components to be added to the firmware, select "Save"-"Exit" to exit the OpenWRT firmware compilation platform, and use the following command to generate the final required firmware:
Make sure the network is stable, reliable and fast throughout the make compilation process for the first time, and please be patient. It will take about 3-5 hours according to the comprehensive factors such as computer hardware performance, network speed and so on.
Note: when compiling firmware, prompts the lack of some components, please use sudo apt-get install to install, if prompted for the lack of a software package, because the missing software package may be in the domestic stability or foreign server, you can search on Baidu, download software with breakpoints such as Thunder to download to the / openwrt/dl directory, and run make Vascs again.
After reading the above, have you mastered the method of how to build an OpenWRT compilation environment? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.