uboot升级内核与文件系统方法

1、擦除原内核并写入新内核

U-Boot> sf erase 200000 500000
U-Boot> tftp 22000000 zImage
phy_id1: 0x001c
macb0: PHY present at 3
macb0: link up, 100Mbps full-duplex (lpa: 0xc5e1)
Using macb0 device
TFTP from server 10.72.71.52; our IP address is 10.72.71.199
Filename 'zImage'.
Load address: 0x22000000
Loading: #################################################################
	 #################################################################
	 ##########################################
done
Bytes transferred = 2524596 (2685b4 hex)
U-Boot> sf write 22000000 200000 2685b4

2、擦书原文件系统写入新的文件系统

U-Boot> sf erase c00000 1B00000
U-Boot> tftp 22000000 ubi-MX66L51235F.img
phy_id1: 0x001c
macb0: PHY present at 3
macb0: link up, 100Mbps full-duplex (lpa: 0xc5e1)
Using macb0 device
TFTP from server 10.72.71.52; our IP address is 10.72.71.199
Filename 'ubi-MX66L51235F.img'.
Load address: 0x22000000
Loading: ########################################################
#################################################################
##############################################################
done
Bytes transferred = 34930688 (2150000 hex)
U-Boot> sf write 22000000 c00000 2150000
U-Boot> saveenv
  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值