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