Compiling environment: win7 Professional Edition + vmwareworkstation6.5 Virtual Machine + ylmf OS 3.0
Maintain computer network connection during compilation
Build a compilation environment
Application Program -- Attachment -- Terminal
Sudo apt-Get Update (update)
Install components required for compilation:
Sudo apt-Get install gcc
Sudo apt-Get install g ++
Sudo apt-Get install binutils
Sudo apt-Get Install patch
Sudo apt-Get install Bzip2
Sudo apt-Get install flex
Sudo apt-Get install bison
Sudo apt-Get install make
Sudo apt-Get install Autoconf
Sudo apt-Get install gettext
Sudo apt-Get install texinfo
Sudo apt-Get install unzip
Sudo apt-Get install sharutils
Sudo apt-Get install Subversion
Sudo apt-Get install libncurses5-dev
Sudo apt-Get install ncurses-term
Sudo apt-Get install zlib1g-dev
Sudo apt-Get install gawk
Sudo apt-Get install asciidoc
Sudo apt-Get install libz-Dev
Build the compiling environment
Mkdir openwrt: Create an openwrt folder
CD openwrt: Enter the openwrt folder
SVN Co SVN: // svn.openwrt.org/openwrt/branches/backfire download source code from the official website
./Scripts/feeds update-A update package
./Scripts/feeds install-A installation package
Make menuconfig to enter the custom interface (you can select the chip model, integrated components, and so on, depending on the actual situation)
Defconfig
Make v = 99 (start compilation)
The rest is waiting. The first compilation takes a relatively long time. This is related to your computer configuration and network speed.
The following takes compiling TP-LINK 741n openwrt firmware as an example, only compile the basic functions:
Make menuconfig
Target system --- ar71xx/ar7240/ar913x/ar934x CPU Model
Target profile --- TP-LINK 741
Luci-> collections -- <*> Add Luci
Luci-> translations -- <*> Add Chinese characters to the luci-i18n-chinese
EXT----YES
Make v = 99 start Compilation
After successful completion, the compiled firmware will be available in the bin folder.