Compile the entire process of openwrt (detailed)

Source: Internet
Author: User

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.

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.