【ecos学习2】wmware运行redboot[方法二]--图形实现配置

背景:

远程服务器Ubuntu生成软盘镜像,通过ubuntu10.04下wmware运行.写这篇文章,主要想要说明下通过图形化配置,编译。请看【4- 配置】

1- 环境及版本:

uname -a

Linux xinU1004 2.6.32-45-generic-pae #104-Ubuntu SMP Tue Feb 19 21:36:53 UTC 2013 i686 GNU/Linux

//看过上一篇文章【ecos学习1】wmware运行redboot[方法一]--脚本实现配 的同学,一定发现与本次的linux环境不同,

//原因:2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux 中启动configtool图形配置,不显示菜单栏。无法正常图形配置,原因不知。

VMware® Workstation 8.0.1 build-528992

 

2- 下载:

wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl

 

3- 安装:

sh ecos-install.tcl

eCos installer v2.0.1 starting...
Written and maintained by Jonathan Larmour <jifl@eCosCentric.com>

Retrieving installer metadata information...
**************************************************
---------------------------------------------------------
Available distribution sites:

[1] ftp://mirrors.kernel.org/sources.redhat.com/ecos
[2] http://mirrors.kernel.org/sources.redhat.com/ecos
[3] ftp://mirror.aarnet.edu.au/pub/sourceware/ecos
[4] http://mirror.aarnet.edu.au/pub/sourceware/ecos
[5] ftp://ftp.mirrorservice.org/sites/sources.redhat.com/pub/ecos
[6] http://www.mirrorservice.org/sites/sources.redhat.com/pub/ecos
[7] ftp://gd.tuwien.ac.at/opsys/ecos
[8] http://gd.tuwien.ac.at/opsys/ecos
[9] ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/ecos
[10] ftp://ftp.gwdg.de/pub/misc/sources.redhat.com/ecos
[11] http://ftp.gwdg.de/pub/misc/sources.redhat.com/ecos
[12] ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/ecos
[13] http://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/ecos
[14] ftp://bo.mirror.garr.it/mirrors/sourceware.org/ecos
[15] http://bo.mirror.garr.it/mirrors/sourceware.org/ecos
[16] ftp://ftp.u-aizu.ac.jp/pub/gnu/cygnus/ecos
[17] ftp://ftp.chg.ru/pub/sourceware/ecos
[18] ftp://ftp.sun.ac.za/pub/mirrorsites/sourceware.org/pub/ecos
[19] http://ftp.sun.ac.za/ftp/pub/mirrorsites/sourceware.org/pub/ecos
[20] ftp://ftp.twaren.net/Unix/Sourceware/ecos
[21] http://ftp.twaren.net/Unix/Sourceware/ecos
[22] ftp://mirror.facebook.com/sourceware/ecos
[23] http://mirror.facebook.com/sourceware/ecos
[24] http://sources-redhat.mirrors.airband.net/ecos
[25] ftp://ecos.sourceware.org/pub/ecos

Please select a distribution site: 25    //速度还不错

---------------------------------------------------------

Please select a directory for installation
[Default /home/shelley/ecos]: /home/shelley/ecos_3
---------------------------------------------------------

Available prebuilt GNU tools:

[1] arm-eabi
[2] arm-elf (old)
[3] i386-elf
[4] m68k-elf
[5] mipsisa32-elf
[6] powerpc-eabi
[7] sh-elf
[q] Finish selecting GNU tools

("*" indicates tools already selected)

Please select GNU tools to download and install: 3  //与CPU架构有关,看参考资料图.
[1] arm-eabi
[2] arm-elf (old)
[*] i386-elf
[4] m68k-elf
[5] mipsisa32-elf
[6] powerpc-eabi
[7] sh-elf
[q] Finish selecting GNU tools

("*" indicates tools already selected)

Please select GNU tools to download and install: q

Entering /home/shelley/ecos_3
Retrieving GNU tools for i386-elf
**************************************************
Retrieving eCos version 3.0
**************************************************
Downloads complete.
If you wish to disconnect from the internet you may do so now.
Unpacking ecoscentric-gnutools-i386-elf-20081107-sw.i386linux.tar.bz2...
Unpacking ecos-3.0.i386linux.tar.bz2...
Generating /home/shelley/ecos_3/ecosenv.sh
Generating /home/shelley/ecos_3/ecosenv.csh
---------------------------------------------------------
In future, to establish the correct environment for eCos,
run one of the following commands:
. /home/shelley/ecos_3/ecosenv.sh (for sh/bash users); or
source /home/shelley/ecos_3/ecosenv.csh (for csh/tcsh users)

It is recommended you append these commands to the end of your
shell startup files such as $HOME/.profile or $HOME/.login
---------------------------------------------------------
Installation complete!

 

以上内容与【ecos学习1】wmware运行redboot[方法一]--脚本实现配文章中的前半部分相同

4- 配置

~/ecos3/ecos-3.0/tools/bin$ ./configtool

 

 

Build->Templates

硬件平台选择 i386 PC target(vmWare),Packages选择redboot。

这样就包含了最基工功能的Redboot,如果想使用网络功能,比如从TFTP下载内核,就需要加入网络模块

Build->Packages

加入:Common ethernet support

需要修改为从软盘启动

Startup type:FLOPPY

Build->Library

redboot.ecc //随便起名

初次编译会有问题如【if_lancepci.c:528: 错误: 赋值运算的左操作数必须是左值】,请参考:ecos3.0编译 if_lancepci.c:528: 错误: 赋值运算的左操作数必须是左值

解决此问题后将编译成功!

~/ecos3/ecos-3.0/tools/bin$ls -lrt

redboot.ecc

redboot_build

redboot_install

生成软盘镜像redboot.flp

cd ~/ecos3/ecos-3.0/tools/bin/redboot_install/bin$ dd conv=sync if=redboot.bin of=redboot.flp bs=1440k

导入虚拟机中即可。导入方法参考:【ecos学习1】wmware运行redboot[方法一]--脚本实现配

注意:

Floppy一定要选择Connect at power on

 启动:

posted @ 2013-11-27 11:56  galoishelley  阅读(419)  评论(0)    收藏  举报