Centos上搭建能用于ok6410开发板的tftp服务器

发布者:心灵舞动最新更新时间:2024-11-06 来源: cnblogs关键字:Centos  ok6410  tftp服务器 手机看文章 扫描二维码
随时随地手机看文章

用rpm -qa | grep tftp 检查是否安装tftp服务器

如果没有。tftp:yum install tftp*(yum install xinetd tftp tftp-server)

Tftp的配置文件在  vi  /etc/xinetd.d/tftp

修改tftpboot 的属性 chmod  777 -R  tftpboot

修改下载路径;

重启:/etc/init.d/xinetd restart

检查tftp是否启动成功:netstat  -a |  grep  tftp


在光盘上安装tftp服务器:

在centos的安装光盘中有RPM安装包,挂在光盘后进入到文件夹,找到相应的安装包。
]# cd /media/
[root@localhost media]# cd centos5-4 i386 DVD/
[root@localhost RHEL_5.1 i386 DVD]# ls
[root@localhost RHEL_5.1 i386 DVD]# cd Centos/
[root@localhost Server]# ls tftp*
tftp-0.42-3.1.i386.rpm tftp-server-0.42-3.1.i386.rpm
执行安装命令
[root@localhost Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
xinetd is needed by tftp-server-0.42-3.1.i386
提示需要安装xinetd,找到安装包并安装
[root@localhost Server]# ls xinet*
xinetd-2.3.14-10.el5.i386.rpm
[root@localhost Server]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm
warning: xinetd-2.3.14-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:xinetd ########################################### [100%]
再执行安装TFTP命令
[root@localhost Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:tftp-server ########################################### [100%]
建立tftp的主工作目录
[root@localhost Server]# mkdir /tftpboot
修改配置文件
[root@localhost Server]# 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 /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
重启服务
[root@localhost Server]# /etc/init.d/xinetd restart
Stopping xinetd: [FAILED]
Starting xinetd: [ OK ]
查看是否启动
[root@localhost Server]# netstat -a |grep tftp
udp 0 0 *:tftp 


关键字:Centos  ok6410  tftp服务器 引用地址:Centos上搭建能用于ok6410开发板的tftp服务器

上一篇:基于ok6410的韦东山驱动视频简要分析--lcd驱动
下一篇:Centos 上搭建nfs且可挂载到6410开发板

推荐阅读最新更新时间:2026-03-25 13:30

如果使用4412开发板那么怎么搭建和测试TFTP服务器
这一章先讲解如何通过 TFTP 来实现在线传输文件,先在虚拟机 Ubuntu 上搭建一个服务器,并在虚拟机 Ubuntu 上做客户端进行测试。 TFTP(Trivial File Transfer Protocol,简单文件传输协议),是一个基于 UDP 协议实现的用于在客户机和服务器之间进行简单文件传输的协议,适合于开销不大、不复杂的应用场合。TFTP 协议专门为小文件传输而设计,只能从服务器上获取文件,或者向服务器写入文件,不能列出目录,也不能进行认证。 本章配套视频为:“视频 08TFTP 服务器搭建和测试” Linux 网络部分的学习方法 这里并不会费劲的去介绍 TFTP 协议,那个意义不大,主要是教大家如何操作,在这个
[单片机]
如果使用4412开发板那么怎么搭建和测试<font color='red'>TFTP</font><font color='red'>服务器</font>
[国嵌笔记][010][TFTP与NFS服务器配置]
交叉开发 嵌入式软件产生的平台称为宿主机,运行嵌入式软件的平台称为目标机 宿主机一般通过串口、网络、USB、JTAG等方式将软件下载到目标机 网络下载 一般有TFTP和NFS两种方式 tftp服务器 1.安装tftp服务器   rpm -ivh /mnt/Packages/xinetd-.rpm   rmp -ivh /mnt/Packages/tftp-server-.rpm 2.配置tftp服务器   vim /etc/xinetd.d/tftp   server_args = -s /home/tftp tftp服务器的主目录   disable = no 不使能tftp服务器选项 3.重启tftp服务
[单片机]
ok6410的mplayer移植
安装包:MPlayer-1.0rc2.tar.bz2 交叉编译器:arm-linux-gcc-4.5.1 解压MPlayer-1.0rc2.tar.bz2 : tar –xjvf MPlayer-1.0rc2.tar.bz2 进入解压文件 MPlayer-1.0rc2 进行configure 配置 ./configure --host-cc=gcc --cc=arm-linux-gcc --target=arm-linux --enable-static--disable-win32dll --disable-dvdread--disable-dvdread-internal--disable-dvdnav --disable
[单片机]
基于ok6410的韦东山驱动视频简要分析--lcd驱动
#include linux/module.h #include linux/kernel.h #include linux/errno.h #include linux/string.h #include linux/mm.h #include linux/slab.h #include linux/vmalloc.h #include linux/delay.h #include linux/interrupt.h #include asm/uaccess.h #include linux/fb.h #include linux/init.h #include linux/clk.h #include
[单片机]
基于ok6410的韦东山驱动视频简要分析--ts驱动
一、写ts驱动步骤(新手稍微看下即可,内容有点搞) 1、复制头文件; 2、写入口函数跟出口函数 3、分配一个input_dev结构体, 在头文件下插入:static struct input_dev *ts_dev; 在init中分配:ts_dev = input_allocate_device(); 4、注册:在init中注册:input_register_device(ts_dev); 5、设置: 1、能产生哪类事件: set_bit(EV_KEY, ts_dev- evbit);按键类事件 set_bit(EV_ABS, ts_dev- evbit);触摸屏事件 2、能产生这类事件
[单片机]
基于ok6410的韦东山驱动视频简要分析--USB驱动
注意:本篇讲的鼠标驱动仅能实现鼠标左右键跟滑轮这三个按键类似button的功能,按下左键则打出 l ,右键打出“s”,滑轮打出“enter”。如果要实现正常的鼠标驱动,参考内核的鼠标驱动,修改input的一些参数即可。 一、写驱动的步骤(新手稍微看下即可,内容有点搞) 1、复制头文件; 2、写入口函数,出口函数,再加上协议; 3、分配注册usb_driver结构体(拷别人的), static struct usb_driver usb_mk_driver = {}; 在init中注册该结构体:usb_register(&usb_mk_driver); 在exit中注销该结构体:usb_deregi
[单片机]
OK6410按键驱动程序(改)亲测可以运行
#include linux/kernel.h #include linux/module.h #include linux/init.h #include linux/fs.h #include linux/gpio.h #include linux/types.h #include linux/cdev.h #include linux/interrupt.h #include linux/sched.h #include linux/device.h #include linux/poll.h #include linux/semaphore.h #include linux/
[单片机]
基于Ok6410开发板u-boot的移植
前提环境:Win7+VirsualBox+ok6410+u-boot-2010.03 一,下载u-boot-2010.03源码 ftp://ftp.denx.de/pub/u-boot 解压,我这里为了避免麻烦,更改了所有文件的权限 tar jxvf u-boot-2010.03.tar.bz2 sudo chmod -R 777 u-boot-2010.03/* 二,修改源码 为了方便修改,查找代码,你看到u-boot下包含了支持众多CPU和不同架构的代码,这里我根据Ok6410开发板的自身情况,将u-boot下代码进行精简: 1,进入u-boot-2010.03/board,把除samsu
[单片机]
小广播
最新单片机文章
何立民专栏 单片机及嵌入式宝典

北京航空航天大学教授,20余年来致力于单片机与嵌入式系统推广工作。

厂商技术中心

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

电子工程世界版权所有 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved