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

Search This thread

brendonlee

Senior Member
Oct 13, 2011
86
17
Charlotte
I noticed starting today (at least i think it started today) that when building android using
Code:
./build.sh i777 kernel
now seems to only build the kernel when it used to build the kernel, copy it to the i777 directory, then build android. Did something change recently? I saw a few merged changes as far as how the kernel is built, but did that affect the way our build script works?
 

tmckenn2

Senior Member
Nov 9, 2010
345
73
I noticed starting today (at least i think it started today) that when building android using
Code:
./build.sh i777 kernel
now seems to only build the kernel when it used to build the kernel, copy it to the i777 directory, then build android. Did something change recently? I saw a few merged changes as far as how the kernel is built, but did that affect the way our build script works?

I took a look at the build script. the script it self doesnt show that it ever exhibited that behavior. and if it did and i missed it, there was nothing changed that would cause that. unless there is another file that would cause this change.

i havent built with that command but you might want to try using the one on that website right above it. or if you want to make it do it all at once make a script of your own that calls the build.sh moves the kernel and then calls brunch... just a thought.


also to the guy who said that there was no 4/14 nightly... so?
 
Last edited:
  • Like
Reactions: brendonlee

brendonlee

Senior Member
Oct 13, 2011
86
17
Charlotte
I took a look at the build script. the script it self doesnt show that it ever exhibited that behavior. and if it did and i missed it, there was nothing changed that would cause that. unless there is another file that would cause this change.

i havent built with that command but you might want to try using the one on that website right above it. or if you want to make it do it all at once make a script of your own that calls the build.sh moves the kernel and then calls brunch... just a thought.


also to the guy who said that there was no 4/14 nightly... so?

Thanks for looking at that man. You just kinda reminded me that I have a VM from a few days ago that does the kernel compile & then builds that I can use to compare to the new one I've been using.

---------- Post added at 07:41 PM ---------- Previous post was at 07:04 PM ----------

Well, after comparing the files - it definitely was changed, probably to make the process better/streamlined.

The old code when building:
Code:
# Start the Build
case "$ADDITIONAL" in
	kernel)
		echo -e "${txtgrn}Building Kernel...${txtrst}"
		cd kernel/samsung/${board}
		./build.sh "$COMMAND"
		cd ../../..
		echo -e "${txtgrn}Building Android...${txtrst}"
		brunch ${brunch}
		;;
	*)
		echo -e "${txtgrn}Building Android...${txtrst}"
		brunch ${brunch}
		;;
esac

and the new code:
Code:
# Start the Build
case "$ADDITIONAL" in
	kernel)
		echo -e "${txtgrn}Rebuilding bootimage...${txtrst}"

        rm -rf out/target/product/${COMMAND}/obj/KERNEL_OBJ
        rm out/target/product/${COMMAND}/kernel
        rm out/target/product/${COMMAND}/boot.img
        rm -rf out/target/product/${COMMAND}/ramdisk*

        make -j${THREADS} out/target/product/${COMMAND}/boot.img
		;;
	*)
		echo -e "${txtgrn}Building Android...${txtrst}"
		brunch ${brunch}
		;;
esac

It seems to be exiting the case before it gets to
Code:
echo -e "${txtgrn}Building Android...${txtrst}"
		brunch ${brunch}

as it does output the elapsed time (which code is after the case statement), but does not echo "Building Android..." and does not do a brunch. Unfortunately I'm not strong enough with programming to figure out why it is exiting :confused:. I'm sure someone else can see it plain as day.

Interestingly enough, I've also found that during the build of 'new' kernel, for some reason it decides to use the prebuilt kernel instead:
Code:
uild/core/tasks/kernel.mk:26: ***************************************************************
build/core/tasks/kernel.mk:27: * Using prebuilt kernel binary instead of source              *
build/core/tasks/kernel.mk:28: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED                *
build/core/tasks/kernel.mk:29: * Please configure your device to download the kernel         *
build/core/tasks/kernel.mk:30: * source repository to kernel/samsung/i777
build/core/tasks/kernel.mk:31: * See http://wiki.cyanogenmod.com/wiki/Integrated_kernel_building
build/core/tasks/kernel.mk:32: * for more information                                        *
build/core/tasks/kernel.mk:33: *************************************************

Maybe because of the deprecated commands? Either way, apparently using "./build.sh i777 kernel" no longer compiles the kernel OR builds android.

EDIT: After looking at it, I realized...shouldn't Build Android lines be directly after the
"make -j${THREADS} out/target/product/${COMMAND}/boot.img"?
Something similar to:
Code:
# Start the Build
case "$ADDITIONAL" in
	kernel)
		echo -e "${txtgrn}Rebuilding bootimage...${txtrst}"

        rm -rf out/target/product/${COMMAND}/obj/KERNEL_OBJ
        rm out/target/product/${COMMAND}/kernel
        rm out/target/product/${COMMAND}/boot.img
        rm -rf out/target/product/${COMMAND}/ramdisk*

        make -j${THREADS} out/target/product/${COMMAND}/boot.img
        echo -e "${txtgrn}Building Android...${txtrst}"
        brunch ${brunch}
		;;
	*)
		echo -e "${txtgrn}Building Android...${txtrst}"
		brunch ${brunch}
		;;
esac

since the second "Building Android" command is part of the 'else' part of the case statement? This is why I didn't become a programmer haha ::facepalm::
 
Last edited:
Apr 19, 2012
32
135
You can add these lines into device/samsung/i777/BoardConfig.mk and it should build the kernel from source.

Code:
TARGET_KERNEL_SOURCE := kernel/samsung/smdk4210
TARGET_KERNEL_CONFIG := cyanogenmod_i777_defconfig

Remove the old kernel:

Code:
rm out/target/product/i777/kernel

Then this will build it (probably the script will build it now too with the BoardConfig.mk changes)

Code:
make -j4 out/target/product/i777/kernel

EDIT: Looks like this should be integrated in pretty soon: review.cyanogenmod.com/#/c/14869/
 
Last edited:
  • Like
Reactions: brendonlee

brendonlee

Senior Member
Oct 13, 2011
86
17
Charlotte
EDIT: Looks like this should be integrated in pretty soon: review.cyanogenmod.com/#/c/14869/

Thanks man! I was actually just looking at that change by codeworkx wondering if it would fix my issue. haha..thanks again though. Are you new to xda? Aren't you one of the developers that contributes to CM? I feel like i've seen your name on gerrit before
 
Apr 19, 2012
32
135
No problem...yeah hopefully codeworx's change gets merged in soon.

I've been reading XDA for years but haven't ever posted. Yeah I just made my first contribution today on gerrit...hopefully the reviews of it go okay :).

I have an i777 and i've been waiting for ICS and now that its here I'm super excited. I tried encryption out but it doesn't seem to be working so I decided to see if I can fix it...and I did! So that's what the stuff I just submitted on Gerrit today. I think its a really important feature (I have it on my Galaxy Nexus). Hopefully the fix will get merged in and it will make its way into the ROMs soon.

Now that I've got my dev environment up (after painful repo sync) I plan to start contributing a lot more.

Thanks man! I was actually just looking at that change by codeworkx wondering if it would fix my issue. haha..thanks again though. Are you new to xda? Aren't you one of the developers that contributes to CM? I feel like i've seen your name on gerrit before
 
  • Like
Reactions: stone_ship

brendonlee

Senior Member
Oct 13, 2011
86
17
Charlotte
No problem...yeah hopefully codeworx's change gets merged in soon.

I've been reading XDA for years but haven't ever posted. Yeah I just made my first contribution today on gerrit...hopefully the reviews of it go okay :).

I have an i777 and i've been waiting for ICS and now that its here I'm super excited. I tried encryption out but it doesn't seem to be working so I decided to see if I can fix it...and I did! So that's what the stuff I just submitted on Gerrit today. I think its a really important feature (I have it on my Galaxy Nexus). Hopefully the fix will get merged in and it will make its way into the ROMs soon.

Now that I've got my dev environment up (after painful repo sync) I plan to start contributing a lot more.

Sweet! Good luck on the approval...encryption is something i've also been waiting for quietly...really important for some of the work-related stuff i keep on my phone sometimes :)

I hear ya on the repo sync too. took me several tries the last time i did a full sync. Great to have you on xda though, i'm sure you'll be over there helping atinm and entropy in the dev thread!
 

harleydad82

Senior Member
Dec 31, 2010
184
5
OK any ideas or help would be great, after extensive testing of different nightlies, I have concluded that the music/volume bug is fixed when listening to music thru the phone speakers. Once you plug anything into the headphone jack is when it doesn't work anymore. When playing music, and text a notification, it does the audible tone and then never returns to it's original volume. You have to hit the volume down rocker. I"m really dependant on using the headphone jack for listening to music. Any ideas, tips, bugs, apps? Thanks!!!
 

CNLiberal

Senior Member
Dec 8, 2008
421
50
Centennial, CO
I guess the reason I said it was "fixed" was because after the dock audio patch was submitted I started using my car dock audio cable to listen to music. So it sounds like the headphone but is still persistent.

Sent from my SGH-I777 using XDA
 

CyberpunkDad

Senior Member
Nov 29, 2011
175
31
Oswego, IL
Quick question. After each build I have to reads some entries to my build.prop once after flash. Anything wrong with the script? I so tire of copy/past LOL..

!/bin/sh
mount -o remount,rw /system
cd /mnt/sdcard
cat build-ref.sh >> /system/build.prop
mount -o remount,ro /system

Thanks for the feedback.

Sent from SGH-I777 / CM9 via XDA Premium
 

HellBunny

Senior Member
Nov 7, 2008
78
12
Am I supposed to see the NFC check box after flashing 4/17? I don't see anything NFC related...

Sent from my SGH-I777 using XDA
 

harleydad82

Senior Member
Dec 31, 2010
184
5
I guess the reason I said it was "fixed" was because after the dock audio patch was submitted I started using my car dock audio cable to listen to music. So it sounds like the headphone but is still persistent.

Sent from my SGH-I777 using XDA

Can I use the same cable to listen to music, I mean does it have an 3.5mm connector? I'm just confused as to why it works except when using the head phone Jack?

Sent from my SGH-I777 using XDA
 

Top Liked Posts

  • There are no posts matching your filters.
  • 78
    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.

    http://teamhacksung.org/wiki/index.php/CyanogenMod9:GT-I9100:Nightly:Known_issues (All the same issues as GT-I9100 as almost all the code is the same - so pointing to the GT-I9100)

    THE CM-TEAM DOESN'T ACCEPT BUG REPORTS OR FEATURE REQUESTS ON NIGHTLY BUILDS!
    A MISSING FEATURE IS NOT A BUG!!!


    FAQs: Same as the GT-I9100 -- essentially the same code.
    FAQs: http://teamhacksung.org/wiki/index.php/Experimental:GT-I9100:Frequently_Asked_Questions
    SPECIAL XDA NOOB FAQs: http://teamhacksung.org/wiki/index.php/Experimental:GT-I9100:XDA_Asked_Questions


    First time installing CyanogenMod 9 to your AT&T Galaxy S II (SGH-I777), or coming from another ROM:
    - READ FAQs: http://teamhacksung.org/wiki/index.php/Experimental:GT-I9100:Frequently_Asked_Questions
    - Make sure you're running SGH-I777 bootloaders only (only the ones that are specifically released for the SGH-I777 -- official Gingerbread bootloaders work fine!) and a proper working CWM like the one from CM7
    - Copy GApps and CM9 ZIPs to your internal SDCard
    - Boot into Recovery
    - Flash CM9 zip
    - Flash GApps zip
    - DO A DATA WIPE / FACTORY RESET (otherwise your calendar sync will not work)
    - Reboot
    - Don't restore Apps using Titanium Backup!

    Upgrading from earlier version of CyanogenMod 9:
    - Copy CM9 ZIP to your internal SDCard
    - Boot into Recovery
    - Flash CM9 zip
    - Wipe cache partition and dalvik-cache
    - Reboot

    STOP!!!
    Did you read THIS POST fully, the FAQs and KNOWN ISSUES?


    No
    DO IT or leave this thread immediately.
    If you download anyway and start asking already answered or dumb questions, you'll get flamed.
    This is fully YOUR OWN FAULT then!

    Yes
    Here's the download link for you.

    Nightly builds can be found at ROM-Manager or at:
    http://download.cyanogenmod.com/?device=i777

    Google Apps:
    Get the latest Version from: http://goo-inside.me/gapps

    CWM flashable Modems:
    UCLC2
    UCKK6
    UCKJ4
    UCKH7

    Changelogs:
    http://cm-nightlies.appspot.com/?device=i777
    http://cm-nightlies.appspot.com/?device=galaxys2 -- mostly shared by the i777

    Webchat: http://webchat.freenode.net/?randomnick=1&channels=teamhacksung-support&uio=d4

    Server: chat.freenode.net
    Channel: #teamhacksung-support

    Don't expect any support if you:
    - are not running stock cm-kernel
    - have installed any mods
    - have modified system files


    Thread for Developers only(!!!):
    http://xdaforums.com/showthread.php?t=1568852

    AdamG-, atinm, codeworkx, coolya, Entropy512, guiper, nebkat, Unhelpful, xplodwild, teamhacksung, the cyanogenmod-team.

    9XWih.png
    NLXAX.png
    LBnUm.png
    nQpJD.png
    19
    What I don't quite get is why there are nightly builds of this ROM but no fix yet to the audio bug.

    Overall it is a pretty sweet ROM, and compared to the leaked ATT ICS ROM it kicks ass. The att rom is a bugging bloat ridden piece of crap.

    The audio bug impacts the ROM as a daily driver, so much works right about the ROM but this bug in particular makes it a pain to use. Being able to receive a text while listening to streaming music and receiving a notification and have the music return to the previous sound level just does not seem like too much to ask.
    Because this "bug" hasn't impacted any developers and we've got a ton of other things to fix.

    ICS KERNEL SOURCE HAS ONLY BEEN OUT THREE WEEKS.

    IT HAD FUNDAMENTAL STABILITY BUGS WE DIDN'T FIND FIXES FOR UNTIL DAYS AGO.

    THIS WEEKEND IS EASTER AND SOME OF US HAD HOLIDAY PREP TO DO LAST WEEK. WE HAVE OUR OWN LIVES YOU KNOW!

    WE DON'T EXIST TO SERVE YOU.

    Submit a fix to gerrit or stop *****ing and wait!
    15
    codeworkx's tree is untested - it keeps derping. Looks like I'll have to temporarily rip out NFC.

    It's 1:35 AM, I'm about to go to bed regardless of whether it builds or not.
    14
    TriangleAway can be used on ICS to reset the flash counter.

    Video recording upgrades are not merged in yet - it's in progress. No ETAs, but it's close. Don't ask when, of course - there are many reasons why a patch that works on our device will get rejected until rewritten in a way that doesn't break other devices.

    A major dock audio cleanup by StevenHarperUK is in progress. It's working on my device now, so it's a matter of getting through code review.

    I submitted a new kernel to gerrit that fixes stability issues when changing cpufreq min/max limits (e.g. fixes SetCPU profiles).

    I'm going to hop over to TW-land for a while to do some stuff, then I think I might play with NFC.

    Sent from my GT-P7510 using Tapatalk
    13
    Great. So 4/20 ****S **** UP AGAIN!

    More mount point changes? Now all my gameloft apps that I JUST fixed last night are redownloading app data again. Same with my dropbox, as well as my spotify AGAIN.

    Why are they doing this!!!??? THIS IS 2 TIMES I'M gonna have to RESTORE to get my **** right again. I mean, I get the first swap of mount points. It was needed to match other devices, but it's royally screwed my device. AGAIN!

    Maybe some warning in PLAIN ENGLISH is in order. I'm about to give up on CM9.

    get lost. your post is ridiculous. is this your rom? did you take any part in the development of this rom? NO and NO!!! how do you have any right to ***** or complain about something that you have NOTHING to do with? YOU DON'T! if you don't like it, FIX IT YOURSELF and submit it to gerritt and see if your changes get merged. either do something about it yourself or switch to a different rom. its that easy. no one forced you to use this rom. your post doesn't get you any closer to your solution so i'm not quite sure why you even posted this bull**** other then to complain about something that you have no right or control over. think about it.