By getting Martin Thomas's SD over SPI implementation I made it working.