Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[ROM][SGH-I777][4.0.4] CyanogenMod 9 nightly builds | DEVELOPMENT THREAD

OP atinm

28th March 2012, 12:40 PM   |  #1  
atinm's Avatar
OP Retired Recognized Developer
Thanks Meter: 3,728
 
2,184 posts
Join Date:Joined: Jul 2010
DEVELOPMENT THREAD
FOR DEVELOPERS ONLY





CyanogenMod is a free, community built, aftermarket firmware distribution of Android 4.0 (ICS), which is designed to increase performance and reliability over stock Android for your device.

Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 *
 * Submitting bug reports on nightly builds is the leading 
 * cause of male impotence.
 */
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.



General:
http://github.com/CyanogenMod

Device (you need both):
http://github.com/CyanogenMod/androi...msung_galaxys2
http://github.com/CyanogenMod/androi...e_samsung_i777

Kernel:
https://github.com/teamhacksung/andr...msung_smdk4210

Build:
http://teamhacksung.org/wiki/index.p...7:How_to_build

Getting Started:
http://wiki.cyanogenmod.com/wiki/Howto:_Gerrit

Example:
- cd ~/android/system
- repo start branchname CyanogenMod/android_device_samsung_i777 (or android_device_galaxys2 depending on whether your work is in common galaxys2 or i777)
-- Make your changes at device/samsung/i777 (or galaxys2)
- cd device/samsung/i777 (or galaxys2)
- git add -A
- git commit -a
- cd ~/android/system
- repo upload CyanogenMod/android_device_samsung_i777 (or android_device_samsung_galaxys2 if your changes are to galaxys2)

Many of your changes will actually be in the android_device_samsung_galaxys2 repo as well as the code is shared between the galaxys2 and i777 so you will also need to work in that repo.

Navigate to http://review.cyanogenmod.com , click your commit and add atinm for i777, atinm, codeworkx and xplodwild for galaxys2, as reviewers.
Last edited by atinm; 30th March 2012 at 03:24 AM.
The Following 25 Users Say Thank You to atinm For This Useful Post: [ View ]
28th March 2012, 12:41 PM   |  #2  
atinm's Avatar
OP Retired Recognized Developer
Thanks Meter: 3,728
 
2,184 posts
Join Date:Joined: Jul 2010
Saved for later.
The Following 2 Users Say Thank You to atinm For This Useful Post: [ View ]
Red5
28th March 2012, 05:09 PM   |  #3  
Guest
Thanks Meter: 0
 
n/a posts
Alright, this thread has been cleaned up to here. All other non-dev members can discuss this here in the designated discussion thread in the General forum.
The Following 16 Users Say Thank You to For This Useful Post: [ View ]
28th March 2012, 05:50 PM   |  #4  
Senior Recognized Developer
Flag Owego, NY
Thanks Meter: 24,637
 
13,460 posts
Join Date:Joined: Aug 2007
Donate to Me
More
atinm - don't know if you saw, but there's a pending gerrit submission for an updated kernel.

The current set of kernels has ondemand as default but interactive governor enabled - this combo can cause hung task freezes in LPM and recovery.

http://review.cyanogenmod.com/#change,14072

(I tried to add you as a reviewer but I'm not sure if that's the correct atinm. The system is full of "use the other atinm" users. )
The Following 4 Users Say Thank You to Entropy512 For This Useful Post: [ View ]
28th March 2012, 06:37 PM   |  #5  
atinm's Avatar
OP Retired Recognized Developer
Thanks Meter: 3,728
 
2,184 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by Entropy512

atinm - don't know if you saw, but there's a pending gerrit submission for an updated kernel.

The current set of kernels has ondemand as default but interactive governor enabled - this combo can cause hung task freezes in LPM and recovery.

http://review.cyanogenmod.com/#change,14072

(I tried to add you as a reviewer but I'm not sure if that's the correct atinm. The system is full of "use the other atinm" users. )

Saw this too late - I pushed the same kernel plus an added assert for galaxys2 so people using the bad ported galaxys2 builds can get to i777. I'll take out the galaxys2 assert in a couple of days after people are on i777. Building a new nightly.

Will look at the GPS you have on gerrit in a little bit - have to be out for a few hours.
28th March 2012, 08:56 PM   |  #6  
Member
Flag Minsk
Thanks Meter: 0
 
40 posts
Join Date:Joined: Dec 2009
More
Building from source
I am trying to build it locally with following error:

Code:
dzmitry@dzmitry-desktop:~/android/system$ brunch i777

---//some skipped output///---

build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/i777/cm.mk]]: "vendor/samsung/i777/i777-vendor-blobs.mk" does not exist.  Stop.

** Don't have a product spec for: 'cm_i777'
** Do you have the right repo manifest?
My manifest:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="CyanogenMod/android_device_samsung_galaxys2" path="device/samsung/galaxys2" remote="github" />
  <project name="CyanogenMod/android_device_samsung_i777" path="device/samsung/i777" remote="github" />
  <project name="teamhacksung/android_kernel_samsung_smdk4210" path="kernel/samsung/smdk4210" remote="github" revision="ics" />
  <project name="teamhacksung/buildscripts" path="buildscripts" remote="github" revision="ics">
    <copyfile dest="build.sh" src="samsung/build.sh" />
  </project>
  <project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" />
</manifest>
Any help is greatly appreciated!
28th March 2012, 09:44 PM   |  #7  
Senior Recognized Developer
Flag Owego, NY
Thanks Meter: 24,637
 
13,460 posts
Join Date:Joined: Aug 2007
Donate to Me
More
you didn't do extract-files

Not sure if looking for galaxys2 will cut it... Most likely a bunch of people are coming from Touchwiz-based firmwares.

I admit I am partially at fault - I didn't implement sed scripts in Hellraiser to change the model, partly to minimize the chances that something would break. (The rule was to change as little as possible to make things work in order to maximize compatibility.)
The Following 2 Users Say Thank You to Entropy512 For This Useful Post: [ View ]
28th March 2012, 10:54 PM   |  #8  
atinm's Avatar
OP Retired Recognized Developer
Thanks Meter: 3,728
 
2,184 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by sam3000

I had that too (link). As a workaround, edit device/samsung/i777/extract-files.sh and change DEVICE=galaxys2 to DEVICE=i777 and it should build. I'm not sure what the correct fix should be though..

The other stuff I mention in the linked post has since been fixed.

The issue is that the proprietary files that the i777 is using are from the galaxys2 and it just pulls them from there. But the .mk files that are generated need to go into the i777 directory. I've updated extract-files.sh to try to get around it, but need someone to test.
The Following User Says Thank You to atinm For This Useful Post: [ View ]
29th March 2012, 08:04 AM   |  #9  
5942marine's Avatar
Member
Thanks Meter: 3
 
75 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by atinm

The issue is that the proprietary files that the i777 is using are from the galaxys2 and it just pulls them from there. But the .mk files that are generated need to go into the i777 directory. I've updated extract-files.sh to try to get around it, but need someone to test.

I tried to run extract-files.sh and got:
Code:
remote object '/system/lib/libGLESv2_dbg.so' does not exist
Which gave me this during compile:
Code:
make: *** No rule to make target `vendor/samsung/galaxys2-common/proprietary/libGLESv2_dbg.so', needed by `out/target/product/i777/system/lib/libGLESv2_dbg.so'.  Stop.
I have the latest repo as describe in the op. Anyone else run into this issue? Ran the extract on cm7.
29th March 2012, 08:33 AM   |  #10  
halfsoul's Avatar
Senior Member
Thanks Meter: 65
 
386 posts
Join Date:Joined: Jul 2006
Quote:
Originally Posted by 5942marine

I tried to run extract-files.sh and got:

Code:
remote object '/system/lib/libGLESv2_dbg.so' does not exist
Which gave me this during compile:
Code:
make: *** No rule to make target `vendor/samsung/galaxys2-common/proprietary/libGLESv2_dbg.so', needed by `out/target/product/i777/system/lib/libGLESv2_dbg.so'.  Stop.
I have the latest repo as describe in the op. Anyone else run into this issue? Ran the extract on cm7.

Did you enable root for adb before running extract-files.sh? And what ROM do you have now?

Post Reply Subscribe to Thread

Tags
cm9, cyanogenmod, ice cream sandwich, ics, teamhacksung
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes