Help needed with ATMega644P bootloader

I have never used the bootloader but I have used the mighty1284 core with a 644 before

you would have to modify the boards.txt to reflect a 644 (name and its 64k of program space instead of 128k) but outside of program memory and ram, they are the same chip