Compile the environment: Ubuntu10.04Ubuntu12.04 (various problems, but compile the ipk I want) This article reference: http://www.openwrt.org.cn/bbs/forum.php? Mod = viewthread & amp; tid = 4217 (but changed) 1. apt-getinstallupdateapt-getinstallgit-coreapt-getinstallg ++ ap
Compiling environment: Ubuntu 10.04 Ubuntu 12.04 (various problems, but compile the ipk I want)
Reference: http://www.openwrt.org.cn/bbs/forum.php? Mod = viewthread & tid = 4217 (but changed)
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
Download command for Trunk: svn co svn: // svn.openwrt.org/openwrt/trunk/
Backfire download command: svn co svn: // svn.openwrt.org/openwrt/branches/backfire/
Https://dev.openwrt.org.cn/wiki/branchstat
There are currently three branches,
1. Dreambox, based on openwrt 10.03.1,
2. SUN branch: The Branch optimized for the embedded platform of ARM architecture. It is created based on the Dreambox branch and maintained by Richard Nee.
3. pandorabox branch, based on OpenWrt 12.09.
1. Obtain the OpenWrt-Dreambox stable version:
$ Svn co svn: // svn.openwrt.org.cn/dreambox/branches/dreambox-EOL openwrt-dreambox
2 get! Dreambox trunk development edition:
$ Svn co svn: // svn.openwrt.org.cn/dreambox/trunk openwrt-pandorabox
3. Obtain the SUN branch of OpenWrt-Dreambox for Embedded Development Boards:
$ Svn co svn: // svn.openwrt.org.cn/dreambox/branches/sun openwrt-dreambox
)
3. Cd Trunk or Cd backfire
For njit: cp feed. conf. default feed. conf
Vim feed. conf
Add :( from 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-
./Scripts/feeds install-
4. (make defconfig)
Make menuconfig
5. Official compilation: make V = 99
(Make world V = 99 compile all)
6. After compilation, the bin folder will appear. Go to the BIN folder and click the bin folder you need.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2