OPENWRT Installation and Practice

Source: Internet
Author: User

1. Install a compilation environment first, Ubuntu 14

2. Install svn in Ubuntu, g++, Libncurses5-dev git libssl-dev gawk, svn because the OpenWrt community is no longer using SVN as a repository, can not be installed.

sudo apt-get install g++ Flex patch

sudo apt-get install Libncurses5-dev Zlib1g-dev

sudo apt-get install Git-core

sudo apt-get install Libssl-dev

sudo apt-get install gawk

sudo apt-get install Qemu

3. Go to GitHub and pull the project down.

Mkdir/openwrt

Cd/openwrt

git clone git://git.openwrt.org/15.05/openwrt.git cc

4. Configuration and compilation

./scripts/feeds update updates the latest package definitions

./scripts/feeds install-a Install all packages

The process is a bit long, probably. One night ... The result also failed ... It's a stretch, maybe a couple of hours.

5. Make defconfig, check that the compilation tool is complete, and generate the default compilation configuration file. config

Make Menuconfig, select the module, do not know what is required to add in, but in order to facilitate debugging, you need to select the target system (x86)

In the end, make will download modules from the Internet, and various dependent code packages are in the upstream Web site and in the Code warehouse.

It's really going to be a night.

After finishing, you can see the various image compression packages inside the bin/x86.

Unzip the openwrt-x86-generic-combined-ext4.img.gz:

Gunzip openwrt-x86-generic-combined-ext4.img.gz

6. Use QEMU to convert the img file into a vmdk file.

Qemu-img convert-o vmdk openwrt-x86-generic-combined-ext4.img openwrt.vmdk

Use FileZilla to download the VMDK to Windows, and then use workstation to create a new virtual machine and mount the VMDK in it.

See this. The first phase is complete.

OpenWrt Installation and practice

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.