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)!
|
Why do these matter? You can create a new working NAND from scratch! No backups needed (but still recommended)!
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Notes
|
## 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 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>> NAND AGING tester ");
|
||||||
iprintf("\n--------------------------------");
|
iprintf("\n--------------------------------");
|
||||||
|
|
||||||
nandPrintInfo();
|
if (success == true && !nandPrintInfo()) {
|
||||||
if (!nandFirmImport(true)) {
|
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
nandFirmRead();
|
if (success == true && !nandFirmImport(true)) {
|
||||||
if (!repairMbr(true)) {
|
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
readMbr();
|
if (success == true && !nandFirmRead()) {
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
if (success == true && !repairMbr(true)) {
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
if (success == true && !readMbr()) {
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
if (success == true && !mountMain()) {
|
if (success == true && !mountMain()) {
|
||||||
if (!formatMain() && !formatPhoto() && !mountMain()) {
|
if (!formatMain() && !formatPhoto() && !mountMain()) {
|
||||||
iprintf("\nNAND mount failed!");
|
iprintf("\nNAND mount failed!");
|
||||||
@ -300,19 +305,27 @@ int debug3(void) {
|
|||||||
} else {
|
} else {
|
||||||
nandMounted = true;
|
nandMounted = true;
|
||||||
}
|
}
|
||||||
filetestMain();
|
if (success == true && !filetestMain()) {
|
||||||
unmountMain();
|
success = false;
|
||||||
filetestNitro();
|
}
|
||||||
|
if (success == true && !unmountMain()) {
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
if (success == true && !filetestNitro()) {
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
|
||||||
agingMode = false;
|
agingMode = false;
|
||||||
|
clearScreen(cSUB);
|
||||||
iprintf("\n>> NAND AGING tester result ");
|
iprintf("\n>> NAND AGING tester result ");
|
||||||
iprintf("\n--------------------------------");
|
iprintf("\n--------------------------------");
|
||||||
|
|
||||||
if (success == true) {
|
if (success == true) {
|
||||||
iprintf("\nAll tests passed okay.");
|
iprintf("\nAll tests passed okay.");
|
||||||
|
setBackdropColorSub(0x1FE0);
|
||||||
} else {
|
} else {
|
||||||
iprintf("\nTests failed!");
|
iprintf("\nTests failed!");
|
||||||
|
setBackdropColorSub(0x00FF);
|
||||||
}
|
}
|
||||||
|
|
||||||
exitFunction();
|
exitFunction();
|
||||||
|
|||||||
@ -367,5 +367,6 @@ void exitFunction() {
|
|||||||
wait(50);
|
wait(50);
|
||||||
}
|
}
|
||||||
clearScreen(cSUB);
|
clearScreen(cSUB);
|
||||||
|
setBackdropColorSub(0xFFFF);
|
||||||
// Restore screen memory here
|
// Restore screen memory here
|
||||||
}
|
}
|
||||||
@ -140,7 +140,6 @@ bool randomConfirmBox(char* message)
|
|||||||
|
|
||||||
void messageBox(char* message)
|
void messageBox(char* message)
|
||||||
{
|
{
|
||||||
clearScreen(cSUB);
|
|
||||||
messagePrint(message);
|
messagePrint(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -408,17 +408,17 @@ bool mountNitroFS(void) {
|
|||||||
iprintf("\n--------------------------------");
|
iprintf("\n--------------------------------");
|
||||||
|
|
||||||
if (sdMounted == false && !fatInitDefault()) {
|
if (sdMounted == false && !fatInitDefault()) {
|
||||||
iprintf("\nSD card not mounted!");
|
iprintf("\nSD card not mounted!\n");
|
||||||
success = false;
|
success = false;
|
||||||
} else {
|
} else {
|
||||||
iprintf("\nSD card mounted okay.");
|
iprintf("\nSD card mounted okay.\n");
|
||||||
sdMounted = true;
|
sdMounted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!nitroFSInit("TwlNandTool.prod.srl") || !nitroFSGood()) {
|
if(!nitroFSInit("TwlNandTool.prod.srl") || !nitroFSGood()) {
|
||||||
if(!nitroFSInit("TwlNandTool.dev.srl") || !nitroFSGood()) {
|
if(!nitroFSInit("TwlNandTool.dev.srl") || !nitroFSGood()) {
|
||||||
if(!nitroFSInit("ntrboot.nds") || !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;
|
success = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user