Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Lightbulb [TOOL] SplitFUS -create your own Odin ready pack 06/25 ver 2.11

OP Doky73

21st April 2012, 04:36 PM   |  #1  
Doky73's Avatar
OP Recognized Contributor
Flag near to Budapest
Thanks Meter: 2,929
 
847 posts
Join Date:Joined: Apr 2011
More
###new###: Video tutorial in post #3

06/25: update
SplitFUS2 2.11

new features:
- Wipe support for Galaxy Y Pro (GT-B5510), Galaxy Pocket (GT-S5300), Galaxy Y (GT-S5360, GT-S5360B, GT-S5360L, GT-S5360T, GT-S5363, GT-S5369) Galaxy Mini Pro or Pop Pro (GT-S5570I), Galaxy Ace (new version BMC21553 based, 833MHz CPUed GT-S5830i), Galaxy Y Duos (GT-S6102)
- tar, md5sum, zip checking at launch

Downlosd links:
SplitFUS2 ver 2.11 GA for Windows/Cygwin
SplitFUS2 ver 2.11 GA for Linux
=end of update=======================

06/11: Minor update for Samsung Galaxy Pocket GT-S5300 support
SplitFUS2 v2.01.210612GA (Windows + Cygwin version only, Linux version on request...)
=end of update=======================

SplitFUS2
Since Galaxy Y has been released, there are several firmware files available from different sources, eg. sammobile and etc... But most of these firmware packages (which are original unmodified Kies FUS files) are useless for us, because Odin is not able to flash these files. The reason is, the available file is not a standard tar file, it's headers are corrupted. Finally I found the method to split the files, and started converting packages by request and popularity. As time passed, I made the process automatically, first by utilizing spreadsheet, then writing a small C application. This is SplitFUS2

The app converts the original files (which can be downloaded form the FUS server or from sammobile or other sources) to Odin ready 3 files tar pack.
The app useful for Samsung Galaxy Y (S536x, B551x, S6102), new Galaxy Ace (S5830i), Galaxy Pop Pro or Mini Plus or whatever it's name (S5570I)

Download it form here:
SplitFUS2 for Windows (requires Cygwin)
SplitFUS2 for Linux

Unpack the whole pack to a working directory, and start it from command line!


By flashing an improper firmware pack you may potentially risk the health of your phone. Do it on your own risk only!
I won't take responsibility of any damage done to your phone.


Required components under Cygwin/Linux
tar, md5sum, zip (infozip)

Code:
doky@doky-vbox:~/splitfus$ ./splitfus2
SplitFUS2 by Doky v2.00.120425GA
Usage: splitfus2 [options] filename
Converts the original Samsung Kies FUS update pack to Odin ready bundle
Options:
      -s to include sbl.bin (omitted by default) use with CAUTION!
      -w create wipe pack (currently only S5360 supported)
      -w2 generate non wipe and wipe pack at the same pass
      -a leave work folder alone (does not delete on exit)
      -k extract kernel only
      -t do not sign md5, leave tar output files

see more at: http://forum.xda-developers.com/showthread.php?t=1611225
Features (2.00.120425GA)
- automatic conversion of one-file FUS tar.md5 files to three-files tar.md5 packed into zip
- automatic readme.txt creation
- sbl skipped by default, can be included by "-s" command line switch (see #2 for info)
- '-w[2]' switch to generate "wipe" pack [too] (user data will be eleminated by flasnig the wipepack)
- '-a' switch, not to delete the work folder - useful for ROMmmers to examine and extract the image files
- '-k' switch for create Odin flashable stock kernel file only
- '-t' switch for skip the md5sum checksum, and create .tar files

Bugs
surely got some... please report!
-

Future plans
- support data partition wipe for different models (need assistance collecting userdata.img for other models)
- include wipe partitions into the binary, and eliminate _base folder
- Windows GUI
- any request...?

Supported models (please report if not listed!)
-S5360
-S5360B
-S5360L
-S5360T
-S5363
-S5369

-B5510
-S6102
-S5570I
-S5830i


tested and NOT supported (yet, sorry):
-S5690
-
In case you have Odin flash issues with these models, and got at least one Odin working pack, please contact me!

Usage:
see post #2!



Thanks to the beta testers:
chamatht
championswimmer
Millan.SIS
N£utrino
NanoSurfer
pawanyadav
ronnieryan
Last edited by Doky73; 5th December 2012 at 03:30 AM. Reason: ver 2.11
The Following 120 Users Say Thank You to Doky73 For This Useful Post: [ View ]
21st April 2012, 04:36 PM   |  #2  
Doky73's Avatar
OP Recognized Contributor
Flag near to Budapest
Thanks Meter: 2,929
 
847 posts
Join Date:Joined: Apr 2011
More
Usage:
- start Cygwin terminal in Windows or terminal shell in Linux
- unpack the whole archive including the _base folder into your work folder (eg into Win: C:\Cygwin\home\username\splitfus, Linux: /home/username/splitfus)
- on Linux set file permissions to executable, and check ownership of splitfus, _base and it's content (chmod 755 splitfus)
- put your source Samsung FUS file (one file *.tar.md5) into the work folder
- list help by: ./splitfus2 -h
- launch according to your needs, eg ./splitfus2 -w S5360DDLC2_S5360ODDLA2_S5360DDLC2_HOME.tar.md5

see Video tutorial on installing Cygwin
At packs selection (time - 3:15) make sure "tar", "md5sum", "zip" has been selected. On newer installer there's a search box above, type search words in it!

Examples:

Code:
Linux:
doky@doky-vbox:~/splitfus$ ./splitfus2 -a -s -w2 S5360DDLC2_S5360ODDLA2_S5360DDLC2_HOME.tar.md5
SplitFUS2 by Doky v2.00.120425GA
[*]Leaving work folder as is
[*]Including sbl.bin - USE WITH CAUTION!!!
[*]Creating WIPE package
[*] ...and non-wipe too :)
Processing file: S5360DDLC2_S5360ODDLA2_S5360DDLC2_HOME.tar.md5
MODEL: S5360
PDA: DDLC2
CSC: ODDLA2
MODEM: DDLC2
Temporary workfolder: S5360_DDLC2/
[      sbl.bin ] --- Size: 1306624 bytes
[    BcmCP.img ] --- Size: 11534336 bytes
[     boot.img ] --- Size: 4513792 bytes
[   system.img ] --- Size: 211652096 bytes
[    param.lfs ] --- Size: 765952 bytes
[      csc.rfs ] --- Size: 4875776 bytes
Now creating nonwipe package
  adding: CSC_S5360_ODDLA2.tar.md5 (deflated 5%)
  adding: MODEM_S5360_DDLC2.tar.md5 (deflated 54%)
  adding: PDA_S5360_DDLC2.tar.md5 (deflated 45%)
  adding: readme.txt (deflated 36%)
Output file: S5360_DDLC2_ODDLA2_DDLC2_by_SplitFUS2.zip
Now creating wipe package
  adding: CSC_S5360_ODDLA2.tar.md5 (deflated 5%)
  adding: MODEM_S5360_DDLC2.tar.md5 (deflated 54%)
  adding: PDA_S5360_DDLC2.tar.md5 (deflated 45%)
  adding: readme.txt (deflated 37%)
Output file: S5360_DDLC2_ODDLA2_DDLC2_wipe_by_SplitFUS2.zip
SplitFUS2 finished
Code:
Windows:
g:\SplitFUS2>splitfus2.exe -a -k S5360XXLA4_S5360DBTKK1_S5360XXLA4_HOME.tar.md5
SplitFUS2 by Doky v2.00.120425GA
[*]Leaving work folder as is
[*]Exctracting kernel image only
Processing file: S5360XXLA4_S5360DBTKK1_S5360XXLA4_HOME.tar.md5
MODEL: S5360
PDA: XXLA4
CSC: DBTKK1
MODEM: XXLA4
Temporary workfolder: S5360_XXLA4\
[      sbl.bin ] --- Size: 1306624 bytes
[    BcmCP.img ] --- Size: 11534336 bytes
[     boot.img ] --- Size: 4501504 bytes
Packing kernel image
Now creating the kernel pack
Output file: Kernel_S5360_XXLA4.tar.md5
SplitFUS2 finished
more on usage to come...
#
#
#
#


One notice on SBL:

I decided to not include the SBL by default, because SBL is crucial point of hard-bricking your phone.
According to my tests (about 30+ packs), SplitFUS2 handles correctly the SBL, but in future Samsung FUS files it might change.

Who wants to include SBL can use '-s' switch, but my recommendation is to check the generated sbl.bin with a hex editor.
some criteria to judge about good (SGY) sbl.bin:
- Size is 1306624
- starts with HEX 13 00 00 EA
- at the end there's a lot of 00 00 00 00 00 00 00 00 blocks
- somewhere at 0x9BBxx there's a string of 'Secondary Boot Loaded'

In addition compare with a working one. If similar (but not necessarily identical) then it's OK.




When above criterion has meet then you have good chance not to brick your phone by a wrong sbl.bin
Last edited by Doky73; 5th December 2012 at 09:29 PM.
The Following 38 Users Say Thank You to Doky73 For This Useful Post: [ View ]
21st April 2012, 04:36 PM   |  #3  
Doky73's Avatar
OP Recognized Contributor
Flag near to Budapest
Thanks Meter: 2,929
 
847 posts
Join Date:Joined: Apr 2011
More
Video tutorial of Cygwin and SplitFUS2 install & usage

full screen & HD recommended

Last edited by Doky73; 5th December 2012 at 03:27 AM.
The Following 28 Users Say Thank You to Doky73 For This Useful Post: [ View ]
21st April 2012, 04:45 PM   |  #4  
ronnieryan's Avatar
Recognized Contributor
Flag Dumaguete
Thanks Meter: 940
 
2,264 posts
Join Date:Joined: Jan 2012
More
Thank you for this wonderful post sir
Last edited by ronnieryan; 3rd May 2012 at 02:00 PM.
The Following 2 Users Say Thank You to ronnieryan For This Useful Post: [ View ]
21st April 2012, 05:13 PM   |  #5  
Doky73's Avatar
OP Recognized Contributor
Flag near to Budapest
Thanks Meter: 2,929
 
847 posts
Join Date:Joined: Apr 2011
More
Quote:
Originally Posted by ronnieryan

waiting for this
too bad im pure linux user

It's written in pure C and shell script, won't take too much time to build a linux ver...
The Following 6 Users Say Thank You to Doky73 For This Useful Post: [ View ]
21st April 2012, 05:27 PM   |  #6  
NanoSurfer's Avatar
Senior Member
Flag Cape Town
Thanks Meter: 734
 
652 posts
Join Date:Joined: Mar 2012
More
WOW Sir Doky, you are AMAZING!!!!!!
The Following User Says Thank You to NanoSurfer For This Useful Post: [ View ]
21st April 2012, 05:51 PM   |  #7  
pawanyadav's Avatar
Senior Member
Flag Delhi
Thanks Meter: 209
 
267 posts
Join Date:Joined: Feb 2012
More
Quote:
Originally Posted by ronnieryan

waiting for this
too bad im pure linux user

1+
will wait for linux version
21st April 2012, 06:40 PM   |  #8  
bumslayer's Avatar
Senior Member
Flag Near you
Thanks Meter: 139
 
446 posts
Join Date:Joined: Dec 2011
More
Hurrah for virtualbox
The Following User Says Thank You to bumslayer For This Useful Post: [ View ]
21st April 2012, 06:40 PM   |  #9  
chamatht's Avatar
Senior Member
Flag Colombo
Thanks Meter: 476
 
425 posts
Join Date:Joined: Nov 2011
More
Ready to test

Sent from my GT-S5360 using xda premium
The Following User Says Thank You to chamatht For This Useful Post: [ View ]
21st April 2012, 10:20 PM   |  #10  
ggnatomen's Avatar
Senior Member
Flag Land of the ABU's
Thanks Meter: 24
 
134 posts
Join Date:Joined: Feb 2012
More
Thumbs up
Yay! ive been waiting for this one. sir Doky THANKS!

Post Reply Subscribe to Thread

Tags
odin, sgy, splitfus
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes