6.Select the item in the Tools > Board menu that corresponds to the board on which you want to burn the bootloader (not the board that you're using as the programmer). See the board descriptions on the environment page for details.
As you are programming a 328 you should selct the right boar, for example Arduino Uno, and not Arduino Mega