Things needed :
Ubuntu on VM or Main Os
Android Phone/Tab :P, In this case XL unlocked
Brain (Be sure you get it).
I suggest to get Hells-Kitchen Ubuntu distro it has all the basic things installed for compiling kernels/modding/and ROMS.
Distro Link : http://forum.xda-developers.com/show....php?t=2152398
> Then proceed further by getting the opensource archives from Sony developer website.
> I suggest you to download within Ubuntu distro for ease.
> Extract it.
> Now we need to setup and fix some sh*ts before we can rven think of compiling.
> To start of setup the toolchains, In my case I used Linaro you can use the ones posted here
> Then setup the toolchains in your Makefile.
> Now the real work begins we need to fix the source before compilation.
>> Commits regarding the fixes :
https://github.com/varunchitre15/and...6ba711984d9343 - CCI Klog Fix
https://github.com/varunchitre15/and...6ba711984d9343 - Some more
https://github.com/varunchitre15/and...fa4d65a2c2de8c - Increase Frame warn limit
https://github.com/varunchitre15/and...6a88982c29f135 - Fix Frame Buffer
> After applying all the fixes : Now you can start with compiling the kernel.
> Go to your extracted ARCHIVE folder.
> Then start by initiating these commands.
> ARCH=arm make sa77_defconfig -Makes Config files
> ARCH=arm make menuconfig -Opens menus to edit configurations(In laymans language)
> ARCH=arm make -jX -Starts compiling, J x stands for no. of jobs for my PC i use -j3 and for first time use -j1 it lessens the scroll time if any major bug occurs.
> After you get the zimage , Now we can make boot.img.
> Get the ramdisk from stock or any other kernel (Be sure you give credits to the kernel author if you use it).
> Get Anikets Packing tool : https://github.com/aniketroxx/Aniket_Packer
> Pack your kernel get all the modules search for .ko files.
> Flash you kernel with Fastboot mode.
> Flash your modules or replace them manually and set permissions accordingly.
> You are done with your kernel if all goes well Xperia Should boot up :P
I may not have covered all topic and would update guide soon with more topics covered.
"If your kernel doesnt boot dont PM/spam me Instead post your problems here in this thread."
@varun.chitre15 for Commits.
@h311sdr0id for his awesome Distro.
@Christopher83 for His GCC Toolchains Thread
Sorry if I forgot to credit anybody, who's work is used in my thread, PM me I will add it.