Embedded Linux
위치로그  |  태그  |  Diary  |  RF  |  Love  |  안부게시판

tftp 에 해당하는 글2 개    [목록보기▼]

개발환경 구축 - TFTP 서버 셋팅
     HBE-XM-Belverde | 2009/03/19 19:28

2009/03/19 19:28 2009/03/19 19:28
http://embedded.kr/entry/xinetd-설치하기 참고
http://embedded.kr/entry/Tftp-설정 참고

[root@localhost ~]$ mount /dev/cdrom /mnt/cdrom
[root@localhost ~]$ rpm -Uvh /mnt/cdrom/tools/tftp-server/tftp-server-0.29.3.i386.rpm
[root@localhost ~]$ rpm -qa | grep tftp
tftp-server-0.29-3
[root@localhost ~]$ mkdir /tftpboot
[root@localhost ~]$ vi /etc/xinetd.d/tftp
[root@localhost ~]$ service xinetd restart
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
       socket_type             = dgram
       protocol                = udp
       wait                    = yes
       user                    = root
       server                  = /usr/sbin/in.tftpd
       server_args             = -s /tftpboot
       disable                 = no
       flags                    = IPv4
}

xinetd 서버가 설치 되어 있고 tftp-server가 없다고 가정 했을 때 설치하는 방법이다. 타겟보드에서 Host PC 의 서버의 파일을 tftp을 이용하여 다운 받을 때 /tftpboot  디렉토리에 파일이 있어야만 한다.
이올린에 북마크하기(0) 이올린에 추천하기(0)

태그 : , ,
트랙백0 | 댓글쓰기0
Trackback address : http://embedded.kr/trackback/33
[로그인][오픈아이디란?]
아이디 : 비밀번호 :
내용 :
비밀글로 등록

Tftp 설정
     X-Hyper255A | 2006/08/10 16:20

2006/08/10 16:20 2006/08/10 16:20
Tftp 란?
  • Tftp(Trivial File Transfer Protocaol)은 ftp와같은 파일 전송 프로토콜이다.
  • 하위 프로토콜로 ip, udp 프로토콜을 사용한다
  • 개발보드에서는 Bootloader에서 kernel과 파일시스템 Image를 Host에서 Target으로 이더넷을 통하여 고속으로 다운로드 하기 위해 사용한다.

Tftp 설치
CD로부터 복사 하여 사용하므로 /home/embed/xhyper/RPM 폴더에 있다. tftp프로그램은 bootp와 마찬가지로 xinetd에 의해 실행된다. xinetd에 의해 tftp가 실행되게 하기 위해 /etc/xinetd.d/tftp 파일을 수정 해 줘야 한다. RPM을 설치 해야 하므로 root권한으로 접근하자
#su -l
Password :
#cd /home/embed/xhyper/RPM
#rpm -i tftp-server-0.17-9.i386.rpm
#rpm -qa | grep tftp
tftp-server-0.17-9
#mkdir /home/embed/tftpboot
#chown embed:embed /home/embed/tftpboot
#vi /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
       socket_type             = dgram
       protocol                = udp
       wait                    = yes
       user                    = root
       server                  = /usr/sbin/in.tftpd
       server_args             = -s /home/embed/tftpboot
       disable                 = no
}

server-args를 /home/embed/tftpboot 로 설정 하였기 때문에 Bootloader에서 파일을 받을려면 Host PC의 /home/embed/tftpboot 폴더에 파일이 위치 해 있어야 한다. tftp로 다운로드 하고자 하는 kernel 과 파일시스템 Image는 이곳에 있어야 한다.

tftp 이용
먼저 minicom이 설치 되어 있어야 한다. 다음으로 확인 해야 할 것은 netstat -au 명령으로 bootp 와 tftp가 실행되어 있는지 살펴보자.
Target Board 의 전원을 켜자. Bootloader 상태에서 bootp 명령어를 사용하여 Host PC로부터 Target Board의 ip를 얻어오자. 이제 tftp를 사용하여 파일을 Target Board에 다운로드 할 수 있다.
tftp zImage kernel 이란 명령어로 kernel 이미지를 kernel 영역에 다운로드 할 수 잇다. 그전에 Host PC의 /home/embed/tftpboot 에 커널 이미지가 있어야 한다.

이올린에 북마크하기(0) 이올린에 추천하기(0)

태그 : ,
트랙백0 | 댓글쓰기0
Trackback address : http://embedded.kr/trackback/12
[로그인][오픈아이디란?]
아이디 : 비밀번호 :
내용 :
비밀글로 등록

[PREV] [1] [NEXT]

BLOG main image
Notice
전체 (26)
Linux (15)
X-Hyper255A (7)
HBE-XM-Belverde (4)
개발환경 구축 - TFTP 서버 셋팅
개발환경 구축 - JTAG
개발환경 구축 - Cross compi...
임베디드 시스템 개발 환경 설정
아이디와 비밀번호 한꺼번에...
GRUB 서버설정 임베디드 Toolchain 우분투 find Fedora xinted Ubuntu root 개발환경 구축 비밀번호 리눅스 명령어 wget sshd 설치 tftp Rewrite JTAG kernel minicom 실험 Ubuntu server 안녕리눅스 VMware bootp PXE Netboot
좋은 정보 감사합니다. 출처...
2009 - firenux
Total : 73632
Today : 12
Yesterday : 47
태터툴즈 배너
rss
 
 
 
위치로그 : 태그 : 방명록 : 관리자
고을@’s Blog is powered by Tattertools.com