yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Android Development] yogi2010:
excellent, thank you very much. I am in my Setup Utility(by pressing F2 before Windows boots up), and it says my System BIOS Version is V1.06, and VGA BIOS Version is Intel V1800. it doesn't seem to have any choice to change any settings regarding BIOS.

yes ok, let me know about the vbox.... like I said, it doesn't seem to let me install a 64-bit version of Ubuntu. so I believe I used the 32-bit version to compile CM7.

Sent from my HTC Vision
[myTouch 4G Android Development] Pirateghost:
you should have options in BIOS to make basic changes. bios version means nothing to me.

what kind of computer is it, my dell laptops and workstations have an option to enable virtualization technology. if your BIOS is so locked down that you cant make any basic changes, then you are SOL
[myTouch 4G Android Development] yogi2010:
it is entirely possible that I am SOL with this particular computer, it is only an Acer Aspire notebook, a budget computer for sure. but I also have access to a 64-bit Toshiba Satellite, so I am now seeing if I can set up vbox with 64-bit Ubuntu on that.

Sent from my HTC Vision
[myTouch 4G Android Development] Pirateghost:
sweet. tornadoes just missed us!

looking at my settings in vbox for a few VMs i have, under the VM settings, System, Hardware Virtualization: check 'Enable VT-x/AMD-V'

aside from that you will NEED something in BIOS to enable VT

I really doubt there is no way to set basic settings in BIOS....i just dont believe it, i even have options available in my kids netbook...
[myTouch 4G Android Development] yogi2010:
oh wow, glad the tornadoes missed you!

I decided to install Ubuntu alongside Windows rather than inside a virtualbox... that way I had no problem using the 64-bit version. I sure you are right tho, I can probably configure those settings somehow, but this way I have a whole separate area to work in.

thanks for all the help, and hope things are ok with the weather for you out there.

Sent from my HTC Vision
[myTouch 4G Android Development] Pirateghost:
dual boot is the way to go for this....that way it can make good use of the system.
[myTouch 4G Android Development] sykopompos:
Wow, don't check this for a few days and a ****load of new posts. Cm source has modifed the build/core file to allow building on 32 bit while aosp is 64 bit only. That is the headache you were running into. The dual boot is the best way to go even if it is 20gbs it is better than a vm could even hope to be
[myTouch 4G Android Development] yogi2010:
AH OK, so that's what that was. well no matter now, since I have 64-bit Ubuntu running now. yeah, it seems MUCH nicer having it set up as dual boot.

so thank you SO much for this guide... I never would have thought I could do this, but just relaxing and doing everything you describe worked perfectly!

Sent from my HTC Vision
[myTouch 4G Android Development] Pirateghost:
i had no problems building cm7 for my MT4Gs, but i cant seem to get it to build properly for my Desire Z
[myTouch 4G Android Development] Shivansh:
Wow! Thanks for putting up this guide OP.
[myTouch 4G Android Development] yogi2010:
I am curious, when configuring kernel to be compiled, I don't see a choice for cyanogen_vision_deconfigs, but I see cyanogen_msm7230_deconfigs.... I am assuming that is the one to choose for the G2?

also, you didn't get into modifying the kernel, but is there any modifying one might want to/be able to do within the configuration options menu?

Sent from my HTC Vision
[myTouch 4G Android Development] sykopompos:
What is the issue that you are running into?
[myTouch 4G Android Development] sykopompos:
It might have been changed since I last looked into and played in the cm source.

When it comes to modifiying in the kernel, there really isn't too much that you can do with modifiying the kernel source which is all in the c programming lang. You can play around and do little tweaks but most things won't make too much difference
[myTouch 4G Android Development] sykopompos:
No problem to both you and yogi, glad you guys have gotten it working for you
[myTouch 4G Android Development] yogi2010:
ah ok, so stuff like undervolting and other tweaks are done by modifying the source code itself?

and if you didn't mind one last question, the million dollar question: is Cyanogen specifically set up to be easy to build for many different devices, as opposed to straight AOSP, which it says only supports the Nexus? in other words, is it more difficult to build AOSP ROMs for a specific target device? googling around, I see some people talking about building AOSP ROMs for devices, and I see a tutorial here and there, but nothing as thorough as your tutorial here.

thanks for everything buddy!

Sent from my HTC Vision
[myTouch 4G Android Development] Pirateghost:
i will try again tomorrow afternoon and let you know what errors i get. its weird. i can build and get a fully functional glacier build just fine, but the damn vision build is wiggin out on me. got it to complete once, but the rom wouldnt boot. i have blown away my cm7 directory a few times and restarted from the beginning, but its only the vision build that keeps failing.
[myTouch 4G Android Development] sykopompos:
Check to make sure your proprietary files are all up to date and that you have them all. Get the newest nightly and run the extract-files.sh again
[myTouch 4G Android Development] sykopompos:
The problem with building aosp for other phones is the amount of source modifying that needs to be done to support them. Like eMMC phones like vision and glacier, you have to take into account all the changes, update bionic for the g-sensor, the vold for support, the frameworks so everything is functional. Most of these phones out haven't seen above froyo either so gingerbread is increadiblely difficult without modified propritary files and hacks to get things even close to working. The cm team has some really great guys working on it like zinx that knows how to do it and without taking some code (a lot of code) from the cm source you would be looking at a very difficult project the likes a tut would be able to cover plus all the needed skills to be able to do it is beyond the scope of a guide
[myTouch 4G Android Development] Pirateghost:
one of the files i have to pull from a stock G2 setup is the stupid kineto crap. i have a desire z not a G2, so i dont need wifi calling, lol.

i will try one of the nightlies and run extract again.
[myTouch 4G Android Development] yogi2010:
ah ok, I see. thanks for the explanation, I was having a hard time figuring out how do-able it is and what is involved. no wonder the Epic devs. have taken going on maybe a year to adapt Cyanogen to the Epic 4G.

Sent from my HTC Vision
[myTouch 4G Android Development] sykopompos:
Yes, unfortunely though to build it you need to include it :( either that or edit the scripts not to include it
[myTouch 4G Android Development] sykopompos:
The samsung products were a nightmare untill the nexus s which came availible source code for it then you had the problem with the bml. You also had the problem with rfs which was a huge nightmare which is why the behold 2 never really got embraced by the community

Htc phones like dream/g1 and the n1 is what android was and is still mainly based on from the beginning which made most htc phones much easier to work on
[myTouch 4G Android Development] yogi2010:
yeah, moving from the Epic to the G2, I really do get the sense that HTC is more originally tied in with Android. Samsung has a certain flare, but the G2 just really performs incredibily well to me. a nexus would be fun to have tho :)

Sent from my HTC Vision
[myTouch 4G Android Development] sykopompos:
I use a g2 as my primary phone, does everything I need it to easily
[myTouch 4G Android Development] drewtang:
derpin the herp

I keep getting an error messaging when trying to repo sync, can't seem to figure it out. here's what I'm getting in terminal

mandrew@mandrew-Dimension-8400:~/cm7$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread

Traceback (most recent call last):

File "/home/mandrew/bin/repo", line 603, in <module>

main(sys.argv[1:])

File "/home/mandrew/bin/repo", line 570, in main

_Init(args)

File "/home/mandrew/bin/repo", line 184, in _Init

_CheckGitVersion()

File "/home/mandrew/bin/repo", line 213, in _CheckGitVersion

proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)

File "/usr/lib/python2.6/subprocess.py", line 623, in __init__

errread, errwrite)

File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child

raise child_exception

OSError: [Errno 2] No such file or directory

Any thoughts?

edit: figured it out, was missing git, didn't have it installed lol
[myTouch 4G Android Development] despotovski01:
I'm getting an error when trying to install Java JDK. I did it back on Ubuntu 10.10, but I can't do it on Ubuntu 11.04. When I enter the update sources and click the close button, it gives error 404, saying that it can't fetch the files from the server. My Internet connection is good, I don't know what the problem is. Can somebody help me please?
[myTouch 4G Android Development] despotovski01:
Anyone?
[myTouch 4G Android Development] despotovski01:
Ok, I fixed it. :D
[myTouch 4G Android Development] synapses:
has any one ran across this?

Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/source/Sources 404 Not Found [IP: 91.189.88.40 80]

Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.88.40 80]

Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/source/Sources 404 Not Found [IP: 91.189.88.40 80]

Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.88.40 80]

Some index files failed to download. They have been ignored, or old ones used instead.

manually checking the site the jaunty folders are missing
[myTouch 4G Android Development] yogi2010:
hey there, i am having a strange problem all of a sudden- i was messing around with another project, and messed up the source in my cm7 folder. i decided to delete the folder altogether and do a fresh repo sync. but now when i do repo init in cm7, it initializes in home/usr! i pulled the entire source before realizing this and ended up with a bunch of folders in my home directory. decided to delete those instead of moving them all into my cm7 folder, but no matter what i do, repo will only initialize in home/usr.... and when i do repo sync anyway, it finishes in 2 minutes, even tho i deleted all the fiolders in home/usr. getting a bit confused here! i can however repo sync aosp inside my aosp folder.
[myTouch 4G Android Development] everest.deth:
I know its a dumb question but i figured it might be worth asking, did you cd cm7 before syncin?
[myTouch 4G Android Development] yogi2010:
yep, I dunno if you can see my screenshot, but everytime I cd into cm7 and repo init, it initializes in home/usr.

Sent from my HTC Vision
[myTouch 4G Android Development] everest.deth:
Shoot, i missed the screenshot, have you checked ur PATH? Not sure if that has anything to do, however is the only thing i can think of
[myTouch 4G Android Development] sykopompos:
I have had that problem before. Go into nautilus and show hidden folders. You are looking for a folder called .git and delete it in your home folder. Then mkdir a new dir called something else and set up the repo in that
[myTouch 4G Android Development] yogi2010:
thanks! do you mean go into .gnome2/nautilus-scripts? in there all I have is the file 'sign' that you had us make.... no hidden ones.

Sent from my HTC Vision
[myTouch 4G Android Development] Pirateghost:
yeah i have noticed that on a couple of my laptops....
[myTouch 4G Android Development] Pons:
Yeah, they apparently discontinued it. In the guide, if you change jaunty to dapper, it works.
[myTouch 4G Android Development] despotovski01:
When I type the make command "make bacon -j`grep 'processor' /proc/cpuinfo | wc -l`" it gives me an error saying something like this: "bacon is not recognized as a command". I've tried with several devices and it gives me the same error. Can anybody help me?
[myTouch 4G Android Development] despotovski01:
Anyone????
[myTouch 4G Android Development] synapses:
Try mka bacon
[myTouch 4G Android Development] despotovski01:
Still, it doesn't work. :(
[myTouch 4G Android Development] sykopompos:
Make bacon is a cyanogenmod addition, it will not work on aosp. It may have possible been changed also since this guide was written
[myTouch 4G Android Development] despotovski01:
I'm working on CM too. By the way, in meantime I figured a way out of this problem. `bacon wasn't necessary-I've just entered make -j2 and it started compiling. Unfortunately, I've had another error. It happened about 20 minutes from the start, but I think I know the solution. ;) If everything goes well, I will release my first public beta of my CyanogenMod 7 port for the LG GT540 very soon. :D
[myTouch 4G Android Development] sykopompos:
Nice, good to hear. Make bacon is the command for compiling and also runs a script to PNG crush and remove different unneeded things from a engineering build like the Chinese ime
[myTouch 4G Android Development] Ryokusai:
Hi, first thanks for this straightforward tutorial it's very useful ^^ Bu I have one question regarding the compiling kernel part. You have written :

But for devices like HTC Buzz there is not any kernel file in the cm7/device/htc/buzz folder. I know you have done your guide using the example of HTC vision, but I thought it was the same for all devices, however it doesn't seems to be the case. Do you how to modify the kernel for such device ?

Thanks in advance for your reply.
[myTouch 4G Android Development] viper2g1:
Hi, I love the guide its very detailed. Pictures are nice too. I need some help though I know its already dumbed down but can someone go a bit further and help explain a few things to me?

First: When I run this command "curl http://android.git.kernel.org/repo" android AOSP gets downloaded to bin/repo correct?

So if I just wanted to compile pure aosp with no cm7 parts I could with this?

Second (and most importantly): When I run this "repo init -u git://github.com/CyanogenMod/android.git -b gingerbread" I am syncing cm7 to the cm7 folder. That seems straight forward.

So I will have a pure aosp folder (repo) and a cm7 folder (cm7) correct?

If I want to use only select parts of cm7 for instance I want just the status bar widgets and battery percentage mods. How do i pull those from the cm7 folder into the aosp folder, then compile a aosp rom with 2 mods from cm7?

I understand from reading other threads that I would need the git pull commands and such. If I have both cm7 and repo folders saved on the computer why am I using git pull instead of just copy/paste the necessary parts?

I have honestly been searching how to do this for a week. I may have come across the answer but at my current skill level didn't realize what I was looking at. I am still very new and have linux running on a box through windows and am absolutely new to that too. Discovering how to learn all this is fun but it can also be frustrating.

Please help answer my basic question:

How do I build pure AOSP with only select parts from cm7?

THANK YOU!!

I will be compiling for the Nexus S (AT&T version) if that makes any difference, just here learning!
[myTouch 4G Android Development] yogi2010:
viper2g1: I am no expert here, but here is least a partial answer. as for the repo, that command will put the repo script in your usr/bin folder... and you can then use that tool to sync with whatever repository you wish to work with.

and as for AOSP vs. CM7, if you want to basically build pure AOSP, you could follow this tutorial all the way up to where you repo sync, but then instead of synching with CM7, sync with AOSP, as shown here:

http://source.android.com/source/downloading.html

as far as including a few aspects of CM7 into your build, I believe this can be tricky, and I don't know how to do it. keep researching and asking to find out if/how it can be done.

hope this helps...
[myTouch 4G Android Development] viper2g1:
Thanks for the quick reply! I really have been pm'ing lots of devs so far not many responses but I will continue trying to figure it out. If I can figure it out and get good at this I plan on making a guide for other people who wish to do this but are having trouble figuring it out.

I will try that link though, thanks!
[myTouch 4G Android Development] yogi2010:
no problem. it is relatively easy to download and compile AOSP, I have done it using these 2 guides. but when you want to customize and add and remove things, and port features and stuff, it gets trickier and harder to find help. good luck and keep us posted!
[myTouch 4G Android Development] yogi2010:
and by the way, you might consider joining the Google group dedicated to building AOSP.... I used to subscribe to it, and a lot of technical stuff like you are attempting is discussed there, and you can ask your questions.
[myTouch 4G Android Development] viper2g1:
Good idea, do you have a link perhaps?
[myTouch 4G Android Development] yogi2010:
I'm pretty sure it's this one:

http://groups.google.com/group/android-building/subscribe

you'll need to sign in to Google to view the link, and then you can choose to join the group.
[myTouch 4G Android Development] viper2g1:
Thanks for the link. All signed up and going to ask there, but if anyone can answer my questions here I would love that too! Here was my previous post:
[myTouch 4G Android Development] atoore:
Repo is a tool used to pull the source codes from either cm7 or asop. This guide covers the cm7 source code not the asop. There is couple nice guides out there that teaches how to compile pure asop build. Just use search and you will find it. As for the last question, I myself really dont know. If you find out or found any usefull guides please do let us know.
[myTouch 4G Android Development] adityadeva:
while trying the following step I got the following error:

also I could not enable the jaunty repositories for Java5

hope that we can do without Java5..... but not without repo

pls help
[myTouch 4G Android Development] yogi2010:
android.kernel.org was hacked recently and has been down for a few weeks now, so that must be the reason for that error.... unfortunately you will have to wait until it is up and running again. even those of us who have this all set up already are unable to sync with android or CM at the present time :(

and yeah, I have also been unable to get java5, but it doesn't seem to matter. perhaps it has been pulled due to being outdated or something.
[myTouch 4G Android Development] sykopompos:
Sorry that I let this stagnant. I been extra busy with a new job.

Any questions that still need to be answer if needed I will answer plus update this guide soon. As for unanswered questions. Java 5 is outdated and only needed for pure aosp for froyo and below. As for just copy and past needed out of repo.

Repo is just a git script, if you don't upload your changes your repo will fail to update your sync or will trash your changes. Only way around that is to modify the report script to your own git repositories or do a git debase.

Also unfortunately it isn't as simple as copy and pasting sections of code or whole files because there is dependencies on other code and trying that route will just make it not build or not work. You can look up changes to the git by using gitg which is in the intial download instructions
[myTouch 4G Android Development] yogi2010:
Happy to say that I had wiped my computer and went thru this guide again only about a week ago.... Everything seems to still work, and I was even able to synch with the early CM9 repo by changing '-b gingerbread' to '-b ics' :D
[myTouch 4G Android Development] lanternslight456:
Compile error

http://pastebin.com/yTHJPfpA

There is a pastebin of what happens when I:

make bacon -j`grep 'processor' /proc/cpuinfo | wc -l`

I've checked. In ~/cm7/out/target/ there is no common folder. The only folder in there is "product"

Other than this everything seemed to work. I did have to grab 'bison' and 'flex' along the way but this last step is the only one I saw that seemed to fail.

I tried running

make clean

again and then redid

make bacon -j`grep 'processor' /proc/cpuinfo | wc -l`

well it went better, it seemed, but then this is what happened, still with no build.

http://pastebin.com/EqJVGS9K

so i tried to move on to kernel and when i did

make xconfig

got

http://pastebin.com/9Ehvf6y5

thanks for the help.
[myTouch 4G Android Development] thederekjay:
I see your issue.. are you compiling from a 64bit machine and do you have the correct packages installed?

Ok if so...

on the cm7 source build try this

make clean && make clubber

repo sync

And then build...

and for the kernel. In order to use 'make xconfig' you need to install the correct packages. You need qt3 tools. You can either use synaptic and look for qt3-dev-tools and install it and all the dependencies

Or do this in terminal

sudo apt-get install qt3-dev-tools

And say yes

Now I am not home, I am out on the road for work .. so I will help u more when I get home. But it seems u have a long way to go. Good luck in ur venture.
[myTouch 4G Android Development] thederekjay:
Just a fyi. If you get cm to compile, it takes about 20 minutes depending on ur rig. Could take longer on an older box

And sorry meant to edit my previous post, not quote it... ooops
[myTouch 4G Android Development] lanternslight456:
Thanks for the quick answers. I am building from a 64bit machine. I may be missing packages. This is my first run through of this. I had to grab some things along the way. I'll Google around on break to try to find the packages I'll need. I had to go to work lol. You guys rock, thanks :-)

this has been a message from the dead pool.
[myTouch 4G Android Development] thederekjay:
When I get home I will make your life easy and give you the package list.... yeah your welcome

DARKSIDE
[myTouch 4G Android Development] lanternslight456:
it appears no one is home... lol

repo sync
Fetching projects: 94% (296/314) fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

I tried deleting out the whole CM7 folder and trying again and got the same thing.
[myTouch 4G Android Development] thederekjay:
open this

.repo/manifests/default.xml

and change git:// to https://

then

repo sync
[myTouch 4G Android Development] GJSmith3rd:
Me too. A lot of people are having problems.

~~ VM Micro Cruz PT701/T105 Tapatalk ~~
[myTouch 4G Android Development] thederekjay:
No.issues here

Sent from the .:: DARKSIDE ::.
[myTouch 4G Android Development] mattbradfo:
So you have to compile from a 64 bit computer? i guess ill have to wait tell mine comes in.
[myTouch 4G Android Development] ghost_og:
I just completed a cm7 build for my atrix on a 32-bit VM. Flashed it without any issues. Give it a go.
[myTouch 4G Android Development] thederekjay:
yes u can compile from a 32bit machine. ideally its best to compile from 64bit. In most cases the kernels are prebuilt, and thats really where u need the 64bit machine. There are additional steps you need to take in order to compile on a 32 bit machine. If anyone is attempting to do so, search around on how to set up your build environment. A quick search brought me to this... http://android.modaco.com/topic/331160-how-to-compile-android-in-a-debian-32bit-environment/

also how long does it take to compile cm in a vm? I am running a 2.8ghz core i3 on 4 cores and it takes 40 minutes...
[myTouch 4G Android Development] ghost_og:
Ahhh, is that why I can't compile just the kernel from source? That has been driving me crazy. I wasn't sure why I could build the ROM from source but not the kernel. It kept creating a zImage that was 1mb bigger than what it should have been.

Lol, well I'm on a really old Dell with an AMD Dual Core 1.9ghz with 3 gigs of ram. My Ubuntu 10.10 VM is allocated 1.5 gigs of ram. Took me just over 14 hours to compile my first build. :eek: But I was just doing it to see if I could.