I'm sorry for your trouble but your on a path to destruction, so I'd like to turn that around.
First, never install just generic stuff.
Everything in the root world is device specific.
Begin by getting the proper recovery on your device.
Install only components (roms, kernels, firmware) specific to your model from known sources with testimonials of success.
And don't expect that you can fix your present situation by just compiling some manufacturer source code you've found. It's much, much harder to do that than you may think.
Not trying to give you a hard time, just trying to save you further bad ones.