fc9上的tftp
时间:2009-08-19 来源:john8714105
fc9上的tftp
开发板的uboot支持tftp,这种方式传输速度快,是被广泛推荐的code烧录方式,在fc9开启tftp服务:
步骤:
1:
先安装xinetd 服务: yum install xinetd
安装tftp ,tftp-sever: yum install tftp tftp-sever
2:
配置tftp配置文件 /etc/xinetd.d/tftp
vim /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
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /hd/tftpboot -c
per_source = 11
cps = 100 2
flags = IPv4
}
红色部分定义tftp服务器文件存放路径,-c表示可以允许上传。
关于selinux和防火墙等参考《 虚拟机上安装Fc9》
3:
测试tftp,在/hd/tftpboot下新建一个文件demofile
[root@localhost hd]# tftp xx.xx.xx.xx(tftp服务器ip)
tftp> get demofile
tftp> quit
[root@localhost hd]# ls demofile -l
-rw-r--r-- 1 root root 0 2009-08-19 09:53 demofile
[root@localhost hd]#
开发板的uboot支持tftp,这种方式传输速度快,是被广泛推荐的code烧录方式,在fc9开启tftp服务:
步骤:
1:
先安装xinetd 服务: yum install xinetd
安装tftp ,tftp-sever: yum install tftp tftp-sever
2:
配置tftp配置文件 /etc/xinetd.d/tftp
vim /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
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /hd/tftpboot -c
per_source = 11
cps = 100 2
flags = IPv4
}
红色部分定义tftp服务器文件存放路径,-c表示可以允许上传。
关于selinux和防火墙等参考《 虚拟机上安装Fc9》
3:
测试tftp,在/hd/tftpboot下新建一个文件demofile
[root@localhost hd]# tftp xx.xx.xx.xx(tftp服务器ip)
tftp> get demofile
tftp> quit
[root@localhost hd]# ls demofile -l
-rw-r--r-- 1 root root 0 2009-08-19 09:53 demofile
[root@localhost hd]#
相关阅读 更多 +
排行榜 更多 +