• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root ICS/CM9-JB/CM10 Development Thread

whats it doing?

Can't tell since there's no adb .. it's just stuck at the lg logo and the soft buttons are blinking.

I think I'm going to install that cm10test3 zip and see if it boots. If so, perhaps I can fix usb enough to get adb running, then boot up with my build to see what's going on.
 
Okay that booted. No adb as expected. And there's that pesky sdcard happy as a clam, lol.

Now let's see if I can replace the kernel with my own build, and start looking at the usb code.
 
Okay that booted. No adb as expected. And there's that pesky sdcard happy as a clam, lol.

Now let's see if I can replace the kernel with my own build, and start looking at the usb code.

you can do adb through wifi btw if you wanna see whats going on. I never saw anything to help for fixing usb but maybe you can.
 
  • Like
Reactions: tdm
Yeah I have adb over wifi running. Nothing in dmesg seems to indicate any usb issues.

Oh, and the cameras seem to work great. We gotta get this going! :D
 
Yeah I have adb over wifi running. Nothing in dmesg seems to indicate any usb issues.

Oh, and the cameras seem to work great. We gotta get this going! :D

yea I couldn't find any problems other than usb and ril.

I added our ril shit from the gingerbread kernel to the 3.0.8 one last night, phone still boots but since the files were for a 2.6.35.7 kernel I dunno if they'll work with this.
 
you can do adb through wifi btw if you wanna see whats going on. I never saw anything to help for fixing usb but maybe you can.

First thing you see in dmesg when plugging in a USB cable on the GB kernel is this:

<7>[ 104.268066] lge_usb_dp_dm_check: D+ and D- lines are open

Now, look at the P970 and LS855 GB sources. It appears in the LS855 sources in the file drivers/usb/otg/twl4030-usb.c, but not in the P970 sources.

lge_usb_dp_dm_check() is called from twl4030_usb_linkstat() in that same file (btw, the latter is static, which means the former really should be also). Note that in the diff between LS855 and P970, that call to twl4030_usb_linkstat() is in a section specific to LS855 and inside "#ifdef CONFIG_LGE_OMAP3_EXT_PWR".

The task now is to figure out which of the diffs are relevant and how to cleanly apply them to the 3.0.8 tree.
 
First thing you see in dmesg when plugging in a USB cable on the GB kernel is this:

<7>[ 104.268066] lge_usb_dp_dm_check: D+ and D- lines are open

Now, look at the P970 and LS855 GB sources. It appears in the LS855 sources in the file drivers/usb/otg/twl4030-usb.c, but not in the P970 sources.

lge_usb_dp_dm_check() is called from twl4030_usb_linkstat() in that same file (btw, the latter is static, which means the former really should be also). Note that in the diff between LS855 and P970, that call to twl4030_usb_linkstat() is in a section specific to LS855 and inside "#ifdef CONFIG_LGE_OMAP3_EXT_PWR".

The task now is to figure out which of the diffs are relevant and how to cleanly apply them to the 3.0.8 tree.

My God........ you guys are so far over my head I can't even pretend to know what you are talking about. I am in absolute awe of all of you devs.
 
It seems the phone thinks it's always charging. That is surely another symptom of the same underlying issue.

I'm digging through the GB P970 vs. GB LS855 ZVC diffs. There's a lot to go through but I should be able to figure it out.

Also note that it seems CONFIG_LGE_LAB3_BOARD is unset for the P970 but set for the LS855. Enabling it produces some compilation errors, I'm working through those as well.
 
Oh, and turning the power off ... doesn't. The LG logo comes up and this fugly white battery icon shows on the screen. That's probably a different but related issue. Maybe once I get a good compile with CONFIG_LGE_LAB3_BOARD and CONFIG_LGE_OMAP3_EXT_PWR set, it will resolve itself. Yeah, I tend to be an optimist lol.
 
Applied a bunch of LS855 changes and there's some progress. No adb yet, but...

The power turns off cleanly now.

The battery detects charging/discharging properly.

I'm getting the "lge_usb_acc_detect: D+ and D- lines are open" message.
 
Don't think I'm going to get this today.

I've been over drivers/usb/musb/musb_core.c extensively and I think it all looks good.

Currently suspect the issue is in drivers/usb/otg/twl4030-usb.c.
 
did you try adding include/linux/lge_extpwr_type.h from the gb kernel? some of your changes look like they use it.

Yes, my diff won't compile without it. But git diff didn't include it... I probably missed a switch to the diff command.
 
Awesome peogress. Wish i still had pocession of this phone. You guys are great. Once stable hope to test. Gotta ask my sister. Hahaha.... Thanks yall.
 
  • Like
Reactions: tdm
Worked on this most of the day today, not much to report. But I'm optimistic that I'll figure it out soon.
Thanks for the work! Despite all the issues with the first release, I've been using it this whole time and despite all the non-functioning parts it runs beautifully!
 
  • Like
Reactions: tdm
Back
Top Bottom