[busybox]TFTP

来源:互联网 发布:mac 安装lnmp环境 编辑:程序博客网 时间:2024/03/29 23:03
[busybox]TFTP这个指令很好用!

虽然我是用cramfs,但把tmp 作为了ramfs ,可以用tftp接收文件,这下省的每次得都重新编译文件系统

tftp 在linux下的用法感觉没有 在u-boot下面好用

下面是busybox里面的解释

Usage: tftp [OPTION]... HOST [PORT]

Transfer a file from/to tftp server using "octet" mode

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

 

进入可以读写的tmp目录,执行

/tmp # tftp -g -r uimage 192.168.0.1

就可以收到了uimage文件