I finally figured it out. The normal marlin firmware doesn't seem to work because the board isn't a standard one. Finally got it to work with the skynet3D firmware, which seems to be a modification of marlin anyway but with the correct board information in it.