Ubuntu to build a tftp server and use tftp on the OK6410 Development Board [VMware + Ubuntu]

Source: Internet
Author: User
This is a description of how to establish a tftp connection between the Development Board and the virtual machine for OK6410 Based on the Valiantwinds hero. 1. Set up a tftp server (1) $ sudoapt-getinstalltftpdtftpopenbsd-inetd (2) $ sudogedit/etc/inetd. conf finds the following position in the configuration file: #: BOOT: TF

This is a description of how to establish a tftp connection between the Development Board and the virtual machine for OK6410 Based on the Valiantwinds hero.

I. Build a tftp server in Ubuntu 11.10

(1) $ sudo apt-get install tftpd tftp openbsd-inetd

(2) $ sudo gedit/etc/inetd. conf
Find the following location in the configuration file:
#: 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/srv/tftp
# I commented out the default configuration file above with the well number, and configured the main working directory of tftp as/tftp.
Tftp dgram udp wait nobody/usr/sbin/tcpd/usr/sbin/in. tftpd/tftp

(3) create a file directory for the TFTP server.
$ Cd/
$ Sudo mkdir tftp
$ Sudo chmod 777/tftp
If you need to download an object, you can copy it in and use the chmod 777 command to open all permissions.

(4) Start (or restart) The xinetd service
$ Sudo/etc/init. d/openbsd-inetd restart

(5) Check whether port 69 is enabled. Run the following command:
Netstat-an | more
Find the following output:
Udp 0 0 0.0.0.0: 69 0.0.0.0 :*

(6) test on the local machine:

A. Create a file under/tftp and write data:
Www.linuxidc.com @ linuxidc:/tftp $ echo helloworld> zhang.txt
Www.linuxidc.com @ linuxidc:/tftp $ cat zhang.txt
Helloworld
B. Go to the/home directory.
Www.linuxidc.com @ linuxidc:/home $ sudo tftp 221.204.110.99 [Note: this is the local IP address]
[Sudo] password for yishugao:
Tftp> get zhang.txt
Received 12 bytes in 0.0 seconds
Tftp> quit
Www.linuxidc.com @ linuxidc:/home $ cat zhang.txt
Helloworld
Www.linuxidc.com @ linuxidc:/home $
OK. The local test is successful!

2. Use tftp ON THE DEVELOPMENT BOARD

First, make sure that the virtual machine network is in the Bridged mode, and check the VMware Bridge Protocol in the local connection attribute.
Run the "tftp c0800000 Helloword" command"
Helloword is a file in the tftp directory of your VM. Remember to change the permissions of all files to 777.

Below is the printed information on the serial port when tftp is successfully transferred

SMDK6410 # tftp c0800000 Helloword
Found DM9000 ID: 90000a46 at address 18000300!
DM9000 work in 16 bus width
Bd-> bi_entaddr: 00: 40: 5c: 26: 0a: 5b
[Eth_init] MAC: 0: 40: 5c: 26: a: 5b:
TFTP from server 192.168.0.101; our IP address is 192.168.0.20.
Filename 'helloword '.
Load address: 0xc0800000
Loading: T ####
Done
Bytes transferred = 19774 (4d3e hex)
SMDK6410 #

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.