Support for ATmega406 (8-bit, 1MHz, 40K flash)

Hmm, interesting. It could not be a problem but just after brief look.
I am recommending to use the optiboot bootloader and to focus to minimal setup ATmega on the breadboard to start with HW.