1 / 27

eCos ( Twothread Compile)

eCos ( Twothread Compile). 한규종 (karjensia@gmail.com). Step1 - (Host OS : Windows7). VirtualBox Install. Step2 - ( VirtualBox ). Ubuntu 11.04 Install. Step3. Ubuntu Update. Step4 - Terminal .

moana
Download Presentation

eCos ( Twothread Compile)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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 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, libpam0g-dev,libcurl4-openssl-dev, libxrandr-dev,libxinerama-dev, makeself, tktexlive-latex-base, grub

  6. Step5 • eCos Download & Install#wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl step5.1#shecos-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 • #configtoolecos.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 Choice 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 MakefileINSTALL_DIR=/work/lib/install:wq step8.1 • #make all

  18. Step8.1 - eCos Example Make 편집

  19. Step9 - Virtual Hdd Image 생성 Choice Choice Choice 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 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 ecoshdd실행

  27. Step12 Virtual ecoshdd실행

More Related