Download Configuration compilation OpenWrt

Source: Internet
Author: User

Download Configuration compilation OpenWrt

Environment: Fedora7

1 Installing related tools and libraries 1.1 installing the SVN tool

Install SVN tools to download the OpenWrt source code (to ensure that you can surf the internet first):

#yum Install Subversion

1.2 Installing the Git tool

#yum Install Git-core

1.3 Installing a dependent library file

#yum Install gcc g++ binutils patch bzip2 Flex Bison make autoconf gettexttexinfo unzip sharutils NCURSES-TERMZ Lib1g-dev Libncurses5-dev gawk

2 Download OpenWrt source code

Compile openwrt first need to download the source code, OpenWrt source is through svn download, in/home/jiangxin directory to create a new OpenWrt folder, using SVN to download the source code.

# Cd/home/jiangxin

# Mkdir OpenWrt

# Cd openwrt/

# SVN Checkoutsvn://svn.openwrt.org/openwrt/trunk

Wait for the download, after the download is completed, for example, remove version 44597

After downloading the source code of OPENWRT, in order to enable OPENWRT to support more software, need to update and install the software above other sources:

# CD Trunk

#./scripts/feeds update-a

#./scripts/feeds install-a

The following error is prompted when entering./scripts/feeds update-a:


Search for reasons on Baidu, and then find a solution below this link,

http://forums.rightscale.com/showthread.php?t=605

The solution is to change the address https://github.com/opscode/cookbooks.git to

Git://github.com/opscode/cookbooks.git

Save the address of the file in Feeds.conf.default, the beginning of the link in which https begins to git, so that the above problem can be resolved.


All ready, start compiling, compile, need to notice, openwrt default is to use the non-root user name to compile, if you are root
The user name needs to be modified on the configuration. Need to modify INCLUDE/PREREQ-BUILD.MK
$ gedit Include/prereq-build.mk
Drop the comment on line 16th
Define Require/non-root
# ["$$ (Shell whoami)"! = "root"]
Endef

3 Compiling OpenWrt source code

Compile the first time to execute the Makemenuconfig, and configure the kernel command when the same, no accident, it entered a more familiar interface, configure the kernel of friends should not be unfamiliar.

# Make Menuconfig


1. Select the CPU model
Target system-> Ralink rt288x/rt3xxx
2. Select the CPU sub-model
Subtarget-> rt3x5x/rt5350 based Boards
3. Select a specific router model
Target PROFILE->HAME-MPR-A2
Then click Save to save the configuration, so that a configuration is completed, of course, this is the simplest configuration, we are first in the Development Board
The program system runs up, complex configuration after the course will be 1.1 points of the church everyone.
Finally execute make v=99, start a lengthy compilation, compile time is determined by the computer configuration, because the software required for compiling is from the network
Download, so the machine must be able to surf the Internet. v=99 meaning displays all information.
$ make v=99
It will take about 4 or 5 hours for the compilation to complete and then generate the image under the source directory bin.





Download Configuration compilation OpenWrt

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.