yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 General] kasper_h:
I've been doing some more kernel research and found out that it's not so easy: the boot.img file is somewhat different in CM7. The result is that the kernel-file extracted from the boot.img is not the same as the kernel-file used to make the boot.img :) So somewhere something goes wrong.

I decided that I've spend enough time on understanding this boot.img. If I build the teamhacksung kernel from sources, it will be automatically included in the CM-build, so no reason to make it any more difficult than that :)

I saw as well that the Camera-patch for saving to external SD was abandoned and recreated. I didn't test the commit yet, will do so later.

Just an overview of how I cherry-pick commits:

>cd ~/android system

>repo sync (to be up-to-date)

>cd ~/android/system/cherrypicklocation

>git branch --track localtesting github/gingerbread (by tracking remote, you stay in the localtesting branch the next time you do repo sync,and keep it up-to-date)

>git checkout localtesting

>git fetch http://review.cyanogenmod.com/p/CyanogenMod/android_* && git cherry-pick FETCH_HEAD

>cd ~/android/system

>. build/envsetup.sh && brunch galaxysmtd

If I can do it better, I would be happy to learn. If this is a good way, it may be useful for others trying to learn in this thread :)
[Galaxy S I9000 General] kasper_h:
Just tested this commit (which allows the user to select the location where the camera saves its output). Works very well: I set the camera to save it's output to the external sd.

Sent from my CM7 galaxy
[Galaxy S I9000 General] Grondinm:
so this is not about CM7 but about CM9 alpah(ICS port) but i think it's almost a general CM(ASOP) thing hopping for some insight.

i wanted to compile pawitp's kernel for myself in an effort to gain back my home and search buttons but i am now at a loss...i have the kernel compiled(zimage) but i am unsure how to get it to my phone. i have build Glitch's kernel before and got used/spoiled by his build process which left me with a flashable zip...

guess my question is where do i go from here...not really looking for a step by step here maybe just a guide or something...i searched but i don't want to use something that is dated and might not work.

thanx

edit:Got my answer...flash zimage using heimdall
[Galaxy S I9000 General] jose.celestino:
Yes, I guess you're right, this not about CM7 anymore, more like about CM. Maybe the dude can change the thread title (without insulting half of us along the away).
[Galaxy S I9000 General] kasper_h:
I actually don't agree (yet). There is no cm9 kang to be build yet for our phone, so this Kang topic is still very much a cm7 topic...

I just found an interesting website for those who would like to work on the code themselves: http://developer.android.com/guide/index.html

Sent from my CM7 galaxy
[Galaxy S I9000 General] rienkar:
It seems that CM7 nightlies has been officially suspended while waiting for the CM9 opening:

http://xdaforums.com/showthread.php?p=20358582

So yes, I think the thread will need to change name, sooner or later...
[Galaxy S I9000 General] jose.celestino:
Yes, not CM9, not CM7 either, just CM.
[Galaxy S I9000 General] nrg:
Does somebody have an up-to-date build with working "Device settings"?

Looks like the tvout implementation is not yet final.

I get: http://pastie.org/3028546
[Galaxy S I9000 General] kot7k:
/AndroidRuntime( 1861): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load tvout_jni: findLibrary returned null

Seems there isnt a file called tvout_jni.so or at least it cant find it
[Galaxy S I9000 General] nrg:
Correct, I pushed it and now it seems to work fine, except i cannot test tvout because of missing cable :|. I attached the missing lib in the kangaroo topic.
[Galaxy S I9000 General] kasper_h:
Just a quick question on the cherry-picking. If a patch set is updated, is there an easy way to update my local repo? If I cherry-pick the new patchset, it gives conflicts. Reverting the old patch set and then cherry-picking the new one works...but I feel there should be a simpler way to do this?!
[Galaxy S I9000 General] scorpeeon:
I see there's a current build but in the OLD folder there's tvout-wifi and tvout. So does the newest build also has working TV out or should i use the ones in the OLD folder for that? Also what's the difference between tvout-wifi and tvout? I suppose they both should have working WiFi..
[Galaxy S I9000 General] drmidnight:
Would git clone work better than repo sync? or is it basically the same thing?

I have built one kang after 12 tries to sync with the repo. It seems to just lockup or timeout the github connection. I am going for try 13 of setting up a fresh Ubuntu vm to get a working setup so I can actually enjoy building a kang like I want to.

Any help or advice to my repo issues would be fantastic.
[Galaxy S I9000 General] beekay201:
Never did find an alternative way to do this.

they're different commands, i think. Git clone would overwrite, not merge.

/me sent this on a i9250 using tapatalk
[Galaxy S I9000 General] joyinbuilding:
Git cloning the complete cyanogen code is not possible, you need to work with repo sync. No way around it. However, a plain repo sync (with no options) seems to be working almost everytime for me, whereas with options, it is more prone to errors.

Something else. I'm running ubuntu 11.04. I get a regular question whether I want to upgrade to ubuntu 11.10. But if I look at the CM-building wiki, it seems that ubuntu 11.04 is the latest supported OS version. Is someone building CM7 on ubuntu 11.10?
[Galaxy S I9000 General] drmidnight:
I currently have nothing to merge, its a fresh install. I just can't get the repo to actually finish a sync to my working folder.

The second time it worked when I used plain repo sync without any arguments but i ran out of disc space on my vm, thought 25gb would be enough.

I have built it once on 11.10 without issues, just my repo sync problems which seem pretty common.

Is there any mirrors of the repo?

Setting up an 11.04 environment now and going to give that a try. Just wish Ubuntu's wireless performance was actually up to par so I wouldn't have to vm it.
[Galaxy S I9000 General] kasper_h:
I'm running Ubuntu 11.04 on VMware. I created a 40GB HD, of which 26-27 are used...
[Galaxy S I9000 General] drmidnight:
Thanks for the info. I did 40 the first time my repo sync worked. Giving 11.04 a try now.
[Galaxy S I9000 General] jose.celestino:
Yes. With near zero problems.
[Galaxy S I9000 General] Zatta:
Me too, not on a vm but dualboot.

Taptalked u see
[Galaxy S I9000 General] jose.celestino:
Singleboot here, over 15 years free of windows :)
[Galaxy S I9000 General] beekay201:
we can use git to replace 'repo sync', although we need to init the repo in some folder, git clone manually one project at a time, while making sure none is missing when we're done, by checking androidmanifest in the build/ project.

I'm not sure if, from the top of the build tree, git pull origin would resync (the same way repo sync does) recursively all the projects, i think it can work.

Arch linux here, windows free/single boot in 3 machines for over 10 years. ;)

/me sent this on a i9250 using tapatalk
[Galaxy S I9000 General] drmidnight:
Well after a 6 hour repo sync and a few cherry picks I am off and building my second kang.

I'm curious about adding new themes and setting as default. I remember reading about it somewhere but I can't seem to find the correct file to edit. I can't for the life of me find the write up I saw about changing the default theme.

EDIT: Figured out how to add themes just trying to track down changing the default. Maybe in the build.prop?
[Galaxy S I9000 General] Skud51:
Hi All,

Posted this in the CM& thread, but was referred here.

I'm trying to cherry-pick the following commit (http://review.cyanogenmod.com/#change,10699) and when I do I'm having issues building CM7. I can build CM7 normally after doing a repo sync, but not after cherry picking that commit. It's strange since it seems to work for other people who say the commit works. I have to say that I've yet to try other commits.

What I do is:

1) Navigate to ~/android/system/packages/apps/Bluetooth

2) Issue the cherry-pick command "git fetch http://review.cyanogenmod.com/p/Cyan...apps_Bluetooth refs/changes/99/10699/2 && git cherry-pick FETCH_HEAD"

3) It pulls in the changes.

4) Issue ". build/envsetup.sh && brunch galaxysmtd" from ~/android/system

Then it builds for a while until I get a compile error:

packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasObexServer.java:1038: cannot find symbol

symbol : method noEndofBody()

location: interface javax.obex.Operation

op.noEndofBody();

^

Which is in one of the updated files from the cherry-pick..

Sorry, it's been 10 years since I've programmed Java and I'm out of the loop..

Thanks!!

Riley
[Galaxy S I9000 General] kasper_h:
Maybe something is wrong with the patch? Maybe it needs a rebase?

Sent from my CM7 galaxy
[Galaxy S I9000 General] GJSmith3rd:
I've been looking for a topic like this one (KANG). I'm going to read from the top then join in. I'm downloading my build environment at moment but I don't really know what to do next.

The only box I have for a sandbox is a AMD Turion X2 64 bit, 2G ram,1.6G dual core, 120G laptop running Ubuntu 11.10 64 bit with a slight over heating or fan problem. I hope it will build if I use power saving mode or keep it cool next to a cold winter window.

~~ Sent from my Velocity Micro Cruz PT701/T105 via Tapatalk ~~
[Galaxy S I9000 General] kasper_h:
Good to see a new KANG-er, welcome :)

What is it you would like to know? Setting up the build environment and the basics of making a build, branching, cherry-picking, etc. can already be found in the thread :)

I just upgraded to ubuntu 11.10 myself and building worked just as well as on ubuntu 11.04.

I do have a question myself about cleaning the build environment. Last week I did a "make clean" from ~/android/system. This ended with an error. When I checked, I saw that my frameworks/base folder was almost emptied?! So I guess something went wrong. But I don't know what :S "make clobber" works well - the whole out-folder is emptied.
[Galaxy S I9000 General] Zatta:
Coincidence I think? Make clean has worked fine for me, the few times I have used it (no errors noticed).

Taptalked u see
[Galaxy S I9000 General] kasper_h:
Just tried again after my latest building session. Now it worked. Don't know what went wrong, but I guess I made a mistake myself somewhere :)
[Galaxy S I9000 General] beekay201:
Guys, you can also try make installclean. Make clobber shoul be used when new binaries have been added to the tree.

/me sent this on a i9250 using tapatalk
[Galaxy S I9000 General] GJSmith3rd:
OK I'm going to read the complete topic and become an active participant. I want to learn to build a KANG for a Huawei Ideos U8150-A for CM9 and participate in current development efforts. I noticed that the topic title is for CM7. Are there plans to include CM9 in this topic?

I've installed Android SDK and NDK and prepared my GIT environment and GITHUB account.

-- VM Cruz T105/PT701 XDA Premium --
[Galaxy S I9000 General] jose.celestino:
I don't think CM9 trees are open already, but you can practice with CM7.
[Galaxy S I9000 General] GJSmith3rd:
Ok that maybe that explains why the CM9 alpha ROM, developed by Tilal6991, I installed yesterday did not have CM9 settings yet.

-- VM Cruz T105/PT701 XDA Premium --
[Galaxy S I9000 General] beekay201:
cmparts hasn't gone in yet.
[Galaxy S I9000 General] dracumere:
hello everybody

am kinda new to the whole do it your self cm7 process (already shows ha?) and right now i managed to get the "sync repo -j16" part and it's syncing away ...now while waiting on that i was going to try and give configuring udev a try ....lord behold no 11-android.rules to edit :)

i did download the android sdk and run the ./android command and selected and installed the packs listed in cyanogen wiki/Howto:_Install_the_Android_SDK

ok so i googled it a bit and found nothing ....now after a bit of arguing with myself on the matter i came to the conclusion i should seek your help on and guidance even if it might come with the all possible "you blind someone already asked that" greeting :)

so any thoughts on why is missing in /lib/udev/rules.d

edit: ok so i found something on youtube and i see i have to make it but run into something :

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0ff9", MODE="0666", OWNER="<dracumere>" #Normal SamsungGalaxySMTD

SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e22", MODE="0666", OWNER="<dracumere>" #Debug & Recovery SamsungGalaxySMTD

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0fff", MODE="0666", OWNER="<dracumere>" #Fastboot SamsungGalaxySMTD

i can go into debug recovery and normal usb mode but have no idea what fast boot is on the galaxy s..... download mode i would guess?

ty for any help
[Galaxy S I9000 General] GJSmith3rd:
I'm 4 hours and waiting on my first CM7 build. I don't know how to change anything yet but I hope it compiles and boots.

~~ VM Micro Cruz PT701/T105 Tapatalk ~~
[Galaxy S I9000 General] germanmann:
Has anyone gotten gmail App for this rom?
[Galaxy S I9000 General] GJSmith3rd:
My first CM7 build for Huawei Ideos U8150 just completed - wonder if it will boot? It's really not mines but what I got from following the instructions of Aorth and his blog. Can't wait to start tinkering. Took my AMD Turion dual core x64 1.6 ghz, 2G RAM, 120G HD - 4 1/2 hours - on Ubuntu 11.10 64.

Zipping package...
Signing package...
Cleaning up...

Package complete: .../Android-Dev/android/system/out/target/product/u8150/update-cm-7.2.0-RC0-U8150-KANG-signed.zip
11d99c4b8cae0d1b7863e67c277252e6 update-cm-7.2.0-RC0-U8150-KANG-signed.zip
[Galaxy S I9000 General] dracumere:
I am not as lucky :(.

My first attempt of compiling from source seams to fail.

when i: cd ~/android/system/device/samsung/galaxysmtd/

./extract-files.sh

the script starts copying the proprietary files from my sgs all to the point of /system/lib/libtvout_jni.so where it says "remote object '/system/lib/libtvout_jni.so' does not exist" and copies some more. Now if i start to build with ". build/envsetup.sh && brunch galaxysmtd" it starts and has no problem till it says "target thumb C: vim <= external/vim/src/version.c

make: *** No rule to make target `vendor/samsung/aries-common/proprietary/libtvout_jni.so', needed by `out/target/product/galaxysmtd/system/lib/libtvout_jni.so'. Stop.

make: *** Waiting for unfinished jobs....

target thumb C: vim <= external/vim/src/window.c

syokang@syokang:~/android/system$ cd ~/android/system/out/target/product/galaxysmtd/"

and stops no output file no nothing

Can anyone help pls

PS: i adb shell'ed and tried to look for the libtvout_jni.so in the phones /system/lib and couldn't find it. I flashed update-cm-7.1.0-GalaxyS-signed instead of nightly 181 and got the same result :(
[Galaxy S I9000 General] beekay201:
i got a prebuilt pkg for the udev rules from my linux distro, which i don't quite understand if you did already or not, and ran as root (or through sudo, if your user has access to wheel group) 'udevadm control --reload-rules' - started adb-server on the pc, activated usb debugging on the sgs, connected it to usb, 'adb devices' recognizes the device, all good.

regarding fastboot, galaxy s doesn't have it. no need to have that part of the rule there (no harm done it staying there as well, as it could have something to do with download mode like you suggest, but i never saw anything stating or even remotely suggesting sgs has fastboot)

// i've been pretty hooked up to fastboot myself, my nexus has that ability - gotta love the ability to test a kernel on the device, actually running it, without really flashing it :D

//

hmm..just get gapps and install from market.. have you checked CM wiki and other available sources of information? i also see you posted the same question elsewhere. help yourself, brother.

go for it :D also, read this, might be useful to speed up those build times

a few pages back, next time use search

from kangaroo thread (read a bit more):

that's what i was going to say to you, flash a stock rom, and then use ./extract-files.sh. not sure it would work though (extract-files.sh instructions are "for use after a cyanogenmod build is running on the device"), so you'll probably need to get a kang from nrg build system here, get that lib, and copy it to /android/build/top/device/samsung/aries-common/proprietary (i think it's inside proprietary, or proprietary-files, something, can't remember now).

edit: correct paths (had to look at extract-files.sh myself)
[Galaxy S I9000 General] dracumere:
ty m8s but found the missing libtvout_jni.so on koush's git and i manually copied it to aries-common and it all worked fine.

Now it actually build my update-cm-7.2.0-RC0-GalaxyS-KANG-signed.zip and it took only 30 min or so but the resulted zip dosent work with CWM it says it is (bad) and aborts installing :( so i still have a lot more to figure out.

Any help would be much apreciated

Edit: scratch that it was actually a bad copy ..... copied it again to the sd card and it worked like a dream :) .....will be back with the details in a few min
[Galaxy S I9000 General] beekay201:
but at the end of the build you saw something like this (but for galaxysmtd product, ofc)

have you turned on CWM signed packages verification? CWM says it's "bad"?

---------- Post added at 04:42 AM ---------- Previous post was at 04:37 AM ----------

hmmm okay - remember to check md5sum of files you copy over to the device (before, on the pc, and after, on the device through adb or some app), it might save your phone from bad flashing. well, in addition to cwm security features, of course.
[Galaxy S I9000 General] dracumere:
ty m8 ... btw am looking over the changes made since nightly 181 and the first thing that pops up is the t9 feature in the phone app doesn't work ...at least i can't get it to work :( and the galaxy s settings apk crashes... but all else seams to work fine..... am still testing though
[Galaxy S I9000 General] beekay201:
did you follow normal nightly flashing procedure? sometimes wiping data/factory reset is needed to reflect changes.

what do you see when you 'adb logcat' and try to use both features?

maybe yet another commit is needed, not yet merged?

have you read the whole thread (kangaroo thread also has more info on the subject) and cm wiki (not just the building part)? your goal will be cherry-picking.

/me sent this from a i9250 using Tapatalk
[Galaxy S I9000 General] dracumere:
ok first things first....after a restart t9 feature works fine yey :)

Now i feel very flattered that you would think i know what a commit is but do feel free to treat me as a complete noob since i have no idea what that is. Having said that i will try to read up all i can until my next post so that i will not waste peoples time ( if i did that i do apologize ...no joke).

So i feel as i should have started posting by introducing myself. I am a novice linux user at best and my knowledge of flashing (while not inexistent) is limited. I did successfully flash cm7 and numerous nightlies after that and other aosp and samsung based roms but i do have much to learn.

After the nightlies stopped at 181, i started to look into kang builds and decide to do my own so i could learn. I installed ubuntu 11.04 32bit on a corsair f90 ssd (dedicated for this purpose) mounted on a intel q9450 CPU with 4gb of ram and i started the long road to remebering what a linux os feels like since i haven't used one in 5 years. Set up TRIM support installed the nvida videoboard driver and started to read up on how to build cyanogen form source.

After much googleing and watching youtube videos on the matter i managed to build my first kang and here we are :)

Now i will have to read a little more and try the adb logcat feature and see what my kang build is doing wrong ( or rather i am doing wrong) and as soon as i understand all this better i will post again and look answers to much more elevated questions on my part :).

Ty again for your patience and help.

Now some much needed sleep is in order since it is 8:01 AM here and i woke up yesterday around this time.

PS: only thing not working now as far as i can tell is Device settings (galaxy s settings) and it has something to do with aries parts as the FC message tells me
[Galaxy S I9000 General] kasper_h:
I did not have to set any udev rules, worked out of the box on ubuntu 11.04 & 11.10. Installed SDK and ADB worked.

Attached the libtvout_jni.so I extracted from a stock ROM. Extract to ~/android/system.vendor/samsung/aries-common/proprietary/libtvout_jni.so

Device settings works on my KANG, shows the tv-out option (although I can't test it, because I don't have the necessary cable).

I switched last week from a VMWare Ubuntu 11.04 to a dualboot Ubuntu 11.10 (i3 330 CPU with 3GB RAM). Building time after "make clobber" decreased from 4 hours to 50 minutes...so that makes a huge difference. I also like working in Ubuntu, so that has become my default OS. Only reason to have a dualboot win7/ubuntu is that I need some CPU-intensive apps on win7 for work which are way too slow on my xp-virtual machine within Ubuntu.

I made my own script to automatically clean the building environment, repo sync, and then compile/build CM7:

#!/bin/bash
#

#****************************************************************
## Set your device here:
device=galaxysmtd

#****************************************************************
## Setup directories:
out=~/android/system/out/target/product/$device

#****************************************************************
## Clean environment:
make installclean
rm $out/system/build.prop
rm $out/obj/PACKAGING/target_files_intermediates/cyanogen_galaxysmtd-target_files-eng.kasper.zip
rm $out/obj/PACKAGING/target_files_intermediates/cyanogen_galaxysmtd-target_files-eng.kasper/SYSTEM/build.prop

#****************************************************************
## Check for updates and make the build:
repo sync
. build/envsetup.sh && brunch $device
[Eee Pad Transformer Q&A, Help & Troubleshooting] jimmybob_007:
Hi,

Was just wondering what people thought about the Prime's RAM. I know nothing has been officially stated but there are strong rumours that it will have 1GB!

I hope it comes with at least 2GB as it will inevitably become possible to port windows 8 onto it. As we all know, 1GB doesn't cut it these days for an OS.

It also just seems right. Devices have had 1GB for 2 years now! If they don't put it in these devices, software will never use it.

Thoughts? :-)
[Eee Pad Transformer Q&A, Help & Troubleshooting] a.mcdear:
what do you mean 1GB RAM doesn't cut it for an OS?? Android is an OS, and its perfectly happy with 1GB of RAM...
[Eee Pad Transformer Q&A, Help & Troubleshooting] las5muertas:
1 gb is more than enough for the asus eee pc transformer :P
[Eee Pad Transformer Q&A, Help & Troubleshooting] jimmybob_007:
I just don't think it pushes boundaries.

My GS2 has 1GB and that's a phone. I regularly use up to 800mb on that and that it without HD streaming (something I intend to do on my tablet).

On such a premium device it feels like a compromise. Another 1GB would cost nothing in today's world.
[Eee Pad Transformer Q&A, Help & Troubleshooting] davebugyi:
Port windows 8? I thought it will have an ARM version, but 2GB is better than 1.

Sent from my customized HTC Desire using TTP
[Eee Pad Transformer Q&A, Help & Troubleshooting] jimmybob_007:
Windows 8 will run on the Tegra 3. This has been confirmed along time back