New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
raar
Old
#1  
Member - OP
Thanks Meter 1
Posts: 34
Join Date: Apr 2011
Unhappy [REQ]G2X Partition Table

Guys,

While I was trying to replace boot,system and recovery images with NVFlash using Modaco's tool for O2X, I forgot to replace the partitions and flashed O2X partitions stated below(Taken from android_fastboot_emmc_full.cfg). Is there anyway that I can find the sizes, id's and types of G2X's partitions so I can set a table like this and flash it to fix my partitions.

Ps. I did try Casper's way( using adb) but I can't go into recovery, and using KDZ flasher but since my phone stucked at LG icon bootloop my computer doesn't recognize the device. Is there anyway to recover the phone completely( Partitions, recovery, boot, and system images) using NVFlash?


[device]
type=hsmmc
instance=3

[partition]
name=BCT
id=2
type=boot_config_table
allocation_policy=sequential
filesystem_type=basic
size=3145728
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=PT
id=3
type=partition_table
allocation_policy=absolute
filesystem_type=basic
start_location=4194304
size=2048
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=EBT
id=4
type=bootloader
allocation_policy=sequential
filesystem_type=basic
size=1572864
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=fastboot.bin

[partition]
name=MBR
id=5
type=master_boot_record
allocation_policy=sequential
filesystem_type=basic
size=1048576
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=APP
id=6
type=data
allocation_policy=sequential
filesystem_type=basic
size=367001600
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=system.img

[partition]
name=CAC
id=7
type=data
allocation_policy=sequential
filesystem_type=ext3
size=67108864
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=MSC
id=8
type=data
allocation_policy=sequential
filesystem_type=ext3
size=2097152
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

# extended partition
[partition]
name=EB1
id=9
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=113976
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=LNX
id=10
type=data
allocation_policy=sequential
filesystem_type=basic
size=8388608
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=boot.img

[partition]
name=EB2
id=11
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=DRM
id=12
type=data
allocation_policy=sequential
filesystem_type=ext3
size=2306560
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=EB3
id=13
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=SOS
id=14
type=data
allocation_policy=sequential
filesystem_type=basic
size=20971520
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=recovery.img

[partition]
name=EB4
id=15
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=UDA
id=16
type=data
allocation_policy=sequential
filesystem_type=ext3
size=1610612736
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=EB5
id=17
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=UDB
id=18
type=data
allocation_policy=sequential
filesystem_type=ext3
size=0xFFFFFFFFFFFFFFFF
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
 
jose makalolot
Old
#2  
jose makalolot's Avatar
Senior Member
Thanks Meter 130
Posts: 1,712
Join Date: Aug 2009
Location: Florida

 
DONATE TO ME
i am also looking for this.
Radyo Pinas - 24/7 All Hits OPM Radio

AT&T i727 SkyRocket
Radio: UCLF5
Rom: Beefed up CM9 Nightly

T-Mobile g2x
ROM: G2x 2.3.4 (my own mix)

Dell Streak 7 WiFi+4g

Back-up Phones: T-Mobile Galaxy Exhibit, T-Mobile HTC HD2, Samsung B7300 (Android), Nokia E75, Nokia 5800, Nokia E51

Sold Phone: HTC (ATT) TyTn II
 
doniqcc
Old
#3  
doniqcc's Avatar
Recognized Developer
Thanks Meter 2075
Posts: 800
Join Date: Dec 2010
Location: chicago

 
DONATE TO ME
Quote:
Originally Posted by raar View Post
Guys,

While I was trying to replace boot,system and recovery images with NVFlash using Modaco's tool for O2X, I forgot to replace the partitions and flashed O2X partitions stated below(Taken from android_fastboot_emmc_full.cfg). Is there anyway that I can find the sizes, id's and types of G2X's partitions so I can set a table like this and flash it to fix my partitions.

Ps. I did try Casper's way( using adb) but I can't go into recovery, and using KDZ flasher but since my phone stucked at LG icon bootloop my computer doesn't recognize the device. Is there anyway to recover the phone completely( Partitions, recovery, boot, and system images) using NVFlash?


[device]
type=hsmmc
instance=3

[partition]
name=BCT
id=2
type=boot_config_table
allocation_policy=sequential
filesystem_type=basic
size=3145728
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=PT
id=3
type=partition_table
allocation_policy=absolute
filesystem_type=basic
start_location=4194304
size=2048
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=EBT
id=4
type=bootloader
allocation_policy=sequential
filesystem_type=basic
size=1572864
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=fastboot.bin

[partition]
name=MBR
id=5
type=master_boot_record
allocation_policy=sequential
filesystem_type=basic
size=1048576
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=APP
id=6
type=data
allocation_policy=sequential
filesystem_type=basic
size=367001600
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=system.img

[partition]
name=CAC
id=7
type=data
allocation_policy=sequential
filesystem_type=ext3
size=67108864
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=MSC
id=8
type=data
allocation_policy=sequential
filesystem_type=ext3
size=2097152
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

# extended partition
[partition]
name=EB1
id=9
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=113976
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=LNX
id=10
type=data
allocation_policy=sequential
filesystem_type=basic
size=8388608
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=boot.img

[partition]
name=EB2
id=11
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=DRM
id=12
type=data
allocation_policy=sequential
filesystem_type=ext3
size=2306560
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=EB3
id=13
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=SOS
id=14
type=data
allocation_policy=sequential
filesystem_type=basic
size=20971520
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=recovery.img

[partition]
name=EB4
id=15
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=UDA
id=16
type=data
allocation_policy=sequential
filesystem_type=ext3
size=1610612736
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=EB5
id=17
type=extended_boot_record
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=UDB
id=18
type=data
allocation_policy=sequential
filesystem_type=ext3
size=0xFFFFFFFFFFFFFFFF
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
Have you tried one click nvflash to flash recovery try this steps first

1. Get one click nvflash
2 Pull your battery out
3. Plug usb to pc
4.Hold volume up/volume down
5.flash recovery and then you will get spw screen



 
raar
Old
#4  
Member - OP
Thanks Meter 1
Posts: 34
Join Date: Apr 2011
I tried to flash the stock recovery but NVFlash is giving me this error

" Partition download failed "
 
KAsp3rd
Old
#5  
KAsp3rd's Avatar
Senior Member
Thanks Meter 1242
Posts: 816
Join Date: Jan 2011
Location: Clarksville

 
DONATE TO ME
I'll take a look at how the O2x table is written and try to get y'all something to work with on the g2x

Sent from my LG-P999 using XDA Premium App
Please don't quote the whole OP. If you want to direct a question or statement please use the mention system. I.e. @KAsp3rd will alert me that you have mentioned me.
 
KAsp3rd
Old
#6  
KAsp3rd's Avatar
Senior Member
Thanks Meter 1242
Posts: 816
Join Date: Jan 2011
Location: Clarksville

 
DONATE TO ME
What you might want to try is using "recovery phone" from the lgmobile updater. Before you start get your serial# and IMEI from under the battery, you will need both. I'm unsure if this method works though.

Sent from my LG-P999 using XDA Premium App
Please don't quote the whole OP. If you want to direct a question or statement please use the mention system. I.e. @KAsp3rd will alert me that you have mentioned me.
 
raar
Old
#7  
Member - OP
Thanks Meter 1
Posts: 34
Join Date: Apr 2011
Quote:
Originally Posted by casper200519 View Post
What you might want to try is using "recovery phone" from the lgmobile updater. Before you start get your serial# and IMEI from under the battery, you will need both. I'm unsure if this method works though.

Sent from my LG-P999 using XDA Premium App
I also tried that but the computer only recognizes my device as a APX driver because I can't go into recovery or S/W upgrade or normal boot mode, and when I'm at the APX driver LG's software doesn't recognize it
 
KAsp3rd
Old
#8  
KAsp3rd's Avatar
Senior Member
Thanks Meter 1242
Posts: 816
Join Date: Jan 2011
Location: Clarksville

 
DONATE TO ME
I've got about 3 hours before I have a chance to take a look at it.

Sent from my LG-P999 using XDA Premium App
Please don't quote the whole OP. If you want to direct a question or statement please use the mention system. I.e. @KAsp3rd will alert me that you have mentioned me.
 
KAsp3rd
Old
#9  
KAsp3rd's Avatar
Senior Member
Thanks Meter 1242
Posts: 816
Join Date: Jan 2011
Location: Clarksville

 
DONATE TO ME
Quote:
Originally Posted by raar View Post
I also tried that but the computer only recognizes my device as a APX driver because I can't go into recovery or S/W upgrade or normal boot mode, and when I'm at the APX driver LG's software doesn't recognize it
Since you can get it to go into download mode try to flash CWR on external

Sent from my LG-P999 using XDA Premium App
Please don't quote the whole OP. If you want to direct a question or statement please use the mention system. I.e. @KAsp3rd will alert me that you have mentioned me.
 
doniqcc
Old
#10  
doniqcc's Avatar
Recognized Developer
Thanks Meter 2075
Posts: 800
Join Date: Dec 2010
Location: chicago

 
DONATE TO ME
Quote:
Originally Posted by raar View Post
I also tried that but the computer only recognizes my device as a APX driver because I can't go into recovery or S/W upgrade or normal boot mode, and when I'm at the APX driver LG's software doesn't recognize it
Dude I'm just curious were you trying to port something or so you thought cause how do you flash o2x rom ,
and looks like you had fake recovery prior to flashing.





XDA PORTAL POSTS

Dos and Don’ts of Android Design

As long as you’re coming from some type of programming background, the unseen part of app … more

Expand Your Choice of Icons with Icon Themer

Icons are some of the most commonly themed elements of the Android UI, and there is certainly no … more

MicrowaveTimePicker Brings 4.2 TimePicker to 2.1+ Devices

It’s frustrating to see slick new features that you can’t use when … more

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more