openwrt编译环境搭建

本文采用UBUNTU 16.04,全程需要联网

首先,需要安装如下库或者工具。

gcc, binutils, bzip2, flex, python, perl, make, find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers

执行如下脚本

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
sudo apt-get install openssl
sudo apt-get install libssl-dev 
sudo apt-get install  libp11-kit-dev

执行过之后,基础环境就算ok了。然后下载源码。解压。进入源码目录

./scripts/feeds update -a     更新软件包
./scripts/feeds install -a    安装软件包

然后配置文件,这个是定制目标路由器的功能或者硬件信息的

make menuconfig

最后编译

make V=99

 

 

刚买了一个wrtnode开发板,有兴趣的盆友一起研究下呗

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
4 收藏
2
分享
返回顶部
顶部