www.chinaphonearena.com

Full Version: [TOOL] MTKIMG new unpack/repack utility
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I work on a tools names MTKIMG unpack and repack image like boot.img, recovery.img and logo.bin. This tools is open-source and portable, i need help for OSX port and need some testers return.

Source code :
[Only registered and activated users can see links Click here to register]

Releases :
[Only registered and activated users can see links Click here to register]

Hop this is usefull, let me known what you think.
Hello, welcome to Chinaphonearena. We are glad to have you here.

This currently for Windows, yes? Works with new MTK SoC (MT6752 etc..)?
Hello NexusTrix,
Thank for your welcome.
MTKIMG is portable, open-source and easy to build.
I build releases for Linux, Cygwin and Windows.
They are compiled for 64 bits version but it's very easy to build for 32 bits if need
(I can install Cygwin32 and a VirtualBox for Linux 32 and perhaps Windows 32)
I dont know if it work on MT6752, do try and tell me.
If it dont work, send me a ROM i will do modification to support this device.
I need some testers for new device, hope you will help me Smiling
Bye
Ps : Sorry for my bad english
A Windows 32 version would be good.

I will test build a custom recovery with MT6752 phone with your tool and let you know.
Cool, many thanks

Ok, I had 32 bits version support now and build V0.44 release.
Hello,
(2015-07-20, 21:10)NexusTrix Wrote: [ -> ]A Windows 32 version would be good.

I will test build a custom recovery with MT6752 phone with your tool and let you know.

I want to know if you do a try ?
mktimg don´t work with vernee thor e

Vernee Thor E Android 7.0 latest update 5.5.17 Creation version Thor_E_20170607 Kernel version 3.18.35


unpack boot.img downloaded from

[Only registered and activated users can see links Click here to register]

show´s this result.....

./mtkimg unpack /home/ger/MKT/quelle/boot.img
MTKIMG V0.44(linux32) by rom1nux
Unpacking boot image '/home/ger/MKT/quelle/boot.img'...
ERROR : Kernel header magic is not valid !



mtkimg unpack boot.img -v
MTKIMG V0.44(linux32) by rom1nux
Unpacking boot image 'boot.img'...
Reading image header (596 bytes)...

Image header :

Signature : ANDROID!

Kernel size : 7363513 bytes
Kernel load address : 0x40080000

Ramdisk size : 2338439 bytes
Ramdisk load address : 0x44000000

Second stage size : 0 bytes
Second stage load address : 0x40F00000

Tags address : 0x4E000000
Page size : 2048 bytes
Product name : 'Thor_E_20170615'
Command line : 'bootopt=64S3,32N2,64N2'
ID : 72E66DB98E30AFF5AA4602B440E55D7538E074B8

Image layout :

Bloc Offset Pages Size (bytes)
------------------------------------------------
Header 0x00000000 1 2048
Kernel 0x00000800 3596 7364608
Ramdisk 0x00706800 1142 2338816
Free 0x00941800 1 2304
------------------------------------------------
Total 4740 9707776
------------------------------------------------

Seeking to start of kernel (0x00000800)...
Reading MTK header (512 bytes)...

Magic : 0x1F 0x8B 0x08 0x00
Size (bytes) : 0
Type : �[{t�U���~��A��@k鐤�c#mi��

ERROR : Kernel header magic is not valid !

did anyone know a solutoin, thaks in forward

gerhard
@gerhard :

Same error Smiling

./mtkimg unpack boot.img
MTKIMG V0.44(linux64) by rom1nux
Unpacking boot image 'boot.img'...
ERROR : Kernel header magic is not valid !

===============================================

I suggest you to use Carliv :

****************************************************
* *
* Carliv Image Kitchen for Android v1.3 *
* boot+recovery images copyright-2016 carliv@xda *
* including support for MTK powered phones images *
* LINUX x64 version *
* The unpacking images script *
* *
****************************************************

Your image is boot.img


Create the boot folder....

Unpacking the boot.img to boot folder....

Printing information for "boot.img"
Unpack image utility by carliv@xda

Header:

Magic : ANDROID!
Magic offset : 0

Page size : 2048 (0x00000800)
Base address : 0x40078000

Kernel address : 0x40080000
Kernel size : 7363513 (0x00705bb9)
Kernel offset : 0x00008000

>> kernel written to 'boot/boot.img-kernel' (7363513 bytes)

Ramdisk address : 0x44000000
Ramdisk size : 2338439 (0x0023ae87)
Ramdisk offset : 0x03f88000

>> ramdisk written to 'boot/boot.img-ramdisk.gz' (2338439 bytes)

Second address : 0x40f00000
Tags address : 0x4e000000
Tags offset : 0x0df88000

Board name : 'Thor_E_20170615'

Cmdline : 'bootopt=64S3,32N2,64N2'

Compression used: gz

Unpacking the ramdisk....
../boot.img-ramdisk.gz: 58.3%
10959 blocks

Done! Your image is unpacked in boot folder.