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

Root [ROM][WIP] CyanogenMod 7 | Android 2.3.5 | Last Version: CM7-Triumph-09182011 (discontinued)

I know what's blowing it up, yes. The attempt to hack in the Cherry shared libs (which presumably should have worked since they were built against 2.3) failed miserably last night with unresolved additional symbols. That was the "dirty hack" approach. There may be hope for that approach left but it was rapidly turning into an "interminable snowball" problem (moving additional .so files risks corrupting something else in CM7 and there's a point where wisdom says you halt - I reached it) so I ditched that approach (for now) late last evening rather than go further down that rabbit hole. If I have to come back to it I will, but it was looking more and more like a flat-out dead end that could easily break more than it was going to fix.

The "fix the damn code" approach is what's left. The good news is that there's a msm7x30 driver, which is the audio chipset that the phone has, and which the kernel driver exposes in accessible devices. The bad news is that there are several unresolved symbols in the code in CM7, which is very not-nice and at least slightly-implies that it has never been used (VERY not-nice if true, as it might not work at all!) Some of those we can live without (e.g. the FM radio stuff which I understand won't work in any event as there isn't one in the hardware) and some we might be able to live without (e.g. QCELP) but resolving the undeclared references is where I am right now.

This, of course, assumes the code that's in CM7 (with those resolved references) runs. If it doesn't then the trouble is much more serious as I have zip, zero and nada on documentation for this particular audio chipset nor on exactly what Android needs to see in this regard.

Incidentally a side project for someone who wants to get inventive would be to take the Cherry nb0 file that others report works except for the radio (DO NOT FLASH THIS UNDER ANY CIRCUMSTANCES AS IT SITS - IT WILL REPARTITION YOUR PHONE AND IF YOU DO THAT YOU ARE SCREWED!), extract the system.img (easy), splice in the Motorola kernel, rild, and ril libraries (fairly easy) and make a Clockwork out of that. None of that's particularly hard and shouldn't take more than a handful of hours to do and test. There's a non-zero chance that works right out of the box. If it fails, however (if it's going to fail it will be on the radio) it's a total dead end. I'm not inclined to do it but if someone wants the kernel I built and RIL bits I can package those up into a zip and stuff 'em somewhere or explain how to do it if you just make a system.img that Clockwork can flash, then use that plus the existing file I uploaded. If you want to chase this path please do not pollute this thread with it - start a new one, and I'll help you there, not here.
 
ok, tell me how to do it, ill start a new post, and ill work on it. Pm or email, and ill start a thread. I sure hope this helps with at least the audio...
 
Ok, more progress, but no audio YET.

I do have the system-level drivers working, but something's wrong at the kernel level. Looking for that now - I have an idea what it is, but am not yet sure.

Half the camera (rear) now works, including flash, still and (I think) video - no idea if it records sound yet though. More compiles (hurry up and wait!)

Edit: The video recording DOES have sound. Ok, that's progress - I have no sound OUTPUT but the phone is capable of RECORDING audio, so the sound system is now working. The front camera, however, if selected blows up the camera permanently (you can't back in to turn it off!) - argh.
 
Quite a bit.

When I began working on this we had no data and instant crashes if you touched anything that tried to play sounds. No camera, no GPS, no sensors except for orientation. No data at all and the radio only came up half way.

We now have full data and radio capability and bidirectional SMS. MMS doesn't work yet, but I know why and have a template to fix it from the Optimus port - it's just not to the top of the list and the reason for it not working is Virgin's screwball MMS implementation. Base-level drivers for audio work and don't crash any longer. Audio output isn't working yet (it is failing during the init in the code on the first callout) but I know the exact call that is failing now, and thus should be able to fix it. It may be my fault as I had to go into the CM7 code and #ifdef around all the FM Radio and Qualcomm speech synth stuff, as the supporting definitions are not in CM7 and they're also not in the build environment, so the code would not compile. The back camera works for both stills and video. The DSP manager comes up and does not fault. This is huge progress as originally anything that touched the audio system would cause an instantaneous system reset.

I can build and reproduce the supplied Motorola kernel for 2.3, and it both boots and runs. This strongly implies that eventually the various governor, overclock and undervolt choices can be grafted into it but that's icing on the cake once we have a full working set of services.

The primary gating factor remains full audio services. That's where my attention is focused at present, because it's what makes this build more than a simple curiosity piece.

I do not yet know why the compass and GPS fail (there's no indication that the software sees them at all despite the kernel clearly declaring them as valid and attached devices during the boot), but I see no reason to believe I won't be able to get those operating since the kernel DOES see them. The most-annoying serious bug is the apparent lockup if the phone goes to sleep when not plugged into USB; I have not run that down at all as of yet, but it's obviously something that will need attention eventually. The key to everything right now is audio, and it's where my attention is focused - that the kernel driver is now working and that some things can talk to it is proved by the fact that I can record video and it has audio in it when played on my PC. The camera was an inspiration that happened to play out and I was able to get it going yesterday on a hunch; it proved invaluable as it showed me that the base-level audio interface was indeed working, as I strongly suspected from the kernel level traces I've run.

Patience grasshopper. I have to earn a living here and this isn't my day job ;-) More to the point each "turn" on the code for testing requires anywhere from ~20-30 minutes to well over an hour, depending on whether I have to do a "make clean" (clear all old object files) or not, so progress is slow simply due to the turn time on each attempt forward, and many of them are dead ends due to lack of documentation - this is very much a trial-and-error process, with lots of errors and dead-end roads.
 
Can anyone direct me to a link with a fully functional version? I'm new to this but I have rooted my phone today and would like to give it a try. Thanks
 
Great job on getting sound working! Just wondering, are you going to add any 3G/camera tweaks or anything like that like in Austrie's ROM here? Cause I barely get a connection at my house :/
 
I've gathered that we have everything working, except the forward facing camera, right? If we have sound to the speakers... Great!!! I really appreciate your work ticker. ;)
 
You guys are numeral UNO in my book I watch this thread 4-5 times a day for updates do you have any idea when a flashable build could be up i would love to make a demo and installation video for this asap the audio was the only thing holding me back as of this moment I'm all in for this :-)

Edit: What exactly did he do for 3g tweaks i asked on release and he still hasn't answered lol.
 
I have a question, I know its not a major worry or big thing but when the actual stable rom is released, will i be able to have a signature in my text messages with out a third party application
 
Built-in tethering is not in the stock menus on this build. I have not yet attempted to use Barnacle or similar.
 
Can someone point to me on where and how to get the latest clockworth recovery, with directions on installing it...?

I found posts, but seemed the file was updated a few times and wana make sure I install the latest/stable clockworth recovery image, so then I can install CM7


Thanks!
-BMN

Install Isaac's version in the original post of this thread. You can find direction's somewhere in the stickied ClockworkMod Recovery thread or I think there is youtube video out there with directions as well.
 
i would say this is good for me to use everyday. the person who talk is mostly my father asn few friends. texting good. internet both wifi and 3g. screen stayed off and had to remove battery 3 times but im fine with that so far. it appears that the screen stays off after the phone is used exesively. i have to say this is more stable than before thanks.
 
Back
Top Bottom