mirror of
https://github.com/rvtr/TwlNandTool.git
synced 2025-10-31 06:01:08 -04:00
Nothing of note
This commit is contained in:
parent
f90bc105f0
commit
97143f9747
BIN
.github/cidinfo.png
vendored
Normal file
BIN
.github/cidinfo.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
.github/filesystem.png
vendored
Normal file
BIN
.github/filesystem.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@ -10,5 +10,10 @@ This is the best DSi NAND repair tool out there, offering features such as:
|
||||
|
||||
Why do these matter? You can create a new working NAND from scratch! No backups needed (but still recommended)!
|
||||
|
||||

|
||||
|
||||
## Notes
|
||||
- I am including my own hostile and outdated fork of libfat. This is to block `nand_Startup()` during `fatMount()`. Without this having a NAND re-mount would run `nand_Startup()` more than once and break every NAND R/W function until reboot...
|
||||
- I do not use the release NandFirm/stage2/bootloader (v2435-8325). Instead I use newer NandFirms as listed below. These NandFirms are able to run unlaunch, however they will stop the installer from working ("unknown bootcode version"). Unlaunch installs carry a brick risk by sometimes erasing the Launcher TMD, so this will somewhat forcefully encourage users to move to a [safer installer](https://github.com/edo9300/unlaunch-installer). Normally I'm against intentionally breaking things but this will prevent future bricks.
|
||||
- v2265-9336 (prod)
|
||||
- v2725-9336 (dev)
|
||||
@ -278,16 +278,21 @@ int debug3(void) {
|
||||
iprintf("\n>> NAND AGING tester ");
|
||||
iprintf("\n--------------------------------");
|
||||
|
||||
nandPrintInfo();
|
||||
if (!nandFirmImport(true)) {
|
||||
if (success == true && !nandPrintInfo()) {
|
||||
success = false;
|
||||
}
|
||||
nandFirmRead();
|
||||
if (!repairMbr(true)) {
|
||||
if (success == true && !nandFirmImport(true)) {
|
||||
success = false;
|
||||
}
|
||||
if (success == true && !nandFirmRead()) {
|
||||
success = false;
|
||||
}
|
||||
if (success == true && !repairMbr(true)) {
|
||||
success = false;
|
||||
}
|
||||
if (success == true && !readMbr()) {
|
||||
success = false;
|
||||
}
|
||||
readMbr();
|
||||
|
||||
if (success == true && !mountMain()) {
|
||||
if (!formatMain() && !formatPhoto() && !mountMain()) {
|
||||
iprintf("\nNAND mount failed!");
|
||||
@ -300,19 +305,27 @@ int debug3(void) {
|
||||
} else {
|
||||
nandMounted = true;
|
||||
}
|
||||
filetestMain();
|
||||
unmountMain();
|
||||
filetestNitro();
|
||||
if (success == true && !filetestMain()) {
|
||||
success = false;
|
||||
}
|
||||
if (success == true && !unmountMain()) {
|
||||
success = false;
|
||||
}
|
||||
if (success == true && !filetestNitro()) {
|
||||
success = false;
|
||||
}
|
||||
|
||||
agingMode = false;
|
||||
|
||||
clearScreen(cSUB);
|
||||
iprintf("\n>> NAND AGING tester result ");
|
||||
iprintf("\n--------------------------------");
|
||||
|
||||
if (success == true) {
|
||||
iprintf("\nAll tests passed okay.");
|
||||
setBackdropColorSub(0x1FE0);
|
||||
} else {
|
||||
iprintf("\nTests failed!");
|
||||
setBackdropColorSub(0x00FF);
|
||||
}
|
||||
|
||||
exitFunction();
|
||||
|
||||
@ -367,5 +367,6 @@ void exitFunction() {
|
||||
wait(50);
|
||||
}
|
||||
clearScreen(cSUB);
|
||||
setBackdropColorSub(0xFFFF);
|
||||
// Restore screen memory here
|
||||
}
|
||||
@ -140,7 +140,6 @@ bool randomConfirmBox(char* message)
|
||||
|
||||
void messageBox(char* message)
|
||||
{
|
||||
clearScreen(cSUB);
|
||||
messagePrint(message);
|
||||
}
|
||||
|
||||
|
||||
@ -408,17 +408,17 @@ bool mountNitroFS(void) {
|
||||
iprintf("\n--------------------------------");
|
||||
|
||||
if (sdMounted == false && !fatInitDefault()) {
|
||||
iprintf("\nSD card not mounted!");
|
||||
iprintf("\nSD card not mounted!\n");
|
||||
success = false;
|
||||
} else {
|
||||
iprintf("\nSD card mounted okay.");
|
||||
iprintf("\nSD card mounted okay.\n");
|
||||
sdMounted = true;
|
||||
}
|
||||
|
||||
if(!nitroFSInit("TwlNandTool.prod.srl") || !nitroFSGood()) {
|
||||
if(!nitroFSInit("TwlNandTool.dev.srl") || !nitroFSGood()) {
|
||||
if(!nitroFSInit("ntrboot.nds") || !nitroFSGood()) {
|
||||
iprintf("\x1B[31mFailed to mount NitroFS!\n\x1B[30m\nSome features will not work.\n\nTry placing the SRL for your DSiat one of these locations:\n\nSDMC:/TwlNandTool.prod.srl\nSDMC:/TwlNandTool.dev.srl\nSDMC:/ntrboot.nds\n");
|
||||
messageBox("\n\x1B[31mFailed to mount NitroFS!\n\x1B[30m\nSome features will not work.\n\nTry placing the SRL for your DSiat one of these locations:\n\nSDMC:/TwlNandTool.prod.srl\nSDMC:/TwlNandTool.dev.srl\nSDMC:/ntrboot.nds\n");
|
||||
success = false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user