Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
jerdog
Old
(Last edited by jerdog; 27th September 2011 at 04:19 AM.) Reason: updated the partition id info
#1  
jerdog's Avatar
Developer Committee / OEM Relations / XDA News Writer - Harbinger of Doom - OP
Thanks Meter 3011
Posts: 4,571
Join Date: May 2007
Location: Kansas; Likes: XDA, Coffee, Android, Intelligence Dislikes: Self-entitled twits and id10ts

 
DONATE TO ME
Default [INFO][DEV]SGS2 Epic 4G Touch Partition Structure

Here are the partitions for the Epic 4G Touch as identified by Heimdall. The .pit file was successfully created by odub303 and found here

After talking to Hacre he informed me that the partition Identifier is offset by -1.

So basically, if the partition identifier below says "7" for recovery.bin, then it means it is actually mmcblk0p6....




--- Entry #0 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 0
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 0
Partition Block Count: 0
Unknown 2: 0
Unknown 3: 0
Partition Name: GANG
Filename: emmc.img

--- Entry #1 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 1
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 0
Partition Block Count: 0
Unknown 2: 0
Unknown 3: 0
Partition Name: BOOT
Filename: boot.bin

--- Entry #2 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 4
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 8192
Partition Block Count: 40960
Unknown 2: 0
Unknown 3: 0
Partition Name: EFS
Filename: efs.img

--- Entry #3 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 2
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 49152
Partition Block Count: 2560
Unknown 2: 0
Unknown 3: 0
Partition Name: SBL1
Filename: Sbl.bin

--- Entry #4 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 3
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 53248
Partition Block Count: 2560
Unknown 2: 0
Unknown 3: 0
Partition Name: SBL2
Filename:

--- Entry #5 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 5
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 57344
Partition Block Count: 16384
Unknown 2: 0
Unknown 3: 0
Partition Name: PARAM
Filename: param.lfs

--- Entry #6 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 6
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 73728
Partition Block Count: 16384
Unknown 2: 0
Unknown 3: 0
Partition Name: KERNEL
Filename: zImage

--- Entry #7 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 7
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 90112
Partition Block Count: 16384
Unknown 2: 0
Unknown 3: 0
Partition Name: RECOVERY
Filename: recovery.bin

--- Entry #8 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 8
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 106496
Partition Block Count: 614400
Unknown 2: 0
Unknown 3: 0
Partition Name: CACHE
Filename: cache.img

--- Entry #9 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 9
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 720896
Partition Block Count: 32768
Unknown 2: 0
Unknown 3: 0
Partition Name: MODEM
Filename: modem.bin

--- Entry #10 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 10
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 753664
Partition Block Count: 1048576
Unknown 2: 0
Unknown 3: 0
Partition Name: FACTORYFS
Filename: factoryfs.img

--- Entry #11 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 11
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 1802240
Partition Block Count: 4194304
Unknown 2: 0
Unknown 3: 0
Partition Name: DATAFS
Filename: data.img

--- Entry #12 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 12
Partition Flags: 2 (R/W)
Unknown 1: 0
Partition Block Size: 5996544
Partition Block Count: 24133632
Unknown 2: 0
Unknown 3: 0
Partition Name: UMS
Filename:

--- Entry #13 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 13
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 30130176
Partition Block Count: 638976
Unknown 2: 0
Unknown 3: 0
Partition Name: HIDDEN
Filename: hidden.img

--- Entry #14 ---
Unused: Yes
Partition Type: 1 (Unknown)
Partition Identifier: 9
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 0
Partition Block Count: 0
Unknown 2: 0
Unknown 3: 0
Partition Name:
Filename:
Ending session...
Rebooting device...



Quote:
Notify your physician if after exposure to XDA n00bs you experience any of the following symptoms: rapid or irregular heartbeat, chest pain, shortness of breath, leg cramps, headache, nervousness, irritability, sleeplessness, tremors, change in appetite, weight gain or loss, vomiting, diarrhea, excessive sweating, heat intolerance, fever, changes in menstrual periods, hives or skin rash, or any other unusual medical event.
I'm an NVIDIA Tegra Champ. Any opinion that I express here and elsewhere are solely based on my personal
preference and any relevant expertise that I may/may not have on the subject matter.

The Following 11 Users Say Thank You to jerdog For This Useful Post: [ Click to Expand ]
 
zedomax
Old
#2  
zedomax's Avatar
Senior Member
Thanks Meter 2170
Posts: 1,094
Join Date: Mar 2010
Location: San Francisco, CA

 
DONATE TO ME
nice, needed this! thanks jerdog
 
jerdog
Old
#3  
jerdog's Avatar
Developer Committee / OEM Relations / XDA News Writer - Harbinger of Doom - OP
Thanks Meter 3011
Posts: 4,571
Join Date: May 2007
Location: Kansas; Likes: XDA, Coffee, Android, Intelligence Dislikes: Self-entitled twits and id10ts

 
DONATE TO ME
just updated the OP to reflect that each partition number is offset by -1



Quote:
Notify your physician if after exposure to XDA n00bs you experience any of the following symptoms: rapid or irregular heartbeat, chest pain, shortness of breath, leg cramps, headache, nervousness, irritability, sleeplessness, tremors, change in appetite, weight gain or loss, vomiting, diarrhea, excessive sweating, heat intolerance, fever, changes in menstrual periods, hives or skin rash, or any other unusual medical event.
I'm an NVIDIA Tegra Champ. Any opinion that I express here and elsewhere are solely based on my personal
preference and any relevant expertise that I may/may not have on the subject matter.

The Following User Says Thank You to jerdog For This Useful Post: [ Click to Expand ]
 
zedomax
Old
#4  
zedomax's Avatar
Senior Member
Thanks Meter 2170
Posts: 1,094
Join Date: Mar 2010
Location: San Francisco, CA

 
DONATE TO ME
does anyone know what factoryfs.img does?

Maybe u can flash that to zimage partition? Sorry for my idiotic questions, maybe someone can enlighten me, there's no instructions on any of this.
 
jerdog
Old
#5  
jerdog's Avatar
Developer Committee / OEM Relations / XDA News Writer - Harbinger of Doom - OP
Thanks Meter 3011
Posts: 4,571
Join Date: May 2007
Location: Kansas; Likes: XDA, Coffee, Android, Intelligence Dislikes: Self-entitled twits and id10ts

 
DONATE TO ME
Quote:
Originally Posted by zedomax View Post
does anyone know what factoryfs.img does?

Maybe u can flash that to zimage partition? Sorry for my idiotic questions, maybe someone can enlighten me, there's no instructions on any of this.
I hope you don't flash that to the zImage partition..... factoryfs.img is the stock /system image for the phone....

others can probably state it more eloquently though.



Quote:
Notify your physician if after exposure to XDA n00bs you experience any of the following symptoms: rapid or irregular heartbeat, chest pain, shortness of breath, leg cramps, headache, nervousness, irritability, sleeplessness, tremors, change in appetite, weight gain or loss, vomiting, diarrhea, excessive sweating, heat intolerance, fever, changes in menstrual periods, hives or skin rash, or any other unusual medical event.
I'm an NVIDIA Tegra Champ. Any opinion that I express here and elsewhere are solely based on my personal
preference and any relevant expertise that I may/may not have on the subject matter.

 
Hacre
Old
#6  
Elite Recognized Developer
Thanks Meter 2010
Posts: 1,302
Join Date: May 2010
Location: Northwich

 
DONATE TO ME
Quote:
Originally Posted by zedomax View Post
does anyone know what factoryfs.img does?

Maybe u can flash that to zimage partition? Sorry for my idiotic questions, maybe someone can enlighten me, there's no instructions on any of this.
Ninpo


- @NinpoUK on Twitter - My SGS2 Kernel Sources

Donations are gratefully received and never required.
The Following 2 Users Say Thank You to Hacre For This Useful Post: [ Click to Expand ]
 
zedomax
Old
#7  
zedomax's Avatar
Senior Member
Thanks Meter 2170
Posts: 1,094
Join Date: Mar 2010
Location: San Francisco, CA

 
DONATE TO ME
Quote:
Originally Posted by Hacre View Post
OMG. That's what u said.
 
AdamOutler
Old
(Last edited by AdamOutler; 28th September 2011 at 08:57 PM.)
#8  
AdamOutler's Avatar
Elite Recognized Developer
Thanks Meter 7929
Posts: 4,721
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
Lets go over some of these...
Code:
--- Entry #0 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 0
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 0
Partition Block Count: 0
Unknown 2: 0
Unknown 3: 0
Partition Name: GANG
Filename: emmc.img
This looks like a first in Loke history. Apparently this device is capable of writing to external SDCard? Be careful while flashing. Correct me if this is not external mmc.
Code:
--- Entry #1 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 1
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 0
Partition Block Count: 0
Unknown 2: 0
Unknown 3: 0
Partition Name: BOOT
Filename: boot.bin
this is the Primitive Bootloader. This is the first bit of firmware loaded on your device at boot time. It initializes memory and loads the SBL.
Code:
--- Entry #2 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 4
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 8192
Partition Block Count: 40960
Unknown 2: 0
Unknown 3: 0
Partition Name: EFS
Filename: efs.img
The EFS is a partiton which handles the serial number and carrier information on your device. be careful with this. You may lose service if you mess up this partition. make sure that you copy this partition. Google "EFS Backup STL3" for more information.
Code:
--- Entry #3 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 2
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 49152
Partition Block Count: 2560
Unknown 2: 0
Unknown 3: 0
Partition Name: SBL1
Filename: Sbl.bin
This is the Secondary bootloader. it can be considered an operating system on it's own. This is where loki (what Heimdall and Odin talk to) lives. It also has an SBL prompt which you can use over UART to talk to the device and load/delete partitions or make serious changes to the device. A wrong SBL can lead to bricking. Make sure you flash boot.bin and Sbl.bin at the same time. To be safe, flash params and repartition as well.

Code:
--- Entry #4 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 3
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 53248
Partition Block Count: 2560
Unknown 2: 0
Unknown 3: 0
Partition Name: SBL2
Filename:
Usually this is a duplicate of SBL. It is intended for a backup but I'm not totally convinced it's operational. This is supposed to be like a backup SBL, but I've never found it useful especially because it won't boot if the PBL does not match.

Code:
--- Entry #5 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 5
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 57344
Partition Block Count: 16384
Unknown 2: 0
Unknown 3: 0
Partition Name: PARAM
Filename: param.lfs
this is where SBL stores information. This is the settings for boot and contains the image you see on startup as well as the Download Mode image and others.
Code:
--- Entry #6 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 6
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 73728
Partition Block Count: 16384
Unknown 2: 0
Unknown 3: 0
Partition Name: KERNEL
Filename: zImage
This partition is where the Linux kernel lives. Nuff said.

Code:
--- Entry #7 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 7
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 90112
Partition Block Count: 16384
Unknown 2: 0
Unknown 3: 0
Partition Name: RECOVERY
Filename: recovery.bin
This partition is a duplicate of the Kernel partition. It is intended to be used for a recovery but I have never found it useful. You can flash garbage to it and the phone will boot and enter recovery just fine. However, if you flash garbage to the kernel partition, this partition won't boot. I don't understand it's function really...
Code:
--- Entry #8 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 8
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 106496
Partition Block Count: 614400
Unknown 2: 0
Unknown 3: 0
Partition Name: CACHE
Filename: cache.img
this is a partition for quick loading of apps and system data. it functions like any other cache.
Code:
--- Entry #9 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 9
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 720896
Partition Block Count: 32768
Unknown 2: 0
Unknown 3: 0
Partition Name: MODEM
Filename: modem.bin
This is a firmware like the Linux kernel for the Modem. The modem contains an entire operating system on it. This is the reason we can talk and surf and play with apps at the same time. This firmware won't keep the phone from booting, but it can affect things like Phone, Data and GPS.
Code:
--- Entry #10 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 10
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 753664
Partition Block Count: 1048576
Unknown 2: 0
Unknown 3: 0
Partition Name: FACTORYFS
Filename: factoryfs.img
This is the /system/ folder. it contains Android.
Code:
--- Entry #11 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 11
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 1802240
Partition Block Count: 4194304
Unknown 2: 0
Unknown 3: 0
Partition Name: DATAFS
Filename: data.img
This partition contains all of your apps which you download from the market. It's a general-purpose partition with read/write/execute permissions
Code:
--- Entry #12 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 12
Partition Flags: 2 (R/W)
Unknown 1: 0
Partition Block Size: 5996544
Partition Block Count: 24133632
Unknown 2: 0
Unknown 3: 0
Partition Name: UMS
Filename:
I don't know what UMS is... I assume it's like a second modem on the device. It is likely the same as the MODEM device with a bit different functionality.

Code:
--- Entry #13 ---
Unused: No
Partition Type: 2 (EXT4)
Partition Identifier: 13
Partition Flags: 1 (R)
Unknown 1: 0
Partition Block Size: 30130176
Partition Block Count: 638976
Unknown 2: 0
Unknown 3: 0
Partition Name: HIDDEN
Filename: hidden.img
I've no experience with this partition.
Code:
--- Entry #14 ---
Unused: Yes
Partition Type: 1 (Unknown)
Partition Identifier: 9
Partition Flags: 0 (R)
Unknown 1: 0
Partition Block Size: 0
Partition Block Count: 0
Unknown 2: 0
Unknown 3: 0
Partition Name:
Filename:
this is not a real partition. it is 0 lenght


Anyone care to elaborate on UMS and Hidden?

I'd like to note that Voodoo LagFix is no longer required.. These are all EXT4 partitions!
I ignore PMs with questions that could be answered by searching. If you PM me, I probly won't respond.
Check out my developer pages. Add me to your circles on Google Plus.
The Following 4 Users Say Thank You to AdamOutler For This Useful Post: [ Click to Expand ]
 
AdamOutler
Old
#9  
AdamOutler's Avatar
Elite Recognized Developer
Thanks Meter 7929
Posts: 4,721
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
btw... why is this stickied? The pit file is a useful tool. a printout won't help for anything.
I ignore PMs with questions that could be answered by searching. If you PM me, I probly won't respond.
Check out my developer pages. Add me to your circles on Google Plus.
 
jerdog
Old
#10  
jerdog's Avatar
Developer Committee / OEM Relations / XDA News Writer - Harbinger of Doom - OP
Thanks Meter 3011
Posts: 4,571
Join Date: May 2007
Location: Kansas; Likes: XDA, Coffee, Android, Intelligence Dislikes: Self-entitled twits and id10ts

 
DONATE TO ME
Good to know - thanks. Unstickied.



Quote:
Notify your physician if after exposure to XDA n00bs you experience any of the following symptoms: rapid or irregular heartbeat, chest pain, shortness of breath, leg cramps, headache, nervousness, irritability, sleeplessness, tremors, change in appetite, weight gain or loss, vomiting, diarrhea, excessive sweating, heat intolerance, fever, changes in menstrual periods, hives or skin rash, or any other unusual medical event.
I'm an NVIDIA Tegra Champ. Any opinion that I express here and elsewhere are solely based on my personal
preference and any relevant expertise that I may/may not have on the subject matter.


 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...