当前位置: 首页 > 工具软件 > tftpd-hpa > 使用案例 >

tftp与tftpd-hpa

元英朗
2023-12-01

ipcam做server,然后pc做client

ipcam (192.168.1.12)

setipaddr 192.168.1.12
setethaddr 00:11:22:33:44:55
update uboot

pc (192.168.1.13)

install tftp in pc
~/xxx/image$ tftp 192.168.1.12
tftp> binary
tftp> put u-boot.bin
Sent 158116 bytes in 0.0 seconds

ipcam做client,然后pc做server

pc (192.168.1.13)

install tftpd-hpa

/etc/default/tftpd-hpa

# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
#TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_DIRECTORY="/home/xxx/image"
TFTP_ADDRESS="[::]:69"
TFTP_OPTIONS="--secure"

sudo service tftpd-hpa restart

ipcam (192.168.1.12)

setipaddr 192.168.1.12
setethaddr 00:11:22:33:44:55
setenv netmask 255.255.255.0
ping 192.168.1.13
setenv serverip 192.168.1.13
tftpboot 0x81500000 192.168.1.13:xxx-flash.bin
sf probe 0
sf erase 00000 1000000
sf write 81500000 00000 1000000

reference

  1. Ubuntu下搭建tftp服务器最简单方法
 类似资料: