Getting started with uClinux on adStar

Getting started with uClinux on adStar Getting started with uClinux on adStar

27.09.2015 Views

ong>Gettingong> ong>startedong> ong>withong> ong>uClinuxong> on adStar Ver 1.0 3. Kernel configuration & Compile adStar STK보드의 기본 설정파일을 가져와서 설정을 수정하도록 한다. 커널 소스의 최상위 디렉 토리에 adStar 설정파일인 adstar_defconfig파일을 .config파일로 복사한 후 make 명령을 사용하 여 컴파일한다. 만약 ncurses 라이브러리가 없을 경우 menuconfig명령시 에러가 발생할수 있으 니 백업해두었던 패키지저장소 목록을 복구한 후 업데이트하여 ncurses-dev 라이브러리를 설치 한다. ~$ cd /etc/apt /etc/apt$ sudo cp sources.list_bak sources.list /etc/apt$ sudo apt-get update /etc/apt$ sudo apt-get install ncurses-dev 다운받은 커널 소스파일의 압축을 해제하여 디렉토리로 이동한다. ~$ tar xvfz eisc_linux-2.6.29-uc0.tar.gz ~$ cd eisc_linux-2.6.29-uc0 adStar STK보드의 설정파일을 복사한 후 make menuconfig 명령으로 설정을 변경하도록 한다. 기본설정파일은 ‘arch/ae32k/config’디렉토리에 존재한다. ~/eisc_linux-2.6.29-uc0$ cp arch/ae32k/configs/adstar_defconfig .config ~/eisc_linux-2.6.29-uc0$ make menuconfig 별도의 수정없이 기본설정파일을 사용하려면 다음과 같이 oldconfig명령을 사용한다. ~/eisc_linux-2.6.29-uc0$ cp arch/ae32k/configs/adstar_defconfig .config ~/eisc_linux-2.6.29-uc0$ make oldconfig 3.1. SystemType 다음은 make menuconfig명령을 사용하였을 경우 각 메뉴에 대해 살펴보겠다. SystemType설정 은 다음과 같다. SystemType---> AE32K system type (adchips adStar) : 사용하고자 하는 시스템타입을 선택한다. adchips adStar가 체크되어 있는 지 확인한다. Advanced Digital Chips Inc. 8

ong>Gettingong> ong>startedong> ong>withong> ong>uClinuxong> on adStar Ver 1.0 [*] Set dram/ramdisk base address and size (0x20000000) DRAM Base Address : DRAM의 시작주소를 적어준다. (0x01000000) DRAM SIZE : DRAM의 크기를 적어준다. (0x20a00000) RAMDISK_BASE : DRAM에 적재되는 램디스크의 시작주소를 적어준다. (0x200000) RAMDISK_SIZE : DRAM에 적재되는 램디스크의 크기를 적어준다.퍄 Uncached DMA region (Enable 1M DMA region) : cache disable 영역의 크기를 설정한다. [*]Install vectors to begging of RAM : DRAM에 벡터테이블을 재설정한다. (0x2010F000)Location of the interrupt vector table : DRAM주소 일 경우 커널이미지의 vectors섹션주소로 설정되므로 기본값 으로 둔다. 3.2. Kernel Features Kernel Features설정은 다음과 같다. Kernel Features---> ong>uClinuxong> kernel load address(0x20000000) : 커널이 실행될 주소를 적어준다. EISC uClniux kernel은 DRAM의 시작주소 에 커널이 적재되어 실행되므로 RAM의 시작주소와 같다. 3.3. Boot Options Boot options설정은 다음과 같다. Boot options---> Default kernel command string (rootfstype=ext2 root=/dev/ram0 console=ttyS0,115200) :커널부팅시 사용될 command_string을 이곳에 적어둔다. 위와 같이 설정되면 커널 부팅 메세지와 콘솔 메세지가 출력된다.. 3.4. Device Driver 3.4.1. Serial Drvier Serial관련 설정은 다음과 같다. Advanced Digital Chips Inc. 9

<str<strong>on</strong>g>Getting</str<strong>on</strong>g> <str<strong>on</strong>g>started</str<strong>on</strong>g> <str<strong>on</strong>g>with</str<strong>on</strong>g> <str<strong>on</strong>g>uClinux</str<strong>on</strong>g> <strong>on</strong> <strong>adStar</strong> Ver 1.0<br />

3. Kernel c<strong>on</strong>figurati<strong>on</strong> & Compile<br />

<strong>adStar</strong> STK보드의 기본 설정파일을 가져와서 설정을 수정하도록 한다. 커널 소스의 최상위 디렉<br />

토리에 <strong>adStar</strong> 설정파일인 adstar_defc<strong>on</strong>fig파일을 .c<strong>on</strong>fig파일로 복사한 후 make 명령을 사용하<br />

여 컴파일한다. 만약 ncurses 라이브러리가 없을 경우 menuc<strong>on</strong>fig명령시 에러가 발생할수 있으<br />

니 백업해두었던 패키지저장소 목록을 복구한 후 업데이트하여 ncurses-dev 라이브러리를 설치<br />

한다.<br />

~$ cd /etc/apt<br />

/etc/apt$ sudo cp sources.list_bak sources.list<br />

/etc/apt$ sudo apt-get update<br />

/etc/apt$ sudo apt-get install ncurses-dev<br />

다운받은 커널 소스파일의 압축을 해제하여 디렉토리로 이동한다.<br />

~$ tar xvfz eisc_linux-2.6.29-uc0.tar.gz<br />

~$ cd eisc_linux-2.6.29-uc0<br />

<strong>adStar</strong> STK보드의 설정파일을 복사한 후 make menuc<strong>on</strong>fig 명령으로 설정을 변경하도록 한다.<br />

기본설정파일은 ‘arch/ae32k/c<strong>on</strong>fig’디렉토리에 존재한다.<br />

~/eisc_linux-2.6.29-uc0$ cp arch/ae32k/c<strong>on</strong>figs/adstar_defc<strong>on</strong>fig .c<strong>on</strong>fig<br />

~/eisc_linux-2.6.29-uc0$ make menuc<strong>on</strong>fig<br />

별도의 수정없이 기본설정파일을 사용하려면 다음과 같이 oldc<strong>on</strong>fig명령을 사용한다.<br />

~/eisc_linux-2.6.29-uc0$ cp arch/ae32k/c<strong>on</strong>figs/adstar_defc<strong>on</strong>fig .c<strong>on</strong>fig<br />

~/eisc_linux-2.6.29-uc0$ make oldc<strong>on</strong>fig<br />

3.1. SystemType<br />

다음은 make menuc<strong>on</strong>fig명령을 사용하였을 경우 각 메뉴에 대해 살펴보겠다. SystemType설정<br />

은 다음과 같다.<br />

SystemType---><br />

AE32K system type (adchips <strong>adStar</strong>)<br />

: 사용하고자 하는 시스템타입을 선택한다. adchips <strong>adStar</strong>가 체크되어 있는<br />

지<br />

확인한다.<br />

Advanced Digital Chips Inc. 8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!