[Upgrading, Modifying and Unlocking] frapedas:
How to create a full .pc out of a backup from this script.

In this post i assume you bricked your phone, and you should NOT try flashing all of these unless you are very sure you have the time and the will to fix files and search for an fdl2 for your device, if your phone its ok.. don't mess then with this stuff.

1. First you need a hex editor, go and download HxD Hex Editor its free.

2. You need a .pac from another rom, so you can compire the files in the hex editor and see how they should start or not.

3. The filenames more clear are, the ones that need to be hex edited to remove any paddings or junk hex.

mtd6.backupfixnv.yaffs2.img = nvitem.bin

mtd0.spl.img = spl.img

mtd1.2ndbl.img = uboot.img

mtd3.vmjaluna.img = vmjaluna.img

mtd9.boot.img = boot.img

Now, open from the downloaded .pac the file you want to fix, see whats the header (where it starts from, and where it ends) for example, nvitem.bin (NV) starts arround the line that says 42Headset,so you click search, hit 42Headset go to that line and one up, and remove the remaining, so your file looks like the one from the random rom you downloaded.

All the files (boot, vmjaluna, etc) are very easy to get fixed, they just need to remove some junk from the top, and some from the bottom maybe...BUT NV has a junk hex that gets repeated every while and then..which makes it really hard to be fixed, i have uploaded a picture of a screen shot that explains how to fix this one.

The rest of the files you can easily fix them if you look at the files of an original .pac of another rom eg.

Serious problem:

As i said before, the people in this forum wasnt clear how to flash, flashing with a wrong FDL2 can brake the rom as i guess the FDL2 is something like scatter files for MTK's.. so if you have a working rom.. be carefull when you search for CWM recovery, you may endup with a brocken recovery EVEN YOU HAVE backup of the original recovery.img.. will never work with a wrong fdl2 even if it says it got flashed.

So? you need to find the right fdl2 for your phone, it toke me like hours of downloading roms and testing fdl2's until i find one that flashses AND boots to rom, because you see "flashed ok / passed" message, doesn't mean its really ok..even if you used an fdl2 to flash system.img for rooting it, Doesn't mean that it will work for boot, and for uboot and for everything else.. some fdl2's for me worked until to uboot, but they didnt worked to boot, some fdl2s worked to boot, but when i flashed system.img phone didn't boot up...

so heres how you will find a good fdl2 if there are no already an official pac for your device.

You download 10-15 different .pac roms, (there are plenty out there) your use researchdownload to open the roms and extract their files into the temp folder, from were you get system,boot,fdl etc etc out of a .pac. i assume you know how to copy/past the file path from the settings of research downloader.

Now you collect all fdl2s you can find, including the ones in CWM/root thread. and after that you try to flash nv, up to DSP.. and bootlogo, nothing else, just to see if the screen turns on and the logo apears, if this can happen, you try to flash the rest of your files, system boot etc, if the phone doesn't boot, you try another fdl2.. etc etc.

Thats all..good luck