配置OpenWrt开发环境

安装虚拟机 Virtualbox
连接: https://pan.baidu.com/s/1agGB2r65ItCsJBGIa7tlUg 提取码: u74b
安装Ubuntu 16.04 64位系统
连接:https://pan.baidu.com/s/1ZIJJWOQQNgy1wD2AJ3DC7A 提取码:593cgit

安装开发环境,选择速度最快的源,配置网络模式为桥接。
1.执行 sudo apt-get updateweb

2.执行 sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils libncurses5-dev ncurses-term zlib1g-dev gawk asciidoc libz-dev git-core uuid-dev libacl1-dev liblzo2-dev pkg-config libc6-dev curl libxml-parser-perl ocaml-nox;网络

3.创建OpenWrt文件目录mkdir OpenWrt;curl

4.下载OpenWrt源码,执行 git clone https://git.lede-project.org/source.git lede,你们能够根据本身的实际需求来checkout代码,好比git clone git://git.openwrt.org/openwrt.git。svg

5.安装feeds:
./scripts/feeds update -a
./scripts/feeds install -aflex

6.配置OpenWrt系统 make menuconfigui

7.编译系统 make V=99url