Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,661 Members 45,110 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][Compile NeatKernel]Setup Ubuntu 14.04 LTS Trusty Tahr to Compile Kernels

Tip us?
 
mohammad.afaneh
Old
(Last edited by mohammad.afaneh; 6th June 2014 at 02:03 PM.)
#1  
Senior Member - OP
Thanks Meter 717
Posts: 479
Join Date: Jul 2012
Location: amman
Tutorial [GUIDE][Compile NeatKernel]Setup Ubuntu 14.04 LTS Trusty Tahr to Compile Kernels

Hi guys and future devs here you will find a very helpful guide on how to setup the android development so that you can basically do anything you want!

In this guide i'll be using Ubuntu 14.04 64 bit. Do not use the 32 Bit version. but probably this will also work on 12.04-13.10 and future releases!

How To Compile NeatKernel for captivate and galaxy s family see second post

INSTALL UBUNTU

The first thing you'll need to do is obviously the ubuntu installation, unfortunately i won't cover this part of the guide cause i think that everyone who is looking at this guide know how to install an OS on a Desktop (hope so)

Download

SETUP ANDROID DEVELOPMENT ENVIRONMENT

JDK
Quote:
Installing the JDK is pretty tricky and stressful every time
First, download the JDK 6, which you can download here. Download the .bin file! (in this case my JDK has been downloaded in the ~/Download folder and my file is named jdk-6u45-linux-x64.bin)
Open up your terminal and type
Code:

Code:
 
    $ sudo mkdir /usr/lib/jvm
    $ cd ~/Downloads/
    $ chmod +x jdk-6u45-linux-x64.bin
    $ ./jdk-6u45-linux-x64.bin
    $ sudo mv jdk1.6.0_45 /usr/lib/jvm/
    $ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 1
    $ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_45/bin/java 1
    $ sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_45/bin/jar 1
    $ sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_45/bin/javaws 1
    $ java -version
Ok, if you did everything fine you should now have the JDK installed correctly
Main Build Tools
Quote:
Back to a fresh terminal prompt. Install the main build tools with this command:

Code:
Code:
 sudo apt-get install git gnupg ccache flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev lib32readline-gplv2-dev libncurses5-dev bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev squashfs-tools pngcrush schedtool dpkg-dev lzop lib32z1 lib32ncurses5 lib32bz2-1.0 lib32asound2
When those are done installing, run the next line in your terminal window:

Code:
Code:
 sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
All done
Samsung galaxy captivat stock cm11 powered by NeatKernel.
Samsung galaxy S3 SCH-I535 stock 4.4.2 rooted + safestrap v3.75.

.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
My work:
[KERNEL][4.1+] NeatKernel v1.09 [Dual recovery] captivate vibrant galaxys
[Stock 2.3.5][KK4] NeatRom Lite v1.0 Captivate[Arabic,Farsi support]


Thanks button doesn't bite
The Following 7 Users Say Thank You to mohammad.afaneh For This Useful Post: [ Click to Expand ]
 
mohammad.afaneh
Old
(Last edited by mohammad.afaneh; 23rd July 2014 at 05:29 PM.)
#2  
Senior Member - OP
Thanks Meter 717
Posts: 479
Join Date: Jul 2012
Location: amman
How to build NeatKernel
Basic knowledge of Linux and compiling is required to be able to build a kernel. You need Linux machine with git and linaro toolchain installed.

Setup build environment
Quote:
In your home directory (~/) create the directories:

Open a terminal
Code:
     $ mkdir neat
     $ cd neat
Building a directory structure that will help keep us organized. The "mkdir" command creates a directory, and the "cd" command moves you into that directory.
The directory structure is complete. Now, you are ready to clone kernel code.

Setting up repositories

Quote:
Clone the main kernel repository, run this line in your terminal window:
Code:
git clone -b master git://github.com/mohammad92/NeatKernel_captivate
go to /neat/NeatKernel_captivate
delete folder initramfs
extract initramfs.tar.xz
otherwise kernel will not boot.


Toolchains
Quote:
Christopher83 Linaro GCC 4.9.1-2014.05 Toolchains thread
direct download link
extract in home/neat

Building
Quote:
Open a terminal and type:

Code:
    $ cd ~/neat/NeatKernel_captivate
    $ ./menu
Code:
Neatkernel auto-maker menu will appear
--------------------------------------------------------
  _    _            __   _  __                      _   
 | \  | | ___ _____|  |_| |/ /___  _ __ _ ___  ___ | |  
 |  \ ' |/ _ \ ___ |  __| ' // _ \| '__| '_  \/ _ \| |  
 | | \  |  __/' __ |  | | . \  __/| |  | | | |  __/| |_ 
 |_|  \_|\___ |____|\___|_|\_\____|_|  |_| |_|\___ |___|
--------------------------------------------------------
 Neatkernel auto-maker menu Version 0.4
--------------------------------------------------------
 Which device you would like to build?
 " 1. captivatemtd"           #type 1 to compile captivate kernel.
 " 2. vibrantmtd"             #type 2 to compile vibrant kernel.
 " 3. galaxysmtd"             #type 3 to compile galaxys kernel.
 " 4. galaxysbmtd"            #type 4 to compile galaxysb kernel.
 " 5. compile all"            #type 5 to compile compile all kernels. will find compiled kernels in home/neat/out
--------------------------------------------------------
 "note: use this after kernel compiled"
 " n. copy neatkernel.zip to parent directory"    #type n to copy neatkernel.zip to home/neat/out.
 " t. copy neatkernel.tar to parent directory"    #type t to copy neatkernel.tar to home/neat/out.
--------------------------------------------------------
 " c. clean script"           #type c will clean kernel directory.
 " r. Restart"                #type r will restart Neatkernel auto-maker menu.
 " x. Exit"                   #type x will exit Neatkernel auto-maker menu.
--------------------------------------------------------
Samsung galaxy captivat stock cm11 powered by NeatKernel.
Samsung galaxy S3 SCH-I535 stock 4.4.2 rooted + safestrap v3.75.

.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
My work:
[KERNEL][4.1+] NeatKernel v1.09 [Dual recovery] captivate vibrant galaxys
[Stock 2.3.5][KK4] NeatRom Lite v1.0 Captivate[Arabic,Farsi support]


Thanks button doesn't bite
The Following 8 Users Say Thank You to mohammad.afaneh For This Useful Post: [ Click to Expand ]
 
mohammad.afaneh
Old
(Last edited by mohammad.afaneh; 23rd May 2014 at 12:10 PM.)
#3  
Senior Member - OP
Thanks Meter 717
Posts: 479
Join Date: Jul 2012
Location: amman
Thanks to
sylentprofet for his guide
matt95 for his guide
neobuddy89 for source
me
Samsung galaxy captivat stock cm11 powered by NeatKernel.
Samsung galaxy S3 SCH-I535 stock 4.4.2 rooted + safestrap v3.75.

.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
My work:
[KERNEL][4.1+] NeatKernel v1.09 [Dual recovery] captivate vibrant galaxys
[Stock 2.3.5][KK4] NeatRom Lite v1.0 Captivate[Arabic,Farsi support]


Thanks button doesn't bite
The Following User Says Thank You to mohammad.afaneh For This Useful Post: [ Click to Expand ]
 
Nihar
Old
#4  
Senior Member
Thanks Meter 540
Posts: 487
Join Date: Sep 2012
Location: Pune

 
DONATE TO ME
Thanks bro.......
The Following User Says Thank You to Nihar For This Useful Post: [ Click to Expand ]
 
mohammad.afaneh
Old
#5  
Senior Member - OP
Thanks Meter 717
Posts: 479
Join Date: Jul 2012
Location: amman
Now its NOOP friendly.
Samsung galaxy captivat stock cm11 powered by NeatKernel.
Samsung galaxy S3 SCH-I535 stock 4.4.2 rooted + safestrap v3.75.

.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
My work:
[KERNEL][4.1+] NeatKernel v1.09 [Dual recovery] captivate vibrant galaxys
[Stock 2.3.5][KK4] NeatRom Lite v1.0 Captivate[Arabic,Farsi support]


Thanks button doesn't bite
The Following 2 Users Say Thank You to mohammad.afaneh For This Useful Post: [ Click to Expand ]
 
Drakh
Old
#6  
Drakh's Avatar
Member
Thanks Meter 5
Posts: 77
Join Date: Jan 2007
Location: Arequipa
Thank you for your support to this platform.
Current: Samsung Captivate.
Former: AT&T Pure (lost)
Former: O2 XDA Orbit 2 (stolen)
Former: Cingular 3125 with Erofich WM6.1 Std. (dead)
Former: MPX220 with WM2003SE (dead)

"Use what talents you possess; the woods would be very silent if no birds sang except those that sang best."
The Following 2 Users Say Thank You to Drakh For This Useful Post: [ Click to Expand ]
 
Monfro
Old
#7  
Monfro's Avatar
Senior Member
Thanks Meter 864
Posts: 1,031
Join Date: Jul 2009
Location: Mantova (Italy)
Quote:
Originally Posted by mohammad.afaneh View Post
Now its NOOP friendly.
Thank You very much for all the work you are doing for Captivate and Aries platform.

Without NeatKernel KitKat would not have been so smooth for this devices.
HTC One
Nexus 7
Samsung Captivate
The Following 2 Users Say Thank You to Monfro For This Useful Post: [ Click to Expand ]
 
mohammad.afaneh
Old
#8  
Senior Member - OP
Thanks Meter 717
Posts: 479
Join Date: Jul 2012
Location: amman
Quote:
Originally Posted by Drakh View Post
Thank you for your support to this platform.
Quote:
Originally Posted by Monfro View Post
Thank You very much for all the work you are doing for Captivate and Aries platform.

Without NeatKernel KitKat would not have been so smooth for this devices.
You are welcome.
Samsung galaxy captivat stock cm11 powered by NeatKernel.
Samsung galaxy S3 SCH-I535 stock 4.4.2 rooted + safestrap v3.75.

.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
My work:
[KERNEL][4.1+] NeatKernel v1.09 [Dual recovery] captivate vibrant galaxys
[Stock 2.3.5][KK4] NeatRom Lite v1.0 Captivate[Arabic,Farsi support]


Thanks button doesn't bite

The Following User Says Thank You to mohammad.afaneh For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes