Build the davinci platform for tftp development under Ubuntu8.04

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.