270 likes | 542 Vues
eCos ( Twothread Compile). 한규종 (karjensia@gmail.com). Step1 - (Host OS : Windows7). VirtualBox Install. Step2 - ( VirtualBox ). Ubuntu 11.04 Install. Step3. Ubuntu Update. Step4 - Terminal .
E N D
eCos (Twothread Compile) 한규종 (karjensia@gmail.com)
Step1 - (Host OS : Windows7) • VirtualBox Install
Step2 - (VirtualBox) • Ubuntu 11.04 Install
Step3 • Ubuntu Update
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
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
Step5.2 Site Choice
Step5.3 Enter 환경 Choice Enter
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
Step7.2 - eCos setting Templates 선택
Step7.1 eCos setting i386 PC target with RTL8139 ethernet선택
Step7 eCos setting Choice Choice Choice
Step7.3 - eCos setting GRUB 선택 2 입력 file 선택 -> save -> exit
Step7.4 - eCos setting • #ecosconfig check • #ecosconfig tree • #make
Step8 - eCos Example Make • #cd /opt/ecos/ecos-3.0/examples • #vi MakefileINSTALL_DIR=/work/lib/install:wq step8.1 • #make all
Step9 - Virtual Hdd Image 생성 Choice Choice Choice Choice
Step9.1 - Virtual Hdd Image 생성 Virtual hdd image 생성 후 Ubuntu 실행
Step10 - fdisk설정 • #fdisk -l 가상디스크가 생성되었는지 확인 /dev/sdb 위치 확인
Step10.1 - fdisk설정 • #fdisk /dev/sdb n 입력 p입력 1 입력 Enter Enter a 입력 w 입력 1 입력
Step10.2 - fdisk설정 • #mke2fs /dev/sdb1
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
Step11.1 - mount & grub 설정 • #cp /opt/ecos/ecos-3.0/examples/twothreads /mnt/ecoshdd/boot/bootimg • #grub-install --root-directory=/mnt/ecoshdd /dev/sdb