update-kernel.bat

来源:互联网 发布:ps抠图软件 编辑:程序博客网 时间:2024/05/14 13:18


@echo off
title - Kernel Update -


echo Start updating kernel...


adb shell mkdir /mnt/nand && ^
adb shell mount -t vfat /dev/block/nanda /mnt/nand && ^
adb push bImage /mnt/nand/linux && ^
adb shell sync && ^
adb shell reboot


IF ERRORLEVEL 1 goto FAIL
IF ERRORLEVEL 0 goto SUCCESS


:FAIL
echo.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo FAILED! Kernel was not updated. 
echo.
pause
goto DONE


:SUCCESS
echo.
echo Done. Kernel was updated successfully.
ping   -n   4   localhost > nul
goto DONE


:DONE
原创粉丝点击