Presentation is loading. Please wait.

Presentation is loading. Please wait.

ECos (Twothread Compile) 한규종

Similar presentations


Presentation on theme: "ECos (Twothread Compile) 한규종"— Presentation transcript:

1 eCos (Twothread Compile) 한규종 (karjensia@gmail.com)

2 Step1 - (Host OS : Windows7) VirtualBox Install

3 Step2 - (VirtualBox) Ubuntu 11.04 Install

4 Step3 Ubuntu Update

5 Step4 - Terminal #apt-get install bcc, 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, libpam0g-dev, libcurl4-openssl-dev, libxrandr-dev, libxinerama-dev, makeself, tk texlive-latex-base, grub

6 Step5 eCos Download & Install #wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-install.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

7 Step5.1

8 Step5.2 Site Choice

9 Step5.3 Enter 환경 Choice Enter

10 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

11 Step6.1

12 Step7.2 - eCos setting Templates 선택

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

14 Step7 eCos setting Choice

15 Step7.3 - eCos setting GRUB 선 택 2 입력 file 선택 -> save -> exit

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

17 Step8 - eCos Example Make #cd /opt/ecos/ecos-3.0/examples #vi Makefile INSTALL_DIR=/work/lib/install :wq  step8.1 #make all

18 Step8.1 - eCos Example Make 편집

19 Step9 - Virtual Hdd Image 생성 Choice

20 Step9.1 - Virtual Hdd Image 생성 Virtual hdd image 생성 후 Ubuntu 실행

21 Step10 - fdisk 설정 #fdisk -l 가상디스크가 생성되었는지 확인 /dev/sdb 위치 확인

22 Step10.1 - fdisk 설정 #fdisk /dev/sdb n 입력 p 입력 1 입력 Enter a 입력 w 입력 1 입력

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

24 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=0 timeout=5 hiddenmenu title eCos-hello kernel(hd0,0)/boot/bootimg (fd0) /dev/fd0 (hd0) /dev/sda (hd1) /dev/sdb

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

26 Step12 Virtual ecos hdd 실행

27


Download ppt "ECos (Twothread Compile) 한규종"

Similar presentations


Ads by Google