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