最终能得到一个在X86系统上能运行的虚拟机文件。
步骤如下:
1. 安装ubuntu
2. 关闭屏幕保护
3. 进入ROOT用户安装或升级不要的组件
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
4. 安装完成后推出root用户,切换到普通用户(这个很重要)
5. 下载源码
svn co svn://svn.openwrt.org/openwrt/branches/backfire/
6. 开始准备编译
Cd backfire
./scripts/feeds update –a
./scripts/feeds install –a
./scripts/feeds update packages luci
./scripts/feeds install -a -p luci
7. 开始配置编译
make menuconfig
选择如下:
1) Target System (x86) ---> (X) x86
2) Target Images --->
ext2
3) Target Images --->
Build VMware image files (VMDK)
4) Base system ---> <*> uci................ Utility for the Unified Configuration Interfa
5) LuCI都选上
6) Network --->好像是web service-?<*> uhttpd........................ uHTTPd - tiny, single threaded HTTP server ---><*> uhttpd-mod-lua... uHTTPd - tiny, single threaded HTTP server (Lua plugin)
8. 开始编译
Make V=99
结果在bin/x86里面,那个openwrt-x86-genericcombined-ext2.vmdk就是我们要的虚拟机文件
9. 创建虚拟机
关键点:
1) linux 、Other Linux 2.6.x kernel (应该是2.6的,我没到官网上看)
2) Use bridged networking
阅读(4447) | 评论(0) | 转发(2) |