LoginSignup
1
1

More than 5 years have passed since last update.

eCosの環境を作成する

Last updated at Posted at 2018-03-10

0.背景

少し前の仕事でeCosを利用したSDKを使用していたので自主学習でeCosの勉強したことを並べてみた。
eCosとはRTOSの一種でEmbedded Configurable Operating Systemの略語になる。

詳細は以下の参考HPを参照。
参考HP
http://ecos.sourceware.org/about.html
https://ja.wikipedia.org/wiki/ECos

1.環境

OS:Windows10(Windows7でも同じ)
使用するソフト:Cygwin
(1.7.17のCygwinを使用する。gcc3と4が存在したころのCygwinをすべてローカルPCへコピーしていたので使用した。)

2.手順

2.1.Cygwinをインストール
setup.exeを起動し以下のパッケージをインストールする。
gcc4, libexpat1, libmpc1, make, patch, sharutils, tcl, wget

2.2.eCosのインストール方法
mkdir -p /opt/ecos
cd /opt/ecos
wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl
chmod a+x ecos-install.tcl
※もしtclライブラリ関連でエラーがでるなら、tcl84.dllをいれる。

sh ecos-install.tclを実行し、以下のスクリプトを対話式で行う。
======スクリプトログ======
eCos installer v2.0.1 starting...

・略

**************************************************
---------------------------------------------------------
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: 22
\ ---------------------------------------------------------

 Please select a directory for installation
 [Default /opt/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: 3
[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 /opt/ecos
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 /opt/ecos/ecosenv.sh
Generating /opt/ecos/ecosenv.csh
 ---------------------------------------------------------
 In future, to establish the correct environment for eCos,
 run one of the following commands:
. /opt/ecos/ecosenv.sh (for sh/bash users); or
source /opt/ecos/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!

======スクリプトログ======

/home/ユーザ名のしたにある「.bashrc」ファイルに環境設定をしておく。(ecostoolとクロスツール、eCosのパッケージの変数設定ができる。)
. /opt/ecos/ecosenv.sh

以下を/opt/ecos/ecos-3.0/tools/binへ展開する。
http://ecos.sourceware.org/pub/ecos/anoncvs/ecos-tools-bin-120425.cygwin.tar.bz2
参考HP
http://ecos.sourceware.org/ml/ecos-discuss/2012-04/msg00031.html

確認のため以下のようになっていればOK。
$ ecosconfig
Usage: ecosconfig [ qualifier ... ] [ command ]
commands are:
list : list repository contents
new TARGET [ TEMPLATE [ VERSION ] ] : create a configuration

・略

以上で環境作成は完了

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1