]> Chaos Git - corbenik/corbenik.git/commitdiff
Fix up NAND code, we have 0x05 init'd now
authorchaoskagami <chaos.kagami@gmail.com>
Sun, 10 Jul 2016 05:38:19 +0000 (01:38 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Sun, 10 Jul 2016 05:38:19 +0000 (01:38 -0400)
external/libctr9_io
source/firm/firm.c
source/std/fs.c

index f1e407450e658883343d0877c4afcffe3bb697cc..0e8bb5d3c55b3cab5eb704da1c25e4321423039d 160000 (submodule)
@@ -1 +1 @@
-Subproject commit f1e407450e658883343d0877c4afcffe3bb697cc
+Subproject commit 0e8bb5d3c55b3cab5eb704da1c25e4321423039d
index cb63a097a76ddca6249546bda736d965234191ae..273eb42559e2a408a0357221b1960f299cfb3676 100644 (file)
@@ -5,7 +5,6 @@
 
 #include "../common.h"
 #include "../misc/sha256.h"
-#include "../fatfs/sdmmc.h"
 
 firm_h *firm_loc = (firm_h *)FCRAM_FIRM_LOC;
 uint32_t firm_size = FCRAM_SPACING;
index d26119749108f46a0d1135eb51749aa1230e5f6c..b2a13f1ac04c937ba309ae05856e93b74f37616b 100644 (file)
@@ -6,10 +6,10 @@
 #include "memory.h"
 #include "../config.h"
 
-// ctr_nand_interface nand_io;
 // ctr_nand_crypto_interface ctr_io;
 // ctr_nand_crypto_interface twl_io;
-static ctr_sd_interface sd_io;
+static ctr_sd_interface   sd_io;
+static ctr_nand_interface nand_io;
 static FATFS fs;
 static int set_up_fs = 0;
 
@@ -65,7 +65,7 @@ rrmdir(char *name)
 int
 fmount(void)
 {
-    if(!set_up_fs && ctr_fatfs_initialize(NULL, NULL, NULL, &sd_io))
+    if(!set_up_fs && ctr_fatfs_initialize(&nand_io, NULL, NULL, &sd_io))
         return 1;
 
     set_up_fs = 1;