Okay, so you have done the bootloader?
(Can you now plug the board right to the computer and flash the firmware?)
If you have that all sorted out (the hard part)
Then you just use the Arduino software to upload it.
If you asking how to configure Marlin, that's a whole other ball of wax.
(Have you found a pre-configured Marlin setup for the 5?)