buf

BE something YOU love and understand
posts - 94, comments - 35, trackbacks - 0, articles - 2
   :: 首页 :: 新随笔 :: 联系 ::  :: 管理

tftpd on Debian etch

Posted on 2008-12-29 21:43 buf 阅读(800) 评论(0)  编辑 收藏 引用 所属分类: Embedded

为了方便向目标板下载程序和数据,在开发主机(debian etch)上安装了tftp server

1) 安装tftpd,为了进行本机测试,这里同时安装了客户端tftp
$ sudo apt-get install tftpd tftp

2) 检查tftpd设置
$ cat /etc/inetd.conf | grep tftp
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
以上输出的最后一个字段指定了tftp server的主目录,如果此目录不存在,应手工建立(当然,也可以修改为其它目录,如/tftpboot):
$ sudo mkdir -p /srv/tftp
$ sudo chmod -R 777 /srv/tftp


3) 重启inetd服务并测试tftpd
$ sudo /etc/init.d/openbsd-inetd restart
$ tftp 127.0.0.1

只有注册用户登录后才能发表评论。