Default Help required porting MIUI ROM

I have been trying to PORT MIUI rom on base AOSP 4.4.2. I have tried 3 different MIUI roms (a v4 rom and 2 v5 roms from xperia J and samsung galaxy grand and samsung galaxy S II) but all went on vein. All 3 ports were stucked on the boot loop.
Can any one suggest me a possible suggestion? I will try one more time when i got time and share the logcat. In the mean time can anyone suggest me a good tutorial on porting things. I am too desperate to run MIUI rom on our XL.
Any help will be appreciated.