Burning the bootloader with arduino mega as isp to ATMega8L-8PU

I have connected an ATMega8L-8PU chip following the instructions from http://arduino.cc/en/Tutorial/ArduinoToBreadboard, the minimal circuit (since both chips are compatible)
When I tried to burn the bootloader I got the following error message

avrdude: stk500_getsync(): not in sync: resp=0x00

I got the bootloader from http://todbot.com/blog/2009/05/26/minimal-arduino-with-atmega8/, and I am using an arduino mega 2560 as ISP

Do you have any idea what could be wrong?

What are you using for a programmer?

I followed the instructions in http://todbot.com/blog/2009/05/26/minimal-arduino-with-atmega8/ , I add the lines in boards.txt and the other files. Then I used Arduino 022 software to burn the bootloader.

i think you may need to disable the autoreset on the mega board ( search the forum on how to do that)
also when i started playing with breadboard setups i first tried to follow that tutorial - but after many many tries i couldn't get that bootloader working on my atmega8 - so i suggest getting yourself a copy of the optiboot (check github.com westfw version or the version that comes with arduino) compile it for atmega8 @ 8mhz and use that

My apologies @gabriela! :blush: