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 地址
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值