Ubuntu親自手動編譯Openwrt (DreamBox): for njit....ipk

來源:互聯網
上載者:User

編譯環境: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刷吧。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.