前言
最近把家里的废弃的老电脑拆了,闲着也是闲着,所以把他做成软路由。所以写一篇openwrt的编译(主要是闲的)
环境准备
- Ubuntu
开始
sudo apt-get update
sudo apt-get upgrade
更新一下
安装必要的支持库,以及支持的各种依赖包
sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip
mkdir openwrt
创建openwrt文件夹
输入 cd openwrt
进入openwrt文件夹
一下命令非root权限
git clone https://github.com/openwrt/openwrt.git
cd openwrt
进入目录,更新源码
./scripts/feeds update -a
安装feeds更新
./scripts/feeds install -a
安装更新之后,输入
make defconfig
检查编译前的环境
sagit@sagit-Ubunt:~/openwrt/openwrt$ make defconfig
#
# configuration written to .config
#
配置编译了
输入 make menuconfig
选择你的架构和你需要的插件等等,别忘记选luci不然就没有web管理界面了,记得选镜像格式!
选完之后输入make j1 V=9
进行编译
1 条评论
学习了,感谢分享