close

懶得研究 nfs 的同學, 也可以用 linux-host 的 tftpd-hpa 與 target 上面的 tftp 指令來傳檔案,

簡單的 usage 如下: http://busybox.net/lists/busybox/2003-February/007972.html

# ./busybox tftp --help
BusyBox v0.61.pre (2003.02.04-12:10+0000) multi-call binary

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

Transfers a file from/to a tftp server using "octet" mode.

Options:
        -l FILE Local FILE.
        -r FILE Remote FILE.
        -g      Get file.
        -p      Put file.


也就是在 tftpd 正常運作的情況下, 將檔案放到 /var/lib/tftpboot 資料夾

再在實驗板上使用:

tftp -g -r FILENAME SERVERIP -g: get file -r: remote -p: put file -l: local

就可以拿到檔案了. 例如要拿 host 端的 /var/lib/hello:

 

tftp -g -r hello 10.26.2.254

 

要順便改名成 hello.elf 的話:

tftp -g -l hello.elf -r hello 10.26.2.254

 

 

arrow
arrow
    全站熱搜

    立你斯 發表在 痞客邦 留言(0) 人氣()