Download any custom rom that support Init.D e.g. http://bbs.ydss.cn/forum.php?mod=viewthread&tid=459132&extra=page=1&filter=typeid&typeid=1993&typeid=1993 Extract boot.img. Create a .zip file with structure.
You can use updater script to write new kernel or ADB
My updater script...