Originally Posted by gassan hirra
Basically I want to make a way to root the Xperia(s) devices which is running 4.3
And can u give me a tutorial link please ? Thanks
You mean you want to make a way for rooting Xperia devices with a locked bootloader? Or unlocked bootloader?
About incorporating a recovery in your kernel, I have a general idea, but I wouldn't know about that (google it, I guess). About decompiling/recompiling a kernel, you could also probably find a better tutorial by searching through the forums or google, but if you have a linux environment (ubuntu, in my case) you can do this:
1.- Open a terminal and run (unless you already have 7zip installed):
sudo apt-get install p7zip-full
2.- Use this
to decompile your kernel. You can also unpack/repack the ramdisk, which is where the recovery is held.
What I would do (and already did, just for kicks) is copy how another stock kernel with recovery is structured, only I used the recovery from an FXP kernel, and the RPM.bin and cmdline.txt from the previosly mentioned stock kernel to recompile.
I'm on KitKat right now, so I haven't tested it actually will boot, but it compiled fine. Maybe this helps you in whatever you're trying to do. As a reminder, this would only work on an unlocked bootloader.
MB525 - Bayer Camera - Slim-mb526-4.4.2.beta.2.4-UNOFFICIAL-20140120-1830
Sony Xperia TX LT29i - CARBON-KK-UNOFFICIAL_Hayabusa_build7