2016-12-12 19:31:02 +01:00
|
|
|
#include "text.h"
|
|
|
|
#include "sdio.h"
|
|
|
|
#include "dumper.h"
|
|
|
|
#include "imports.h"
|
|
|
|
|
|
|
|
#define INITIALIZING_FLA 0x07
|
|
|
|
#define INITIALIZING_MMC 0x0D
|
|
|
|
|
|
|
|
|
|
|
|
int getPhysicalDeviceHandle(u32 device);
|
|
|
|
|
|
|
|
void createDevThread_entry(int initialization_type)
|
|
|
|
{
|
|
|
|
if(initialization_type == INITIALIZING_MMC)
|
|
|
|
{
|
|
|
|
sdcard_init();
|
|
|
|
}
|
|
|
|
|
|
|
|
//if(initialization_type == INITIALIZING_FLA)
|
|
|
|
//{
|
|
|
|
//dump_nand_complete();
|
|
|
|
//}
|
|
|
|
|
|
|
|
if(initialization_type == 0x01) // unknown but after SLC init no read/write done at this point yet
|
|
|
|
{
|
2017-03-25 22:07:34 +01:00
|
|
|
//if(check_nand_dump() == 0)
|
|
|
|
//{
|
2017-03-27 22:04:19 +02:00
|
|
|
clearScreen(0x000000FF);
|
|
|
|
_printf(20, 20, "welcome to NAND dumper!");
|
2016-12-12 19:31:02 +01:00
|
|
|
|
2017-03-27 22:04:19 +02:00
|
|
|
dump_nand_complete();
|
2017-03-25 22:07:34 +01:00
|
|
|
//}
|
2016-12-12 19:31:02 +01:00
|
|
|
}
|
|
|
|
}
|