Thumbs up [Guide] Compile Cyanogen Mod For Samsung Ancora

I don't know if are there any other guide to build Cyanogen Mod for Samsung Galaxy W GT-i8150 Wonder on this Forum.
But i would like to share my experience to make your life more simple.

  • Ubuntu (I think any version is OK).
  • Some packages for Ubuntu.
  • Java.
  • The source for Cyanogen Mod.
  • Repos for our phone.
  • An open mind.
  • Good internet connection to download everythings.

Download Ubuntu
  • Click here to go in Ubuntu website.
  • Choose 64 bit version.
  • I suggest to install it as host system, not on a virtual machine.
Download Required Tools and Packages
  • Enable i386 Architecture:
    Select Code
    sudo dpkg --add-architecture i386
    sudo apt-get update
  • Install Java:
Select Code
sudo apt-get install openjdk-6-jdk
  • Install Git Core:
Select Code
sudo apt-get install git-core
  • Download Packages for Ubuntu:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev
  • Then you have to apply this one too:
Select Code
sudo ln -s /usr/lib/i386-linux-gnu/mesa/ /usr/lib/i386-linux-gnu/
  • Now you muse create file to for USB configurations:
Select Code
gedit /etc/udev/rules.d/51-android.rules
  • Insert the following code
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"

#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"

#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"

#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
  • Make sure to have permissions for that file.
Select Code
sudo chmod a+r /etc/udev/rules.d/51-android.rules
  • Install Repo
mkdir -p ~/bin
curl > ~/bin/repo
chmod a+x ~/bin/repo
Create The Working Folder
mkdir cm
cd cm
Download Cyanogen Mod Source
  • I use CM-10.1 as booted example.
repo init -u git:// -b cm-10.1
repo sync
Download Phone Repos
  • After downloading Cyanogen Mod source, you have to enable your device, so do in this way.
mkdir .repo/local_manifests
gedit .repo/local_manifests/roomservice.xml
Select Code
<?xml version="1.0" encoding="UTF-8"?>
<remote name="gh"
fetch="git://" />
<project path="device/samsung/ancora" name="arco/android_device_samsung_ancora" remote="gh" revision="cm-10.1_ion" />
<project path="kernel/samsung/msm7x30-common" name="arco/samsung-kernel-msm7x30" remote="gh" revision="cm-10.1_ion" />
<project path="vendor/samsung/ancora" name="arco/android_vendor_samsung_ancora" remote="gh" revision="cm-10.1_ion" />
<project path="hardware/qcom/media-caf" name="arco/android_hardware_qcom_media-caf" remote="gh" revision="cm-10.1" />
<project path="hardware/qcom/display-caf" name="arco/android_hardware_qcom_display-caf" remote="gh" revision="cm-10.1" />
<project path="hardware/qcom/audio-caf" name="arco/android_hardware_qcom_audio-caf" remote="gh" revision="cm-10.1" />
Download the repos by repo sync
Apply Patch For Camera
  • Download the patch that i attach in the thread.
  • Copy it into the root of Cynogen Mod
  • chmod a+x cm-10.1
  • ./cm-10.1
  • Press enter after finish.
OK, Let's Compile The Rom
  • After we configure computer, system and repos, it's time for compilation, so follow this one.
. vendor/cm/get-prebuilts
make clean
make clobber
. build/
lunch (select the number of ancora)
brunch ancora otapackage
Now sit and watch a movie on YouTube or TV while this compile our rom, work good, you should got something like this one
Special thank to who help me and spend time to got CM booted without problems
Original article from here.
Attached Thumbnails
Click image for larger version

Name:	Galaxy W.jpg
Views:	62
Size:	32.9 KB
ID:	2824000  
Attached Files
File Type: zip - [Click for QR Code] (403 Bytes, 5 views)