To setup the Hifiberry Amp2 you'll have to start by removing the driver for the onboard sound.
$ sudo nano /boot/config.txt
Read more