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

Root Cyanogenmod porting efforts

jiilik

Well-Known Member
Nov 14, 2010
141
35
Heya folks,

So I've been working on trying to get Cyanogenmod 7.x built and installed on the phone. The good news is that I can get it to build. I can't get it to boot fully, however.

When I boot the phone, it almost even works! The kernel boots - the logo dims. It stops there.

Well, out of curiosity, I connect to the phone with adb? yes! Sure enough, the phone has booted up enough that I can get a root shell on it with adb. It just doesn't display anything on the screen other than the LG logo so far.

I can open up dmesg on the phone to look at the kernel error log. It looks like init is repeatedly trying and failing to start a specific program. I don't know what program it is yet, but it's stuck in a loop. Here's what dmesg keeps printing:

Code:
<6>[   25.503786] request_suspend_state: wakeup (0->0) at 1143991562939 (2011-12-08 22:49:47.187021271 UTC)
<3>[   25.508416] init: untracked pid 5340 exited
<3>[   25.508469] init: untracked pid 5341 exited
<6>[   25.807358] [snd.c:snd_ioctl] snd_avc_ctl 1
<6>[   25.808173] [snd.c:snd_ioctl] snd_agc_ctl 1
<6>[   25.809149] [snd.c:snd_ioctl] snd_set_volume 9 0 7
<6>[   25.809796] [snd.c:snd_ioctl] snd_set_volume 10 0 21
<6>[   25.810393] [snd.c:snd_ioctl] snd_set_volume 5 0 7
<6>[   25.810989] [snd.c:snd_ioctl] snd_set_volume 0 0 7
<6>[   25.811718] [snd.c:snd_ioctl] snd_set_volume 12 0 7
<6>[   25.812536] [snd.c:snd_ioctl] snd_set_volume 22 0 7
<6>[   25.813124] [snd.c:snd_ioctl] snd_set_volume 3 0 7
<6>[   25.816048] [snd.c:snd_ioctl] snd_set_device 0 1 1
<6>[   25.817118] [snd.c:snd_ioctl] snd_set_volume 29 0 21

over and over again, each time the pid goes up by a few. Any ideas?

Would it be useful to post the almost-working rom here for others to troubleshoot? I'll try adding some debug info to the init scripts to figure out what's happening. Maybe I just get lucky :)

Cheers
 
Hmm, did you have any problems building CM7? I know I ran into a problem last night building the Gingerbread branch I checked out.

I'm gonna try to reproduce your steps to getting CM7 compiled and built with the LG kernel :p

Well, once I added the alohag target (a few files had to be modified in vendor/cyanogen so that my build target would be added), then it all builds fairly smoothly.
 
Upvote 0
Sounds like a proprietary sound lib from LG... That's the problem with porting Cyanogenmod. There's always a lib somewhere the source doesn't cover... Did you try running the porting feature in dsixda's kitchen to see if it can incorporate some of the libs from the stock LG gingerbread ROM? Might be worth a shot.

Yeah, the porting feature mostly just copies kernel modules and keyboard layouts. Doesn't do all that's needed, with regard to firmware and such.

I'm going to try building a few different configurations - see if I can disable the boot logos and such to help figure out where it's stalling. Maybe I can get a good old fashioned linux console as the default boot, and build it up from there.

Anyway, more to come when I have time.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones