First of all I believe this is a development thread, and It should probably be moved there but since I am new I was not allowed to post there.
Now I recently downloaded the entire source tree from aosp and I compiled version 4.3 JB. It went smooth and it made the appropriate system.img image. I wanted to port this to Xperia E Single Sim. I begin by first downloading CyanogenMod nanhu SS zip file and extracted the boot.img file from it (Since that's the kernel) I then wrote an extremely simple updater-script which basically flashed the system.img onto the system partition. zipped it up then ran TWRP and flashed the zip file. It asked me whether I wanted to install root and I said yes, after it installed root, I rebooted the phone and it is stuck at bootloop. I am stuck here as I do not know how to proceed to try and port this pure aosp rom to it. I hope you can shed any light on what I am supposed to do.