I think this link would be useful http://www.digitalmisery.com/2011/11/arduino-bootloader-with-atmega328-and-atmega328p/