• 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).

So... I'm new to all of this & completely stumped. I know git has a cherry-pick function to pull this code into my copy. I have no clue how it works.
Everything I try with git ends up in this:
fatal: Not a git repository (or any of the parent directories): .git

Everything I've done so far is manually editing, which would take weeks seeing all of edowar's changes - & I've been looking thru all of them (& noticed HDMI is still not working) trying to figure out how to add them.
I have Isaac's repo. I have the proprietary files included. I've run a successful (but not booting) build from them.

Sorry if I'm being an ignorant newb but that's what I am and I'm not afraid to admit it. :D

ICS Kernel (should work on MT):

https://github.com/edowar/FIH-msm7x30-ics

The rest of CM9 (from isaac's repo or CM), our device specifics:

https://github.com/edowar/android_device_fih_fb0 <-- try this first
or
https://github.com/edowar/android_device_fb0

Proprietary blobs can be downloaded here:

http://androidforums.com/triumph-al...7-source-development-area-11.html#post3634312

or use extract-files.sh script from the CM7 build thread instructions plugged into a Froyo ROM.

Build away! I will when I get time & my build env working again.
 
Here's a crash course on git (I just learned this recently from www.gitref.org (good concise source of info). Isaac had everything setup when he was active so it was easy to build, the 'repo init' and 'repo sync' basically does a lot of git fetch & updates in the background for you. Now that he's not active anymore, you have to git fetch and git merge manually. The basic layout if you have a typical build environment setup is:

~/android/device/motorola/triumph
~/android/framework/base
~/android/vendor/cyanogenmod/
...

Each of those subdirectories is a git repo that everyone clones from Cyanogenmod. So in order to fetch more updated versions (bypassing Isaac's stale repo), you cd to a path:

Code:
cd ~/android/device/motorola/triumph
git remote add edowar [URL="https://github.com/edowar/android_device_fb0"]https://github.com/edowar/android_device_fb0[/URL]
git pull edowar ics
Will fetch a new version from the edowar's device repo and merge it into your local path. Like I said, this is a basic example workflow. Go to www.gitref.org for more specific info.
 
Whyzor - thanks so much. I was trying to pull while in the root of my build directory. Will try it again this evening when I get home.
 
Update: So I setup my environment last night VMWare Player using Ubuntu 10.10 Lucid (its not as graphic intensive in VMWare like 11.x is). Also I was able to get GIT installed on my hosting provider DreamHost. If anyone would be interested in setting up there own GIT and has DreamHost here is the lazy man walkthrough :D

Endless Ramblings: Hosting your GIT repository on DreamHost

Currently I am grabbing Issac's ICS, as it failed last night. My external hard drive which host my vmware player went to sleep. In case some one has that type of setup using a vm on a external usb or sata drive I found an app that keeps the drive awake

Prevent External Hard Drives From Entering Sleep Mode

Anyways the plan is once I git the source code I will upload it my hosting provider as a secondary source for all of us, and I will also distribute my VMplayer as well which will have the source code and will be in a ready to build state. I should get more done tonight, I will keep you all posted.
 
Update: So I setup my environment last night VMWare Player using Ubuntu 10.10 Lucid (its not as graphic intensive in VMWare like 11.x is). Also I was able to get GIT installed on my hosting provider DreamHost. If anyone would be interested in setting up there own GIT and has DreamHost here is the lazy man walkthrough :D

Endless Ramblings: Hosting your GIT repository on DreamHost

Currently I am grabbing Issac's ICS, as it failed last night. My external hard drive which host my vmware player went to sleep. In case some one has that type of setup using a vm on a external usb or sata drive I found an app that keeps the drive awake

Prevent External Hard Drives From Entering Sleep Mode

Anyways the plan is once I git the source code I will upload it my hosting provider as a secondary source for all of us, and I will also distribute my VMplayer as well which will have the source code and will be in a ready to build state. I should get more done tonight, I will keep you all posted.


Great! I'm trying to figure out what to do after I synced the repo....Im sitting at Ubuntu with my terminal open after downloading for 5 hours..:mad:..I've searched the forums, but....
Do I continue the steps from Isaac's Part III - Configure and Build or do I do something else???
I hate to be a n00b, but I really want to do this!!!!
Any help will be GREATLY appreciated.
Thanks!
 
Great! I'm trying to figure out what to do after I synced the repo....Im sitting at Ubuntu with my terminal open after downloading for 5 hours..:mad:..I've searched the forums, but....
Do I continue the steps from Isaac's Part III - Configure and Build or do I do something else???
I hate to be a n00b, but I really want to do this!!!!
Any help will be GREATLY appreciated.
Thanks!

I would suggest following the instructions for building CM7 in another thread and try to build CM7 without errors, then switch to the ics branch & build, then you know any new errors is from ICS. It makes troubleshooting first time problems easier.
 
I would suggest following the instructions for building CM7 in another thread and try to build CM7 without errors, then switch to the ics branch & build, then you know any new errors is from ICS. It makes troubleshooting first time problems easier.


Thanks bro. You are a great help!
 
You're welcome, I was just there recently too. More brains are better than one. Let's get ICS on this phone!


:rolleyes:Absolutely! I am at school with this weak network and still trying to get ADB setup....Ill be home around 4ish EST with 30 MB/s!!!!!!!!
Really wanna dedicate the next 4 days to dev'ing this!!!:D
 
I've spent my entire evening trying to build. Tried to get edowar's commits & ended up hosing my build directory. Tons of merge errors, & not sure how to deal with them. Deleted all to start over, and now can't get a sync. Tried git:// and https:// and both end up the same:

john@aspire:~/ICS$ repo sync
Fetching projects: 95% (231/243) fatal: The remote end hung up unexpectedly
Fetching projects: 99% (241/243) fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

error: Exited sync due to fetch errors
john@aspire:~/ICS$ repo sync
Fetching projects: 95% (231/243) fatal: The remote end hung up unexpectedly
Fetching projects: 99% (241/243) fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

error: Exited sync due to fetch errors
john@aspire:~/ICS$ repo sync -j1
Fetching projects: 96% (234/243) fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

Downloaded the source from google (which went thru without errors) & then re init to isaac's repo (maybe just dl changes would work) and still no luck.

I'm about to become one of the sheep who waits for a downloadable zip.

If I can't dl anything I can't build or debug. No tools = no progress. Frustrating!

Anybody know why it's impossible to sync now? A week ago I did so 4x in 3 days with no problems.

I have another project that has a deadline of Sat night, which I have put off to the last second, so I'll be unplugging until next week. I hope someone will have better luck than I have with this. If nobody has by then I'll make another attempt at syncing.
 
:rolleyes:Absolutely! I am at school with this weak network and still trying to get ADB setup....Ill be home around 4ish EST with 30 MB/s!!!!!!!!
Really wanna dedicate the next 4 days to dev'ing this!!!:D

Brad, you're building in Linux I presume. You may want to add adb to your $PATH to make it a little easier to use. I've been busy setting this kind of stuff all day working on some stuff for my Transformer. Now, if I can get the damn git to work properly (thanks github for the aggravation), I'll be in there like swimwear.

If anyone doesn't know about adding to $PATH then, Google "adding ADB to PATH" and look for an old XDA post. I found it very useful.

P.S. my back is aching and my fingers are hurting from typing on 3 different keyboards today. (whew!)
 
I've spent my entire evening trying to build. Tried to get edowar's commits & ended up hosing my build directory. Tons of merge errors, & not sure how to deal with them. Deleted all to start over, and now can't get a sync. Tried git:// and https:// and both end up the same:

john@aspire:~/ICS$ repo sync
Fetching projects: 95% (231/243) fatal: The remote end hung up unexpectedly
Fetching projects: 99% (241/243) fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

error: Exited sync due to fetch errors
john@aspire:~/ICS$ repo sync
Fetching projects: 95% (231/243) fatal: The remote end hung up unexpectedly
Fetching projects: 99% (241/243) fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

error: Exited sync due to fetch errors
john@aspire:~/ICS$ repo sync -j1
Fetching projects: 96% (234/243) fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

Downloaded the source from google (which went thru without errors) & then re init to isaac's repo (maybe just dl changes would work) and still no luck.

I'm about to become one of the sheep who waits for a downloadable zip.

If I can't dl anything I can't build or debug. No tools = no progress. Frustrating!

Anybody know why it's impossible to sync now? A week ago I did so 4x in 3 days with no problems.

I have another project that has a deadline of Sat night, which I have put off to the last second, so I'll be unplugging until next week. I hope someone will have better luck than I have with this. If nobody has by then I'll make another attempt at syncing.

This is the site that I used:
repo init -u git://github.com/CyanogenMod/android.git -b ics

or

repo init -u git://github.com/Cyanogen/android.git -b ics

It built for me last night, but had to delete and start over...battery died...haven't tried it today yet tho....but if I hear anything I'll PM you???


And I was thinking about being a "sheep" again, but I would like to learn and at least make a flashable .zip.....just kinda don't wanna sit and wait when I 'feel' like I can contribute!!:p
 
My error:
Code:
 File "/home/sean/android/system/.repo/repo/project.py", line 1758, in _InitWorkTree
    raise GitError("cannot initialize work tree")

PORQUE?! I was able to build about a week ago, and now it won't work. I guess I'm going back to make a kernel. :/
 
This is the site that I used:
repo init -u git://github.com/CyanogenMod/android.git -b ics

or

repo init -u git://github.com/Cyanogen/android.git -b ics

It built for me last night, but had to delete and start over...battery died...haven't tried it today yet tho....but if I hear anything I'll PM you???


And I was thinking about being a "sheep" again, but I would like to learn and at least make a flashable .zip.....just kinda don't wanna sit and wait when I 'feel' like I can contribute!!:p

Interesting, that may build fine, but it probably won't run because it doesn't have any MT related fixes/updates unless you also merge in the device repos from Isaac or edowar.
 
I'm beginning to think things are changing with the base code faster than we can keep up with. I know the CM code has been different everytime I've synced. Last time was long_back_keypress_app_kill errors.

I was hoping to just sync from google, then add Isaac's commits, then Edowar's, & hope it booted.

As many errors as I'm seeing trying to sync, it's a waste of time to try to build anything right now. It's all dynamic, & changing drastically.

Maybe next week things will calm down to the point of being able to pull code without being blind to what it is.

Gotta try to rebuild my bike in the next 3 days to do a race Sunday. Should've been working on it all week.

Wish all of ya luck.... you'll need it.

I'm still kinda hoping Isaac will jump in here at some point laughing at all of us.

Will check back Monday (providing I can still type) to see if anything's happened.
 
"I'm still kinda hoping Isaac will jump in here at some point laughing at all of us."


EXACTLY! I bet he's incognito-ly checking on us...all the while, building and all ready to put up a .zip and laughing his a@@ off!

Eh, Im still gonna try...its a learning experience!:p
 
I second spdlmt150, I think it is time to give it a rest on this ICS issue. (Well, for me anyway.) It will come someday... it may be here by next week, or next month. I don't know, all I know is that I did get one successful build (about two weeks ago), and in my opinion, it proves that we will have ICS soon. To everyone still building/attempting to build, good luck!
 
I was able to sync down issac's code after changing the .repo file and replacing all the git:// to https://. However there is a lot of problems with his code, the first one being the camera app which I removed but still wouldn't build. After I removed the camera app I then received some java error that no one has posted on our forum area. The only other place I found that error was people getting the exact same error compiling CM7 but not ICS. At this point I am going to build straight from google's source as I have no clue how many people have republished changes to Isacc's original code. I will keep you guys posted as I can only work on this at night.
 
While syncing last night for my GB build, I had to manually pull in changes to framework_base and android_core because other repos (CMParts & apps_Contacts) had updates that created dependencies, this was just on the GB branch, so the ICS probably has even more). I hope Isaac at least comes back to do syncs & merges with CM once in a while, otherwise we'll have to do it manually.
 
....otherwise we'll have to do it manually.

At this point I think our best bet is to do it manually. The last time I saw Issac on was on the 5th and that was on github answering a question. As much as I would be pumped to see him swoop in and save us I am sure he is busy with school. The work that Issac and TikerGuy did was tremendous for the Triumph community however the old saying "Life Happens".

I am sure if we keep working on this as a collective group will get there in time, we just need a stable build that boots :cool:
 
From other post


Noob thought here. I have been following the development of Issacs's and TG's Roms and the path to ICS. I understand some of the obstacles include not having the source, gen lock issues, other versions of the phone are GSM.
Cricket just introduced the Huawei U8866 Honor. The CDMA version is the Mercury on Cricket which uses Sprint network.
Same Snapdragon processor but running at 1.4 and 205 adreno chipset.
It comes stock with gingerbread and it was the first phone to be upgraded to ICS which was available as a download for a time on the Huawei website. Huawei U8860 Gets a
 
Back
Top Bottom