first of all i congratulate you for breastfeeding and wanting to continue until a year old! :D way to go moM!
second, i HIGHLY recommend you find your local la leche league. they are FANTASTIC for supporting and helping nursing mothers! they will be able to help you with this issue, likely from moms who experienced something similar to what you are experiencing! and they can even support you if you make it to a year old, and you still want to nurse! my son just weaned himself at 19 months and 3 weeks :D its beautiful when they wean themselves... :D and i feel so close to my son because i allowed him to grow up and grow out of such an important part of life all on his own! :D
second. you baby might be teething. they tend to get a little screwed up when they teeth, and feeding and sleeping both are affected (as well as mood, etc.) since he is doing it on both sides, i would rule out an ear infection, unless it is a double ear infection... which you would have many other symptoms such as crying and etc.
its HIGHLY unlikely that he would want to stop nursing at this point, and putting him on formula will most likely give him constipation (becuase thats what formula does) besides formula can be allergy-causing to some babies and you might spend more money and frustration finding a formula that doesnt caust a reaction would be more trouble than its worth.
www.llli.org is the la leche league site. if there isnt one in your town specifically, then try a neighboring town. the meetings are just once a month, so you can sure make an exception to drive to a nearby town once a month right? otherwise, just emailing the representative in your area might give you the answers you are looking for.
a book that i HIGHLY recommend is the breastfeeding book by william and martha sears. www.askdrsears.com is the site for that dr, but you can find them on places like amazon for a low price.
or check out your local library. :D
good luck, and dont give up hope that you can continue breastfeeding. this is really a minor issue... babies will eat when they are hungry, so dont worry too much.