Ubuntu中怎么编译安装OpenWrt,很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。
1。下载OpenWrt源码
<>以前git clone https://github.com/openwrt/openwrt.git目录详情如下:
2。以前更新系统
<> sudo apt-get 更新 sudo apt-get  dist-upgrade sudo apt-get 升级3。安装所需软件
sudo apt-get install g++, patch bison autoconf gettext texinfo unzip sharutils sudo apt-get  install subversion libncurses5-dev  ncurses-term zlib1g-dev sudo apt-get  install gawk asciidoc  libz-dev sphinxsearch libtool sudo apt-get  install sphinx-common libssl-dev  libsqlite3 *, intltool libiconv *, gstreamer sudo apt-get  install 0.10 *, glib2.0 libxml2-dev qemu ia32-libs git-core build-essential sudo apt-get  install gcc binutils  bzip2 flex python perl 使 sudo apt-get  install find grep  diff unzip gawk getopt subversion libz-dev
4。编译目录赋权限
sudo chmod -R 777年,openwrt
5。清理
<>以前make 清洁6。更新源码
。/脚本/feeds update a/脚本/feeds install ——
7。编译前检查
<>以前make defconfig make prereq8。配置编译镜像(以ZBT-WE1226为例)
make menuconfig
配置前两项
配置完毕
9。开始编译
<>之前,make -j4 V=#,如遇到问题使用查找,一定向上滚动几屏日志查看,错误明细都在上面 ,make -j1 V=s10。得到镜像
看完上述内容是否对您有帮助呢?如果还想对相关知识有进一步的了解或阅读更多相关文章,请关注行业资讯频道,感谢您对的支持。