1. Nexus One 루팅
2. CyanogenMod 에서 넥서스 원 관련 소스 다운로드 및 빌드
(참고 : http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Passion)
2.1 전체 소스 다운로드
Setup Directories
mkdir -p ~/binmkdir -p ~/android/system
Install Repo
curl http://android.git.kernel.org/repo > ~/bin/repochmod 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.shlunch 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/passionfastboot flashall
Optionally, install the pre-built user data:
fastboot flash userdata userdata.img

덧글
아몰레드 액정 버전입니다.