how to boot load uno bootloader atmega8 using arduino uno board

Hi friends I'm new to arduino . I use an arduino board. I wanted to burn uno boot loader in ATMEGA8. I followed instruction from http://arduino.cc/en/Tutorial/ArduinoISP but got this error....
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check......

Please help me to fix this ....
Thanks in Advance.

The Uno bootloader ?
The Arduino program has bootloaders for all chips. There is also a bootloader for the ATmega8, which is slightly different due to the small size.

I did this for a couple of weeks ago.

Arduino UNO uses the Atmega328, and that chip use a slightly different bootloader than the atmega8.

You could use the original atmega8 bootloader, that the Arduino IDE contains, but the problem is that this bootloader takes more space that the atmega8 optibootloader, and after you have uploaded a new sketch, or pressed the reset button, there is a big delay before the arduino starts running the code you have uploaded.

You should use the optiboot bootloader for the atmega8.

First you have to add some text to your boards.txt file:

##############################################################

opti8.name=Arduino Optiboot w/Atmega8
opti8.upload.protocol=arduino
opti8.upload.maximum_size=7680
opti8.upload.speed=115200
opti8.bootloader.low_fuses=0xbf
opti8.bootloader.high_fuses=0xdc
opti8.bootloader.path=optiboot
opti8.bootloader.file=optiboot_atmega8.hex
opti8.bootloader.unlock_bits=0x3F
opti8.bootloader.lock_bits=0x0F
opti8.build.mcu=atmega8
opti8.build.f_cpu=16000000L
opti8.build.core=arduino
opti8.build.variant=standard


##############################################################

Then you need to add the optiboot folder inside the bootloader folder (attached)

and when you burn the bootloader, don't forget to add a 10uf capacitor between reset and ground on your arduino (after you have uploaded the ISP sketch), unless the bootloading will fail

optiboot.zip (41.1 KB)

Thank you very much.......