Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Guide] Compile Cyanogen Mod For Samsung Ancora

OP haky 86

29th June 2014, 06:44 PM   |  #1  
haky 86's Avatar
OP Senior Member
Flag San Vito Chietino
Thanks Meter: 251
 
233 posts
Join Date:Joined: Oct 2012
Donate to Me
More
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:
    sudo dpkg --add-architecture i386
    sudo apt-get update
  • Install Java:
Code:
sudo apt-get install openjdk-6-jdk
  • Install Git Core:
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:
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:
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:
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:
<?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:	138
Size:	32.9 KB
ID:	2824000  
Attached Files
File Type: zip cm-10.zip - [Click for QR Code] (403 Bytes, 37 views)
Last edited by haky 86; 30th June 2014 at 08:15 PM.
The Following 3 Users Say Thank You to haky 86 For This Useful Post: [ View ]
7th September 2014, 12:48 PM   |  #2  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Sep 2014
Confuse step
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

Dear

i Confuse of that step, where is the root of Cyanogen Mod, you never said that before. i was repo sync on cm directory, but no one file on there.

i wanna to patch this on the source seek-for-android/wiki/BuildingTheSystem. i really help your help.

I really appreciate your help for it.

thanks for advanced

---------- Post added at 10:48 AM ---------- Previous post was at 10:42 AM ----------

sir can you explain final step of this guide, that's very make me confuse.

i really appreciate your help, thanks for advanced.
7th September 2014, 02:08 PM   |  #3  
haky 86's Avatar
OP Senior Member
Flag San Vito Chietino
Thanks Meter: 251
 
233 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by sparcoima

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

Dear

i Confuse of that step, where is the root of Cyanogen Mod, you never said that before. i was repo sync on cm directory, but no one file on there.

i wanna to patch this on the source seek-for-android/wiki/BuildingTheSystem. i really help your help.

I really appreciate your help for it.

thanks for advanced

---------- Post added at 10:48 AM ---------- Previous post was at 10:42 AM ----------

sir can you explain final step of this guide, that's very make me confuse.

i really appreciate your help, thanks for advanced.

ok you have to download cm-10.1.zip archive from attacched files then extract the patch into the root of your source then type chmod a+x cm-10.1 then run by ./cm-10.1 will repo sync your source and fix CameraHAL error during compilation.

once the commits are installed press enter and build your rom, many developers use my guide and work successfully is for cyanogen mod but i guess will work for other roms. if have any problem pm me..thanx
Post Reply Subscribe to Thread

Tags
android, cyanogen mod, guide, port, source
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes