Invalid Device Signature When Trying to Upload Arduino Duemilanove Bootloader


I am using two Arduino boards to burn the Arduino Duemilanove bootloader onto a new ATMEGA328P U. I uploaded the ArduinoISP sketch from the example and wired the boards according to Arduino’s guide ( When I try to burn bootloader, it shows the error:

avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

I want the Arduino Duemilanove bootloader as it makes it possible make the Arduino wireless programmable with the XBees I have. The seller of the microcontroller told me ATMEGA328P U is the same as ATMEGA328P-PU. Is this true and if not, could this be the reason I am getting this error?

I attached two image of the setup and the new microcontroller.


I take everything I said back. I messed up on my wiring and fixed it. Pin 13 didn't go to pin 13 and so on. It works now.