Unable to burne mega bootloader with mega

Hi

I'm trying to burn a new bootloader to my arduino mega with my other arduino mega.

I have hoocked the megas up with power, gnd, pin 50 to 50, pin 51 to 51, pin 52 to 52 and pin 53 to 53

Then i upload the ISP sketch to the working arduino no problem. Then I click burn bootloader and almost nothing happens. I get no communication over the uart and then i get the error:

Arduino: 1.5.5 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

avrdude: stk500_recv(): programmer is not responding
processing.app.debug.RunnerException
	at cc.arduino.packages.uploaders.SerialUploader.burnBootloader(SerialUploader.java:309)
	at processing.app.Editor$47.run(Editor.java:2571)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
	at java.awt.EventQueue.access$400(EventQueue.java:82)
	at java.awt.EventQueue$2.run(EventQueue.java:676)
	at java.awt.EventQueue$2.run(EventQueue.java:674)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: processing.app.debug.RunnerException: Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
	at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:113)
	at cc.arduino.packages.uploaders.SerialUploader.burnBootloader(SerialUploader.java:302)
	... 15 more

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

What to do? Or what am i doing wrong?

/Peter

programmer is not responding.

Seems like you can upload fine, but then Arduino IDE doesn't recognize the programmer. Did you check the option: use arduino as ISP? And also check again the board and finally the serial com, choose the programmer Arduino.

Use Nick Gammon's bootloader sketch.
D10 of master controls Reset of slave. Or maybe it's just SS pin of master.