TL;DR - This program is essentially like sbf/odin/and other such tools. Almost..
QPST/QFIL is a flashing tool for qualcomm devices. It can be used to flash the eMMC of our device.
This means that it can fix any software brick.
The only thing is, I can't seem to find the necessary files to flash.
HERE @tenfar started to do a bit of research on the topic.
Let's get this ball rolling and use the tool that Huawei uses! No more RMA's! (Hopefully)
QPST
engineer radioDon't flash unless you know what you're doing. It will disable radio
How this could potentially be used
EDIT: According to the pdf, the angler is supported in this release of BoardDiag! http://www.mylgphones.com/download-boarddiag-v2-99a.html
http://www.modaco.com/forums/topic/348787-guide-how-to-modify-your-partitions/
Solder emmc
I'm attempting to do a full eMMC backup now with
Code:
adb shell
su
dd if=/dev/block/mmcblk0 of=/storage/emulated/0/backup.img bs=512 count=30535646
tr4nqui1i7y said:
I'm attempting to do a full eMMC backup now with
Code:
adb shell
su
dd if=/dev/block/mmcblk0 of=/storage/emulated/0/backup.img bs=512 count=30535646
Click to expand...
Click to collapse
I have the backup.img. Going to try to decompile and see if it's actually any help.
Anyone know where to find the version of this for our device? 'prog_emmc_firehose_8936.mbn'
Our flash programmer file won't be firehose, afaik. still figuring this all out.
I've got a long night ahead of me Going to try to get the necessary files another way. Running the adb command yeilded corrupt imgs twice. Since it took about an hour each time, I'll have to find another way.
@Jammol want to get in on this?
Maybe we can find something like this for our device?
EDIT: Maybe there is a way to run fsck.repair against a usb device?
EDIT: Maybe I'll just try to change the physical eMMC at this point Like This
EDIT: But then we'd need to repartition memory Similar to this
In the process of making this over
Code:
partition_entries=14
partition_name=PrimaryGPT
start_block=0x0
file_name=PrimaryGPT.mbn
file_size=524288
partition_name=sbl1
start_block=0x20400
file_name=sbl1.mbn
file_size=524288
partition_name=rpm
start_block=0x20C00
file_name=rpm.mbn
file_size=524288
partition_name=tz
start_block=0x21000
file_name=tz.mbn
file_size=524288
partition_name=sdi
start_block=0x21400
file_name=sdi.mbn
file_size=524288
partition_name=aboot
start_block=0x21800
file_name=aboot.mbn
file_size=524288
partition_name=sbl1b
start_block=0x22C00
file_name=sbl1b.mbn
file_size=524288
partition_name=tzb
start_block=0x23400
file_name=tzb.mbn
file_size=524288
partition_name=rpmb
start_block=0x23800
file_name=rpmb.mbn
file_size=524288
partition_name=abootb
start_block=0x23C00
file_name=abootb.mbn
file_size=524288
partition_name=imgdata
start_block=0x37400
file_name=imgdata.mbn
file_size=1572864
partition_name=laf
start_block=0x38C00
file_name=laf.mbn
file_size=13631488
partition_name=boot
start_block=0x43C00
file_name=boot.mbn
file_size=8912896
partition_name=BackupGPT
start_block=0x3A3DC00
file_name=BackupGPT.mbn
file_size=524288
Using this INFO
@bitdomo gave thorough instructions here
OP updated.
I want to make a little comment about this boarddiag tool, and how it works.
Emmc test:
Erase: erase the whole emmc. Even if you select a partition from the dropdown menu,
Read only: Only reads random blocks from the emmc. If you check DUMP it will read back the amount of blocks of a the chosen partition given in the partition.txt
Write only: writes dummy data to the emmc (55AA hex values and some other other random writes on the actual partition).
Read/Write: writes dummy data to the emmc (55AA hex values and some other other random writes on the actual partition) and then verify them by reading it back
SDRAM test:
I think this test the memory. There is a Level option for it. I dont know what is the differance between the two.
PIMC ON:
No idea, but in some LG documentations it is for only APQ8064 chipset.
Restore boot img:
Restores the images.
How it know which partitions have to be restored?
There is a rawprogram0.xml in model\Nexus5 (MSM8974_HammerHead)\boot_partition_info folder.
The partitions declared here will be flashed to the device if you select nothing in the partititon dropdown menu or in the restore boot img dropdown menu
Boarddiag only cares about the "label" value (have to be tha same as in partition.txt) from rawprogram0.xml. The rest info like startblock, files size and file name will be acquired from the partition.txt.
Partition.txt is a binary file:
0x00-0x03: start block
0x04-0x07: file size in block numbers ( 1 block = 512 byte)
0x08-0x0F: always zero
0x10-0x2F: partition name (must be the same as the label value in rawprogram0.xml)
0x30-0x4F: file name
and the pattern goes on.
I wrote a little program which converts this binary partition.txt to an actual txt. You can get it from here
Copy the partition.txt to the same folder where the bin2txt and txt2bin exes are. Run bin2txt then it will create a readable_partition.txt file. Edit it with notepad++. The start block is in HEX and the file size is in bytes (must be multiple of 512). Partition entries is the number of partition declared in the partition.txt. If you done with the editing then run txt2bin and it will create a new_partition.txt file.
Click to expand...
Click to collapse
tr4nqui1i7y said:
@Jammol want to get in on this?
Click to expand...
Click to collapse
What's the current setup of your device? Meaning locked stock or unlocked?
I haven't messed with partitions that deep since the Lg Pro I think that's the same as the Nexus 4 but blocky.
I'll get my desktop setup today after work. Been using my work work laptop for adb (probably shouldn't).
Sent from my LG G4 using Tapatalk
@jimbridgman you enjoy working this deep don't you?
Sent from my Nexus 6P using XDA-Developers mobile app
Jammol said:
What's the current setup of your device? Meaning locked stock or unlocked?
I haven't messed with partitions that deep since the Lg Pro I think that's the same as the Nexus 4 but blocky.
I'll get my desktop setup today after work. Been using my work work laptop for adb (probably shouldn't).
Sent from my LG G4 using Tapatalk
Click to expand...
Click to collapse
I have two:
unlocked/rooted/rom'd
unlocked/corrupt eMMC
I see you posted with a G4, is your 6P bootlooped again/still?
My device is currently stuck in RELINK HS-USB QDLoader 9008 according to device manager.
I've tried miflash, qfil, and boarddiag.
Unfortunately they all require a programmer file, which I have no clue as to where we can get that package of files (programmer file, build.xml, and patch.xml)
I won't be rolling up my sleeves on this, as I've already been down the rabbit hole on this one. But, I will lend a hand. You might have better luck using this version. Also, here's the latest qd loader driver. Good luck.
kibmikey1 said:
I won't be rolling up my sleeves on this, as I've already been down the rabbit hole on this one. But, I will lend a hand. You might have better luck using this version. Also, here's the latest qd loader driver. Good luck.
Click to expand...
Click to collapse
Would happen to have any clues on how to find the files necessary for qfil on our device?
tr4nqui1i7y said:
Would happen to have any clues on how to find the files necessary for qfil on our device?
Click to expand...
Click to collapse
Normally those are taken from a backup from the system you're modifying. But if you don't have one, you need to either extract the defaults from a master (like a factory image or unpackaged full ota) or someone can extract the necessary files you need from their own backup and send them to you.
kibmikey1 said:
Normally those are taken from a backup from the system you're modifying. But if you don't have one, you need to either extract the defaults from a master (like a factory image or unpackaged full ota) or someone can extract the necessary files you need from their own backup and send them to you.
Click to expand...
Click to collapse
When I checked out the factory images I didn't see any mbn or xml files. Any chance you'd lend a hand? Checked the ota and didn't seem to find the right files either.
Maybe I just overlooked them.
Both can be found on g.co/ABH
tr4nqui1i7y said:
When I checked out the factory images I didn't see any mbn or xml files. Any chance you'd lend a hand? Checked the ota and didn't seem to find the right files either.
Maybe I just overlooked them.
Both can be found on g.co/ABH
Click to expand...
Click to collapse
You could try using cygwin to decompile the images, but I'm not sure if they're encrypted or not. If they are (and they probably are...) that would be no help. Another option would be to compile Android through llvm using this. It would give you the advantage of having it decompiled to the levels you need before encryption (mbn and xml files). You'll have to make the programmer file yourself. I'll give an example, using an 8660 from a Nexus 5. 8660_msimage.mbn is released in SW by default, actually, it includes the all the boot images and partition table there. MPRG8660.hex would download this image and reset to mass-storage mode.
1. Have the QPST 2.7.366 or higher version installed.
2. Make a local folder, copy sbl1/sbl2/sbl3/rpm/tz images to this folder.
3. copy the emmcswdownload.exe from C:\Program Files\Qualcomm\QPST\bin to this folder.
4. Prepare the partition_boot.xml as below and copy the partition_boot.xml to the same folder as above.
<?xml version="1.0"?>
<image>
<physical_partition number="0">
<primary order="1" type="4d" bootable="true" label="SBL1" size="1000" readonly="false">
<file name="sbl1.mbn" offset="0"/>
</primary>
<primary order="2" type="51" bootable="false" label="SBL2" size="3000" readonly="false">
<file name="sbl2.mbn" offset="0"/>
</primary>
<primary order="3" type="45" bootable="false" label="SBL3" size="1500" readonly="false">
<file name="sbl3.mbn" offset="0"/>
</primary>
<primary order="4" type="5" bootable="false" label="EXT" size="1000000">
<extended order="1" type="47" label="RPM" size="1000" readonly="false">
<file name="rpm.mbn" offset="0"/>
</extended>
<extended order="2" type="46" label="TZ" size="1000" readonly="false">
<file name="tz.mbn" offset="0"/>
</extended>
</primary>
</physical_partition>
</image>
5. Run the emmcswdownload.exe tool to create OEM boot image with a command below.
emmcswdownload.exe -f 8660_msimage.mbn -x partition_boot.xml -s 1G -g 4M
6. The 8660_msimage.mbn will be generated in the folder.
Again, it's just an example of building one, and it's using an older model, but I think you get it. Aside from that, the only other thing I can think for you would be to use the files Qualcomm's board support package (Dragonboard 810), which would come with purchasing it with an entire new motherboard, which is the equivalent of rma'ing it anyway. This would be me rolling my sleeves back down for tonight. Let me know how it goes!
kibmikey1 said:
You could try using cygwin to decompile the images, but I'm not sure if they're encrypted or not. If they are (and they probably are...) that would be no help. Another option would be to compile Android through llvm using this. It would give you the advantage of having it decompiled to the levels you need before encryption (mbn and xml files). You'll have to make the programmer file yourself. I'll give an example, using an 8660 from a Nexus 5. 8660_msimage.mbn is released in SW by default, actually, it includes the all the boot images and partition table there. MPRG8660.hex would download this image and reset to mass-storage mode.
1. Have the QPST 2.7.366 or higher version installed.
2. Make a local folder, copy sbl1/sbl2/sbl3/rpm/tz images to this folder.
3. copy the emmcswdownload.exe from C:\Program Files\Qualcomm\QPST\bin to this folder.
4. Prepare the partition_boot.xml as below and copy the partition_boot.xml to the same folder as above.
<?xml version="1.0"?>
<image>
<physical_partition number="0">
<primary order="1" type="4d" bootable="true" label="SBL1" size="1000" readonly="false">
<file name="sbl1.mbn" offset="0"/>
</primary>
<primary order="2" type="51" bootable="false" label="SBL2" size="3000" readonly="false">
<file name="sbl2.mbn" offset="0"/>
</primary>
<primary order="3" type="45" bootable="false" label="SBL3" size="1500" readonly="false">
<file name="sbl3.mbn" offset="0"/>
</primary>
<primary order="4" type="5" bootable="false" label="EXT" size="1000000">
<extended order="1" type="47" label="RPM" size="1000" readonly="false">
<file name="rpm.mbn" offset="0"/>
</extended>
<extended order="2" type="46" label="TZ" size="1000" readonly="false">
<file name="tz.mbn" offset="0"/>
</extended>
</primary>
</physical_partition>
</image>
5. Run the emmcswdownload.exe tool to create OEM boot image with a command below.
emmcswdownload.exe -f 8660_msimage.mbn -x partition_boot.xml -s 1G -g 4M
6. The 8660_msimage.mbn will be generated in the folder.
Again, it's just an example of building one, and it's using an older model, but I think you get it. Aside from that, the only other thing I can think for you would be to use the files Qualcomm's board support package (Dragonboard 810), which would come with purchasing it with an entire new motherboard, which is the equivalent of rma'ing it anyway. This would be me rolling my sleeves back down for tonight. Let me know how it goes!
Click to expand...
Click to collapse
What about making the xml files?
tr4nqui1i7y said:
What about making the xml files?
Click to expand...
Click to collapse
You can build xml files in eclipse. The Android NDK/SDK provided should have the template there to use.
Related
Hi Guys ...
For those of you who want to change the logo of your android phone when turned on, it should change the logo on the kernel you are using, with your own logo, I will try to help explain how a simple and more detailed. If you can not do it any other way. Mugkin this way can help you. Tools needed:
- Linuk + Perl
- Windows
- A little patient and creative.
Ok! Go ...............
1. Prepare to be in exstack Kernel. You must open a pack kernel first. "DooMLord" has made the tool easy to us doing that, this tool will work in linuk.
Download the device see here:
+ Unpack-kernelsin:
http://forum.xda-developers.com/showthread.php?t=1262656
+ Kernel.sin-and-FTF-creator-v1.0:
http://forum.xda-developers.com/showthread.php?t=1363460
Run your Linuk ....
Save-kernelsin.pl and unpack the kernel will be open, the folder "HOME" on your linuk.
Call the command prompt, then type:
. / Unpack-kernelsin.pl kernel.sin
or use the command
perl unpack-kernelsin.pl kernel.sin
It will make:
- Folder-ramdisk kernel.sin
- Kernel.sin-ramdisk.cpio.gz
- Kernel.sin-kernel
- Kernel.sin-header
Delete the file "kernel.sin-ramdisk.cpio.gz" and file "kernel.sin-header".
Open the folder "kernel.sin-ramdisk",
Please edit or replace your "logo.rle" in the folder "kernel.sin-ramdisk" according to your desire. When finished editing "logo.rle", then do to repack folder "kernel.sin-ramdisk", by way of
Typing commands at the command prompt:
$ Cd kernel.sin-ramdisk
find. | Cpio-o-H newc | gzip> .. / newramdisk.cpio.gz
This will result in "newramdisk.cpio.gz"
2. Now we take the file "kernel.sin-kernel" and "newramdisk.cpio.gz". Save and make sure that both files in one folder.
3. Now you fire up your windows, preferably on Win-xp.
4. Open the folder kernel.sin-and-FTF-creator for your mobile
5. Enter "kernel.sin-kernel" and "kernel.sin-ramdisk.cpio.gz" into folder-and-FTF kernel.sin-creator.
6. Make sure Java is installed on your windows? or if not, you can follow this step.
7. On BUILD-IT.BAT right click and click edit, in order to be as follows:
echo Manifest-Version: 1.0 > manifest.mf
echo device: X10 >> manifest.mf
echo branding: dooMkernel -v06-BootManager-v1.4 >> manifest.mf
echo Created-By: dooMkernel >> manifest.mf
echo version: 2.3.3 >> manifest.mf
ren kernel.jar X10_2.3.3_dooMkernel-v06-BootManager-v1.4.ftf
8. Remove the line
del manifest.mf
del kernel.sin
save and reflace to BUILD-IT.BAT
9. In the folder-and-FTF kernel.sin-creator instead of the name "kernel.sin-kernel" to "image" and rename "-ramdisk.cpio.gz kernel.sin" to "ramdisk"
*NOTE!!
[Make sure you have change the file name correctly, because if not kernel.sin corupt.
If you have a problem in changing the name, street and do this:
How to Rename File Extensions:
Renaming File Extensions can be very handy when trying to convert one file name to another. There are many programs on the web that can help you do this. But are you aware that windows operating systems can do this for you? Below are instructions on how to do so.
Go to Start
Control Panel
Folder Options
Click on the 'View' Tab
Then simply uncheck 'Hide extensions for known file types'.
Then click Apply
Finally click Ok
Now you will be able to change file extensions, such as .JPG to .jpg.]
10. Then Double-BUILD-IT.BAT then ENTER
11. It generates two files: "kernel.sin" and "MANIFEST.MF"
12. Next create a save file folder "kernel.sin and loader.sin to the folder.
13. Now run Flashtool
14. Click Advanced and select Bundle Creation
15. In the Select source folder, select the folder where you save the file and loader.sin kernel.sin
16. on the choice Devices customize your devices, adjust the version of ROM version, the choice of content with brand Branding your devices.
17. Move all the contents of the folder content list to the Firmware
18. Click OK
19. Click Flash
20. Select the kernel that you create.
21. Click OK ...... connect the PC to your devices.
21. Flash running process ...................
22. And complete ......
As for how to make images become logo.rle, please refer to the way in this post:
http://forum.xda-developers.com/showthread.php?p=26810498#post26810498
The explanation is quite long, but hopefully can be helpful, especially for those of you who are new to this.
Thanks to: Xda-developers
dooMLord for FTF Creator and unpack the kernel
Bin4ry & Androxyde for Flashtool
And you all, in xda forum
linuk?linux ^^
Sadly I don't have a linux OS, and I'm too lazy to install Ubuntu, is this possible to do it all on Windows 7?
lewislulch said:
linuk?linux ^^
Click to expand...
Click to collapse
yes some tools still have to work on linuk
ItBankRock said:
Sadly I don't have a linux OS, and I'm too lazy to install Ubuntu, is this possible to do it all on Windows 7?
Click to expand...
Click to collapse
maybe if those tools, in potring into windows
This 'kernel kitchen' may also be helpful :-D
http://forum.xda-developers.com/showthread.php?t=1659584
From my XPERIA X10S v8.2 @ 1.19ghz. IF SOMEONE HELPS CLICK 'THANKS'
Apif Fuloh said:
Hi Guys ...
For those of you who want to change the logo of your android phone when turned on, it should change the logo on the kernel you are using, with your own logo, I will try to help explain how a simple and more detailed. If you can not do it any other way. Mugkin this way can help you. Tools needed:
- Linuk + Perl
- Windows
- A little patient and creative.
Ok! Go ...............
1. Prepare to be in exstack Kernel. You must open a pack kernel first. "DooMLord" has made the tool easy to us doing that, this tool will work in linuk.
Download the device see here:
+ Unpack-kernelsin:
http://forum.xda-developers.com/showthread.php?t=1262656
+ Kernel.sin-and-FTF-creator-v1.0:
http://forum.xda-developers.com/showthread.php?t=1363460
Run your Linuk ....
Save-kernelsin.pl and unpack the kernel will be open, the folder "HOME" on your linuk.
Call the command prompt, then type:
. / Unpack-kernelsin.pl kernel.sin
or use the command
perl unpack-kernelsin.pl kernel.sin
It will make:
- Folder-ramdisk kernel.sin
- Kernel.sin-ramdisk.cpio.gz
- Kernel.sin-kernel
- Kernel.sin-header
Delete the file "kernel.sin-ramdisk.cpio.gz" and file "kernel.sin-header".
Open the folder "kernel.sin-ramdisk",
Please edit or replace your "logo.rle" in the folder "kernel.sin-ramdisk" according to your desire. When finished editing "logo.rle", then do to repack folder "kernel.sin-ramdisk", by way of
Typing commands at the command prompt:
$ Cd kernel.sin-ramdisk
find. | Cpio-o-H newc | gzip> .. / newramdisk.cpio.gz
This will result in "newramdisk.cpio.gz"
2. Now we take the file "kernel.sin-kernel" and "newramdisk.cpio.gz". Save and make sure that both files in one folder.
3. Now you fire up your windows, preferably on Win-xp.
4. Open the folder kernel.sin-and-FTF-creator for your mobile
5. Enter "kernel.sin-kernel" and "kernel.sin-ramdisk.cpio.gz" into folder-and-FTF kernel.sin-creator.
6. On BUILD-IT.BAT right click and click edit, in order to be as follows:
echo Manifest-Version: 1.0 > manifest.mf
echo device: X10 >> manifest.mf
echo branding: dooMkernel -v06-BootManager-v1.4 >> manifest.mf
echo Created-By: dooMkernel >> manifest.mf
echo version: 2.3.3 >> manifest.mf
ren kernel.jar X10_2.3.3_dooMkernel-v06-BootManager-v1.4.ftf
7. Remove the line
del manifest.mf
del kernel.sin
save and reflace to BUILD-IT.BAT
8. In the folder-and-FTF kernel.sin-creator instead of the name "kernel.sin-kernel" to "image" and rename "-ramdisk.cpio.gz kernel.sin" to "ramdisk"
*NOTE!!
[Make sure you have change the file name correctly, because if not kernel.sin corupt.
If you have a problem in changing the name, street and do this:
How to Rename File Extensions:
Renaming File Extensions can be very handy when trying to convert one file name to another. There are many programs on the web that can help you do this. But are you aware that windows operating systems can do this for you? Below are instructions on how to do so.
Go to Start
Control Panel
Folder Options
Click on the 'View' Tab
Then simply uncheck 'Hide extensions for known file types'.
Then click Apply
Finally click Ok
Now you will be able to change file extensions, such as .JPG to .jpg.]
9. Then Double-BUILD-IT.BAT then ENTER
10. It generates two files: "kernel.sin" and "MANIFEST.MF"
11. Next create a save file folder "kernel.sin and loader.sin to the folder.
12. Now run Flashtool
13. Click Advanced and select Bundle Creation
14. In the Select source folder, select the folder where you save the file and loader.sin kernel.sin
15. on the choice Devices customize your devices, adjust the version of ROM version, the choice of content with brand Branding your devices.
16. Move all the contents of the folder content list to the Firmware
17. Click OK
18. Click Flash
19. Select the kernel that you create.
20. Click OK ...... connect the PC to your devices.
21. Flash running process ...................
22. And complete ......
As for how to make images become logo.rle, please refer to the way in this post:
http://forum.xda-developers.com/showthread.php?p=26810498#post26810498
The explanation is quite long, but hopefully can be helpful, especially for those of you who are new to this.
Thanks to: Xda-developers
dooMLord for FTF Creator and unpack the kernel
Bin4ry & Androxyde for Flashtool
And you all, in xda forum
Click to expand...
Click to collapse
most of it is redundant info, and the op is a little confusing
and my kernel kitchen does it in far less steps & complication
and this should be on themes and apps or general...
this is not development
ItBankRock said:
Sadly I don't have a linux OS, and I'm too lazy to install Ubuntu, is this possible to do it all on Windows 7?
Click to expand...
Click to collapse
Yes, download and install Cygwin.
championswimmer said:
most of it is redundant info, and the op is a little confusing
and my kernel kitchen does it in far less steps & complication
and this should be on themes and apps or general...
this is not development
Click to expand...
Click to collapse
No need to mess around with it, a better job would be the best, be the best developer. Congratulations creative the better. Best wishes. Share the beauty, life is a give and accept each other, cheering for xda developers.
Apif Fuloh said:
Hi Guys ...
For those of you who want to change the logo of your android phone when turned on, it should change the logo on the kernel you are using, with your own logo, I will try to help explain how a simple and more detailed. If you can not do it any other way. Mugkin this way can help you. Tools needed:
- Linuk + Perl
- Windows
- A little patient and creative.
Ok! Go ...............
1. Prepare to be in exstack Kernel. You must open a pack kernel first. "DooMLord" has made the tool easy to us doing that, this tool will work in linuk.
Download the device see here:
+ Unpack-kernelsin:
http://forum.xda-developers.com/showthread.php?t=1262656
+ Kernel.sin-and-FTF-creator-v1.0:
http://forum.xda-developers.com/showthread.php?t=1363460
Run your Linuk ....
Save-kernelsin.pl and unpack the kernel will be open, the folder "HOME" on your linuk.
Call the command prompt, then type:
. / Unpack-kernelsin.pl kernel.sin
or use the command
perl unpack-kernelsin.pl kernel.sin
It will make:
- Folder-ramdisk kernel.sin
- Kernel.sin-ramdisk.cpio.gz
- Kernel.sin-kernel
- Kernel.sin-header
Delete the file "kernel.sin-ramdisk.cpio.gz" and file "kernel.sin-header".
Open the folder "kernel.sin-ramdisk",
Please edit or replace your "logo.rle" in the folder "kernel.sin-ramdisk" according to your desire. When finished editing "logo.rle", then do to repack folder "kernel.sin-ramdisk", by way of
Typing commands at the command prompt:
$ Cd kernel.sin-ramdisk
find. | Cpio-o-H newc | gzip> .. / newramdisk.cpio.gz
This will result in "newramdisk.cpio.gz"
2. Now we take the file "kernel.sin-kernel" and "newramdisk.cpio.gz". Save and make sure that both files in one folder.
3. Now you fire up your windows, preferably on Win-xp.
4. Open the folder kernel.sin-and-FTF-creator for your mobile
5. Enter "kernel.sin-kernel" and "kernel.sin-ramdisk.cpio.gz" into folder-and-FTF kernel.sin-creator.
6. Make sure Java is installed on your windows? or if not, you can follow this step.
7. On BUILD-IT.BAT right click and click edit, in order to be as follows:
echo Manifest-Version: 1.0 > manifest.mf
echo device: X10 >> manifest.mf
echo branding: dooMkernel -v06-BootManager-v1.4 >> manifest.mf
echo Created-By: dooMkernel >> manifest.mf
echo version: 2.3.3 >> manifest.mf
ren kernel.jar X10_2.3.3_dooMkernel-v06-BootManager-v1.4.ftf
8. Remove the line
del manifest.mf
del kernel.sin
save and reflace to BUILD-IT.BAT
9. In the folder-and-FTF kernel.sin-creator instead of the name "kernel.sin-kernel" to "image" and rename "-ramdisk.cpio.gz kernel.sin" to "ramdisk"
*NOTE!!
[Make sure you have change the file name correctly, because if not kernel.sin corupt.
If you have a problem in changing the name, street and do this:
How to Rename File Extensions:
Renaming File Extensions can be very handy when trying to convert one file name to another. There are many programs on the web that can help you do this. But are you aware that windows operating systems can do this for you? Below are instructions on how to do so.
Go to Start
Control Panel
Folder Options
Click on the 'View' Tab
Then simply uncheck 'Hide extensions for known file types'.
Then click Apply
Finally click Ok
Now you will be able to change file extensions, such as .JPG to .jpg.]
10. Then Double-BUILD-IT.BAT then ENTER
11. It generates two files: "kernel.sin" and "MANIFEST.MF"
12. Next create a save file folder "kernel.sin and loader.sin to the folder.
13. Now run Flashtool
14. Click Advanced and select Bundle Creation
15. In the Select source folder, select the folder where you save the file and loader.sin kernel.sin
16. on the choice Devices customize your devices, adjust the version of ROM version, the choice of content with brand Branding your devices.
17. Move all the contents of the folder content list to the Firmware
18. Click OK
19. Click Flash
20. Select the kernel that you create.
21. Click OK ...... connect the PC to your devices.
21. Flash running process ...................
22. And complete ......
As for how to make images become logo.rle, please refer to the way in this post:
http://forum.xda-developers.com/showthread.php?p=26810498#post26810498
The explanation is quite long, but hopefully can be helpful, especially for those of you who are new to this.
Thanks to: Xda-developers
dooMLord for FTF Creator and unpack the kernel
Bin4ry & Androxyde for Flashtool
And you all, in xda forum
Click to expand...
Click to collapse
Hey brother
Would you please help me on this :
http://forum.xda-developers.com/showthread.php?t=1988759
TIA
for windows users these will help:
http://forum.xda-developers.com/showthread.php?t=1090217
http://forum.xda-developers.com/showthread.php?t=1140406
Can't exactly remember how I did and if I used Cygwin or not back in those days but I'm pretty sure I used these two threads for tools & info
riginal said:
for windows users these will help:
http://forum.xda-developers.com/showthread.php?t=1090217
http://forum.xda-developers.com/showthread.php?t=1140406
Can't exactly remember how I did and if I used Cygwin or not back in those days but I'm pretty sure I used these two threads for tools & info
Click to expand...
Click to collapse
Thanks a lot brother :good:
Very usefull info, sorry i just used my last "thank"
for today. Will come back later.
Thanks
Darco
Tutorial in Spanish [TUTO] Como desempaquetar un KDZ y un DZ [LG E610 L5]
Click to expand...
Click to collapse
In LG phones L7/5/3 to opted for DZ format, if we unpack one ROM KDZ we find a CAB, and if you unzipped the CAB seems the DZ.
DZ files are tablets that can be flashed directly, and as always, you can unpack to extract the ROM in BIN format.
NECESSARY TOOLS
Unpack KDZ = LGExtract.exe by navossoc.
Unpack CAB = any decompressor, on Windows, eg. WinRAR.
Unpack DZ = DZDecrypt.exe DZ_Creator.exe by copsfrance
And of course a ROM format KDZ or DZ.
PROCEDURE
The first thing to do is to unpack the KDZ, so copy the file LGExtract.exe on the route where we have the ROM format KDZ and from the console (which previously must be located on the route of the ROM) type:
WINDOWS
Code:
LGExtract.exe -kdz V10X_xx.kdz
LINUX
Code:
wine LGExtract.exe -kdz V10X_xx.kdz
Click to expand...
Click to collapse
and you press Enter
NOTE
Where it saysV10X_xx.kdz must be the name of the ROM, for exampleV10A_00.kdz
When the process is complete will see a file with the same name as the ROM, but with the extension .cab, for example, V10A_00.cab
Unzip it and will the DZ and a DLL file
To unpack the DZ type this:
WINDOWS
Code:
DZDecrypt.exe LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz
LINUX
Code:
wine DZDecrypt.exe LGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz
Click to expand...
Click to collapse
And you press Enter
NOTE
Where it saysLGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz should be the name of the DZ, for example:LGE610AT-00-V10b-EUR-XXX-MAY-23-2012+0.dz
We already have the ROM in BIN format, now you have to concatenate the files SYSTEM, so we use the console and...:
WINODWS
Code:
copy /b "system.img.ext4_
[*]" "system.img"
LINUX
Code:
cat system.img.ext4_* > system.img.ext4
Click to expand...
Click to collapse
And you press Enter and you can delete the files system.img.ext4_0, system.img.ext4_1,..., system.img.ext4_6 (version DZDecrypt.exe v1.0c+ does this job automatically)
Now we'll have a list like this:
Code:
amss.bin
boot.img
boot_logo.bin
emmc_appsboot.bin
oemsbl.bin
partition.bin
persist.img.ext4
qcsbl.mbn
qcsblhd_cfgdata.mbn
recovery.img
system.img.ext4
Click to expand...
Click to collapse
Files .ext4 are you can rename to .img and mount as one drive in Linux or WIndows with Winimage manipulate its contents
LINUX:
Code:
mkdir system
sudo mount system.img.ext4 system -oloop
To disassemble
Code:
sudo umount system
Click to expand...
Click to collapse
With this I believe that we have done, if something is missing or you have any questions to ask without fear.
very useful for stock rom modding... I was looking for this a month ago, so thanks man!
I cant open with WinImage my system.img extract from L3 e400 V10O_00.kdz
Ygreck said:
I cant open with WinImage my system.img extract from L3 e400 V10O_00.kdz
Click to expand...
Click to collapse
for .img (from .kdz) u have to use ext2explorer
google it or try this link
http://d-h.st/nRw
i've tried to add it as attachment but failed for unknown reasons.
All this procedure will not work for E435.
i've got 1gb .dz file but unable to extract it.
any ideas?
Sudeep Duhoon said:
... All this procedure will not work for E435.
i've got 1gb .dz file but unable to extract it.
any ideas?
Click to expand...
Click to collapse
Try this http://forum.xda-developers.com/showpost.php?p=38748031&postcount=43
Homero2 said:
Try this http://forum.xda-developers.com/showpost.php?p=38748031&postcount=43
Click to expand...
Click to collapse
i tried this, no change
Homero2 said:
In LG phones L7/5/3 to opted for DZ format, if we desempaquetamos one ROM KDZ we find a CAB, and if you unzipped the CAB seems the DZ.
DZ files are tablets that can be flashed directly, and as always, you can unpack to extract the ROM in BIN format.
NECESARY TOOLS
Unpack KDZ = LGExtract.exe by navossoc.
Unpack CAB = any decompressor, on Windows, eg. WinRAR.
Unpack DZ = DZDecrypt.exe DZ_Creator.exe by copsfrance
And of course a ROM format KDZ or DZ.
PROCEDURE
The first thing to do is to unpack the KDZ, so copy the file LGExtract.exe on the route where we have the ROM format KDZ and from the console (which previously must be located on the route of the ROM) type:
and you press Enter
NOTE
Where it saysV10X_xx.kdz must be the name of the ROM, for exampleV10A_00.kdz
When the process is complete will see a file with the same name as the ROM, but with the extension .cab, for example, V10A_00.cab
Unzip it and will the DZ and a DLL file
To unpack the DZ type this:
And you press Enter
NOTE
Where it saysLGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz should be the name of the DZ, for example:LGE610AT-00-V10b-EUR-XXX-MAY-23-2012+0.dz
We already have the ROM in BIN format, now you have to concatenate the files SYSTEM, so we use the console and...:
And you press Enter and you can delete the files system.img.ext4_0, system.img.ext4_1,..., system.img.ext4_6 (version DZDecrypt.exe v1.0c+ does this job automatically)
Now we'll have a list like this:
Files .ext4 are you can rename to .img and mount as one drive in Linux or WIndows with Winimage manipulate its contents
With this I believe that we have done, if something is missing or you have any questions to ask without fear.
Click to expand...
Click to collapse
yes
slarkpro said:
hi pro i have added root file into dz file now i join dz file and dll file via uptest marwin but have an error i don't undestand pls help me!!
Click to expand...
Click to collapse
Bạn bên tinhte.vn à:thumbup:
Gửi từ LG-Optimus L7 của tôi bằng cách sử dụng Tapatalk2
is there a kdz extractor for linux???
ensarman said:
is there a kdz extractor for linux???
Click to expand...
Click to collapse
afaik no
but as the thread explain you should use wine
I used it but my cellphone is a LG L3 II
and I cannot extract the DZ file. I cannot find how to extract my kdz : (
But the kdz updater software can do it but I don't know where that software extract the kdz
Homero2 said:
In LG phones L7/5/3 to opted for DZ format, if we unpack one ROM KDZ we find a CAB, and if you unzipped the CAB seems the DZ.
DZ files are tablets that can be flashed directly, and as always, you can unpack to extract the ROM in BIN format.
NECESSARY TOOLS
Unpack KDZ = LGExtract.exe by navossoc.
Unpack CAB = any decompressor, on Windows, eg. WinRAR.
Unpack DZ = DZDecrypt.exe DZ_Creator.exe by copsfrance
And of course a ROM format KDZ or DZ.
PROCEDURE
The first thing to do is to unpack the KDZ, so copy the file LGExtract.exe on the route where we have the ROM format KDZ and from the console (which previously must be located on the route of the ROM) type:
and you press Enter
NOTE
Where it saysV10X_xx.kdz must be the name of the ROM, for exampleV10A_00.kdz
When the process is complete will see a file with the same name as the ROM, but with the extension .cab, for example, V10A_00.cab
Unzip it and will the DZ and a DLL file
To unpack the DZ type this:
And you press Enter
NOTE
Where it saysLGE610AT-xx-VxxX-XX-XXX-xx-xx-20xx+x.dz should be the name of the DZ, for example:LGE610AT-00-V10b-EUR-XXX-MAY-23-2012+0.dz
We already have the ROM in BIN format, now you have to concatenate the files SYSTEM, so we use the console and...:
And you press Enter and you can delete the files system.img.ext4_0, system.img.ext4_1,..., system.img.ext4_6 (version DZDecrypt.exe v1.0c+ does this job automatically)
Now we'll have a list like this:
Files .ext4 are you can rename to .img and mount as one drive in Linux or WIndows with Winimage manipulate its contents
With this I believe that we have done, if something is missing or you have any questions to ask without fear.
Click to expand...
Click to collapse
Is there a way to get to the totc.cfg file and edit it?
Hi, I'm trying use abootimg to extract the bootimg.cfg file but it keeps giving me the error:
Code:
~/Projects/dualboot_bt_android/BT5-GNOME-ARM$ abootimg -x data.img bootimg.cfg
data.img: Value too large for defined data type
What do you think the problem is? I think I'm getting this because the data.img is 4.9 gbs in size, but I don't know how to resize the it...
EDIT: Can't believe I overlooked it. I tried to extract it from the data.img instead of the boot.img like I was supposed to. :faceplam: No wonder it didn't work. Mods, you can delete this thread if you want; I'll try not to be so careless in the future.
Kobalt.Kitsune said:
Hi, I'm trying use abootimg to extract the bootimg.cfg file but it keeps giving me the error:
Code:
~/Projects/dualboot_bt_android/BT5-GNOME-ARM$ abootimg -x data.img bootimg.cfg
data.img: Value too large for defined data type
What do you think the problem is? I think I'm getting this because the data.img is 4.9 gbs in size, but I don't know how to resize the it...
Click to expand...
Click to collapse
What device are you working with? Most boot images I have seen have been only around 6-12 MB in size not 4.9+ GB you could try using boot.img rather then data.img (Which can be huge like the file you got and thus got that error message).
shimp208 said:
What device are you working with? Most boot images I have seen have been only around 6-12 MB in size not 4.9+ GB you could try using boot.img rather then data.img (Which can be huge like the file you got and thus got that error message).
Click to expand...
Click to collapse
Sorry, I tried to extract it from the wrong .img [see my first post]. I'm working on a backtrack multiboot for the galaxy tab 10.1 [p4wifi]. It would be so awesome it get this going on my tab.
We need a developer who has a working lg l9 ii to create these files, i think...
How to generate the 8660_msimage.mbn
8660_msimage.mbn is released in SW by default, actually, it includes the all the boot images and partition table there. MPRG8660.hex will download this image and reset to mass-storage mode. If customers have different HW settings, such as GPIO/DDR, the default 8660_msimage.mbn may not work for them, so customers need build their own 8660_msimage.mbn by themselves with following ways.
1. Have the QPST 2.7.366 or higher version installed.
2. Make a local folder, copy sbl1/sbl2/sbl3/rpm/tz images to this folder.
3. copy the emmcswdownload.exe from C:\Program Files\Qualcomm\QPST\bin to this folder.
4. Prepare the partition_boot.xml as below and copy the partition_boot.xml to the same folder as above.
<?xml version="1.0"?>
<image>
<physical_partition number="0">
<primary order="1" type="4d" bootable="true" label="SBL1" size="1000" readonly="false">
<file name="sbl1.mbn" offset="0"/>
</primary>
<primary order="2" type="51" bootable="false" label="SBL2" size="3000" readonly="false">
<file name="sbl2.mbn" offset="0"/>
</primary>
<primary order="3" type="45" bootable="false" label="SBL3" size="1500" readonly="false">
<file name="sbl3.mbn" offset="0"/>
</primary>
<primary order="4" type="5" bootable="false" label="EXT" size="1000000">
<extended order="1" type="47" label="RPM" size="1000" readonly="false">
<file name="rpm.mbn" offset="0"/>
</extended>
<extended order="2" type="46" label="TZ" size="1000" readonly="false">
<file name="tz.mbn" offset="0"/>
</extended>
</primary>
</physical_partition>
</image>
5. Run the emmcswdownload.exe tool to create OEM boot image with a command below.
emmcswdownload.exe -f 8660_msimage.mbn -x partition_boot.xml -s 1G -g 4M
6. The 8660_msimage.mbn will be generated in the folder.
OR:
How to build eMMC flash programmer MPRGXXXX.hex and msimage.mbn?
1. Please check if the SConscript is provided in "modem_proc/core p/tools/emmcbld/bulid". If not, you cannot build it with this release.
2. set build environment by executing RVCTXX.bat in build/ms folder
3. go to "modem_proc/core/bsp/build"
4. execute "build emmcbld BUILD_ID=xxxxxxxx"
5. The generated image is located in modem_proc/build/ms/bin/EMMCBLD/
6. MPRGXXXX.hex is eMMC programmer used to communicate with QPST to download msimage.mbn into eMMC.
7. msimage.mbn is used to enumerate the device as a USB mass storage device for all the image updates.
Please refer to modem_proc/core/bsp/tools/emmcbld/bulid/SConscript for how emmcbld and msimage are built and generated.
Using command line to creat 7x30_msimage.mbn
The eMMC Software Download Tool can also be used in Command Line mode for factory automation and creating boot images.
First find the location of your QPST install, normally under C:\Program Files(x86)\Qualcomm\ 5 QPST\bin, that contains your emmcswdownload.exe file. You can either map this location to your 6 path or refer to it directly from the cmd window.
The following command line options are supported for emmcswdownload.exe:
-f <filename> : direct output to <filename> instead of selected device
-s <size enum> : mass storage device size = { “1G”, “2G”, “4G”, etc }
-g <size enum> : write protect group size = { “4M”, “8M”, “16M”, etc }
-x <filename> : partition description file
-p <directory> : search path = path1;path2;…. Etc
-L <filename> : list all connected mass storage drives to <filename>
-i <filename> : image file to write to mass storage device
-w <drive> : mass storage drive to write image file to
In this command line:
–s and –g options are required, even if no sections are marked as read only
–s size is only used to set the size of the last partition; it does not affect the size of the output image
–g is the write-protect size for partitions marked as read only; if there are multiple read-only partitions, only the first and last partitions will be aligned on a protect size boundary
–L only dumps to the output file, not to stdout
emmcswdownload -f \tmp\7x30_msimage.mbn -x E:\emmc\partition_boot.xml -s 1G -g 64M -p E:\emmc\;
Original Post: http://4pda.ru/forum/index.php?s=&showtopic=643084&view=findpost&p=43253768
This does not help at all
neutrondev said:
This does not help at all
Click to expand...
Click to collapse
Why? To revive the smartphone lacks only these two files
JackPOtaTo said:
Why? To revive the smartphone lacks only these two files
Click to expand...
Click to collapse
Ok try then. You can't make the files like that but try if you want. I just told you .
neutrondev said:
Ok try then. You can't make the files like that but try if you want. I just told you .
Click to expand...
Click to collapse
I wrote that we need a developer who has a working l9 II to build these files:cyclops:
JackPOtaTo said:
I wrote that we need a developer who has a working l9 II to build these files:cyclops:
Click to expand...
Click to collapse
You can't build it like that, I tell you again. No device with your socket was unbricked. If it was that easy someone would of made them. Don't trust everything you read on the internet.
neutrondev said:
You can't build it like that, I tell you again. No device with your socket was unbricked. If it was that easy someone would of made them. Don't trust everything you read on the internet.
Click to expand...
Click to collapse
Hi , I have Coolpad devce "Qiku Terra" MSM8992 and the device is hard bricked. I do not have the required files such as MPRG8992.mbn, 8992_msimage.mbn etc. Can you suggest some ways to unbrick it???.
As per a post on xda of Coolpad device if emmc image of working phone (same model) is written on a sd card using HDD Raw copy then the phone can boot in fastboot mode. You think this would work??
Can you also help me with the right code to get the emmc image's initial partitions?? I would appreciate your response.
No even emergency/download mode?
JackPOtaTo said:
<?xml version="1.0"?>
<image>
<physical_partition number="0">
<primary order="1" type="4d" bootable="true" label="SBL1" size="1000" readonly="false">
<file name="sbl1.mbn" offset="0"/>
</primary>
<primary order="2" type="51" bootable="false" label="SBL2" size="3000" readonly="false">
<file name="sbl2.mbn" offset="0"/>
</primary>
<primary order="3" type="45" bootable="false" label="SBL3" size="1500" readonly="false">
<file name="sbl3.mbn" offset="0"/>
</primary>
<primary order="4" type="5" bootable="false" label="EXT" size="1000000">
<extended order="1" type="47" label="RPM" size="1000" readonly="false">
<file name="rpm.mbn" offset="0"/>
</extended>
<extended order="2" type="46" label="TZ" size="1000" readonly="false">
<file name="tz.mbn" offset="0"/>
</extended>
</primary>
</physical_partition>
</image>
Click to expand...
Click to collapse
Can you give me more details? I have a bricked Huawei Y6 (SCL-L21) that has Qualcomm cpu and I have the original firmaware in UPDATE.APP format (huawei default) but I can extract almost every partition inside that file, so looking at your xml, I have sbl1, rpm and tz partition, so do I need to delete sbl2 and sbl3 entries? and one more thing... Do I have to change the size attribute?
Waiting for your reply, thanks
Hi, I have a rooted working d605. I can help if you give me instructions.
So the people in Japan using this method are wrong ?
The code is not exactly correct but the theory seems correct.
Just for info.
I found out that to build a msimage.mbn for your phone, That you have to use a older version of QPST, The newest version does not work.
I built a 8960_msimage.mbn that matches my phone using the old version, QPST 2.7.366
For some reason newer versions of emmcswdownload.exe fails when trying to build a image.
New versions are not always better versions... Look at Windows 10.
Hello,
I was able to unpack the image simply by using the command
Code:
unrar x system.img
Now that I have made my modifications (literally only changing the build.prop to start) I need to repack the system file folder back to an "x-raw-disk-image". Does anybody know how I may do this? Thanks everyone!