openwrt入门

一、安装Ubuntu(在vware安装)

注意使用图形系统

二、安装openwrt开发工具

1.打开命令窗Ctrl+Alt+T,切换到root用户:sudo -sH或sudo su,退出root用户:Ctrl+D或exit

2.切换到root,下载安装组件(apt-get install **)

g++ libncurses5-dev zlib1g-dev bison flex unzip autoconf gawk 

make gettext gcc binutils patch bzip2 libz-dev asciidoc subversion

加上 libssl-dev 和 libssl0.9.8

三、下载openwrt源码(使用trunk版本)

1.建立一个目录(千万不要有中文,svn不支持)

2.使用svn或git下载

git clone git://git.openwrt.org/openwrt.git
或者
svn co svn://svn.openwrt.org/openwrt/trunk

3.更新安装feeds代码

./scripts/feeds update -a

./scripts/feeds install -a

4.配置代码

make menuconfig(配置界面),或使用默认配置make defconfig

5.编译

make V=s

这个编译过程,呵呵......

由于在编译过程中,会下载很多库,网络有时不通

因此可重试make解决,若不行,只能自己下载,或向已经下载过源码的要

最后放到相应的文件夹路径下。

 

posted @ 2016-01-02 21:41  L-liwen  阅读(1170)  评论(0)    收藏  举报