Hi Septillion,
Here steps are ther which i followed:
First dump code on mega board then connect with nano board using SPI connections. After that tool>board>arduino nano
processor>atmega328p
then burn bootloader.
these steps I followed.
Are these right steps?