Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo power up your AC100 in recovery mode (CTRL+ESC)
- echo press any key to flash or Ctrl-C to cancel
- pause
- rem Обычный комментарий, не несущий информационной нагрузки
- win\nvflash.exe --bl fastboot.stock.bin --sync
- :create-bct
- echo.
- echo Create BCT file from first 4080 bytes of first image
- win\dd.exe if=ac100-2.img of=ac100.bct bs=4080 count=1
- if not %errorlevel%==0 ( call :error "Can't create bct" & exit /b )
- goto :eof
- :repart
- echo.
- echo Change partition table with predefined config file
- goto :need_reset
- echo.
- echo Starting repartition phase...
- win\nvflash.exe -r --bct ac100.bct --setbct --configfile "%config%" --create --verifypart -1 --go
- if not %errorlevel%==0 ( call :error "Can't repart your ac100" & exit /b )
- goto :eof
- :need_reset
- echo Before continue, please, restart you device with pressed Ctrl + Esc buttins
- pause
- goto :eof
- :bootloader
- echo.
- echo Remember if you already started booloader you to restart ac100 to apx mode again.
- goto :need_reset
- echo.
- echo Start fastboot booloader...
- win\nvflash.exe --bl bootloader.bin --go
- if not %errorlevel%==0 ( call :error "Can't load bootloader into ac100" & exit /b )
- goto :eof
- :backup_part
- win\nvflash.exe -r --getpartitiontable backup_part_table-%Date%.txt --go
- if not %errorlevel%==0 ( call :error "Can't create partition table backup" & exit /b )
- goto :eof
- :restore
- echo.
- echo Flash backups from local files to device
- pause
- echo.
- echo Starting flash phase...
Advertisement
Add Comment
Please, Sign In to add comment