Pages

Saturday, October 20, 2012

Building Android Cyanogenmod 10 for the Nook Color/encore

UPDATE: latest local_manifest.

A crew at xda have been working on CM10 for the Nook color, and I finally got around to building a copy for myself. I'm documenting my steps here.

I launch a c1.xlarge (High CPU) Amazon AWS spot instance, Ubuntu Server 12.04.1 LTS, with a bid of $0.20. The process below takes just over two hours, and the market price for a c1.xlarge is $0.07, so the total cost to build is about $0.21. I bid high to keep the box from being terminated.

You should be able to cut and paste the following into a terminal.

http://pastebin.com/TZwXbpXM

screen -S admin
sudo mkdir /mnt/android
sudo chown ubuntu /mnt/android
ln -s /mnt/android ~/
mkdir ~/android/system
mkdir ~/bin
export PATH=$PATH:~/bin
sudo apt-get -y update
sudo apt-get -y install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool libxml2-utils libxslt1.1 g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev xsltproc openjdk-6-jdk

git config --global user.email 'john@example.com'
git config --global user.name 'Android Build'
git config --global color.ui true

cd ~/android/system/
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
repo init -u git://github.com/CyanogenMod/android.git -b jellybean

curl 'http://pastebin.com/raw.php?i=vZFKdc8m' > .repo/local_manifest.xml
repo sync -j8
cd ~/android/system/device/bn/encore/
./setup-makefiles.sh
cd ~/android/system/vendor/cm/
./get-prebuilts
cd ~/android/system/
. build/envsetup.sh
brunch encore


All Done! Just copy the /mnt/android/system/out/target/product/encore/cm-10-*.zip file somewhere.

Amazing work by fattire, @krylon360, eyeballer, keyodi, sluo et al.

2 comments:

  1. Hey, cool! I have never worked with those cloud instances before, might buy some time just to see it in action.

    ReplyDelete
  2. Hey, cool! I have never worked with those cloud instances before, might buy some time just to see it in action.

    ReplyDelete