begin:
cls
/////////////////////////////////////////////
//    Alphaware script. Use 1.30 and up
/////////////////////////////////////////////
echo 1. Backup flash
echo 2. Restore flash
echo 3. Program Alphaware
echo 4. Exit
option 1 backup 2 restore 3 pgbitware 4 end
backup:
echo backup flash
flshdct 0
echo !! You should see card status is 0000xxxx. If not check your connection.
pause
getram emmc
save emmc
goto continue
restore:
echo restore
flshdct 0
echo !! You should see card status is 0000xxxx. If not check your connection.
pause
erase emmc
sprogram emmc
goto continue
pgbitware:
/////////////////////////////////////////////
//    Make sure you have backed up first
/////////////////////////////////////////////
echo Program Alphaware
fdisk
echo !! You should see disk patitions. If not check if you have read the backup or loaded backup
pause
flshdct 0
echo !! You should see card status is 0000xxxx. If not check your connection.
pause
ldram 5.img cmrootfs.img
ldram 6.img cmrootfs2.img
ldram 7.img gwrootfs.img
ldram 8.img gwrootfs2.img
ldram 12.img atomrootfs.img 
ldram 13.img atomrootfs2.img 
ldram 1.img bootkernel.img 
ldram 2.img bootkernel2.img 
ldram 9.img atomkernel.img
ldram 10.img atomkernel2.img
sprogram 5.img
sprogram 6.img
sprogram 7.img
sprogram 8.img
sprogram 12.img
sprogram 13.img
sprogram 1.img
sprogram 2.img
sprogram 9.img
sprogram 10.img
continue:
pause
goto begin
end:
