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

Root Build CyanogenMod7 from source | Development area

@mantera:

Alright, try giving it another go.

Excellent! I'll try right now. Thanks!

Edit: So the build stopped on:

Notice file: external/sqlite/dist/NOTICE -- out/target/product/triumph/obj/NOTICE_FILES/src//utilities/sqlite3.txt
Notice file: bionic/libm/NOTICE -- out/target/product/triumph/obj/NOTICE_FILES/src//system/lib/libm.a.txt
make: *** No rule to make target `vendor/motorola/triumph/cherry/libcamera.so', needed by `out/target/product/triumph/obj/lib/libcamera.so'. Stop.

Edit 2: Ok, so I tried changing all of the "cherry" references in those lines in the triumph.mk file to "proprietary" and trying a build now.
 
Excellent! I'll try right now. Thanks!

Edit: So the build stopped on:

Notice file: external/sqlite/dist/NOTICE -- out/target/product/triumph/obj/NOTICE_FILES/src//utilities/sqlite3.txt
Notice file: bionic/libm/NOTICE -- out/target/product/triumph/obj/NOTICE_FILES/src//system/lib/libm.a.txt
make: *** No rule to make target `vendor/motorola/triumph/cherry/libcamera.so', needed by `out/target/product/triumph/obj/lib/libcamera.so'. Stop.

Edit 2: Ok, so I tried changing all of the "cherry" references in those lines in the triumph.mk file to "proprietary" and trying a build now.

Sorry, sorry. My mind is elsewhere (MIUI). I fixed the paths now: https://github.com/ikarosdev/androi...mmit/b7ef4bcd7599bf97b0e6ade73b079a01a53aa1f2

Resync and give it another go.
 
Do you have MIUI up on your repo or did you just make a binary since there is no source?

Lol sorry if I answered my own question :-p
 
Code:
remote object '/system/lib/libaudioeq.so' does not exist

remote object '/system/lib/hw/gralloc.msm7k.so' does not exist
remote object '/system/lib/libOmxEvrcEnc.so' does not exist
remote object '/system/lib/libOmxAacDec.so' does not exist
remote object '/system/lib/libOmxQcelp13Dec.so' does not exist
remote object '/system/lib/libOmxAmrEnc.so' does not exist
remote object '/system/lib/libOmxAdpcmDec.so' does not exist
remote object '/system/lib/libOmxEvrcDec.so' does not exist
remote object '/system/lib/libOmxAmrDec.so' does not exist
remote object '/system/lib/libOmxAmrwbDec.so' does not exist
remote object '/system/lib/libOmxWmaDec.so' does not exist
remote object '/system/lib/libOmxQcelp13Enc.so' does not exist
remote object '/system/lib/libOmxMp3Dec.so' does not exist
remote object '/system/lib/libOmxAmrRtpDec.so' does not exist
remote object '/system/lib/libOmxAacEnc.so' does not exist
remote object '/system/lib/libmm-adspsvc.so' does not exist
remote object '/system/lib/libomx_aacdec_sharedlibrary.so' does not exist
remote object '/system/lib/libomx_amrdec_sharedlibrary.so' does not exist
remote object '/system/lib/libomx_amrenc_sharedlibrary.so' does not exist
remote object '/system/lib/libomx_avcdec_sharedlibrary.so' does not exist
remote object '/system/lib/libomx_m4vdec_sharedlibrary.so' does not exist
remote object '/system/lib/libomx_mp3dec_sharedlibrary.so' does not exist
remote object '/system/lib/libomx_sharedlibrary.so' does not exist

remote object '/system/lib/libloc_api.so' does not exist
remote object '/system/lib/libloc-rpc.so' does not exist
remote object '/system/lib/libloc_ext.so' does not exist
remote object '/system/lib/libgps.so' does not exist
remote object '/system/lib/libloc.so' does not exist

when i pull the proprietary files these do not get pulled.

not sure why cause it was working fine...

when i go to build libaudioeq.so is missing and the build fails.

i am assuming that the lack the others will also contribute to the build further failing.


any suggestions?

thanks and sorry about the double post.


edit:

ok i did a full factory stock restore from a backup and was able to grab all of the proprietary files.

aparently the backup I had of stock didnt want to cooperate....
 
Thanks. I repo synced and then rebuilt. However, the camera wasn't working. It just keeps fc'ing. I think its probably because the build is using your OC kernel. I'll have to do some checking into that area.

Question though: what folder is your source in for your kernel? If you don't mind sharing, that is. I must just be blind because I can't seem to locate it... All I see in your github is the original source wx435 folder.

Thanks again.
 
Thanks. I repo synced and then rebuilt. However, the camera wasn't working. It just keeps fc'ing. I think its probably because the build is using your OC kernel. I'll have to do some checking into that area.

Question though: what folder is your source in for your kernel? If you don't mind sharing, that is. I must just be blind because I can't seem to locate it... All I see in your github is the original source wx435 folder.

Thanks again.

The WX435 repo is the one with the Motorola kernel, but they gave us a mangled source. The other repo (triumph-kernel-msm7x30) is the corrected one, but I have yet to push the Motorola merge into it. I'll do that sometime this weekend. This is the one you'll want to build and use. As per request of other users, I'm going to write a tutorial on building the kernel as well.
 
when i tried to stup ubuntu for building from source the command to get the repo program failed... it said "could not connect to host"
 
when i tried to stup ubuntu for building from source the command to get the repo program failed... it said "could not connect to host"

Ziggy see my post with the alternate link. Kernel.org just came back up but that report isn't up yet.

After that follow the rest of the directions and it will produce a successful build as of this morning.
 
Thanks. I repo synced and then rebuilt. However, the camera wasn't working. It just keeps fc'ing. I think its probably because the build is using your OC kernel. I'll have to do some checking into that area.

Question though: what folder is your source in for your kernel? If you don't mind sharing, that is. I must just be blind because I can't seem to locate it... All I see in your github is the original source wx435 folder.

Thanks again.

Hey, I ran into this problem as well working on new camera libs. Check ~/android/system/vendor/motorla/BoardConfigVendor.mk and make sure USE_CAMERA_STUB is set to false.

Then, you'll have to rebuild
 
Hey, I ran into this problem as well working on new camera libs. Check ~/android/system/vendor/motorla/BoardConfigVendor.mk and make sure USE_CAMERA_STUB is set to false.

Then, you'll have to rebuild

Thanks. my copy of the repo had gotten messed up so I redownloaded it, checked the line and it was set as you mentioned. I rebuilt and now it's not booting again. Here's the logcat; it looks like it's crashing on the camera libs again--but I'm assuming that's because you're still working on it.:

I/dalvikvm( 755): System server process 758 has been created
I/Zygote ( 755): Accepting command socket connections
D/AndroidRuntime( 758): Shutting down VM
W/dalvikvm( 758): threadid=1: thread exiting with uncaught exception (group=0x2aac0560)
I/Process ( 758): Sending signal. PID: 758 SIG: 9
I/Zygote ( 755): Exit zygote because system server (758) has terminated
E/AndroidRuntime( 758): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime( 758): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 755 could not load needed library 'libsystem_server.so' for 'libandroid_servers.so' (link_image[1962]: 755 could not load needed library 'libcameraservice.so' for 'libsystem_server.so' (reloc_library[1311]: 755 cannot locate 'HAL_getCameraInfo'...
E/AndroidRuntime( 758): ))
E/AndroidRuntime( 758): at java.lang.Runtime.loadLibrary(Runtime.java:455)
E/AndroidRuntime( 758): at java.lang.System.loadLibrary(System.java:554)
E/AndroidRuntime( 758): at com.android.server.SystemServer.main(SystemServer.java:712)
E/AndroidRuntime( 758): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 758): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 758): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
E/AndroidRuntime( 758): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
E/AndroidRuntime( 758): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 758): Error reporting crash
E/AndroidRuntime( 758): java.lang.NullPointerException
E/AndroidRuntime( 758): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)
E/AndroidRuntime( 758): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
E/AndroidRuntime( 758): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
E/AndroidRuntime( 758): at dalvik.system.NativeStart.main(Native Method)
I/Netd ( 768): Netd 1.0 starting
D/AndroidRuntime( 772):
D/AndroidRuntime( 772): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
 
Thanks. my copy of the repo had gotten messed up so I redownloaded it, checked the line and it was set as you mentioned. I rebuilt and now it's not booting again. Here's the logcat; it looks like it's crashing on the camera libs again--but I'm assuming that's because you're still working on it.:

I/dalvikvm( 755): System server process 758 has been created
I/Zygote ( 755): Accepting command socket connections
D/AndroidRuntime( 758): Shutting down VM
W/dalvikvm( 758): threadid=1: thread exiting with uncaught exception (group=0x2aac0560)
I/Process ( 758): Sending signal. PID: 758 SIG: 9
I/Zygote ( 755): Exit zygote because system server (758) has terminated
E/AndroidRuntime( 758): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime( 758): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 755 could not load needed library 'libsystem_server.so' for 'libandroid_servers.so' (link_image[1962]: 755 could not load needed library 'libcameraservice.so' for 'libsystem_server.so' (reloc_library[1311]: 755 cannot locate 'HAL_getCameraInfo'...
E/AndroidRuntime( 758): ))
E/AndroidRuntime( 758): at java.lang.Runtime.loadLibrary(Runtime.java:455)
E/AndroidRuntime( 758): at java.lang.System.loadLibrary(System.java:554)
E/AndroidRuntime( 758): at com.android.server.SystemServer.main(SystemServer.java:712)
E/AndroidRuntime( 758): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 758): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 758): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
E/AndroidRuntime( 758): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
E/AndroidRuntime( 758): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 758): Error reporting crash
E/AndroidRuntime( 758): java.lang.NullPointerException
E/AndroidRuntime( 758): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)
E/AndroidRuntime( 758): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
E/AndroidRuntime( 758): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
E/AndroidRuntime( 758): at dalvik.system.NativeStart.main(Native Method)
I/Netd ( 768): Netd 1.0 starting
D/AndroidRuntime( 772):
D/AndroidRuntime( 772): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

That's strange. That's a regression that I don't have anymore. I also didn't get it in my latest build last night. Do me a favor, copy and paste BoardConfig.mk from the Triumph's device folder to Pastebin.com - #1 paste tool since 2002!

I want to have a look at it.
 
Here's my boardconfig.mk. It should be exactly the same as what's on your repo since I started from scratch and redownloaded the whole thing last night.

triumph boardconfig.mk - Pastebin.com

Okay, I think I figured it out. I fixed this on my end, but didn't on Github. In the device folder itself, there's a folder (/prebuilt) that contains the updated camera libs from the Cherry 2.3 ROM. These are the ones that we use for CM7. However, if you see this (https://github.com/ikarosdev/androi...mmit/d131b54d294c5c948d32863ca0c71570b035376d), I didn't remove the old camera libs that you extract from the stock ROM. These were being copied over, which is wrong. As you can see by my last commit, I just fixed this.

Long story, short, delete ~/android/system/vendor/motorola. Go ahead and clean the source ("make clobber"), repo sync, and start from the ./extract-files.sh step. That should be the end all fix.
 
Thanks! Trying a build now after deleting that folder and doing a clobber.

Oh, I forgot you have to repo sync too.

I hope you see this message in time. If not, just hit ctrl+c to kill the build. Make clobber and repo sync.
 
Yep, I did see it. thanks.

Edit: With your update, it builds and boots now. Thanks!

Edit2: with your latest updates and the latest libraries, I'm able to get the FFC as well as OC with your kernel. excellent! And the camera has the pictures the correct orientation, i.e. not upside down.
 
So I didn't want to stick this note in the middle of the cm7 thread. Just reporting that I don't think your HDMI code worked.

When I connected my phone to the HDMI in on my tv, the TV seems to recognize an input is connected and the TV screen gets the normal blue screen when an input is recognized but no video is being sent to it look.

This is much better than it was on the previous cm 7 where the tv never recognizes that an hdmi input is connected.

Here's what I did to get your experimental branch code--I don't think this was the best and correct way to do it but I think it should still work, correct me if it wouldn't work. I did a repo sync and then since, at the time, I didn't know I could set up my files as a git so the git cherry-pick command didn't work, I just copied over your files in the

ikarosdev / android_frameworks_base in your gingerbread-experimental branch and replaced my existing files. The build was successful and the phone booted.
 
So I didn't want to stick this note in the middle of the cm7 thread. Just reporting that I don't think your HDMI code worked.

When I connected my phone to the HDMI in on my tv, the TV seems to recognize an input is connected and the TV screen gets the normal blue screen when an input is recognized but no video is being sent to it look.

This is much better than it was on the previous cm 7 where the tv never recognizes that an hdmi input is connected.

Here's what I did to get your experimental branch code--I don't think this was the best and correct way to do it but I think it should still work, correct me if it wouldn't work. I did a repo sync and then since, at the time, I didn't know I could set up my files as a git so the git cherry-pick command didn't work, I just copied over your files in the

ikarosdev / android_frameworks_base in your gingerbread-experimental branch and replaced my existing files. The build was successful and the phone booted.

This may sound a little odd, but could you upload this build you're talking about. My source is all messed up and there's something I want to try. Thanks.
 
Back
Top Bottom