Do you have the original firmware? Or at least the original Configuration.h file? Can you go to the MakerFarm site and get the 'correct' firmware because if you can, that is going to be much easier than trying to get a fresh copy of Marlin tuned for your printer.