Fedora12 || 임베디드 작업 (HBE-SM 보드)

gcc 설치

$ yum install gcc

patch 설치

$ yum install patch

tftp 설정

tftp 설치

$ yum install tftp-server

/etc/xinetd.d/tftp 수정

$ vi /etc/xinetd.d/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
}

tftpboot 디렉토리 생성

$ mkdir /tftpboot
$ chmod 777 tftpboot

방화벽 해제

$ vim /etc/selinux/config

nfs 설정

nfs 설치 확인

$ rpm -qa | grep nfs

nfs_resource 디렉토리 생성

$ mkdir /nfs_resource

/etc/exports 설정

/nfs_resource 192.168.0.101(rw,sync,no_root_squash)

서비스 재시작

$ service rpcbind restart
$ service nfs restart
$ iptables -F

mount

Host PC
$ ifconfig eth0 192.168.0.100 up

Target board

# ifconfig eth0 192.168.0.101 up
# mount -t nfs 192.168.0.100:/nfs_resource /mnt/nfs

Leave a Reply