标签:
eCos是可配置嵌入式操作系统,比Linux稍小,又很好地支持Linux的系统调用接口。其源代码大多是用C++编写。
进入到eCos的官网下载页面:http://ecos.sourceware.org/getstart.html
新建一个目录并进入。
$ mkdir -p Workspace/ecos $ cd Workspace/ecos
安网页上的指引,执行wget命令
$ wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl
运行 sh ecos-install.tcl
$ sh ecos-install.tcl eCos installer v2.0.1 starting... Written and maintained by Jonathan Larmour <jifl@eCosCentric.com> Retrieving installer metadata information... Connected... Downloading ecos-install.db... File size 6572 bytes [**************************************************] --------------------------------------------------------- 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.sun.ac.za/pub/mirrorsites/sourceware.org/pub/ecos [18] http://ftp.sun.ac.za/ftp/pub/mirrorsites/sourceware.org/pub/ecos [19] ftp://ftp.twaren.net/Unix/sourceware.org/ecos [20] http://ftp.twaren.net/Unix/sourceware.org/ecos [21] http://mirror.facebook.net/sourceware/ecos [22] ftp://ecos.sourceware.org/pub/ecos Please select a distribution site: 20
列举了22个下载源,让我们选一个。我选的是20,选有些源下载不了,要设置代理才行。
--------------------------------------------------------- Please select a directory for installation [Default /home/hevake_lcj/ecos]:
然后就是让我们指定安排路径,默认就是相前目录。
--------------------------------------------------------- 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: 1
这是让我们选择哪种平台。我选的是1,arm-eabi。还可以多选几个,选q结束选择。
然后就开始下载了:
Entering /home/hevake_lcj/ecos Retrieving GNU tools for arm-eabi Connected... Downloading ecos-gnutools-arm-eabi-20120623.i386linux.tar.bz2... File size 27341525 bytes [******* ]
这个过程时间比较长,慢慢等。
标签:
原文地址:http://my.oschina.net/hevakelcj/blog/409005