SD Card boot loader

I am trying to get an arduino mega to be able to reflash itself from an SD Card with my chosen sketch precompiled for it. There was previously an effort to do it and they successfully did do it, as long as the chip is a 328. I am trying to port this over to the Mega 2560 running at 8Mhz. Can someone help me out please?

What is left of the project is here,99837.0.html

However the project seems to have stalled. More frustratingly they had support for the 2560 was on the roadmap.