This is a guide for developers wishing to build & test Cyanogenmod 7.1 port on their Pad
NON DEVELOPERS PLEASE IGNORE!!
Initialize environment from here:
Make directories:
mkdir -p ~/bin
mkdir -p ~/android/system
Install the Repository
Enter the following to download make executable the "repo" binary:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
- Downloading the source:
Now enter the following to initialize the repository:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync
This may take some time depending on your net connection
Add Device Repo:
After download source you need to download the olive pad device config
mkdir device/fih/fm6
cd device/fih/fm6
git clone https://github.com/mb-14/android_device_fih_fm6.git
Download this zip file from here:
http://dl.dropbox.com/u/21654931/fm6.zip
Extract the contents of the zip file.It contains one folder "fm6"
and a file "cyanogen_fm6.mk"
Copy the folder "fm6" to /vendor/cyanogen/overlay/
Copy the file "cyanogen_fm6.mk" to /vendor/cyanogen/products/
Open /vendor/cyanogen/products/AndroidProducts.mk and add this to the list:
$(LOCAL_DIR)/cyanogen_fm6.mk \
Open /vendor/cyanogen/vendorsetup.sh and add this to the list:
add_lunch_combo cyanogen_fm6-eng
-
Copy proprietary files:
NOTE: This only needs done the first time you build. If you have already done these steps, you may skip to Download RomManager.
Connect the device to the computer and ensure that ADB is working properly.
cd ~/android/system/device/fih/fm6/
./extract-files.sh
NOTE: If some hardware isn't working, like camcorder or FM radio, you will need to find the updated prop blobs.
Download RomManager:
NOTE: This only needs to be done when an update to RomManager is released. If you are-up-to date, you may skip to Building ROM.
Download RomManager which is needed by the build:
~/android/system/vendor/cyanogen/get-rommanager
Building ROM:
Run this command:
cd ~/android/system
source ./build/envsetup.sh
- lunch cyanogen_fm6-eng
make clobber(cleans out directory optional)
make bacon Install:
Copy your .zip file from ~/android/system/out/target/product/fm6/update.cm-XXXXX-signed.zip to the root of the SD card and flash using CWM
-
Hey I keep getting errors here, the repo sync command fails with remote end hung up.
ReplyDeleteTried numerous times, when I had luck with no hangups, it wouldn't build because of some files lacking in the source tree (motorola related).
Am I missing something here, or is that tree I pull using your guide a developer branch?
I cannot do git clone, it says:
ReplyDeleteCloning into mb-14...
fatal: http://github.com/mb-14/info/refs not found: did you run git update-server-info on the server?
Sorry, it was my mistake.
Delete