Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,666 Members 39,935 Now Online
XDA Developers Android and Mobile Development Forum

LG Optimus S Source

Tip us?
 
athanos
Old
(Last edited by athanos; 29th August 2011 at 04:47 PM.)
#1  
athanos's Avatar
Senior Member - OP
Thanks Meter 29
Posts: 510
Join Date: Apr 2010
Default LG Optimus S Source

I'm not sure how this might help all of you V developers. But the official Gingerbread source was just posted a bit ago on the LG Open Source Code Distribution site for the Optimus S. It is not available in the LG Updater tool yet. I thought this might be useful for anyone developing for the V still.
The Following 7 Users Say Thank You to athanos For This Useful Post: [ Click to Expand ]
 
Whyzor
Old
#2  
Whyzor's Avatar
Senior Member
Thanks Meter 340
Posts: 692
Join Date: Jul 2011
Can you provide a link please?
The Following User Says Thank You to Whyzor For This Useful Post: [ Click to Expand ]
 
Asadullah
Old
(Last edited by Asadullah; 29th August 2011 at 07:48 PM.)
#3  
Asadullah's Avatar
Senior Member
Thanks Meter 288
Posts: 893
Join Date: Aug 2010
Location: casselberry
Quote:
Originally Posted by Whyzor View Post
Can you provide a link please?
http://www.lg.com/global/support/ope...opensource.jsp

in the drop down box select mobile phones
in the other box type ls670

I was getting ready to compile this and give it a go and two questions came up
1) how do you change the keylayout from the kernel
2) the lg optimus v 2.2.2 kernel had some funny business going on if you used the kernel. If you type adb remount without changing the ramdisk you get
an error stating it's not allowed. But if you edit the default prop in the ramdisk to allow this then adb shell would mess up. Any one know how to fix
The Following 4 Users Say Thank You to Asadullah For This Useful Post: [ Click to Expand ]
 
bigsupersquid
Old
(Last edited by bigsupersquid; 29th August 2011 at 09:54 PM.)
#4  
bigsupersquid's Avatar
Senior Member
Thanks Meter 351
Posts: 622
Join Date: Sep 2010
Location: BFE, MO

 
DONATE TO ME
Quote:
Originally Posted by Asadullah View Post
I was getting ready to compile this and give it a go and two questions came up
1) how do you change the keylayout from the kernel
2) the lg optimus v 2.2.2 kernel had some funny business going on if you used the kernel. If you type adb remount without changing the ramdisk you get
an error stating it's not allowed. But if you edit the default prop in the ramdisk to allow this then adb shell would mess up. Any one know how to fix
picasticks posted a diff between sprint vd and vm kernels.
diff
original blog post


here's the bit of the diff with the keycodes
Code:
diff -urP vd/kernel/arch/arm/mach-msm/lge/board-thunderc-input.c vm670/kernel/arch/arm/mach-msm/lge/board-thunderc-input.c
--- vd/kernel/arch/arm/mach-msm/lge/board-thunderc-input.c	2011-02-04 19:00:38.000000000 -0500
+++ vm670/kernel/arch/arm/mach-msm/lge/board-thunderc-input.c	2011-04-12 06:00:32.000000000 -0400
@@ -23,7 +23,6 @@
 #include <mach/board.h>
 #include <mach/board_lge.h>
 #include <mach/rpc_server_handset.h>
-// LGE_CHANGE [dojip.kim@lge.com] 2010-07-18, check the pcb revision
 #include <mach/board_lge.h>
 
 #include "board-thunderc.h"
@@ -44,12 +43,6 @@
 	},
 };
 
-/* None qwerty keypad device
- * For Thunder CDMA Keypad  [ youngchul.park@lge.com ]
- * gpio key pad device - from keypad-surf-ffa */
-/* LGE_CHANGE [LS670:FW:james.jang@lge.com] 2010-05-05, add keys. 
- * CAM_SHOT, CAM_AF, VOICE 
- */
 #if defined(CONFIG_MACH_MSM7X27_THUNDERC_SPRINT)
 static unsigned int keypad_row_gpios[] = {
 	32, 33, 34
@@ -64,16 +57,10 @@
 
 #define KEYMAP_INDEX(row, col) ((row)*ARRAY_SIZE(keypad_col_gpios) + (col))
 
-/* LGE_CHANGE [LS670:FW:james.jang@lge.com] 2010-05-05, add keys. 
- * CAM_SHOT, CAM_AF, VOICE 
- */
-/* LGE_CHANGE [dojip.kim@lge.com] 2010--05-15, modified the keymap
- * BACK <-> HOME
- */
 #if defined(CONFIG_MACH_MSM7X27_THUNDERC_SPRINT)
 static const unsigned short keypad_keymap_thunder[9] = {
-	[KEYMAP_INDEX(0, 0)] = KEY_HOME,
-	[KEYMAP_INDEX(0, 1)] = KEY_MENU,
+    [KEYMAP_INDEX(0, 0)] = KEY_MENU,
+    [KEYMAP_INDEX(0, 1)] = KEY_HOME,
 	[KEYMAP_INDEX(0, 2)] = KEY_VOLUMEUP,
 	[KEYMAP_INDEX(1, 0)] = KEY_SEARCH,
 	[KEYMAP_INDEX(1, 1)] = KEY_BACK,
I cut it short of the whole section it patches but you can see which file and the changes made.

also, I believe this bit here covers ADB shell, but I could be wrong:
Code:
diff -urP vd/kernel/arch/arm/mach-msm/lge/board-thunderc.c vm670/kernel/arch/arm/mach-msm/lge/board-thunderc.c
--- vd/kernel/arch/arm/mach-msm/lge/board-thunderc.c	2011-02-04 19:00:38.000000000 -0500
+++ vm670/kernel/arch/arm/mach-msm/lge/board-thunderc.c	2011-04-12 06:00:32.000000000 -0400
@@ -136,18 +136,39 @@
 		    
 	{
 		.product_id = 0x6003,
-		.functions = 0x0F 	/* 001111  Modem,diag,NMEA,Mass*/
+		.functions = 0x0F 	/* 001111  Modem,diag,NMEA,Mass */
 	},
 	
 	{
+		.product_id = 0x6004,
+		.functions = 0x1E 	/* 011110  diag,NMEA,Mass,ADB */
+	},
+
+	{
+		.product_id = 0x6005,
+		.functions = 0x19 	/* 011001  Modem,Mass,ADB */
+	},
+
+	{
+		.product_id = 0x6006,
+		.functions = 0x09 	/* 001001  Modem,ADB */
+	},
+
+	{
 		.product_id = 0x618E,
 		.functions = 0x1F	/* 011111      Modem,diag,NMEA,Mass,ADB */
 	},
+
 	{
-		// LGE_CHANGE [dojip.kim@lge.com] 2010-08-16, LS670 UMS PID: 0x61CC
-		.product_id = 0x61CC,
+		.product_id = 0x61CE,
 		.functions = 0x08	/* 001000      Mass */
 	},
+
+	{
+		.product_id = 0x61A6,
+		.functions = 0x18	/* 011000      Mass,ADB */
+
+	},
 };
 #endif
 
@@ -157,9 +178,6 @@
 	.phy_info = (USB_PHY_INTEGRATED | USB_PHY_MODEL_65NM),
 	.vendor_id = 0x1004,
 	.product_name = "LG Android USB Device",
-	/* LGE_CHANGE [dojip.kim@lge.com] 2010-05-22, change the serial_number
-	 * for LS670
-	 */
 #ifdef CONFIG_MACH_MSM7X27_THUNDERC_SPRINT
 	.serial_number = "LGANDROIDLS670",
 #else
@@ -194,7 +212,6 @@
 	},
 };
 
-// LGE_CHANGE [dojip.kim@lge.com] 2010-09-28
 static struct platform_device testmode_device = {
 	.name = "testmode",
 	.id = -1,
@@ -210,7 +227,6 @@
 	&msm_device_adspdec,
 	&lg_fw_diagcmd_device,
 	&lg_diag_cmd_device,
-	// LGE_CHANGE [dojip.kim@lge.com] 2010-09-28
 	&testmode_device,
 };
 
@@ -231,11 +247,6 @@
 void msm_serial_debug_init(unsigned int base, int irq,
 			   struct device *clk_device, int signal_irq);
 
-// LGE_CHANGE [dojip.kim@lge.com] 2010-07-22, merged from thunderg
-/* decrease FB pmem size because thunderg uses hvga
- * qualcomm's original value depends on wvga resolution
- * 2010-04-18, cleaneye.kim@lge.com
- */
 unsigned pmem_fb_size = 0x96000;
 
 unsigned pmem_adsp_size = 0xAE4000;
@@ -314,7 +325,6 @@
 #endif
 }
 
-/* LGE_CHANGE [dojip.kim@lge.com] 2010-06-02 [LS670] */
 #ifdef CONFIG_MACH_MSM7X27_THUNDERC_SPRINT
 MACHINE_START(MSM7X27_THUNDERC, "THUNDER Sprint board (LGE LS670)")
 #else
hopefully that's what you're needing, but I'm not positive.
edit: looks like they changed the second bit quite a bit in 2.6.35, it'll take more work to patch in the changes for the v in the product id codes now.
The Following 2 Users Say Thank You to bigsupersquid For This Useful Post: [ Click to Expand ]
 
blarfiejandro
Old
#5  
Senior Member
Thanks Meter 225
Posts: 323
Join Date: Jun 2011

 
DONATE TO ME
FWIW in order to get USB tethering working, the IHO kernel does not use the stock VM670 USB code, so I wouldn't worry too much about patching anything or maintaining the USB IDs.
Help support the Inferior Human Organs port of CyanogenMod 7 for the LG Optimus phones: donate today.



Thank you to JerryScript, punkmaxx, MarMed10, Centinel, mustafu, crpeck, El Schisne, BobZhome, takehull, rb64, yogi4, mrg666, asadullah, szfinland, Ostrich Egg, wilberfan, Whyzor, ejlmd, LarryCL, Centinel, nemo3, pandacookie, Dylan, PaulSjolie, and rpertusio for donating money to keep this project alive.
The Following User Says Thank You to blarfiejandro For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes