Sd card spi commands. I have the same problem.

Sd card spi commands. 4 SD Card Disk I/O Layer for AVR.