yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] doctapeppa:
Why not? Do you get an error? When booting do you see a menu that says ubuntu, memtest, windows.. etc? This is grub and is how you pick which os you want to boot into. Ubuntu makes itself the default boot option but you can change that if you want and unless you deleted windows 7 when you installed Ubuntu, grub automatically ads your windows partition.
[Nexus 7 Android Development] .torrented:
Edit* I didnt see they guy above me say the same thing... Just ignore this post
[Nexus 7 Android Development] azoller1:
Re: [HOWTO] Build CM10.1 for Nexus 7

Yeah I have the grub menu but when I go to boot windows 7 is says it can't find the boot IMG or something and says to insert my windows installation CD??
[Nexus 7 Android Development] doctapeppa:
Sounds like you messed up windows somehow, what happened when you inserted the Windows installation CD?
[Nexus 7 Android Development] .torrented:
Do you have a Windows CD? If you do what you need to do is put it in and once you have it in and booted to the CD click install now and then click on repair windows and let it do its thing.
[Nexus 7 Android Development] azoller1:
Re: [HOWTO] Build CM10.1 for Nexus 7

Well I can't find it....guess I'm stuck with Ubuntu because during Ubuntu installation I think I put it on my windows 7 hard drive and I guess it overwrote the windows boot loader or something
[Nexus 7 Android Development] espaciosalter20:
Re: [HOWTO] Build CM10.1 for Nexus 7

Yes, that's happen a lot... Use boot recovery on ubuntu, it's easy!!!

Enviado desde mi Nexus 7 usando Tapatalk 2
[Nexus 7 Android Development] EnemyOfGlaDOS:
Re: [HOWTO] Build CM10.1 for Nexus 7

Awesome keep up the good work! :D
[Nexus 7 Android Development] azoller1:
Re: [HOWTO] Build CM10.1 for Nexus 7

Found my recovery CD going to see if that works.....feelin lucky here
[Nexus 7 Android Development] .torrented:
Happened to me once and I got it fixed. Let me know if you need help BEFORE you totally wipe out your HDD
[Nexus 7 Android Development] azoller1:
well ive tried a lot of repiar tools and they dont seem to work, and i could use a fresh start on this pc anyways

---------- Post added at 06:51 PM ---------- Previous post was at 06:50 PM ----------

also could you tell me some very important files on my computer to back up first??
[Nexus 7 Android Development] .torrented:
Really just any important documents that you might have that are a must or any games (if you play any, I always keep my steam library backed up because i hate redownloading hundreds of gigs of stuff)

If you need any drivers make sure you have all the drivers for your PC somewhere safe so when you reinstall windows that everything works... pc's not so much as laptops but its still a good idea to have them around for whatever you need them for
[Nexus 7 Android Development] sporkette:
Re: [HOWTO] Build CM10.1 for Nexus 7

Thanks for the walk through fattire. It worked great. Built it on Debian wheezy. Am so captivated I'm now working on a build for my galaxy nexus. Thanks!
[Nexus 7 Android Development] fattire:
Congrats Sporkette.. welcome to the club :)
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

Hey guys, well i still haven't gotten Ubuntu or Mint to install on this new machine for some odd reason! But Debian is installed so i'm gonna embrace it for now haha.

Any advice for getting Java and all the packages installed and building on Debian? Is it baiscally all the same? Found a few guides and will sit down with them soon.

Edit: i will go back and check fattire's writeup when i get home... i think it mentioned Debian perhaps?
[Nexus 7 Android Development] sporkette:
Re: [HOWTO] Build CM10.1 for Nexus 7

It didn't, but Debian works fine. The only issue I ran into was that Debian doesn't have Sun Java in wheezy (the latest). I enabled the squeeze repositories just long enough to get Sun Java installed. The other brand of Java IS there but some other walkthroughs I had read called for Sun specifically shi I decided to play it safe. I don't know if it matters but someone else can probably answer that. Otherwise, it is just like setting up the latest Ubuntu.
[Nexus 7 Android Development] EnemyOfGlaDOS:
I got a question.. I'm a little stuck. Can probably start over and be ok I just want to understand why I'm getting an error. I got up this morning and wanted to do a fresh build.. did my repo sync, make clobber- to start fresh, and when I run the command "brunch grouper" this is what I get:

rootworkx@rootworkx-HP-G72-Notebook-PC:~/android/system$ brunch grouper
No command 'brunch' found, did you mean:
Command 'branch' from package 'rheolef' (universe)
brunch: command not found

honestly I thought it would go without a hitch.. but I guess I missed something :(
[Nexus 7 Android Development] eug89:
Before using the lunch or brunch commands, every time you open a new terminal window, you have to run . build/envestup.sh.

EDIT: you also have to run the lunch command before the brunch one.
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

did you do build/envsetup.sh?
[Nexus 7 Android Development] EnemyOfGlaDOS:
ah.. I tried this time to leave out any unnecessary steps and keep looking at that command thinking exactly that but... wanted to wait for confirmation. Thanks! :)
[Nexus 7 Android Development] EnemyOfGlaDOS:
hmm.. I didn't run the lunch command because I thought you didn't have to do that again.. it's also building without running lunch command- I tried just using these notes below:

..but like I said, it's building fine now. I just missed the . build/envsetup.sh command
[Nexus 7 Android Development] .torrented:
Yes "lunch" is a one time command but you do need to always run the ". build/envsetup.sh" command if you want to build.

oh and I noticed today that cm is now on cm-10.1-M1 which i think is a milestone :)
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

Thank you, i think i have most everything set up. However, I did a repo sync but my working folder and bin folders are locked. I am a bit confused by how Debian handles root and the home directory, etc. Did i make a mistake by doing my repo sync as root? I am confused by the different prompts i am seeing at the command line... i basically have been using the root terminal so i don't have to type sudo all the time.

Edit: i managed to put myself in the sudo group... was that good. Now it seems more like i can just use the non-root terminal, seems more like i remember it in Ubuntu. Maybe haha.
[Nexus 7 Android Development] underwaterjr:
Re: [HOWTO] Build CM10.1 for Nexus 7

Just wanted to give a huge thanks to fattire for this write up and continued support, as well as everyone else who has given great advice and help throughout this thread. I am now running an OS I built from source.

Sent from my Nexus 7
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

Just wanted to update this with happy news: i got it! Took a few adjustments here and there, but i got it working in Debian 6.0.6.. My new Dell N5050 completed the build in 2 hours, which i know isn't super duper fast, but it's a huge improvement over 7 hours on my Acer!
[Nexus 7 Android Development] sporkette:
Re: [HOWTO] Build CM10.1 for Nexus 7

You shouldn't have to do anything related to your build as root. When you set up you're build environment you'll need root for installing your packages and for setting up your udevs but everything else should be done as an unprivileged user. repo sync definitely should have been done unprivileged.
[Nexus 7 Android Development] EnemyOfGlaDOS:
Re: [HOWTO] Build CM10.1 for Nexus 7

2 hrs is awesome. Mine builds in a little over 3 hrs. Now .torrented has a beast machine... 40 minutes :D

<sent from my quad-core S3>
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

Yeah, i ended up trying to copy the contents of my privileged working folder into a regular folder, but in the end i think i ended up fully resynching in the proper way. Thanks

---------- Post added at 08:12 AM ---------- Previous post was at 08:09 AM ----------

Ah ok, maybe it's the 6GB RAM that helps out a lot in this Dell. Other than that, it's dual-core, 2.4 GHz.
[Nexus 7 Android Development] azoller1:
Re: [HOWTO] Build CM10.1 for Nexus 7

How fast would a 4gb ram with 2.20ghz Intel processor be for repo syncing?
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

For repo synching i'm sure the internet connection/speed has a lot to do with it. My other computer takes about 7 hours to build the ROM but seems to synch just about as quickly as the one that took 2 hours.
[Nexus 7 Android Development] azoller1:
Re: [HOWTO] Build CM10.1 for Nexus 7

So repo sync -j16 will be faster? Would closing all other connections make it faster?
[Nexus 7 Android Development] .torrented:
Yeah thats about right 35-40 minutes but then again i have an 8-Core running at 4.2GHz and 16 GB DDR3 running at 1600MHz, im sure it would be even faster if i was using an SSD vs the HDD that im using it might even be a 5400RPM HDD too... lol

My laptop however is a i5 running at 2.3GHz with 6 GB RAM idk what the clock speed is on it and it builds in about 2-3Hrs

repo syncing is dependant on your internet connection because thats where you are downloading all of the sauce if anything i would just run this:

repo sync -c or repo sync -j4 -c

---------- Post added at 11:58 AM ---------- Previous post was at 11:37 AM ----------

if your internet can handle it basically thats how many simultanious downloads will occur at the same time so you would be downloading 16 things at once instead of 1 or 4 or 5... at least thats how i looked at it and understand it... but there is a trick if you put "-c" after that it only downloads the latest branch or w/e its called so you dont download lets say cm7 or cm9 it will only download cm10

so instead of downloading 10-15GBs it will only be like 7GBs total
[Nexus 7 Android Development] gbohm:
AW: [HOWTO] Build CM10.1 for Nexus 7

i would highly suggest getting ssds it makes everything sooo much faster .get two mid size ssds in a raid 0 i tried my aunts laptop some days ago brand new(i5 4gb ram) but still with a hdd and it feels super slow. my working laptop has a little bigger i5 and 8gb ram but the main difference are those 2ssds and it is freaking fast (for like 300$ more)
[Nexus 7 Android Development] underwaterjr:
I am having troubles getting a repo sync to complete. Also getting this warning: local_manifest.xml is deprecated; put local manifests in local_manifests instead. Anybody have any ideas? I had a successful sync and build last week so was gonna give it a go again this week and can't get it to work. Keep getting this error: Exited sync due to fetch errors.
[Nexus 7 Android Development] EnemyOfGlaDOS:
Re: [HOWTO] Build CM10.1 for Nexus 7

Are you in /android/system when you try to do a repo sync?

<sent from my quad-core S3>
[Nexus 7 Android Development] underwaterjr:
Yeah I went to /android/system/ it will fetch about 56% or so then get fatal errors

Edit: I deleted my source folder and started from scratch and it seems to be syncing now we'll see how it goes
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

I made a fresh install of ubuntu 12.10 , and I assigned some disk space around 220gb. But when I goto 'system details', under "Disk", it shows only 10.6 gig. Is that alright ?

Another question, what should i install , official or open jdk ?

Thanks
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

Unfortunately 10.6 gigs won't be enough... I checked once and my working folder alone was 23 gigs after a build. As for the jdk, it seems to work either way, i use openjdk and depending on the version #, it might say i have the wrong java version, but the build goes perfectly.
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

Damn, how do I resize it now?

I already did an install using wubi,which allocated only 30gig max. Then I uninstalled and made a fresh install, booting from usb. When it asked for space ( with an indicator in between 2 equal parts of an already partitioned disk done using windows ) I gave the maximum i could. After installation, all I can see in disk space is 10.6gb. I'm also losing around 200 gig from my windows partition.

Please help. Im desperate to get this working.

Thanks

---------- Post added at 09:42 AM ---------- Previous post was at 09:13 AM ----------

Guys? Anyone please?
[Nexus 7 Android Development] sporkette:
Re: [HOWTO] Build CM10.1 for Nexus 7

You can install gparted on your Ubuntu and use it to resize your windows partition, then use what you get for your Linux partition. I would want at least 40 gig to have some breathing space.
[Nexus 7 Android Development] underwaterjr:
Ok I must be doing something wrong but can't seem to figure it out. If I start from scratch I can sync and build just fine but as soon as I try to repo sync again I get fetch errors and failed sync. The only way to fix it is to delete entire source folder and start over. Any ideas?
[Nexus 7 Android Development] Streykatorato:
Getting this all the time...
[Nexus 7 Android Development] fattire:
Fetch errors are usually a network related problem, either on your end or at github... you shouldn't have to re-download anything.
[Nexus 7 Android Development] underwaterjr:
Re: [HOWTO] Build CM10.1 for Nexus 7

So I don't have to re-initialize the build source repository? I can just cd to /android/system/ and repo sync? And then should sync up?
[Nexus 7 Android Development] fattire:
That's how it should work, yeah. You don't need to reinitialize the source repo unless you are changing branches (ie, from froyo to jellybean or from jellybean to cm-10.1 or whaever...
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

I used to have problems synching with my previous internet service... it was too slow and kept timing out, or something. It worked the first few times, but later it was a real pain. Haven't had any issues with that since switching to time warner road runner.
[Nexus 7 Android Development] underwaterjr:
Re: [HOWTO] Build CM10.1 for Nexus 7

Hmmm I'm not sure what's going on then. Tried it many times keep getting the same errors. It's just weird that I had the same problem a couple of days ago and when I deleted the source folder and bin folder and started over it synced the first try.

I have service with a fifty meg download speed and stream high def movies without troubles. I don't think that would be the trouble but you never know.
[Nexus 7 Android Development] yogi2010:
i forgot to ask what kind of internet you have... it doesn't sound like a speed issue then! i wonder if there are any other characteristics of one's internet connection that would impact repo synching? anyway, hope you get it to go thru..
[Nexus 7 Android Development] Streykatorato:
Re: [HOWTO] Build CM10.1 for Nexus 7

Reinstalled Ubuntu and tried again but this time i always get a fatal error when downloading framworks base from The repo... Any help or workarounds for this?
[Nexus 7 Android Development] underwaterjr:
Well I deleted my source folder and started over...enerything went fine and got sync. So to test, once i had everything synced and ready to build I tried to sync again just to test it out and it failed again. So what's happening after the initial sync and set up to make this happen?

Fetching projects: 40% (142/354) fatal: unable to connect to github.com:

github.com[0: 207.97.227.239]: errno=Connection refused

fatal: unable to connect to github.com:

github.com[0: 207.97.227.239]: errno=Connection refused

fatal: unable to connect to github.com:

github.com[0: 207.97.227.239]: errno=Connection refused

fatal: unable to connect to github.com:

github.com[0: 207.97.227.239]: errno=Connection refused

Fetching projects: 47% (167/354) fatal: unable to connect to github.com:

github.com[0: 207.97.227.239]: errno=Connection refused

fatal: unable to connect to github.com:

github.com[0: 207.97.227.239]: errno=Connection refused

fatal: unable to connect to github.com:

github.com[0: 207.97.227.239]: errno=Connection refused

fatal: unable to connect to github.com:

github.com[0: 207.97.227.239]: errno=Connection refused

error: Cannot fetch CyanogenMod/android_external_ping

error: Cannot fetch CyanogenMod/android_external_openssl

Fetching projects: 48% (170/354)

error: Exited sync due to fetch errors

This happens every time
[Nexus 7 Android Development] .torrented:
I'm getting that too but on my first attempt. I can't even sync the inital time... something must be going on with github

EDIT* I got it working again just waited some time before I re-synced it and I got a build out of it.
[Nexus 7 Android Development] underwaterjr:
Re: [HOWTO] Build CM10.1 for Nexus 7

I wonder if it has to do with high traffic trying to sync at the same time.
[Nexus 7 Android Development] Streykatorato:
Now im getting tired... i´ve synced the CM10 repo a dosen of thimes... still getting fatals... anyone help?
[Nexus 7 Android Development] fattire:
Re: [HOWTO] Build CM10.1 for Nexus 7

If everyone is having these issues simultaneously, and also trying dozens of times... I wonder if github is getting overwhelmed or having issues. Are you guys all who are having issues in the same part of the world?

Have you tried off peak hours? I wonder if the wiki itself is encouraging do many people to build that-- no, no... That can't be it can it ?
[Nexus 7 Android Development] Streykatorato:
[HOWTO] Build CM10.1 for Nexus 7

Peak hours?
[Nexus 7 Android Development] fattire:
I mean only that there is probably much higher network congestion and their system is likely to be under much more load during the day in the Western hemisphere... try when it's night in the US and see if that makes a difference... (?) If the problem is ONLY when doing an update, and not during the intial (and much larger) download of source,that would kind of blow my theory out of the water, however.
[Nexus 7 Android Development] .torrented:
Re: [HOWTO] Build CM10.1 for Nexus 7

It was giving me issues but I managed to get it working just kept trying at different times of day
[Nexus 7 Android Development] underwaterjr:
Re: [HOWTO] Build CM10.1 for Nexus 7

Yeah still having same troubles tried tonight again for a few hours. Just to update my source and still a no go. Will try in a bit again fingers crossed.

Edit: just tried it again no luck. I bet if I delete my source I could get it to sync the first try.
[Nexus 7 Android Development] Streykatorato:
[HOWTO] Build CM10.1 for Nexus 7

Going to try to sync the source again when I get home from school.. I almost had it.. But java failed.. Installed Ubuntu for the third time now.. I'm not giving up;)
[Nexus 7 Android Development] fattire:
If repo sync fails, you can always just repo sync again until it works. It's not an all-or-nothing thing...
[Nexus 7 Android Development] benbailey84:
Re: [HOWTO] Build CM10.1 for Nexus 7

I can't find my cmxxxxx.zip all the other folders are there in the /out......./grouper folder.
[Nexus 7 Android Development] underwaterjr:
Re: [HOWTO] Build CM10.1 for Nexus 7

Well I uninstalled everything and reinstalled Ubuntu and the whole works last night got successful sync first try at -j12 so was done in about forty minutes. Got a build done also and writing this post with it. Gonna try to re-sync tonight...fingers crossed.
[Nexus 7 Android Development] .torrented:
so on the terminal did it say when it finished

Running Release Tool.......

cm-10.1.zip

MD5: asf8asdf87asdfa7a8sdfasdf

something like that?
[Nexus 7 Android Development] underwaterjr:
I finally figured out my sync problems. For anyone having problems syncing check out this page.

stackoverflow.com/questions/5015732/why-do-i-get-unable-to-connect-a-socket-when-i-try-to-clone-via-a-git-url
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

Does anyone know if 'clock skew detected' is a serious problem? I recently noticed that my Debian system had the incorrect time, i think it had UTC instead of my local time, and i read that it probably has to do with dual-booting with Windows.

Anyway, i installed a package called NTP i think it was, and Debian shows my local time now, but the build is repeatedly warning me of a clock skew. Anyone dealt with this before?

Update: the build went fine and the package seems to be running fine on my N7. I had done a clean build from scratch, but i wonder if the clock skew would affect things if i rebuilt without making clean.
[Nexus 7 Android Development] Project: Awesome:
Re: [HOWTO] Build CM10.1 for Nexus 7

I'm getting errors while building all of a sudden of "cannot execute binary file" and "cannot find file or folder specified" after doing the . build/envsetup command. I've tried everything to solve this issues, but nothing works. I'm running Ubuntu 10.04 in a VM.
[Nexus 7 Android Development] trailblazerz11:
Anyone ever get this error? On ubuntu 12.10..

Export includes file: external/oprofile/libpopt/Android.mk -- /home/juston/cm/out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_popt_intermediates/export_includes
Export includes file: external/oprofile/libop/Android.mk -- /home/juston/cm/out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_op_intermediates/export_includes
make: *** No rule to make target `/home/juston/cm/out/host/linux-x86/obj/STATIC_LIBRARIES/libbfd_intermediates/export_includes', needed by `/home/juston/cm/out/host/linux-x86/obj/EXECUTABLES/opannotate_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
[Nexus 7 Android Development] AndDiSa:
AW: [HOWTO] Build CM10.1 for Nexus 7

... Got this already some time ago when I tried to build AOSP, but I never found a solution for that. But it's not Ubuntu related because I was building on OpenSuSE.
[Nexus 7 Android Development] EnemyOfGlaDOS:
Re: [HOWTO] Build CM10.1 for Nexus 7

I don't have an answer for your problem but I did notice you are using Ubuntu 10.04 and I thought I read that thou want to use Ubuntu 12.10. Maybe that's the problem.. beats me. :-/
[Nexus 7 Android Development] hallowed.mh:
Re: [HOWTO] Build CM10.1 for Nexus 7

I've now built CM and AOSP using 10.04. I've had problems getting things going, but nothing related to the OS on my machine.
[Nexus 7 Android Development] .torrented:
Yeah I got it going on 10.04/12.10/Mint14 (x86_64) all with no issues
[Nexus 7 Android Development] benbailey84:
Re: [HOWTO] Build CM10.1 for Nexus 7

No nothing like that
[Nexus 7 Android Development] .torrented:
ok so try doing this:

cd android/system

. build/envsetup.sh

make clobber

brunch grouper
[Nexus 7 Android Development] TheDarkDefender:
Once I do the repo sync, all source gets downloaded to my disk. If I do the same after a few days,are the changes alone downloaded or is the whole repo gets synced ?

Another question, I get a notification saying a new version of repo (1.19) is available . How do i upgrade ?
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

as long as you keep that source folder, all future syncs will just download the changes, It will take a very small fraction of the time. you can check by synching again at any time :)

For the repo, it should give you the command, which if you are quick you can copy and then paste it whenever it gets done(or open a new window of the command prompt perhaps and paste it there.) The command is basically telling it to copy the new repo script from the source to you home/bin folder. You could also do it manually, the new script is located in the .repo/repo directory of your source folder..
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

Thanks erik. I still don't get the 'repo upgrade' part. :confused:

Sent from my Nexus 7