Post Reply
Tutorial

[Noob-Tutorial] How to create a CWM flashable zip file from FTF Firmware

9th March 2013, 03:01 PM   |  #1  
OP Senior Member
Thanks Meter: 112
 
267 posts
Join Date:Joined: May 2010
Hi @all,

I´m using the Flashtool and other provided tools here in the Forum for a long time (thanks to all people who are involved in the developing)

Now I want to give something back.
I´m not a developer but I understand (hopefully) basic things.
I have also some phones which does not support the flashmode so I am reliant to the fastboot mode and CWM.
At this point my goal was to flash the stock ROM to the Xperia Z.

I found a tuturial how to make a flashable zip file for CWM but it was for old devices with yaffs2 filesystem and the new ones have ext4.


After some search I found everything what is needed and I want to share it with you.
The Tutorial covers basic things but maybe it will help some people who will try it.

Step 1
Download the Stock-FW you want (FTF-File)

Step 2
Rename the .ftf File to .zip

Step 3
Extract the system.sin (with 7zip or WinRar for example)

Step 4
Open Flashtool go to "Tools" -> "Sin Editor" -> Choose the extracted system.sin and push "extract" Data

Step 5
You will get an system.ext4 file

Step 6
We have to extract the files which are in the system.ext4 file - for this I used the DiskInternal Linux Reader

Step 7
After extracting the files you have to put all the files in a folder named "system" (low letters)

Step 8
Create a folder named for example "Firmware"

Step 9
Put the "system" folder in the "Firmware" folder

Step 10
Download the Attached META-INF File - extract it and copy the META-INF Folder in the "Firmware" folder

Step 11
Now you have in your "Firmware" folder two sub-folders
"system" and "META-INF"
Now you only have to zip the both folders for example with 7zip or WinRar
Important: You have to set the compression to "Store"

Step 12
Copy the zip File to your SD-Card and flash it with CWM


If you want you can now add files to the system folder - like busy box - and or modify things and flash it over CWM.


Special thanks to Bin4ry


Best regards
UserX10
Attached Files
File Type: zip META-INF.zip - [Click for QR Code] (356.3 KB, 3487 views)
Last edited by UserX10; 12th March 2013 at 12:01 PM.
The Following 79 Users Say Thank You to UserX10 For This Useful Post: [ View ]
10th March 2013, 05:20 PM   |  #2  
avetny's Avatar
Senior Member
Flag Private Island.
Thanks Meter: 1,594
 
4,973 posts
Join Date:Joined: Jul 2010
More
Learned ! Thank you.
11th March 2013, 06:12 PM   |  #3  
xL3thalTuRdZz's Avatar
Senior Member
Flag Blyth
Thanks Meter: 379
 
2,810 posts
Join Date:Joined: Oct 2012
More
Nice tutorial!
EDIT: The flashable zip is huge (990MB), did this have anything to do with the compression being set to 'store'?
Last edited by xL3thalTuRdZz; 11th March 2013 at 07:11 PM.
12th March 2013, 10:24 AM   |  #4  
TheHawk002's Avatar
Senior Member
Flag Stockholm
Thanks Meter: 413
 
992 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Re: [Noob-Tutorial] How to create a CWM flashable zip file from FTF Firmware
Quote:
Originally Posted by xL3thalTuRdZz

Nice tutorial!
EDIT: The flashable zip is huge (990MB), did this have anything to do with the compression being set to 'store'?

If you don't set it to store it wont work at all, no rom/flashable zip have anything other than store compression the same goes for bootanimations

Edit: OP/Mod you might just want to change TFT file to FTF in step 1
Sent from my GT-i9100 using Tapatalk 2
Edit2: It seems like this only goes for bootanimations, sorry my bad.
Last edited by TheHawk002; 7th May 2013 at 09:24 PM.
12th March 2013, 10:51 AM   |  #5  
Senior Member
Flag Macau
Thanks Meter: 3
 
165 posts
Join Date:Joined: Jul 2006
More
Great.....learning it now
12th March 2013, 12:42 PM   |  #6  
OP Senior Member
Thanks Meter: 112
 
267 posts
Join Date:Joined: May 2010
Thanks for the positive feedback.
Changed also the typo on Step 1
The Following User Says Thank You to UserX10 For This Useful Post: [ View ]
15th March 2013, 08:50 AM   |  #7  
xL3thalTuRdZz's Avatar
Senior Member
Flag Blyth
Thanks Meter: 379
 
2,810 posts
Join Date:Joined: Oct 2012
More
Re: [Noob-Tutorial] How to create a CWM flashable zip file from FTF Firmware
I've tried setting compression to 'Normal' and all seems to be going fine...

Sent from my C6603 using xda app-developers app
23rd March 2013, 12:06 AM   |  #8  
olujnap316's Avatar
Senior Member
Flag Philippines
Thanks Meter: 134
 
512 posts
Join Date:Joined: Aug 2012
More
Re: [Noob-Tutorial] How to create a CWM flashable zip file from FTF Firmware
Can this be applicable to nxt devices like mine?thanks for the tutorial...

Sent from my LT22i using Tapatalk 2
9th April 2013, 02:42 PM   |  #9  
ShivangDave's Avatar
Recognized Contributor
Flag Ahmedabad
Thanks Meter: 863
 
806 posts
Join Date:Joined: Dec 2012
More
how to extract from ext4
can you explain with details

im getting ext4 file again after extracting !
22nd April 2013, 09:53 AM   |  #10  
tempofestival's Avatar
Member
Thanks Meter: 12
 
74 posts
Join Date:Joined: Sep 2012
Quote:
Originally Posted by ShivangDave

can you explain with details

im getting ext4 file again after extracting !

You have to selected the .ext4 file open with LinuxReader. (like you .doc file with Word)
LinuxReader will "mounted" it in his own window, open your "new" disk (2Go) then select the "Save" option above...

The Following 2 Users Say Thank You to tempofestival For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
cwm, fimware, tutorial
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Xperia Z Android Development by ThreadRank