1.打开终端
2.点击如下图按钮
3.选择相应的脚步文件
4.上电
uboot_sm.vbs脚步的源代码如下:
If(crt.Screen.WaitForString("autoboot",100)<>False) Then
crt.Screen.Send "s"
crt.Sleep 200
crt.Screen.Send "usb start"& Chr(13)
crt.Sleep 2000
crt.Screen.Send "fatload usb 0:1 1400000 bootloader_sm2.rbn;nand erase 0 700000;nand write 1400000 0 700000"& Chr(13)
crt.Sleep 5000
crt.Screen.Send "fatload usb 0:1 1400000 logoa.bmp;nand erase 700000 300000;nand write 1400000 700000 300000"& Chr(13)
crt.Sleep 5000
crt.Screen.Send "fatload usb 0:1 1400000 uImage_sm_maint;nand erase c00000 500000;nand write 1400000 c00000 500000"& Chr(13)
crt.Sleep 5000
crt.Screen.Send "fatload usb 0:1 1400000 uImage;nand erase 1100000 500000;nand write 1400000 1100000 500000"& Chr(13)
crt.Sleep 5000
crt.Screen.Send "boot"& Chr(13)
End If