【关于tftp】 imx283 与Linux主机 在tftp命令格式的不同

来源:互联网 发布:淘宝网真丝围巾 编辑:程序博客网 时间:2024/06/05 20:12

Linux主机在配置成功tftp服务器之后,主机测试成功的情况下,在283目标板上却不可使用。。。。

过程是这个样子滴

Linux主机:

linux@linux-virtual-machine:~$ tftp 192.168.1.231
tftp> get hello 
tftp> q     

linux@linux-virtual-machine:~$ ls
examples.desktop  hello  nfs  公共的  模板  视频  图片  文档  下载  音乐  桌面

可以发现hello已经成功从tftp下载下来


但是在目标板imx283上面 使用相同指令得到如下结果

[root@M28x ~]# tftp 192.168.1.231
BusyBox v1.18.4 (2014-03-19 15:41:22 CST) multi-call binary.


Usage: tftp [OPTIONS] HOST [PORT]


Transfer a file from/to tftp server


Options:
        -l FILE Local FILE
        -r FILE Remote FILE
        -g      Get file
        -p      Put file
        -b SIZE Transfer blocks of SIZE octets

很明显格式不正确  但是这个格式说明让我更加摸不到北

于是乎

[root@M28x ~]# tftp -rg 192.168.1.231:/hello
BusyBox v1.18.4 (2014-03-19 15:41:22 CST) multi-call binary.


Usage: tftp [OPTIONS] HOST [PORT]


Transfer a file from/to tftp server


Options:
        -l FILE Local FILE
        -r FILE Remote FILE
        -g      Get file
        -p      Put file
        -b SIZE Transfer blocks of SIZE octets


[root@M28x ~]# tftp -r 192.168.1.231        
BusyBox v1.18.4 (2014-03-19 15:41:22 CST) multi-call binary.


Usage: tftp [OPTIONS] HOST [PORT]


Transfer a file from/to tftp server


Options:
        -l FILE Local FILE
        -r FILE Remote FILE
        -g      Get file
        -p      Put file
        -b SIZE Transfer blocks of SIZE octets


[root@M28x ~]# tftp -r 192.168.1.231 -g hello
tftp: bad address 'hello'
[root@M28x ~]# tftp -r 192.168.1.231 -g  /hello
tftp: bad address '/hello'
[root@M28x ~]# tftp -g 192.168.1.231:/hello
BusyBox v1.18.4 (2014-03-19 15:41:22 CST) multi-call binary.


Usage: tftp [OPTIONS] HOST [PORT]


Transfer a file from/to tftp server


Options:
        -l FILE Local FILE
        -r FILE Remote FILE
        -g      Get file
        -p      Put file
        -b SIZE Transfer blocks of SIZE octets

各种尝试之后 终于找到了正确的格式 真囧。。。。

[root@M28x opt]# tftp 192.168.1.231 -g -r hello
[root@M28x opt]# ls

hello     my_first*


0 0
原创粉丝点击