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

Root [Discussion - Developers _ONLY_] Building ICS from source (Isaac's github).

My hand walking the file may be the key, don't know, but it did get me past that.

I'm still not sure I completely get git. But I managed to determine with a "git log" that after my fetch I still didn't have the patches.

I did find the needed modification in the link from post #286. I used the "pull" syntax from Gerrit Code Review to come up with something that seems to work.

Code:
cd ~/android/system/frameworks/base/
git fetch http://review.cyanogenmod.com/p/CyanogenMod/android_frameworks_base refs/changes/40/11140/2 && git cherry-pick FETCH_HEAD

Again, I'm not sure this is the BEST way to do it, as it might cause some future issues with the Isaac's repo?:o If anyone with a better understanding of GIT lets me know a better way, I'll update this post. Thanks.
 
Got it! Thanks to Google my hero, I found a solution to the signapk.jar error. For those of you that are getting this error, locate ~/android/system/build/tools/releasetools/common.py Find this line:
Code:
cmd = ["java", "-Xmx2048m", "-jar",
           os.path.join(OPTIONS.search_path, "framework", "signapk.jar")]
...and change it to this:
Code:
cmd = ["java", "-Xmx[B]1024[/B]m", "-jar",
           os.path.join(OPTIONS.search_path, "framework", "signapk.jar")]
If that does not work then you can try changing the number to a lower one. This number defines how much RAM the program uses. It solved my problem and now I have built successfully! :D Will test it out later.
 
Did a clean attempt - delete all, fresh repo sync
added libgenlock
removed wimax references in providers/downloads/downloadinfo.java

Actually got a complete build (without mushroom clouds) and a flashable zip.

Get the red moto logo, then black screen & off.

Nothing from adb.

Going back thru the thread to see if I missed anything.

Missed removal of PinyinIME - rebuilding
 
I found the real problem with the Wimax error. There were two commmits to the CM repo last week to fix something with wimax:

Gerrit Code Review
Gerrit Code Review

One was to the android_frameworks_base and the other was to android_packages_providers_DownloadProvider.

One got merged before the other, so a lot of people ran into this error. Once the other one was merged, the problem should have been fixed (and was fixed for other devices).

The problem here lies in Isaac's repo. He has his own fork of android_frameworks_base which never got the patch, so now we're getting the error.

Until Isaac updates his repo, the workaround is:

Code:
cd frameworks/base
Code:
git fetch http://review.cyanogenmod.com/p/CyanogenMod/android_frameworks_base refs/changes/40/11140/2 && git cherry-pick FETCH_HEAD

Repo syncing will revert this, so you'll need to run it after syncing, but before building until Isaac fixes it.
 
Its not gonna boot for yall untill somebody figures out the genlock stuff for our kernel.
I could be wrong but nobody has gotten a build to boot since he added the genlock stuff in.
So unless one of yall has gotten the a build to boot you need to figure out the genlock driver...
 
Its not gonna boot for yall untill somebody figures out the genlock stuff for our kernel.
I could be wrong but nobody has gotten a build to boot since he added the genlock stuff in.
So unless one of yall has gotten the a build to boot you need to figure out the genlock driver...

Yeah, I just finished building and am getting the same bootloop as everyone else. Unfortunately I don't know the first thing about genlock drivers or kernels.
 
did anyone happen to keep the old kernel? so you can at least test the minor things that arent kernel related...
 
I have a nandroid of a build that boots, so I assume it has the old kernel. Is it possible to extract from it, if so where/how?
I believe that in the nandroid there is a file named boot.img. That is the file that includes the kernel. I believe that you could just repack it into the update zip.
 
I believe that in the nandroid there is a file named boot.img. That is the file that includes the kernel. I believe that you could just repack it into the update zip.

Ok, so I took the boot.img from my old working build, and repacked it into my build from today and flashed it. It still does not boot, but now it doesn't loop. It shows the moto logo, then a black screen with the backlight on and stays there.

ADB connects and I took a look at the logcat. It looks like it is stuck in a loop. I think this part is the key error:

Code:
E/libgenlock(  198): genlock_create_lock: open genlock device failed (err=No suc
h file or directory)
E/msm7x30.gralloc(  198): alloc_impl: genlock_create_lock failed
E/memalloc(  198): getAllocator: Invalid flags passed: 0x0
F/libc    (  198): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)

Any ideas? I can upload the boot.img I'm using, or capture the full logcat if it would be useful to someone.
 
Ok, so I took the boot.img from my old working build, and repacked it into my build from today and flashed it. It still does not boot, but now it doesn't loop. It shows the moto logo, then a black screen with the backlight on and stays there.

ADB connects and I took a look at the logcat. It looks like it is stuck in a loop. I think this part is the key error:

Code:
E/libgenlock(  198): genlock_create_lock: open genlock device failed (err=No suc
h file or directory)
E/msm7x30.gralloc(  198): alloc_impl: genlock_create_lock failed
E/memalloc(  198): getAllocator: Invalid flags passed: 0x0
F/libc    (  198): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)

Any ideas? I can upload the boot.img I'm using, or capture the full logcat if it would be useful to someone.

i would do both... as isaac can get some infor from the logcat. and the rest of us can use the kernel to make a "workaround"
 
This is what I get when building:

make: *** No rule to make target `out/target/product/triumph/obj/lib/libgenlock.so', needed by `out/target/product/triumph/obj/SHARED_LIBRARIES/gralloc.msm7x30_intermediates/LINKED/gralloc.msm7x30.so'. Stop.
make: *** Waiting for unfinished jobs....


What went wrong? Any ideas? I don't have a zip in android/system/out/target/product/triumph. Full pastebin: http://pastebin.com/qVEU7Wjy
 
This is what I get when building:

make: *** No rule to make target `out/target/product/triumph/obj/lib/libgenlock.so', needed by `out/target/product/triumph/obj/SHARED_LIBRARIES/gralloc.msm7x30_intermediates/LINKED/gralloc.msm7x30.so'. Stop.
make: *** Waiting for unfinished jobs....


What went wrong? Any ideas? I don't have a zip in android/system/out/target/product/triumph. Full pastebin: [Bash] MT build error? - Pastebin.com

You missed this step, http://androidforums.com/triumph-al...g-ics-source-isaacs-github-6.html#post3720541
 
Build stopped again. Here's what it ended at:
Code:
make: *** No rule to make target `vendor/motorola/triumph/proprietary/thermald', needed by `out/target/product/triumph/system/bin/thermald'.  Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/su/NOTICE -- out/target/product/triumph/obj/NOTICE_FILES/src//system/xbin/su.txt

Full Pastebin:[Bash] Another Error- CM9 MT Build - Pastebin.com

I also applied NateMckn's fix.

Edit: After Syncing the directory and re-applying the libgenlock fix, this is what I got, similar to the previous error:
Code:
make: *** No rule to make target `vendor/motorola/triumph/proprietary/thermald', needed by `out/target/product/triumph/system/bin/thermald'.  Stop.
make: *** Waiting for unfinished jobs....
I'm guessing there's a problem with the thermald file, but not sure how to fix.


Edit 2: Should we get a freenode IRC channel for this running?

Edit 3: Here's what I get now:
Code:
make: *** No rule to make target `vendor/motorola/triumph/proprietary/thermald', needed by `out/target/product/triumph/system/bin/thermald'.  Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/su/NOTICE -- out/target/product/triumph/obj/NOTICE_FILES/src//system/xbin/su.txt
target Generated: libwebcore <= external/webkit/Source/WebCore/html/parser/HTMLEntityNames.in
Any idea on what happened?

Edit 4: After a long time, it seems that my proprietary files didn't make it through, thermald apparently one of them. Anyways, I applied the proprietaries that NateMckn posted AND his fix a few replies above, and build seems to be much, much farther now (still building).

Edit 5: I get the same error D:
Code:
external/strace/android/arch/arm/config.h:302:1: warning: "HAVE_TERMIO_H" redefined
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:99:1: warning: this is the location of the previous definition
target thumb C++: su <= system/su/activity.cpp
target thumb C: su <= system/su/su.c
target thumb C: su <= system/su/db.c
make: *** No rule to make target `vendor/motorola/triumph/proprietary/thermald', needed by `out/target/product/triumph/system/bin/thermald'.  Stop.
make: *** Waiting for unfinished jobs....
Someone help, please??

Okay, I figured I should replace the thermald file again, then I typed the command to build again.
I got this error:
Code:
host Executable: qemu-android-arm (out/host/darwin-x86/obj/EXECUTABLES/qemu-android-arm_intermediates/qemu-android-arm)
host Executable: qemu-android-x86 (out/host/darwin-x86/obj/EXECUTABLES/qemu-android-x86_intermediates/qemu-android-x86)
ld: illegal text reloc to DwarfCUImpl<Dwarf_CUHdr<Dwarf64_SizeHdr, unsigned long long>, unsigned long long>::get_pc_address_file_info(unsigned long long, Dwarf_AddressInfo*)from ldout/host:/ darwinillegal- x86text/ objreloc/ STATIC_LIBRARIESto/ emulator-libelff_intermediates/emulator-libelff.a(dwarf_cu.o) in DwarfCUImpl<Dwarf_CUHdr<Dwarf64_SizeHdr, unsigned long long>, unsigned long long>::get_pc_address_file_info(unsigned long long, Dwarf_AddressInfo*)DwarfCUImpl<Dwarf_CUHdr<Dwarf64_SizeHdr, unsigned long long>, unsigned long long>::get_pc_address_file_info(unsigned long long, Dwarf_AddressInfo*)ffromor  outarchitecture/ hosti386/
darwin-x86/obj/STATIC_LIBRARIES/emulator-libelff_intermediates/emulator-libelff.a(dwarf_cu.o) in DwarfCUImpl<Dwarf_CUHdr<Dwarf64_SizeHdr, unsigned long long>, unsigned long long>::get_pc_address_file_info(unsigned long long, Dwarf_AddressInfo*)for architecture i386
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
make: *** [out/host/darwin-x86/obj/EXECUTABLES/qemu-android-x86_intermediates/qemu-android-x86] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/darwin-x86/obj/EXECUTABLES/qemu-android-arm_intermediates/qemu-android-arm] Error 1

*sigh* I'm confused on what to do.

I'll probably just install a Linux distro and go from there. Fedora, Ubuntu, Linux Mint..
 
I GOT A COMPLETE BUILD!!!!!!!!

Now that I have celebrated.... let me load this sucker. (I'm not expecting anything really.)

Edit: Just like some of the other guys here, my phone boots to the Red M, and shuts off. Oh well....

Edit 2: But when I use Advance restore to just restore my boot.img, it stays on (backlight on, goes past boot logo), and of course logcat just goes crazy...
 
I GOT A COMPLETE BUILD!!!!!!!!

Now that I have celebrated.... let me load this sucker. (I'm not expecting anything really.)

Edit: Just like some of the other guys here, my phone boots to the Red M, and shuts off. Oh well....

Edit 2: But when I use Advance restore to just restore my boot.img, it stays on (backlight on, goes past boot logo), and of course logcat just goes crazy...
So, were you able to boot into the OS???
 
I gave building a go for the first time yesterday. It looks like it was happy until the camera. I may have missed something along the way, but didn't see an error like this in the thread. Anyone seen anything like this before? I've had CM7 builds for another device working from this /media/android/... location working instead of root of home before so I don't think that's the problem.

Here's what I did -
Code:
/media/android/ics_triumph/bin$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > repo
/media/android/ics_triumph/bin$ chmod +x repo
/media/android/ics_triumph/bin$ export PATH=$PATH:$PWD
/media/android/ics_triumph/bin$ cd ../system
/media/android/ics_triumph/system$ repo init -u git://github.com/ikarosdev/android.git -b ics
/media/android/ics_triumph/system$ repo sync -j8
/media/android/ics_triumph/system$ cd device/motorola/triumph/
/media/android/ics_triumph/system/device/motorola/triumph/$ sudo adb start-server
/media/android/ics_triumph/system/device/motorola/triumph/$ sh ./extract-files.sh
/media/android/ics_triumph/system/device/motorola/triumph/$ cd ../../../vendor/vm
/media/android/ics_triumph/system/vendor/cm$ ./get-prebuilts

* Added libgenlock to the display makefile
* Added COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE to BoardConfig.mk
* Extracted contents of prorietary.tar.gz to /media/android/ics_triumph/system/vendor/motorola/triumph/proprietary and /media/android/ics_triumph/system/device/motorola/triumph/ since I wasn't sure which was the correct destination

/media/android/ics_triumph/system$ cd frameworks/base
/media/android/ics_triumph/system/frameworks/base$ git fetch http://review.cyanogenmod.com/p/CyanogenMod/android_frameworks_base refs/changes/40/11140/2 && git cherry-pick FETCH_HEAD
/media/android/ics_triumph/system/frameworks/base$ cd ../..
/media/android/ics_triumph/system$ . build/envsetup.sh && brunch triumph
Here's the error output -
Code:
target R.java/Manifest.java: Camera (out/target/common/obj/APPS/Camera_intermediates/src/R.stamp)
aapt: warning: string 'help_page' has no default translation in packages/apps/Browser/res; found: af am ar be bg ca cs da de el en_GB es es_US et fa fi fr hi hr hu in it iw ja ko lt lv ms nb nl pl pt pt_PT ro ru sk sl sr sv sw th tl tr uk vi zh_CN zh_TW zu
device/motorola/triumph/overlay/packages/apps/Camera/res/values/config.xml:25: error: Resource at ffc_canFocus appears in overlay but not in the base package; use <add-resource> to add.
device/motorola/triumph/overlay/packages/apps/Camera/res/values/config.xml:26: error: Resource at ffc_canZoom appears in overlay but not in the base package; use <add-resource> to add.
device/motorola/triumph/overlay/packages/apps/Camera/res/values/config.xml:27: error: Resource at ffc_supportedEffects appears in overlay but not in the base package; use <add-resource> to add.
make: *** [out/target/common/obj/APPS/Camera_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs....
 
Back
Top Bottom