프로젝트

[감시 카메라] Obscura :: [SMDK 2440] Chapter 3 . 환경 설정

appHunter 2009. 5. 6. 21:37
글을 다 날려서 다시 적는다. !!  (2009-05-06에 날림)

원활한 타켓 보드 ( SMDK 2440 ) 설정을 위해 환경 설정을 한다.

1. dhcpd 설정

root> vi /etc/dhcp.conf

subnet 210.110.152.0 netmask 255.255.255.0 {
host homeserver {
  hardware ethernet 08:00:3e:26:0a:5b
  fixed-address 210.110.152.115
}
}

subnet <서브넷 주소> netmask 255.255.255.0 {
host homeserver {
  hardware ethernet <이더넷 MAC 주소. 보드 부팅시 나옴 >
  fixed-address <보드 IP  주소 >
}
}



2. TFTP Server 설정
TFTP ( Trivial File Transfer Protocol) 는 이더넷을 통해서 파일을 전송하는 프로토콜.
UDP 방식을 사용.

TFTP 설정.

root> cd /etc/xinetd.d/
root> vi tftp

disable = no  로 설정해주면  tftp가 구동 된다.


xinetd 데몬 재구동
다음과 같이 재가동 해주어야 서비스를 시작할 수 있다.

root> cd /etc/rc.d/init.d/
root> ./xinetd stop
root> ./xinetd start

데몬 확인

root> netstat -al | grep tftp




3. 호스트 컴퓨터 ip설정
호스트 컴퓨터 ( 리눅스 데스크탑 PC ) 네트워크 설정

root> netconfig


4. NFS 데몬 설정
Network File System의 약어
네트워크상에서 파일시스템을 공유하도록 설계된 파일시스템의 한 종류.
다른 호스트에 있는 파일시스템의 일부를 자신의 디렉토리인것처럼 사용할 수 있도록 해주는 것.

이지보드에서 실행하고자 하는 실행 파일을 램디스크에 포함한 후 그것을 다시 이지보드의 플래쉬 메모리에 저장해야 하는데, 많은 시간이 소비 된다.

이지보드와 리눅스 PC를 NFS를 사용하여 편리하게 개발 할 수 있게 환경을 설정한다

NFS 환경 설정
  리눅스 PC의 /nfs 디렉토리를 NFS  로 설정한다.

root> cd /
root> mkdir nfs
root> chmod 777 nfs
root> chown nobody nfs
root> chgrp nobody nfs

root> cd /etc
root> vi exports

/home/nfsroot 210.110.152.115(rw,no_root_squash)
/<타켓보드 폴더> <타켓보드주소> 
적을 때 한칸 잘못 띄워도 안됨 -_-;

NFS 데몬 수행
서비스를 재시작

root> /etc/rc.d/init.d/nfs stop
root> /etc/rc.d/init.d/nfs start


5. minicom 설정

root> minicom -s



6. 타켓보드 IP 주소 설정

minicom 으로 접속 후 nfs 를 사용하기 위해 다음과 같이 IP를 설정해 준다.

a. 설정을 확인한다.
SMDK2440 # printenv


b. 설정을 변경한다.
SMDK2440 # setenv ipaddr xxx.xxx.xxx.xxx     ( 타켓 보드 )
SMDK2440 # setenv severip xxx.xxx.xxx.xxx    ( Host  PC )
SMDK2440 # setenv netmask 255.255.255.0
SMDK2440 # setenv gatewayip xxx.xxx.xxx.1


c. 설정을 저장한다.
SMDK2440 # saveen


012