| 
 | 
手册P41 
        说明:以下讲解是在ubuntu 11.10上实际操作后编写的,对于其它版本的操作系统可能略有不同,仅供参考。 
        Step1、安装tftp-server、保持网络畅通,在root权限下,运行命令#yum install tftp、#yum install tftp-server  开始安装tftp-server,这个过程会自动安装xinetd。上面是使用Federa操作系统的;如果您使用的是Ubuntu,使用下面命令就可以了#sudo apt-get install tftpd tftp openbsd-inetd(如果您使用的是root用户登录的,则不需要sudo命令) 
        Step2、修改文件:修改文件/etc/inetd.conf,设置TFTP相关配置选项,修改后的文件内容如下(红色部分为修改的内容): 
# /etc/inetd.conf:  see inetd(8) for further informations. 
# 
# Internet superserver configuration database 
# 
# 
# Lines starting with "#:LABEL:" or "#<off>#" should not 
# be changed unless you know what you are doing! 
# 
# If you want to disable an entry so it isn't touched during 
# package updates just comment it out with a single '#' character. 
# 
# Packages should modify this file by using update-inetd(8) 
# 
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args> 
# 
#:INTERNAL: Internal services 
#discard                stream        tcp        nowait        root        internal 
#discard                dgram        udp        wait        root        internal 
#daytime                stream        tcp        nowait        root        internal 
#time                stream        tcp        nowait        root        internal 
 
#:STANDARD: These are standard services. 
 
#:BSD: Shell, login, exec and talk are BSD protocols. 
 
#:MAIL: Mail, news and uucp services. 
 
#:INFO: Info services 
 
#:BOOT: TFTP service is provided primarily for booting.  Most sites 
#       run this only on machines acting as "boot servers." 
tftp                dgram        udp        wait        nobody        /usr/sbin/tcpd        /usr/sbin/in.tftpd /tftpboot 
 
#:RPC: RPC based services 
 
#:HAM-RADIO: amateur-radio services 
 
#:OTHER: Other services 
 
        说明:上面红色部分就是TFTP存放文件的路径,即第三步中创建的tftp的路径。 
        Step3、创建tftp根目录,启动tftp-server。 
        输入如下命令: 
        #mkdir /tftpboot 
        #chmod 777 /tftpboot 
        #/etc/init.d/openbsd-inetd restart 
        这样,tftp-server就启动了,将要烧写的镜像移到tftpboot目录下。 
        Step4、进入minicom,开发板操作选择TFTP下载模式即可。 
        说明:使用TFTP烧写时一定要通过网线连接TQ210到PC(直接连接网线从TQ210到PC或者通过局域网连接TQ210和PC都行,但要求TQ210和PC一定要在同一个网段,即IP地址的前三段相同:xxx.xxx.xxx.???) |   
 
 
 
 |