1、openwrt介绍
OpenWrt的特点:
- 可扩展性好,可以在线安装您所需要的功能,目前有1000多个功能包可选;
- 是一台完整的Linux工作站,文件系统可读可写,便于开发者学习和实践
2、openwrt编译
(也可参考https://wenku.baidu.com/view/11610bdf767f5acfa0c7cd0d.html)
应用程序--附件--终端 sudo apt-get update (更新) 安装编译需要的组件: sudo apt-get install gcc sudo apt-get install g++ sudo apt-get install binutils sudo apt-get install patch sudo apt-get install bzip2 sudo apt-get install flex sudo apt-get install bison sudo apt-get install make sudo apt-get install autoconf sudo apt-get install gettext sudo apt-get install texinfo sudo apt-get install unzip sudo apt-get install sharutils sudo apt-get install subversion sudo apt-get install libncurses5-dev sudo apt-get install ncurses-term sudo apt-get install zlib1g-dev sudo apt-get install gawk sudo apt-get install asciidoc sudo apt-get install libz-dev
mkdir openwrt cd openwrt sudo apt-get install git subversion git clone https://github.com/openwrt/openwrt
gitOpenWRTsubversion
OpenWRTgithub
https://dev.openwrt.org/wiki/GetSource地址获取,可以选择Chaos Calmer (15.05)正式发行版,也可以选择开发版,(trunk)
https://github.com/openwrt/openwrt
https://github.com/openwrt/openwrt
OpenWRTgithubgit
在编译之前,我们需要先,输入:./scripts/feeds update -a,然后menuconfig,输入:./scripts/feeds install -a,installmake menuconfig
./scripts/feeds update -a ./scripts/feeds install -a
2.4、配置编译模块
make menuconfig
<*> uhttpd........................ uHTTPd - tiny, single threaded HTTP server --->
<*> uhttpd-mod-lua... uHTTPd - tiny, single threaded HTTP server (Lua plugin)
2.5、 开始编译
make V=99
编译时间有点长make V=99V=99OpenWRT
2.6、生成vmdk文件
文章来源: ubuntu16.04上openwrt的编译