Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,276 Members 44,982 Now Online
XDA Developers Android and Mobile Development Forum

Boot/Recovery repack utils for WINDOWS

Tip us?
 
bovirus
Old
(Last edited by bovirus; 24th June 2014 at 01:37 PM.)
#71  
Senior Member
Thanks Meter 63
Posts: 396
Join Date: Oct 2007
Hi.

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.

** Unapck

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

** Repack
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

SOLVED!!!

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.

Thanks. Bye.

Thanks.
 
michfood
Old
#72  
michfood's Avatar
Senior Member - OP
Thanks Meter 243
Posts: 188
Join Date: Oct 2009

 
DONATE TO ME
Quote:
Originally Posted by bovirus View Post
I copied the scritp into a path that contain a space.
sure. and no domestic letters
Like my works - feel free to donate ))
 
bovirus
Old
#73  
Senior Member
Thanks Meter 63
Posts: 396
Join Date: Oct 2007
On same platforms (with recent hardware) during unpack/repack I received an error about cygwin flag not supported.

I solved it using latest version (1.18.3) of Cygwin library. Please update into distribution archive.

I added some additonal batch

MTK_UNPACK_recovery (call MTK_UNPACK recovery.img)
MTK_UNPACK_boot -(call MTK_UNPACK boot.img)

MTK_PACK_recovery (call MTK_PACK recovery.img)
MTK_PACK_boot (call MTK_PACK boot.img)

To automatize the operation.

Future improvements

- Add check of presence of boot.,img/recovery.img and stop the batch if file is not available

- Cleanup boot/recovery folder before to unpack
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes