1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: firmware/target/arm/as3525/ata_sd_as3525.c
===================================================================
--- firmware/target/arm/as3525/ata_sd_as3525.c	(Revision 19721)
+++ firmware/target/arm/as3525/ata_sd_as3525.c	(Arbeitskopie)
@@ -303,6 +303,12 @@
     if(!send_cmd(drive, SD_SEND_CSD, card_info[drive].rca,
                  MCI_RESP|MCI_LONG_RESP|MCI_ARG, card_info[drive].csd))
         return -7;
+    if (drive)
+    {
+        char str[50];
+        snprintf(str, sizeof str, "%x%x%x%x", card_info[0].csd[0], card_info[0].csd[1], card_info[0].csd[2], card_info[0].csd[3]);
+        panicf(str);
+    }

     /* These calculations come from the Sandisk SD card product manual */
     if( (card_info[drive].csd[3]>>30) == 0)