No, you can't "edit" the kernel. What you are trying to do requires kernel sources.
Sent from my MI 5 using Tapatalk
Sent from my MI 5 using Tapatalk
I want to make it swap supportedNo, you can't "edit" the kernel. What you are trying to do requires kernel sources.
If you need the kernel sources and you don't have it then no, there's nothing you can do.I want to make it swap supported
Is there anything i can do????
If you need the kernel sources and you don't have it then no, there's nothing you can do.
If you need the kernel sources and you don't have it then no, there's nothing you can do.
Please stop asking about unrelated things, to this thread.
If you are looking for a way to easily unpack / repack boot.img, recovery.img or logo.bin from your MediaTek device (all except Android One devices), don't look any further. Here you can find my own Perl scripts.
Scripts were first based on the ones available on -URL-, but are now highly modified in order to work with specific MTK boot and recovery images. The scripts fully work with every image from all known MediaTek SoC:
- MT6516
- MT65x3 (MT6513 and MT6573)
- MT65x5 (MT6515 and MT6575)
- MT6577
- MT65x2 (MT6572, MT6582 and MT6592)
- MT6589
- MT83xx (MT8377 and MT8389)
- MT6595
The most up to date version of the scripts is always available at my public github repository: -URL- Scripts require Perl v5.14+ to be installed and were fully tested under Ubuntu 12.04 as well as Windows 7 x64 (using Cygwin).
Last Updated 2014-10-17
You can submit a PR to my GitHub. I will take a look and be happy to merge your contribution.Then, with a little modifications I achieved modifying the original script and making it work with this new logo.bin file. I managed to modify the logo.bin of the MT6580 and sucesfully flash it on the phone. I think this new logo.bin format is also used in all new MT67xx devices, so I think updating the original script worth it. If you don't have time, I can try doing it myself and post it.
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