ecos ( twothread compile)

27
eCos (Twothread Compile) 한한한 ([email protected])

Upload: moana

Post on 19-Feb-2016

74 views

Category:

Documents


0 download

DESCRIPTION

eCos ( Twothread Compile). 한규종 ([email protected]). Step1 - (Host OS : Windows7). VirtualBox Install. Step2 - ( VirtualBox ). Ubuntu 11.04 Install. Step3. Ubuntu Update. Step4 - Terminal . - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: eCos  ( Twothread  Compile)

eCos (Twothread Compile)

한규종 ([email protected])

Page 2: eCos  ( Twothread  Compile)

Step1 - (Host OS : Windows7)

• VirtualBox Install

Page 3: eCos  ( Twothread  Compile)

Step2 - (VirtualBox)

• Ubuntu 11.04 Install

Page 4: eCos  ( Twothread  Compile)

Step3

• Ubuntu Update

Page 5: eCos  ( Twothread  Compile)

Step4 - Terminal

• #apt-get installbcc, iasl, uuid-dev, zlib1g-dev, libidl-dev,libsdl1.2-dev, libxcursor-dev, libstdc++5,libhal-dev, libxml2-dev, libxslt1-dev, python-dev, libqt4-dev, qt4-dev-tools, libcap-dev, libxmu-dev, lib-pam0g-dev,libcurl4-openssl-dev, libxrandr-dev,libxinerama-dev, makeself, tktexlive-latex-base, grub

Page 6: eCos  ( Twothread  Compile)

Step5

• eCos Download & Install#wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-in-stall.tcl step5.1

#sh ecos-install.tcl Please select a distribution site : 목록 중 접근할 사이트 선택 step5.2

Please select a directory for installation : Enter( 디폴트 /opt/ecos) Please select GNU tools to download and install : 타겟환경 선택 step5.3

Page 7: eCos  ( Twothread  Compile)

Step5.1

Page 8: eCos  ( Twothread  Compile)

Step5.2

Site Choice

Page 9: eCos  ( Twothread  Compile)

Step5.3

En-ter

환경 Choice

En-ter

Page 10: eCos  ( Twothread  Compile)

Step6

• eCos 환경 변수 설정 & eCos 실행• #cat /opt/ecos/ecosenv.sh >> ~/.profile• #mkdir -p /work/lib• #cd /work/lib• #source /opt/ecos/ecosenv.sh• #ecosconfig new pc• #configtool ecos.ecc

step6.1

Page 11: eCos  ( Twothread  Compile)

Step6.1

Page 12: eCos  ( Twothread  Compile)

Step7.2 - eCos setting Templates 선택

Page 13: eCos  ( Twothread  Compile)

Step7.1 eCos setting i386 PC target with RTL8139 ethernet 선택

Page 14: eCos  ( Twothread  Compile)

Step7 eCos setting Choic

e

Choice

Choice

Page 15: eCos  ( Twothread  Compile)

Step7.3 - eCos setting

GRUB 선택2 입력

file 선택-> save-> exit

Page 16: eCos  ( Twothread  Compile)

Step7.4 - eCos setting • #ecosconfig check• #ecosconfig tree• #make

Page 17: eCos  ( Twothread  Compile)

Step8 - eCos Example Make • #cd /opt/ecos/ecos-3.0/examples• #vi Makefile

INSTALL_DIR=/work/lib/install

:wq

step8.1• #make all

Page 18: eCos  ( Twothread  Compile)

Step8.1 - eCos Example Make

편집

Page 19: eCos  ( Twothread  Compile)

Step9 - Virtual Hdd Image 생성 Choic

eChoic

eChoic

eChoice

Page 20: eCos  ( Twothread  Compile)

Step9.1 - Virtual Hdd Image 생성

Virtual hdd image 생성 후 Ubuntu 실행

Page 21: eCos  ( Twothread  Compile)

Step10 - fdisk 설정• #fdisk -l

가상디스크가 생성되었는지확인/dev/sdb위치 확인

Page 22: eCos  ( Twothread  Compile)

Step10.1 - fdisk 설정 • #fdisk /dev/sdb

n 입력p 입력1 입력Enter

Enter

a 입력w 입력1 입력

Page 23: eCos  ( Twothread  Compile)

Step10.2 - fdisk 설정 • #mke2fs /dev/sdb1

Page 24: eCos  ( Twothread  Compile)

Step11 - mount & grub 설정 • #mkdir /mnt/ecoshdd• #mount -t ext2 /dev/sdb1 /mnt/ecoshdd• #mkdir -p /mnt/ecoshdd/boot/grub• #cp /usr/lib/grub/i386-pc/*stage* /mnt/ecoshdd/boot/grub• #vi /mnt/ecoshdd/boot/grub/menu.lst

• #vi /mnt/ecoshdd/boot/grub/device.map

default=0timeout=5hiddenmenu

title eCos-hellokernel (hd0,0)/boot/bootimg

(fd0) /dev/fd0(hd0) /dev/sda(hd1) /dev/sdb

Page 25: eCos  ( Twothread  Compile)

Step11.1 - mount & grub 설정 • #cp /opt/ecos/ecos-3.0/examples/twothreads /mnt/ecoshdd/boot/bootimg• #grub-install --root-directory=/mnt/ecoshdd /dev/sdb

Page 26: eCos  ( Twothread  Compile)

Step12 Virtual ecos hdd 실행

Page 27: eCos  ( Twothread  Compile)

Step12 Virtual ecos hdd 실행