PaulS:
You need to show how the two are connected. If the ESP2866 is in a shield attached to the Arduino, you do not get the opportunity to program it.
why not?
if atmega is hold in reset and esp is connected to rx/tx and in flash mode, it should work. I plan to try it this weekend as part of writing the "How to install WiFiLink firmware on generic ESP8266" tutorial.