Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1879164
  • 博文数量: 376
  • 博客积分: 2147
  • 博客等级: 大尉
  • 技术积分: 3642
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-06 10:47
文章分类

全部博文(376)

文章存档

2019年(3)

2017年(28)

2016年(15)

2015年(17)

2014年(182)

2013年(16)

2012年(115)

我的朋友

分类: 嵌入式

2014-10-10 12:40:21

最终能得到一个在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
  • 阅读(4389) | 评论(0) | 转发(2) |
    给主人留下些什么吧!~~