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.

Requirements
  • 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
Quote:
  • 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:
    Code:
    Select Code
    sudo dpkg --add-architecture i386
    sudo apt-get update
  • Install Java:
Code:
Select Code
sudo apt-get install openjdk-6-jdk
  • Install Git Core:
Code:
Select Code
sudo apt-get install git-core
  • Download Packages for Ubuntu:
Quote:
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:
Code:
Select Code
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
  • Now you muse create file to for USB configurations:
Code:
Select Code
gedit /etc/udev/rules.d/51-android.rules
  • Insert the following code
Quote:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"

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

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

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

#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"

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

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

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

#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"

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

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

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

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

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

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

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

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

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

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

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

#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"

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

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

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

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

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

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

#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
  • Make sure to have permissions for that file.
Code:
Select Code
sudo chmod a+r /etc/udev/rules.d/51-android.rules
  • Install Repo
Quote:
mkdir -p ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Create The Working Folder
Quote:
mkdir cm
cd cm
Download Cyanogen Mod Source
  • I use CM-10.1 as booted example.
Quote:
repo init -u git://github.com/CyanogenMod/android.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.
Quote:
mkdir .repo/local_manifests
gedit .repo/local_manifests/roomservice.xml
Code:
Select Code
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
 
<remote name="gh"
fetch="git://github.com/" />
 
<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" />
     
 
</manifest>
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.
Quote:
. vendor/cm/get-prebuilts
make clean
make clobber
. build/envsetup.sh
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 cm-10.zip - [Click for QR Code] (403 Bytes, 5 views)