Ubuntu亲自手动编译Openwrt (DreamBox): for njit....ipk

起点 2014-02-25

编译环境:Ubuntu 10.04 Ubuntu 12.04(各种问题,但是编译出我要的ipk)

本文参考:http://www.openwrt.org.cn/bbs/forum.php?mod=viewthread&tid=4217(但有改动)

1、apt-get install update
apt-get install git-core
apt-get install g++
apt-get install libncurses5-dev
apt-get install zlib1g-dev
apt-get install bison
apt-get install flex
apt-get install unzip
apt-get install autoconf
apt-get install gawk
apt-get install make
apt-get install gettext
apt-get install gcc
apt-get install binutils
apt-get install patch
apt-get install bzip2
apt-get install libz-dev
apt-get install asciidoc
apt-get install subversion

2、Mkdir openwrt
Cd openwrt

Trunk版下载命令:svn co svn://svn.openwrt.org/openwrt/trunk/
Backfire下载命令:svn co svn://svn.openwrt.org/openwrt/branches/backfire/

(https://dev.openwrt.org.cn/wiki/branchstat
目前有三个分支,

1、Dreambox,基于openwrt 10.03.1制作,

2、SUN分支,针对ARM架构的嵌入式平台进行优化的分支,基于Dreambox分支制作,由Richard Nee维护。

3、pandorabox分支,基于OpenWrt 12.09制作。

1 获取OpenWrt-Dreambox Dreambox稳定版:
$svn co svn://svn.openwrt.org.cn/dreambox/branches/dreambox-EOL openwrt-dreambox
2 获取!Dreambox trunk开发版:
$ svn co svn://svn.openwrt.org.cn/dreambox/trunk openwrt-pandorabox
3 获取OpenWrt-Dreambox 针对嵌入式开发板的SUN分支:
$ svn co svn://svn.openwrt.org.cn/dreambox/branches/sun openwrt-dreambox

)

3、Cd Trunk或者Cd backfire

for njit: cp feed.conf.default feed.conf
vim feed.conf
添加:(来自https://github.com/liuqun/openwrt-clients/blob/master/feeds.conf)
src-svn njit https://github.com/liuqun/openwrt-clients/trunk/njit
src-svn hust https://github.com/liuqun/openwrt-clients/trunk/hust
src-svn gdou https://github.com/liuqun/openwrt-clients/trunk/gdou
src-svn sysu https://github.com/liuqun/openwrt-clients/trunk/sysu

./scripts/feeds update –a
./scripts/feeds install –a

4、(make defconfig)
make menuconfig

5、正式编译:make V=99
(make world V=99 编译全部)

6、编译完成后会出现bin文件夹,进去找你需要的BIN刷吧。

相关推荐