FORUMS
Remove All Ads from XDA

My LG Optimus 2X root / hack / dev progress / findings braindump

5,271 posts
Thanks Meter: 7,355
 
By paulobrien, Senior Member on 24th March 2011, 01:37 PM
Post Reply Email Thread
Hey all!

I've created a topic where i'm dumping all my findings re: the LG Optimus 2X. I'll be continually updating / extending the main post on MoDaCo, but i'll also try and keep an up to date copy in the post below this one.

P
The Following 3 Users Say Thank You to paulobrien For This Useful Post: [ View ] Gift paulobrien Ad-Free
 
 
24th March 2011, 01:38 PM |#2  
paulobrien's Avatar
OP Senior Member
Flag Norwich
Thanks Meter: 7,355
 
More
Root

Root on the LG 2X is easy. It's vulnerable to the psneuter exploit, after which su and Superuser APK can be pushed to a remounted system partition.

Partitions / Filesystems

The key partitions are as follows:

Code:
/dev/block/mmcblk0p1 = system partition
/dev/block/mmcblk0p2 = cache partition
/dev/block/mmcblk0p3 = misc partition
/dev/block/mmcblk0p4 = unknown partition
/dev/block/mmcblk0p5 = boot partition
/dev/block/mmcblk0p6 = lgdrm partition
/dev/block/mmcblk0p7 = recovery partition
/dev/block/mmcblk0p8 = data partition
/dev/block/mmcblk0p9 = internal SD partition
The kernel has support for EXT2/EXT3 filesystems (no EXT4 support). All of the key partitions are EXT3.

Partition sizes are as follows:

Code:
/lgdrm: 2472K total
/system: 338924K total
/data: 1523328K total
/cache: 63472K total
/misc: 1976K total
/sdcard: 5773920K total
Boot image / recovery

The 2X does have conventional boot and recovery images. The BOARD_KERNEL_BASE is 0x10000000 and the page size is 0x800. I have successfully reconstructed the boot image and flashed using 'dd' with no problems! The boot partition has a capacity of 8388608 bytes, which gives plenty of scope for doing clever stuff in the boot image.

The recovery partition is 20971520 bytes in size, which is unusually large. UPDATE: Holding down volume down + power throughout boot boots to recovery!

Memory

Memory available is as follows:

Code:
# free
				total
Mem:		381372
Kernel

The kernel version on the ROM I am currently running (see below) is 2.6.32.9. The source for the kernel is not currently available, however LG have made the source available for the Korean version of the device (SU660) - I have yet to compile and test this on the P990.

Thankfully, CONFIG_IKCONFIG_PROC is enabled in the kernel so it's possible to view the kernel config - i've uploaded it to pastebin here.

Flashing

The device can be flashed in two main ways - using the standard LG flashing tool or using NVFlash. I have tested both methods. The images flashed using NVFlash do not appear to be signed. In addition, partitions can be flashed using the 'dd' method (I have tested this to overwrite the boot image).

ClockworkMod

[to follow]

OS

[to follow]

ROM versions

[to follow]
The Following 6 Users Say Thank You to paulobrien For This Useful Post: [ View ] Gift paulobrien Ad-Free
24th March 2011, 01:39 PM |#3  
Member
Thanks Meter: 0
 
More
great work! looking forward to seeing the rest of it :)

Sent from my LG-P990 using XDA App
24th March 2011, 01:59 PM |#4  
Senior Member
Thanks Meter: 28
 
More
Absolutely great work there Paul, keep it up! I am looking forward to ClockWorkMod :)
24th March 2011, 02:02 PM |#5  
Gilg@mesh's Avatar
Senior Member
Flag Stockholm
Thanks Meter: 476
 
More
I get my 2X next week, looking forward for CWM and CM7.. btw you say it does not support EXT4, is it something negative? Differences? possible to make it support EXT4? The kernel version, will it support newer kernels like 2.6.35 and 2.6.37?


Sent from my Nexus S using Tapatalk
24th March 2011, 02:03 PM |#6  
Gilg@mesh's Avatar
Senior Member
Flag Stockholm
Thanks Meter: 476
 
More
Double sorry
24th March 2011, 02:05 PM |#7  
paulobrien's Avatar
OP Senior Member
Flag Norwich
Thanks Meter: 7,355
 
More
Updated: Found how to boot to recovery and successfully flashed ClockworkMod!

P
The Following User Says Thank You to paulobrien For This Useful Post: [ View ] Gift paulobrien Ad-Free
24th March 2011, 02:09 PM |#8  
Gilg@mesh's Avatar
Senior Member
Flag Stockholm
Thanks Meter: 476
 
More
Quote:
Originally Posted by paulobrien

Updated: Found how to boot to recovery and successfully flashed ClockworkMod!

P

Great, read it on the modaco forum! :)


Sent from my Nexus S using Tapatalk
24th March 2011, 02:26 PM |#9  
Member
Thanks Meter: 4
 
More
Great, I am looking forward to hearing other news from you
24th March 2011, 03:39 PM |#10  
Senior Member
Flag Aarhus
Thanks Meter: 8
 
More
Quote:
Originally Posted by paulobrien

Updated: Found how to boot to recovery and successfully flashed ClockworkMod!

P

Nice! I've been hitting F5 as a maniac the last week here and on your website.

Looking forward to succesful flash of 2.3 Beta
24th March 2011, 03:54 PM |#11  
paulobrien's Avatar
OP Senior Member
Flag Norwich
Thanks Meter: 7,355
 
More
Just done my first ClockworkMod backup on the 2X.

P
The Following User Says Thank You to paulobrien For This Useful Post: [ View ] Gift paulobrien Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes