Chinaunix首页 | 论坛 | 博客
  • 博客访问: 438718
  • 博文数量: 78
  • 博客积分: 2030
  • 博客等级: 大尉
  • 技术积分: 1002
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-28 15:25
文章分类

全部博文(78)

文章存档

2012年(1)

2011年(1)

2010年(4)

2009年(12)

2008年(60)

我的朋友

分类: LINUX

2008-10-28 16:08:34

Building OpenWrt Kamikaze from source

Assuming you are using Ubuntu 6.06.1 LTS (on a physical system or in the VMware Player)


1. install packages required by the OpenWrt Kamikaze buildsystem

aptitude install build-essential binutils flex bison autoconf gettext texinfo sharutils subversion libncurses5-dev ncurses-term zlib1g-dev

2. checkout and prepare Kamikaze and the packages

Code:
cd ~
svn co https://svn.openwrt.org/openwrt/trunk/

svn co https://svn.openwrt.org/openwrt/packages/ ~/trunk/feeds/packages/

cd ~/trunk/
make package/symlinks


2.1 Configure Kamikaze (select target system) and the packages (a full build with all packages selected requires about 9GB of free disk space)

make menuconfig

2.2 If you select extra packages it's a good idea to check if you have all prerequisites installed. Check with:

make prereq

TIP: To find the missing packages search at

2.3 Finally build Kamikaze (to download all packages at once use 'make download world')

make world

3. After the build finished, ready to use images can be found in $(TOPDIR)/bin


Targets for 'make'

download
    download all source tarballs (from the selected packages and it's dependencies) at once before starting the build

prereq
    checks if you have all prerequisites installed on the host-system for building the selected packages

world
    build everything

tools/install toolchain/install
    only build the tools and the toolchain

clean
    cleans the packages (NOT the tools and toolchain)

distclean
    cleans up everything expect $(TOPDIR)/.config and $(TOPDIR)/dl/

package/-{clean,compile}
    rebuild a single package

package/index
    updates $(TOPDIR)/bin/packages/Packages

V=99
    turns on debugging

make kernel_menuconfig
    If you want, you can also modify the kernel config for the selected target system. Simply run "make kernel_menuconfig"
    and the build system will unpack the kernel sources (if necessary), run menuconfig inside of the kernel tree, and then
    copy the kernel config to target/linux//config so that it is preserved over "make clean" call. 


Also look at the OpenWrt Kamikaze documentation at
- or
-

Some more useful URLs:
- (enough for most users, no need for the VMware Server)
-
- (for the Ubuntu ISO image)
- (also includes the VMware Tools)

阅读(1960) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~