I found several problem regarding pack/unpack tools for boot.img/recobvvery.
I tested it under Windows7 64bit. Tested with boot.img and chinese (MTK...) batch.
The main problem that many comamnd are recognized as internal command and the problem seems the variable %~dp0 that is nor recognzied correctly.Ex.
%~dp0bin\cpio.exe -i <../ram_disk
is not recognized as command
to set the start folder (where you run the app) you can set variable like set CURRECNT.PATH=%CD% then use
%CURRENT.PATH%\bin\cpio.exe -i <../ram_disk
As unapck there are several problems regarding %~dp0 variables.
In some command you use for path "/" instead "\". Ex.
%~dp0bin\sfk166.exe partcopy ../../tmp1.dat 0 4 ../new_ram_with_header 4 -yes>nul
%~dp0bin\mkbootimg.exe --kernel ../kernel --ramdisk ../new_ram_with_header -o ../new_image.img
The problem now is fixed.
I copied the scritp into a path that contain a space.
To use batch file the path cannot contain space.