http://www.lotlab.org/wp-admin/post.php?post=270&action=edit#

Zero.安装Linux操作系统

无论你使用Ubuntu、CentOS还是什么其他Linux系列操作系统都行!安装教程自行百度。注意!不要作死尝试Cygwin!!!!建议安装Ubuntu.

一.构建编译环境。

首先确认你连接到了互联网。

然后运行

sudo apt-get install gcc g++ git binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev

下载编译环境。

二、下载源代码包

找一个空间够大的地方,运行

git clone git://git.openwrt.org/openwrt.git

完成后 cd openwrt
三、配置软件源
编辑feeds.conf文件,添加你想要的软件源
然后运行

./scripts/feeds update -a
./scripts/feeds install -a

四、配置编译参数
运行

make menuconfig

修改固件目标以及软件包参数。一定要添加luci!!!!

五、编译
运行 make V=s j=你的CPU内核数

六、常见错误
Q:new permissions are r-xrwxrwx, not r-xr-xr-x
A:请确认当前驱动器是ext2(之类的),而不是NTFS格式

Q:不知道什么原因的File not found
A:检查磁盘空间是否不足


0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用 * 标注