[mini2440]tftp download file to arm

本文介绍如何在ARM开发板上使用TFTP客户端从BusyBox获取文件,以及在Ubuntu中安装并配置TFTP服务器的过程。文章详细说明了ARM板与Ubuntu虚拟机之间的网络连接设置,包括通过桥接模式确保网络互通,以及使用ping命令测试网络连通性。此外,还提供了在Windows 7和Ubuntu环境下搭建TFTP服务器的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. Arm already had tftp client, because busybox include "tftp" command.

2.Install tftp server in ubuntu, see appendix.

3.Connect arm board to main computer network, such as connect to a same router.

Make sure that vritual machine using "bridge" mode as below:

Config mini2440 network.

vi /etc/eth0-setting

Note: vi must using "h","j", "k", "l" to move edite place.

After reboot the arm board, using "ping" command to test if connect to virtual machine ubuntu (Both bing ok to each other).

As below: (Of cause, not always need ping www.baidu.com)

Error: Sometime doesn't connet to the net, maybe need use computer to login the net first.

4.Get file from server.

tftp -g -r test.txt 192.168.xxx.xxx

 

Appendix 1 TFTP server in win7

1.Download from official site: http://tftpd32.jounin.net/tftpd32_download.html Then install.

(to be continue ...)

Appendix 2 TFTP server in ubuntu.

NOTE: 'NAT' mode also work, although ip is not in same stage, but if can ping ok each other, so can send file.

1.Install TFTP.

sudo apt install tftp-hpa tftpd-hpa

2.Creat directory.

cd 
mkdir tftpboot
cd tftpboot
vim test.txt

3.Config

cd /etc/default/
vim tftpd-hpa

tftp-hpa is:

# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="~/tftpboot" # 这里是你的tftpd-hpa的服务目录,这个想建立在哪里都行
TFTP_ADDRESS=":69"
TFTP_OPTIONS="-l -c -s" # 这里是选项,-c是可以上传文件的参数,-s是指定tftpd-hpa服务目录,上面已经指定 

4.reset

sudo service tftpd-hpa restart

5.test

$ tftp localhost
tftp> get test.txt
tptp> put text1.txt

(end)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值