Add Ping and TFTP commands to ok6410

Source: Internet
Author: User

Statement: the content of this post comes from the Internet and is summarized by your understanding and practice.

Objective: to add a NIC Driver for ok6410 so that you can run Ping 192.168.1.1, TFTP 50000000 test. bin, and other commands under uboot.
Platform: Use Ping, TFTP, and other commands in the dnw software under xp. TFTP and other services have been installed in Linux as the host machine.
Development Board: ok6410: 1g nandflash + 128 M DDR

In Linux:
The main modified file is as follows: (assume the current directory is/uboot1.1.6 _ forlinx_6410_128ddr)
1. Add the following content to/makefile (put it in the first line of smdk6410_config: unconfig), save and exit
My6410_config: unconfig # define a Development Board
@ $ (Mkconfig) $ (@: _ Config =) arm cloud64xx my6410 Samsung cloud6410
 
2. Copy the./board/smdk6410 file and rename it.
CP-R./board/smdk6410./board/my6410
 
3. modify the content of all files in./board/my6410: change all smdk6410 to my6410.

4. Copy smdk6410.h in./include/configs and create my6410.h.

CP-R./include/configs/smdk6410.h./include/configs/my6410.h
5. modify the content in my6410.h, for example, change # define pai_prompt "smdk6410 #" to "my6410 #", so that the content displayed in the terminal becomes "my6410. Of course, other content has been modified,
I don't know much about it either. I copied it and haven't looked at it carefully.

6. Put the dm9000x. h and dm9000x. c files to the./drivers file and replace the original two files.

7. Compile uboot:
Make distclean
Make my6410_config
Make
 
Operations in XP:
8. If no error occurs, write the compiled uboot. bin to the Development Board.

9. After writing the script, restart it. In dnw, you can see that the prompt is changed to "my6410 #" through the serial port,
After modifying the IP address, host machine IP address, and other environment variables, and installing the TFTP service on a Linux host machine, connect the development board to the host machine with a cross-network cable, you can use the following command:
Ping 192.168.1.1

TFTP download program:
TFTP 50000000 6410_test.bin
Go 1, 50000000
You can see an LED and so on.

======================================== By The Way, attach my personal file ======== ====================================
Appendix:
Installation of TFTP service in Linux
1. Install tftpd-HPA, TFTP-HPA, and xinetd
Sudo apt-Get install tftpd-HPA
Sudo apt-Get install TFTP-HPA
Sudo apt-Get install xinetd
2. Create a TFTP transfer directory and modify permissions
Sudo mkdir/tftp_dir
Sudo chmod 777/tftp_dir
3. Configuration
Sudo gedit/etc/default/tftpd-HPA
Modify the content in the opened file:
Tftpd_username = "TFTP"
Tftp_directory = "/tftp_dir"
Tftp_address = "0.0.0.0: 69"
Tftp_options = "-l-C-S/tftp_dir"
4. Restart
Sudo/etc/init. d/xinetd restart
Sudo/etc/init. d/TFTP-HPA restart
5. Test
First, create a file test_put in the current path (non-/tftp_dir ).
Then
TFTP 127.0.0.1
TFTP> put test_put (if there is no error, the upload is successful)
TFTP> quit
Check whether the file test_put has been uploaded under/tftp_dir. the upload test is successful. Next, test the download.
Create a new file test_get under/tftp_dir and change the current path to non-/tftp_dir.
TFTP 127.0.0.1
TFTP> Get test_get
TFTP> quit
If it succeeds, there will be a test_get file in the current directory.
So far, the TFTP service is successfully installed

!!!!!!!!!!! Note: transfer files between XP and ubuntu. When copying files, pay attention to the permissions of the operated files. It is possible that FTP cannot be downloaded, or upload failure !!!!!!!

 

Http://u.115.com/file/clqwwzz8 #
Modifies.rar

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.