- @echo off
- set "ph=d:\fastboot.log"
- :lp
- fastboot devices >"%ph%"
- find /i "fasboot" "%ph%"&&goto :fastboot
- adb wait-for-devices reboot bootloader
- if errorlevel 0 goto fastboot
- goto :lp
- :fastboot
- fastboot flash bootloader u-boot.bin
复制代码 谢谢楼上的,加上这一条就OK了
if errorlevel 0 goto fastboot
不然会死在那里! |