Article Title: Build the davinci platform for tftp development under Ubuntu8.04. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Install tftp and tftpd. The former is the client and the latter is the server. Because tftp requires inetd for control, and the ubuntu system does not install inetd by default, install it. (I failed for the first time because the correct inetd is not installed)
# Apt-get install tftp tftpd
# Apt-get install netkit-inetd
2. Create a tftpboot in the/directory and change the attribute to 777.
# Cd/
# Mkdir tftpboot
# Chmod 777 tftpboot
3. Modify/etc/inetd. conf
# Emacs/etc/inetd. conf
Tftp dgram udp wait nobody/usr/sbin/tcpd/usr/sbin/in. tftpd/tftpboot
#: INTERNAL: Internal services
# Echo stream tcp nowait root internal
# Echo dgram udp wait root internal
# Chargen stream tcp nowait root internal
# Chargen dgram udp wait root internal
# Discard stream tcp nowait root internal
# Discard dgram udp wait root internal
# Daytime stream tcp nowait root internal
# Daytime dgram udp wait root internal
# Time stream tcp nowait root internal
# Time dgram udp wait root internal
# Tftp dgram udp wait nobody/usr/sbin/tcpd/usr/sbin/in. tftpd/tftpboot
4. Reload the inetd process
#/Etc/init. d/inetd reload
5. test whether the tftpd service is successful
Tftp localhost
Tftp> put mydoc.tar.gz
Tftp> put test. log
Tftp> get test. log
Tftp> get mydoc.tar.gz
Tftp>
The above indicates that tftp is successfully tested on the host. On the DM6446 board, Log On As root and use the tftp client attached to busybox to upload/download files:
Root @ DVS6446:/tftp-r thttpd. conf-g 192.168.1.110
An error occurred, always time out! Find the cause, and finally it comes down to the firewall. The firewall is a good thing, but it often becomes a bad thing in a specific environment. After the firewall is disabled, tftp uploads/downloads files smoothly.