I have edited the preferences.txt and boards.txt files as indicated. I am using the USBasp from ProtoStack.
I have selected USBasp as the programmer from the IDE.
Whenever I try to upload, I get an error that Serial "" cannot be found.
I tried uploading a sketch with no bootloader plugged in to see what happens.
Under Tools:Board, I selected Mega2560
Under Tools:Programmer, I selected USBasp
I wrote a minimal sketch:
void setup(){}
void loop(){}
I selected
File: Upload Using Programmer
and got this sequence back, none of which refers to Serial anything. I am wondering if you are selecting the right thing to program the sketch?