You are missing dependencies. Did you choose a full Cygwin installation?
Well, then you already have your answer. Either do a full install or go for the best solution, as explained on above post.
root@macerator:/home/pol/Desktop/mtk-tools-master# ./repack-MT65xx.pl boot.img-kernel.img boot.img-ramdisk new-boot.img
MTK-Tools by Bruno Martins
MT65xx repack script (last update: 27-01-2013)
Usage: repack-MT65xx.pl COMMAND [...]
COMMANDs are:
-boot <kernel> <ramdisk-directory> <outfile>
Repacks boot image
-recovery <kernel> <ramdisk-directory> <outfile>
Repacks recovery image
-logo [--no_compression] <logo-directory> <outfile>
Repacks logo image
root@macerator:/home/pol/Desktop/mtk-tools-master#
Could someone help me make my boot.img insecure? It's an MT6589 device and I've tried your script and all and it keeps on saying Ramdisk Size: FIND: Parameter format not correct upon repacking.
First of all, the error message you're getting points out to an incomplete Cygwin installation (double check your setup). I assume it is Cygwin because 'find' is part of every Linux distro. It has been said over and over that using Ubuntu is the best option to run the scripts.I'm sorry sir, I know you're busy and all, but can you help me make my boot.img insecure? It's posted in the last post of the previous page. Will really appreciate it since I've tried your wonderful scripts and couldn't get them to repack well.
Found the problem. The cygwin path wasn't the first one in the environment variables causing it to use the Windows comnand find instead of Linux's FIND. Got it repacked now! Thanks for your scripts!First of all, the error message you're getting points out to an incomplete Cygwin installation (double check your setup). I assume it is Cygwin because 'find' is part of every Linux distro. It has been said over and over that using Ubuntu is the best option to run the scripts.
On other hand, the changes you want to apply are not the topic of the thread, but I can say that creating an insecure boot.img requires a patched adbd binary. You have to find it yourself. Alternatively you can skip modification of boot.img and simply use adbd Insecure.
The binary (mkbootimg) should be put somewhere in the path or in the working dir.
sudo apt-get update
sudo apt-get install lib32bz1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
Usage: unpack-MTK.pl <infile> [COMMAND ...]
Unpacks MediaTek boot, recovery or logo images
Optional COMMANDs for boot or recovery images are:
-info_only
Display file information only
(useful to check image information without unpacking)
-kernel_only [--debug]
Extract kernel only
-ramdisk_only [--debug]
Extract ramdisk only
(optional argument '--debug' can additionally be used to provide useful
information for debugging purposes, even while unpacking both kernel
and ramdisk)
Optional COMMANDs for logo images are:
-force_logo_res <width> <height>
Forces file to be unpacked by specifying image resolution (in pixels)
(only useful when no zlib compressed images are found)
-invert_logo_res
Invert image resolution (width <-> height)
(may be useful when extracted images appear to be broken)
Usage: repack-MTK.pl <COMMAND ...> <outfile>
Repacks MediaTek boot, recovery or logo images
COMMANDs for boot or recovery images are:
-boot [--debug] <kernel> <ramdisk-directory>
Repacks boot image
-recovery [--debug] <kernel> <ramdisk-directory>
Repacks recovery image
(optional argument '--debug' can additionally be used to provide useful
information for debugging purposes, while repacking)
COMMANDs for logo images are:
-logo [--no_compression] <logo-directory>
Repacks logo image
(optional argument '--no_compression' can be used to repack logo images
without compression)
unpack-MT65xx.pl boot.img
repack-MT65xx.pl boot.img-kernel.img boot.img-ramdisk new-boot.img
repack-MT65xx.pl -recovery recovery.img-kernel.img recovery.img-ramdisk new-recovery.img