Guest User

repart

a guest
Apr 29th, 2014
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. @echo off
  2. echo power up your AC100 in recovery mode (CTRL+ESC)
  3. echo press any key to flash or Ctrl-C to cancel
  4. pause
  5. rem Обычный комментарий, не несущий информационной нагрузки
  6. win\nvflash.exe --bl fastboot.stock.bin --sync
  7.  
  8. :create-bct
  9. echo.
  10. echo Create BCT file from first 4080 bytes of first image
  11.  
  12. win\dd.exe if=ac100-2.img of=ac100.bct bs=4080 count=1
  13. if not %errorlevel%==0 ( call :error "Can't create bct" & exit /b )
  14. goto :eof
  15.  
  16.  
  17. :repart
  18. echo.
  19. echo Change partition table with predefined config file
  20. goto :need_reset
  21.  
  22. echo.
  23. echo Starting repartition phase...
  24. win\nvflash.exe -r --bct ac100.bct --setbct --configfile "%config%" --create --verifypart -1 --go
  25. if not %errorlevel%==0 ( call :error "Can't repart your ac100" & exit /b )
  26. goto :eof
  27.  
  28.  
  29. :need_reset
  30. echo Before continue, please, restart you device with pressed Ctrl + Esc buttins
  31. pause
  32. goto :eof
  33.  
  34.  
  35. :bootloader
  36. echo.
  37. echo Remember if you already started booloader you to restart ac100 to apx mode again.
  38. goto :need_reset
  39.  
  40. echo.
  41. echo Start fastboot booloader...
  42. win\nvflash.exe --bl bootloader.bin --go
  43. if not %errorlevel%==0 ( call :error "Can't load bootloader into ac100" & exit /b )
  44. goto :eof
  45.  
  46.  
  47. :backup_part
  48. win\nvflash.exe -r --getpartitiontable backup_part_table-%Date%.txt --go
  49. if not %errorlevel%==0 ( call :error "Can't create partition table backup" & exit /b )
  50. goto :eof
  51.  
  52.  
  53. :restore
  54. echo.
  55. echo Flash backups from local files to device
  56. pause
  57.  
  58. echo.
  59. echo Starting flash phase...
Advertisement
Add Comment
Please, Sign In to add comment