본문 바로가기

임베디드

크로스 컴파일 환경 구축(1)

 

VMWAIRE + Linux OS 기준

타겟 디바이스는 MV6410

VMware 설정시에

머신 세팅에서

Network Adapter - NAT

Network Adapter  - Bridged (물리적 연결경우 체크 해제)

Serial Port 2 - Using port COM3

보드경우 2번째 네트워크 랜포트로 연결

시리얼통신 포트 연결.

 

Minicom의 역할.

- 임베디드 타겟 보드에 가상 터미널 기능

- 리눅스 상의 텍스트 기반에서 타겟 보드에 대한 명령과 작동 결과를 모니터링

- minicom 패키지 설치 : http://www.rpmfind.net/linux/RPM 에서 다운로드 

############ MINICOM 설치 ###############

# apt-get install minicom (설치)

# minicom -s (실행)

->Serial port Setup 선택

F부분의 하드웨어 플로우 컨트롤을 no 로 바꾼다.

포트가 ttyS0 ttyS1 식으로 감. 현재는 ttyS1 로 잡힘

0부터 포트번호가 시작된다고 함.

#######################################

######## LINUX SERVER IP 설정 ############

ifconfig eth0 192.168.0.177 netmask 255.255.255.0 up

#######################################

### 이미지를 타겟보드에 올리기위한 작업 ######

######### tftp 설치 #######################

# apt-get install xinetd tftpd tftp (설치)

# vi /etc/xinetd.d/tftp (파일 생성)

-- tftp 파일 내용 ---

service tftp

{

socket_type = dgram

protocol = udp

wait = yes

user = root

server = /usr/sbin/in.tftpd

server_args = -s /tftpboot

disable = no

per_source = 11

cps = 100 2

flags = IPv4

}

# mkdir /tftpboot (전용 폴더 생성)

# chmod 777 -R tftpboot/ (폴더권한 설정)

# /etc/init.d/xinetd restart (서비스 시작)

(또는 service xinetd restart)

########################################

##### 타겟보드와 리눅스 서버간의 폴더 공유하여#

자료를 자유롭게 복사 수정 할 수 있음 ##########

############ NFS 설치 ###################

# apt-get install yum (YUM 설치)

# yum install nfs (NFS 설치)

#vi /etc/exports

/home/nfstest *(rw,no_root_squash,sync) 라고 씀

# service nfs restart (재시작)

# mkdir -p /mnt/nfs

# mount -t nfs localhost:/home/nfstest/mnt/nfs

# df -k

#unmount /mnt/nfs

######## NFS 설정 ########################

#mkdir nfs

#chmod 777 nfs

#chown nobody nfs

#cd etc

#vi exports

/nfs (ㅡ 탭 ㅡ) 192.168.0.*(rw,sync,no_root_squash) 라고 쓴다.

#/etc/rc.d/init.d/nfs restart

 

'임베디드' 카테고리의 다른 글

크로스 컴파일 환경 구축 (2)  (0) 2012.03.28