uboot dhcp tftpboot cmd

uboot dhcp tftpboot cmd

dhcp

=> help dhcp
dhcp - boot image via network using DHCP/TFTP protocol


Usage:
dhcp [loadAddress] [[hostIPaddr:]bootfilename]

=> dhcp 40000000 sun8i-h3.dtb
net mac = 02:42:04:8f:d7:97
mac is 02:42:04:8f:d7:97
net mac = 02:42:04:8f:d7:97
BOOTP broadcast 1
DHCP client bound to address 172.16.2.36 (1624 ms)
Using ethernet@1c30000 device
TFTP from server 172.16.1.67; our IP address is 172.16.2.36
Filename ‘sun8i-h3-my-board.dtb’.
Load address: 0x40000000
Loading: ##
449.2 KiB/s
done
Bytes transferred = 18433 (4801 hex)

tftpboot

=> help tftpboot
tftpboot - boot image via network using TFTP protocol


Usage:
tftpboot [loadAddress] [[hostIPaddr:]bootfilename]

=> tftpboot 40000000 sun8i-h3.dtb
net mac = 02:42:04:8f:d7:97
mac is 02:42:04:8f:d7:97
net mac = 02:42:04:8f:d7:97
Using ethernet@1c30000 device
TFTP from server 172.16.1.67; our IP address is 172.16.70.35
Filename ‘sun8i-h3-openvox-h3-db-v1.dtb’.
Load address: 0x40000000
Loading: ##
856.4 KiB/s
done
Bytes transferred = 18433 (4801 hex)

二者区别

dhcp 与 tftpboot 用法和功能基本一样,最终都是从tftpserver 中下载文件到内存指定位置。不同之处在于

  • dhcp 会先用dhcp 协议申请一个ip地址
  • tftpboot 直接使用 env 中的 ipaddr 作为ip 地址

猜你喜欢

转载自blog.csdn.net/agave7/article/details/108737686
cmd
今日推荐