DSi SD and MMC

How to access the SD and the NAND.