jaehwa

jaehwa.egloos.com

포토로그



NexusOne 에 CyanogenMod 설치하기 안드로이드 PDK


1. Nexus One 루팅

2. CyanogenMod 에서 넥서스 원 관련 소스 다운로드 및 빌드
(참고 : http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Passion)

2.1 전체 소스 다운로드

Setup Directories

mkdir -p ~/bin
mkdir -p ~/android/system

Install Repo

curl http://android.git.kernel.org/repo > ~/bin/repo
chmod a+x ~/bin/repo
You may need to reboot for the file to be executable and for ~/bin to show up in echo $PATH
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b froyo

CM Source

cd ~/android/system/
repo sync
Note: This may take over 90 minutes if this is your first time to sync.

단말 연결하고 아래 스크립트로 복사해야 합니다. 아래 명령어로 할 수 있습니다.
이전에 준비해야할 사항 (Nexsus One 단말 준비 Froyo 설치 버전에서 아래 스크립트로 필요 데이터 뽑아냅니다. 단 단말은 루팅되어 있어야 합니다.)

Proprietary Files

This only needs done the first time you build. If you have already done these steps, you may skip this box.

You will need to have a passion with a working rooted ROM and working ADB. This script pulls the proprietary files from your phone. Connect your phone to you computer and insure that ADB is working properly.

cd ~/android/system/device/htc/passion/
./extract-files.sh

Download the RomManager, which is needed by the build:

cd ~/android/system/vendor/cyanogen/
./get-rommanager
./get-google-files -v HDPI

Configure Build

This will set up your build environment to build specifically for the passion.

cd ~/android/system/
cp ./vendor/cyanogen/products/cyanogen_passion.mk ./buildspec.mk
. build/envsetup.sh
lunch cyanogen_passion-eng

Compile

Next, we will build the actual ROM. You have two choices, described below.

Option 1: Generate Update.zip

This option will create a .zip file that can be flashed from recovery. You will then need to run squisher to compress the .zip so that it will fit on your phone.

make -j`grep 'processor' /proc/cpuinfo | wc -l` CYANOGEN_WITH_GOOGLE=true otapackage
If you prefer a 'pure' build - or you have issues with the build - remove CYANOGEN_WITH_GOOGLE=true
./vendor/cyanogen/tools/squisher

Your shiny new .zip will be located at ~/android/system/out/target/product/passion/update.cm-6xxxxx-signed.zip.

Option 2: (Advanced) Generate Individual .IMG Files

For testing purposes

This will create individual .img files that will need to be flashed from fastboot.

make -j`grep 'processor' /proc/cpuinfo | wc -l` CYANOGEN_WITH_GOOGLE=true
If you prefer a 'pure' build - or you have issues with the build - remove CYANOGEN_WITH_GOOGLE=true

To flash the .img files, boot your phone into fastboot by holding the camera button while the phone boots, then run:

cd ~/android/system/out/target/product/passion
fastboot flashall

Optionally, install the pre-built user data:

fastboot flash userdata userdata.img







덧글

  • maxi 2010/11/06 17:31 # 답글

    2.21상태에서 루팅할려고 하는데 어떤 툴을 써야 하나요? 기존 툴로는 지원이 안된다길래..
    아몰레드 액정 버전입니다.
댓글 입력 영역



애드센스 광고

애드센스 광고(링크단위)