It would be very useful for boards.txt to include definitions for ATmega644 and ATmega644p; patch attached.
Bug watches keep track of this bug in other bug trackers.