Starting with cyanogen mod

Source: Internet
Author: User

Originally postedIwantandroid from xda

 

Starting with cyanogen mod for Nexus One

This is only for system files, the instructions for Kernel making will come as soon as I get some time.

Credits (these people helped me build form source the first time and created some awesome wiki at wiki.cyanogenmod.com)
Cyanogen
Maxisma
Chris soyars
Kmobs
Thedudesandroid
Rikupw
Pershoot
Bcrook
And more if I have missed just tell me

If u want to learn building from source, cyanogenmod is the best place to start. what u need is Ubuntu/Debian, I wocould recommend start with Ubuntu as I find it the best to start with it. U shoshould have atleast 20 GB of storage in Ubuntu. U can use a virtual machine or full OS anything which suits U.

To start with Nexus One
Making ur computer ready to build
1. sudo aptitude install Git-core GnuPG sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
2. if u have 64 bit version add this (only for 64bit)
Sudo aptitude install ia32-libs lib32z1-dev lib32ncurses5-dev gcc-multilib g ++-multilib

3. Cd ~
4. mkdir Bin
5. CD Bin
6. Echo $ path

Here I wowould recommend editing ur. baschrc in your home directory. It is a hidden file so u have to edit it in terminal using command gedit. baschrc
And adding a line to the last line export Path = $ path :~ /Bin

Now u have to setup Repo
1. Curl http://android.git.kernel.org/repo> ~ /Bin/Repo
2. chmod + x ~ /Bin/Repo

This is for obtaining the source
1. Open Terminal
2. Cd ~
3. mkdir cm-build
4. Repo init-u git: // github.com/cyanogen/android.git-B eclair
5. Repo sync
Wait for the repo to sync as it is really huge around 2.5 GB

After the sync has completed u have to create the environment
1. CD cm-build
2. Build/envsetup. Sh

Builiding ADB-do it only if u havent already built it. Most probably U havent

Make-J3 ADB

Now add the path of ADB directory of ADB like u did for bin. ADB will be in the out folder in folder cm-build

Now configure your build
Select the build u want to make, list using this command
1. Sed-n-e "s/^ add_lunch_combo // GP" vendor/*/vendorsetup. Sh
2. Lunch cyanogen_passion-eng.

Get properitery files from ur devices-Dont skip this step. u need to have ADB setup. and if u are unable to get the files ur build will not complete. I will upload a folder with properitery files today with instructions how to place them so if u r unable to get them u can use those files

1. Cd ~ /Cm-build/vendor/Google/passion
2 ../extract-files.sh

Now the final step building

Make-J3

The-J flag specifies how many threads the compiler shocould use. Rule is # of processors + 1

Its gonna take time for the first time u build so just relax somewhere, go eating, watch movies, use Google Video

All the files will be in

~ /Android-CM/out/target/product/passion

U can use fastboot to flash those files and test the build

If u have any problems while building just let me know with the error where it as stopped. using the command make-clean solves most issues but it will make u build from scratch again thus building will take the same time as it took while building the first time as it clears all the prebuilt files

If u find anything to correct in this Wiki let me know I will do it

More to come
1. Kernel Compiling
2. Making update.zip

__________________
Nexus One-unlocked bootloader
CM-Latest
1 GB apps to SD (780 MB used)
Over 400 apps
16 GB Class 6 micro SD

HTC magic 32a-black
16 GB Class 6 micro SD
Rom-cyanogen mod + Darkstar theme
400 + apps (now on PC)
1 click Install Debian, lxde, gp2x

Follow me on Twitter @ charansingh

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.