possible error in optiboot.c ... ???

for chips like the 1284 and 2560, avrdude sends 0x01,0x00 as the page length value

Oh! That's annoying.
https://code.google.com/p/optiboot/issues/detail?id=104