Unknown error that doesn't appear when verifying on Arduino IDE

I investigated the problem and found the fix was pretty easy. You only need to change lines 99-101 of Sd2Card.h from:

  #define SPI_MOSI_PIN MOSI_PIN       // SPI Master Out Slave In pin
  #define SPI_MISO_PIN MISO_PIN       // SPI Master In Slave Out pin
  #define SPI_SCK_PIN SCK_PIN         // SPI Clock pin

to:

  // SPI Master Out Slave In pin
  #define SPI_MOSI_PIN MOSI_PIN
  // SPI Master In Slave Out pin
  #define SPI_MISO_PIN MISO_PIN       
  // SPI Clock pin
  #define SPI_SCK_PIN SCK_PIN

It turns out this is caused by a bug I reported 4 months ago:

Where did you download the Tornado firmware from? I found the manufacturer's download page:

but when I try to download I get a 0 byte file. While investigating your problem I hit another bug in the beta version of the Arduino AVR Boards toolchain. Don't worry, that bug shouldn't affect you but I want to report it to the Arduino developers and I'd rather point them to the official download of the firmware instead the copy you posted here.