setipaddr 192.168.1.12
setethaddr 00:11:22:33:44:55
update uboot
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
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
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