yashsingh1/xdaforums huggingface dataset:
[Defy General] Kayant:
I see you have include many tweaks in your kernel it's great to see a kernel dev on the defy :) I was wondering do the other governors work with powerhal because I remember quarx saying interactive is needed for powerhal or something like that to working properly.

I would like to test your kernel if that's ok with you just wanted to know if it's usable or if your still working on it.

Ok the reason why everyone is having problems building is to do with the linaro patches and build optimizations. Building using the toolchain for the kernel is fine but for compiling the it seems to bring issues so the only way to build is the revert these commits after you have synced up.

I will write up something in a bit on how to do so.
[Defy General] Blechd0se:
Well I'm getting only some app-errors (something with stylus-option, i dont remember exactly). I just commented those out, they are useless for our defy anyway. I run the linaro-script and its working just fine.

I did modfied the kernel quite heavily, but i guess it's not related to those errors...

@Kayant

of course you can test it. I am working on it and added some governers (mainly just for fun) and those are working, however there is currently a bug; after you booted up with my kernel got into settings>performance>processor and change the governer once to "Lulzactive" after this you can change it to another one. If you missed that, your phone will reboot as soon as the display turns off. I can also provide a update.zip with the kernel and the changes the kernel already include.
[Defy General] Kayant:
Oh sounds fun am going to use it as my personal kernel because I know if I include it in my kangs people will start crying and all that ever if I put a warning in the OP :(

Thanks for your work ^_^

Hmmm how far back did you last compile CM10?
[Defy General] Blechd0se:
Yep don't know at the moment to solve that problem, but it's ok for me :)

I did my last build an the 18. but i will repo sync and try it again.
[Defy General] peter_harr:
Great, looking forward to it :)
[Defy General] Kayant:
Ok plz tell me how that goes as quarx reverted the use of the linaro toolchain 2 days ago and I want to see if you get the same errors everyone seems to be getting.
[Defy General] Blechd0se:
I tried it again and its working just the way it should. I build the kernel with the lenaro-toolchain, but the hole rom with the default one that quarx set. So i guess you're right; compiling the kernel works, but not the other components.
[Defy General] Kayant:
OK people try this

1. repo sync for the latest changes

2. cd into the build folder in your working directory.

3. cd into the build folder

4. $ git log

5. now look for the commit that says compiler options copy the some of the numbers after the commit. For example commit 916d756c3086e58b9d3d2cb183572229ba32d80d. I would copy 916d756.

6. git revert <number>. So for me I would git revert 916d756.

7. Don't apply the linaro script and try building again

If you get any errors report back as there is one more place we need to revert changes.
[Defy General] yodawg:
Ok so just to be clear. You think that quarx won't rename his mr1-staging branch but keeps on using it for the new CM? I'm asking because I'm planning on building Quarx' Cyanogen for 4.2 but I don't want to re-download everything just because he renamed the whole thing ;)
[Defy General] peter_harr:
Thanks, this worked. I have compiled and flashed successfully.
[Defy General] Kayant:
Well I don't know am just speculating but if you do want to build then repo init again but with mr1-staging instead of jellybean and build.

It will probably take some time to sync since it's a new update to 4.2.

Great to see it work :) Will add it to the OP until quarx removes it.
[Defy General] MarcinRN:
confirmed, worked like a charm but after next repo sync i needed to do it again. is there a way to permanently ignore that commit?

bunch of another issues:

- first boot right after flashing self-compiled build crashes. then it boots normally (does it happen to you?)

- repo sync command wont sync work tree, it just gets stuck after fetching projects 100%. to sync work tree i need to restart terminal and run "repo sync -l". any way to fix it?

thanks Kayant for your support and efforts.
[Defy General] Kayant:
You can use git commit -a once you have reverted it.

About your other issues never had sure problems before.
[Defy General] j16sdiz:
mr1-staging is the name cyanogenmod use. Check their g+ page for the plan

-- this is tapatalk sig
[Defy General] claudiobastos:
Pick the changes in one commit only

Kayant,

taking advantage of your tip I have one question:

If I would like to get one commit after the one I revert, there is a way to get it ?

Like pick only it.

Supposing I had reverted to 5 commits early, and then, knowed that someone "fix something" in three commit later.

There is a way to get the changes, without have to do by hand ?
[Defy General] Kayant:
The command you need is git cherry-pick . So for example git cherry-pick 459305A. One thing to note is that you may need to resolve some conflicts....

Let's Go ^_^
[Defy General] Maxxxxxxxxxx:
Hey Kayant did you find a fix for compile error posted few pages back for PACMAN rom

and which version of Paranoidpref.apk is working a tried few but it didn't work :S
[Defy General] vedhasd:
i get this:

curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.

after i do $ repo sync
[Defy General] frullewulle:
which repo are you syncing? what url have you entered for the init?
[Defy General] Kayant:
If its downloading then don't worry about it.... Everyone gets this error as well ;)

Also fix is not needed anymore quarx has officially reverted the commit in his repo

Let's Go ^_^
[Defy General] vedhasd:
yeah it s downloading, i am new too this and m doing a lot of research by reading your post, now one more doubt i try to port euroskank jellybro for myself from maguro by fitsnugly, not getting what all to replace? :confused:

btw your guide helped me a lot, big thanks KAYANT

(* | *)
[Defy General] Kayant:
You don't need to port anything. The Euroshank team cherry-pick patches that have not yet been merged due to being reviewed into the the main working branch. Basically Gerrit is a review centre where new patches are reviewed before being merged in euroshank team cherry-pick some of those patches that they want. So really you can do that yourself.

All you need to do is go the CM's gerrit website look for the patch you want and cherry-pick it there will be an option for it on the patch review page. To apply the patch you need to first cd into the directory that the patch relates to. For instance the patch is for frameworks/base so you cd into frameworks/base then copy the cherry-pick command from the patch review page. The you compile your new build. One thing to note is that anytime you repo sync the cherry-picks disappear.
[Defy General] MarcinRN:
which package is responsible for the repo command? or is it just 5th step in your guide? i tried repeating it but still work tree won't just sync.

besides, are you able to compile CM10.1?
[Defy General] labsin:
Repo is the script you download to ~/bin (with ~ your he folder)

Try following the guide again from the beginning, word per word and pease tell if you get some errors.
[Defy General] Kayant:
To build CM10.1

Repo init again but change the branch name to mr1-staging instead of jellybean.

Let's Go ^_^
[Defy General] MarcinRN:
I meant if you're able to build. There we go again:

cc1: some warnings being treated as errors

make: *** [/home/marcin/android/cm10.1/out/target/product/mb526/obj/STATIC_LIBRARIES/libtiOsLib_intermediates/ParsEvent.o] Error 1
[Defy General] Kayant:
Oh I see my bad ;) haven't tried dont have to space on my HDD :(

Try to delete the director is referencing to and compile again

Let's Go ^_^
[Defy General] labsin:
You can also try 'make clean' if you synced it in the same directory as cm10
[Defy General] pabloltg:
newbie question: what I should do to pick these commits https://github.com/SlimRoms/frameworks_base/commit/a3eeadef33db789ed203ccea41361586322e90cb

and add them to my CM10 tree?
[Defy General] Kayant:
Git cherry-pick <sha1>…… For example got cherry-pick c46578. You are probably also going to have to solve conflicts due to different soucres.... Use git status to see what needs to change and also use the original patch as a guideline.

Let's Go ^_^
[Defy General] TerenceWSK:
Thanks for your help, Kayant. I'm here to learn
[Defy General] Harry GT-S5830:
Well I'd like to try some source building just to say "well I'm using something I built from source" however I'm not exactly operating a nuclear powerhouse. Would this be able to build in around 6 hours? (thats when I'm at school and PC isn't needed)

2.2GHz Pentium E2200 (1M Cache)

4GB DDR2 667 Memory (dual channel)

pretty sure gpu and hdd aren't going to be important ;)

Hackintosh / Windows 8 and Ubuntu 10.04 LTS (tri)booted
[Defy General] Kayant:
You have more ram than me so that's a plus :)..... Is your processer a dual-core???

For me in my dual-core 2 duo T5750 and 2 GB of ram it takes about 5 hrs for a full build from start.....

Am using arch Linux with the latest kernel which helps out a bit as well

Let's Go ^_^
[Defy General] yodawg:
Should be a dual-core. Even if it isn't completed in 6 hrs, you can interrupt the build process via ctrl-c. next time it should continue from where you left it.
[Defy General] Harry GT-S5830:
Yep, is a dual core. Ill give it a go when my internet is worth using. Has anyone attempted to build AOSP Gingerbread?
[Defy General] Cristi_10:
you could try porting aosp gb if you like to :D
[Defy General] vedhasd:
one more noob question, how do i resume sync repo of incompletly synced project?
[Defy General] vedhasd:
i get this error:

i am trying cm7.2, i have repo synced
[Defy General] labsin:
Do you get this error after executing 'repo sync' or after 'source build/envsetup.sh'?
[Defy General] vedhasd:
after source build/envsetup.sh
[Defy General] Kayant:
Are you in your working directory?? Also check if the build folder is present..... The error is because the envsetup is not being found...

Let's Go ^_^
[Defy General] vedhasd:
i do this in my folder

something goes wrong after 21%,

upto this point everything gets synced, nd i doubt thats why the build folder is not present in my working directory

no the build folder is not present :( (i looked for envsetup.sh by grep command), also something called fatal error comes after the repo sync :crying:

i am doing something wrong.. but m not getting what m i doing..! :crying::crying:
[Defy General] TJKV:
Hmm but I still have one doubt. Do you need to repo sync with the official Google sources for aosp? It is downloading sources for all the Google devices too like the nexuses, the xoom etc...

Your guide doesn't have that step, we only download from Quarx's github in this guide. But the other guide you have linked in op has that step, the one I mentioned in pm yesterday.
[Defy General] Kayant:
That's because Quarx, mine and Eppy's github and other custom roms like Cyanogenmod etc already have the needed

repo's from google in their platform_mainfest.xml..... We don't need other stuff as we don't have a nexus device or xoom

also..... you will only need the full source from google if you're trying to port full aosp to another device but I remember at least with ics you had the option to build pure aosp ics from cyanogenmod.... I will add more stuff later after I come back from work....
[Defy General] hackergnome:
25gig download? :faints:

it took me 24hrs to download 5gig battlefield3 update!!!
[Defy General] TJKV:
No, I'm pretty sure that the download is only 4GB, there just needs to be 25GB of free space on the HDD for the actual compiling to happen, no need to download 25GB :P
[Defy General] Kayant:
No to compile the rom you need 25gb or more it's about 4 gb or more to download
[Defy General] TJKV:
I keep getting these kinds of errors (I've marked them in red) while the "repo sync" is going on, but the sync doesn't stop, it continues. Is it anything that I need to be worried about?

From http://github.com/tpruvot/android_bootable_recovery
* [new branch] cm_ics -> github/cm_ics
* [new branch] cyanogen -> github/cyanogen
* [new branch] diff_nov2011 -> github/diff_nov2011
* [new branch] gingerbread -> github/gingerbread
* [new branch] ics -> github/ics
* [new branch] ics_merge -> github/ics_merge
* [new branch] jellybean -> github/jellybean
* [new tag] defy-cm7-rc0 -> defy-cm7-rc0
* [new tag] defy-cm7-rc1 -> defy-cm7-rc1
* [new tag] ics-5.0.0 -> ics-5.0.0
* [new tag] v4.0.0.7-defy -> v4.0.0.7-defy
* [new tag] v5.0.5-defy -> v5.0.5-defy
* [new tag] v5.0.6-defy -> v5.0.6-defy
* [new tag] v5.6.0-defy -> v5.6.0-defy
* [new tag] v5.6.2-defy -> v5.6.2-defy
* [new tag] v5.6.6-defy -> v5.6.6-defy
Fetching projects: 2% (7/316) % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21829 100 21829 0 0 6722 0 0:00:03 0:00:03 --:--:-- 58366
[COLOR="Red"]error: '/home/tejus/WORKING_DIRECTORY/motorola/.repo/projects/build.git/clone.bundle' does not look like a v2 bundle file
fatal: Could not read bundle '/home/tejus/WORKING_DIRECTORY/motorola/.repo/projects/build.git/clone.bundle'.[/COLOR]
remote: Counting objects: 35549, done.
remote: Compressing objects: 100% (11644/11644), done.
[Defy General] hackergnome:
aww thats still too huge 4gig?

meh... no source build from me! EVER!
[Defy General] TJKV:
Lol it's going to take me one full day if not more to download that on my 512kbit connection, but I'll be out tomorrow whole day so I thought what the hell, I'll give it a shot!
[Defy General] Kayant:
Nah down worry about it i get it aswell not to sure why it's happening but it only happens with cyanogenmod...
[Defy General] TJKV:
Hmm...I googled a bit, got nothing definitive. One place suggested that the latest version of Python has some problems, but not the one in 10.04 (which is what I have right now). In another place I read a dev saying that it was indeed due to a newer version of Python, but to fix it he needed to change something in his repo, But even these were only indirectly connected to the errors we are getting, so no clue :S
[Defy General] Kayant:
Loool as long as it works and downloads then we are happy ^_^
[Defy General] TJKV:
I guess so :P

Well I'll post here after a couple of days, when it has finished downloading @_@ :P
[Defy General] Kayant:
Good luck ^_^
[Defy General] brajesh.sharma87:
What's your internet speed?

512kbps plan? I would suggest you to sync sources with this

repo sync -j1

coz it downloads 1 project at a time.

repo sync

downloads 4 projects at the same time and is recommended for users who have 2mbps+ connection.

For those who never tried this, I tell you what happens.

For example, in ICS branch there are 260 projects. each projects are of different sizes varying from 1 MB to 2 GB. lets say you have synced 40 projects and your internet connection stopped during 41st project syncing so when you start again the sync will start from 41st project. Now the worst part for those who have less than 1mbps speed and frequent internet disconnection problem, there is a project which is 1.94 GB in size, If you get stuck in the middle of the download of this project then you will feel like screwed. I understand the pain of this :D coz I almost downloaded around 12-15 GB only bcoz I had disconnection downloading this particular project.

The good news is that I have synced the ICS sources completely and will be building it very soon. No more normal ports by me and now will be building from source only. It will take some time but I am sure I will learn many things in the process.

@TheAlienGuy: you wont understand the pain of slow internet speed. For you guyz 1 mbps is a slow speed but not for us (many of the indian users). ;)
[Defy General] TJKV:
Hahaa yeah that's what I am doing, -j1. But thanks :)

Good to hear you will go source code too!

BTW who are you replying to, that last bit? I don't see any thealienguy Here :S
[Defy General] Kayant:
Great to hear all you lot are trying it now even doe your internet is not great....

Am so happy ^_^

btw repo sync -j1 and repo sync are the same thing ;)

and Good luck
[Defy General] brajesh.sharma87:
Afaik repo sync = repo sync -j4
[Defy General] hackergnome:
2mbps for 10gig and then 512kbps unlimited...

so my provider(Mighty "MTNL") only gives me about 120kBps for those 10gigs I'll complain next month... currently getting 60kBps as expected...

Do u have any suggestions for me?

Anyone providing 3G unlimited data? let me know...

@Kayant,Hope u dont mind this OT

---------- Post added at 11:58 PM ---------- Previous post was at 11:57 PM ----------

yes u r right repo sync is j4
[Defy General] Kayant:
Oh yh forgot about that you can set it to -j1 just change it in the platfrom_manifest.xml file in the .repo folder...
[Defy General] brajesh.sharma87:
Finally a successful compilation of CM10 :)

Specially thanks to Quarx for his support and also Kayant. I will encourage others to start building from source, you will learn a lot. Me and Kayant faced many problems while compiling so we should be able to help you guyz wherever you get stuck.
[Defy General] Kayant:
Open the .repo folder and post your default.XML. I will edit it for you

Edit do as labsin suggested... I don't know to quite express the method he has ;)

Let's Go ^_^
[Defy General] labsin:
Remove the CyanogenMod/android_device_motorola_stingray line from the .repo/manifests/default.xml. Then try again.

If it helped, go to that folder again and do 'git add -all' 'git commit' (then enter whatever you like) and you're done. (maybe do these changes in a seperate branch by doing 'git checkout -b branch_name_here' before everything)
[Defy General] vedhasd:
the whole line? including the project?

some times i get this:

is it because its not getting the stingray resources?

and now this :(
[Defy General] zlgg38:
Errors / CM10 build

Trying to build CM10 from Quarx repo...

but I'm stuck with some errors

[I]frameworks/base/telephony/java/com/android/internal/telephony/MotoWrigley3GRIL.java:28: cannot find symbol
symbol : class NetworkInfo
location: package com.android.internal.telephony.gsm
import com.android.internal.telephony.gsm.NetworkInfo;
^
frameworks/base/telephony/java/com/android/internal/telephony/MotoWrigley3GRIL.java:46: cannot find symbol
symbol : constructor RIL(android.content.Context)
location: class com.android.internal.telephony.RIL
super(context);
^
frameworks/base/telephony/java/com/android/internal/telephony/MotoWrigley3GRIL.java:82: cannot find symbol
symbol : variable NOTIFICATION_TYPE_MT
location: class com.android.internal.telephony.gsm.SuppServiceNotification
if (notification.notificationType == SuppServiceNotification.NOTIFICATION_TYPE_MT) {
^
frameworks/base/telephony/java/com/android/internal/telephony/MotoWrigley3GRIL.java:138: deactivateDataCall(int,int,android.os.Message) in com.android.internal.telephony.RIL cannot be applied to (int,android.os.Message)
super.deactivateDataCall(cid, result);
^
frameworks/base/telephony/java/com/android/internal/telephony/MotoWrigley3GRIL.java:130: method does not override or implement a method from a supertype
@Override
^
[B]5 errors[/B]
make: *** [/home/zlgg38/Android/CMx/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....[/I]

commenting out in MotoWrigley3GRIL.java:28 , helped me with the 1st one.

Don't know how to fix others !

Any help / advice ?
[Defy General] Kayant:
For ow you can revert the commit that added the patch. cd into the frameworks base folder then git log and find the related commit the copy the sha1 and use git revert <sha1>. For example it will says something like commit 5jnksa793 copy about 6 of the numbers the use the git revert commit. One thing to note is the next time you repo sync the changes will be lost.
[Defy General] vedhasd:
Dude no solution for my prob? :confused:
[Defy General] Kayant:
You are still missing some things like the toolchain incomplete sources.... Make sure you have all the required packges installed and right java version. We version of android are you building btw???
[Defy General] vedhasd:
I downloaded the toolchain now , prebuilt gcc was missing, i want to build gb

the cyanogenDefy repo for gb doesn't include the prebuilt gcc.
[Defy General] Kayant:
Why don't u use one of the Devs repos for that.... it will be best to use maniac's since be works the most on GB so he's repo will be up to date..... If you use the CMdefy repo your build is going to be very outdated.....

All you need to do is repo init again and change the URL to point to his repo instead

Let's Go ^_^
[Defy General] vedhasd:
Thats really good idea, but just one doubt will it download whole project or only the changes by maniac?

Off topic:

Please accept my facebook friend request :D
[Defy General] Kayant:
Since they are very similar it terms of files like said it should only download his repos but that's if its already been downloaded.... I will soon ;)

Let's Go ^_^
[Defy General] mytong:
Its really an advance guide on command lines, will try it later, thanks!
[Defy General] TJKV:
a quick question...after syncing with quarx's cm10, this is all that happens when i get-prebuilts:

tejus@Tejus-Ubuntu-Laptop:~/cm$ ./vendor/cm/get-prebuilts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 142 100 142 0 0 73 0 0:00:01 0:00:01 --:--:-- 135
100 320k 100 320k 0 0 64364 0 0:00:05 0:00:05 --:--:-- 152k
Archive: ./vendor/cm/proprietary/Term.apk
inflating: ./vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm4.so

So it downloads around 320kb, just that one file it appears. Is that all that is supposed to happen or am i missing something?

Also currently, "3,12,549 items, totalling 14.2 GB" of ~/cm folder...that looks good too?

Asking because last time around I had some problems with prebuilts, so I redid repo sync...
[Defy General] Kayant:
Yh u should be fine.... its stuff that's needed for cm to build including rommanger.apk but we don't use that. Not to should why we need these files but we do ;)... Yh you sourced sound fully synced also.. Just give it a try and build.. if you have more problems just report them.

Let's Go ^_^
[Defy General] Kayant:
Yep your are right on the money - It's to do with this commit https://github.com/Quarx2k/android_...mmit/97cac340b715adcb0633ef14be56384707ba10fe. You either revert the change which is easier or remove the duplicates.
[Defy General] TJKV:
Just commented out the lines for now, I will wait for your guide on git commands :P

Took 1.5 hours, I'll test the build tomorrow. Thanks :)

EDIT: Okay Windows screwed up. Transferred the zip to my ntfs partition, booted up into windows to make some changes to the apks inside, windows suddenly lost the file. I had already make clean'ed :(

When I try to recompile I get:

Checking build tools versions...
grep: build/target/board/generic/recovery.fstab: No such file or directory
find: `src': No such file or directory
build/core/tasks/kernel.mk:82: **********************************************************
build/core/tasks/kernel.mk:83: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:84: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:85: * BoardConfig.mk file *
build/core/tasks/kernel.mk:86: **********************************************************
make: *** No rule to make target `bacon'. Stop.

Tried again after repo sync +get-[prebuilts just in case, and make clobber, but getting the same problem :(

EDIT 2: Looked inside device/moto/jordan-common/boardconfig.mk, there is a TARGET_KERNEL_CONFIG := mapphone_defconfig in line 171...or am I looking in the wrong boardconfig.mk?

EDIT 3: Okay I think I figured it out, we need to do a 'source build/envsetup.sh && brunch mb526' again after doing a 'make clean' I'm guessing. Trying it now...

EDIT 4: Now I am confused, I did just "source build/envsetup.sh && brunch mb526" and not "make -j4 bacon", but it proceeded to create the zip files and completed the build! 20121212 build :D