Tutorial on compiling OpenWrt in Ubuntu10.04

Source: Internet
Author: User
At the end of the course, a question was designed: software development for wireless routers. The platform is openwrt. Openwrt is an open wireless routing platform released by Cisco. Because it is based on the linux kernel, We can port software on many linux platforms to this platform, and then let wireless routing have many unexpected functions, such as using it as a BT downloader or a music player, small database processing and so on. Environment: Ubuntu10.04, subversion, VMwareworkstati

At the end of the course, a question was designed: software development for wireless routers.

The platform is openwrt. Openwrt is an open wireless routing platform released by Cisco. Because it is based on the linux kernel, We can port software on many linux platforms to this platform, and then let wireless routing have many unexpected functions, such as using it as a BT downloader or a music player, small database processing and so on.

Environment:

Ubuntu 10.04, subversion, VMware workstation 7.1.3

First, obtain the source code of openwrt.

In Ubuntu, first install the svn tool:

Sudo apt-get install subversion

Then install various dependency packages:

Sudo apt-get install gcc g ++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversi-dev ncurses-term zlib1g-dev

Sudo apt-get update

Go to the home directory and create a folder:

Makedir/openwrt

Cd/openwrt

Then run the svn command line checkout to get the source code:

Svn checkout svn: // svn.openwrt.org/openwrt/trunk

Go to the trunk Folder:

Cd trunk

Update openwrt:

./Scripts/feeds update-

Install all packages:

./Scripts/feeds install-

At this time, I think it is necessary to compile LUCI into the kernel, so that we can control openwrt through the web, rather than through the command line. Therefore, add the following command:

./Scripts/feeds update packages luci

./Scripts/feeds install-a-p luci

Then, the LUci option will appear during kernel compilation.

Because I don't have a Linksys series router and I just want to experience openwrt, I compiled openwrt into a disk image of VMware workstation and used VMware workstation to simulate a hardware environment for routing.

The following configurations are applicable to this situation: (because the corresponding packages will be downloaded from the network during compilation, do not disconnect once compilation starts. However, a large package is encountered, but the process is slow. You can interrupt the process and use the download process to download the package to the corresponding website)

First, enter make menuconfig to enter the Kernel configuration interface:

1. Target System (x86) ---> (X) x86

2. the target file system is EXT2.

Target Images ---> [*] ext2

Target Images ---> [*] Build VMware image files (VMDK)

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.