Arduino: Restore Arduino UNO bootloader using avr dragon
From Luky-Wiki
If you "play" a lot with Arduino UNO then you may end up with locked up device or broken boot loader. There is way out of this problem but you will need additional device. I am using avr dragon for ISP programming and following commands can be used to restore Arduino UNO boot loader.
Note: This work also for other Atmel based devices but configuration needs to be modified accordingly.
Step 1
Download optiboot_atmega328.hex
from optiboot at github.