Maybe some of this will be some help.
This link is to a brochure for counselors, but I think it might get you started on the right track:
https://www.hmpadmin.com/portal/resources/docs/counselor/presentations/mhacounselorpresenglish.pdfTo qualify for HAMP your first mortgage payment plus taxes and insurance must be greater than 31% of your income. Obviously, you can't see if you qualify until you know what your income will be.
You also might be qualified for UP, which is temporary, if you are not working and it takes a while for your income stream to start.
You are not going to get principal forgiveness unless your farm is worth far less than your mortgage balance (including all the late fees, etc). If you are that far underwater (total mortgage balance more than 115% of farm value), then you can apply for principal forgiveness.
If not, then you go into HAMP. The first thing they will do is try to capitalize (add to principal balance) your outstanding taxes, insurance and interest. But they are supposed to knock off late payment fees. Then they cut your interest rate. Then they can extend the term. They continue down the list until they get your mortgage payment to 31% of your income.
It is important to understand that the servicer is only required to modify if the NPV test is positive. What that means is that the servicer is not required to modify your loan unless it would be more profitable to do so for the investor (whoever owns the loan) than foreclosing.
The NPV test will generally only be positive if you owe more on the property than the property can be sold for net (after deducting costs). Therefore, if you have equity in the property, your best option is to go for the low cost refinance, but to do so you may have to get back current by making a big payment, which you may or may not be able to do.
Who is your servicer, and do you know who owns your mortgage?
Best of luck in court.