aduino ide can load firmware, but avrdude cannot

You should probably use

-cstk500v2 or -cwiring

with the Arduino Mega 2560