TegraExplorer icon indicating copy to clipboard operation
TegraExplorer copied to clipboard

Dump/restore on nand is very slow.

Open shadow2560 opened this issue 4 years ago • 3 comments

Hi,

I've the script below witch is verry slow (I think it will take 3 or 4 ours to dump or restore the nand), is it normal? I've the "libsys_minerva.bso" in "bootloader\sys" in my SD.

Here is the script:

#REQUIRE VER 4.0.1
#REQUIRE MINERVA
#REQUIRE KEYS
#REQUIRE SD

restoreFolderPath = "sd:/dump"
BOOT0Path = combinepath(restoreFolderPath, "BOOT0.bin")
BOOT1Path = combinepath(restoreFolderPath, "BOOT1.bin")
PRODINFOPath = combinepath(restoreFolderPath, "PRODINFO.bin")
PRODINFOFPath = combinepath(restoreFolderPath, "PRODINFOF.bin")
BCPKG1Path = combinepath(restoreFolderPath, "BCPKG2-1-Normal-Main.bin")
BCPKG2Path = combinepath(restoreFolderPath, "BCPKG2-2-Normal-Sub.bin")
BCPKG3Path = combinepath(restoreFolderPath, "BCPKG2-3-SafeMode-Main.bin")
BCPKG4Path = combinepath(restoreFolderPath, "BCPKG2-4-SafeMode-Sub.bin")
BCPKG5Path = combinepath(restoreFolderPath, "BCPKG2-5-Repair-Main.bin")
BCPKG6Path = combinepath(restoreFolderPath, "BCPKG2-6-Repair-Sub.bin")
SAFEPath = combinepath(restoreFolderPath, "SAFE.bin")
SYSTEMPath = combinepath(restoreFolderPath, "SYSTEM.bin")
USERPath = combinepath(restoreFolderPath, "USER.bin")

if (fsexists(restoreFolderPath) == 0) {
	mkdir(restoreFolderPath)
}
println("BOOT0")
emmcread(BOOT0Path, "BOOT0")
println("BOOT1")
emmcread(BOOT1Path, "BOOT1")
println("PRODINFO")
emmcread(PRODINFOPath, "PRODINFO")
println("PRODINFOF")
emmcread(PRODINFOFPath, "PRODINFOF")
println("BCPKG2-1-Normal-Main")
emmcread(BCPKG1Path, "BCPKG2-1-Normal-Main")
println("BCPKG2-2-Normal-Sub")
emmcread(BCPKG2Path, "BCPKG2-2-Normal-Sub")
println("BCPKG2-3-SafeMode-Main")
emmcread(BCPKG3Path, "BCPKG2-3-SafeMode-Main")
println("BCPKG2-4-SafeMode-Sub")
emmcread(BCPKG4Path, "BCPKG2-4-SafeMode-Sub")
println("BCPKG2-5-Repair-Main")
emmcread(BCPKG5Path, "BCPKG2-5-Repair-Main")
println("BCPKG2-6-Repair-Sub")
emmcread(BCPKG6Path, "BCPKG2-6-Repair-Sub")
println("SAFE")
emmcread(SAFEPath, "SAFE")
println("SYSTEM")
emmcread(SYSTEMPath, "SYSTEM")
println("USER")
emmcread(USERPath, "USER")
println("")
println("Finished, press any keys to continue.")
pause()
exit()

shadow2560 avatar Nov 08 '21 19:11 shadow2560

Because system and user are encrypted, tegraexplorer decrypts them in real time for you. This probably is taking a massive amount of time. TE wasn't really designed to dump out the entirety of SYSTEM or USER

suchmememanyskill avatar Nov 08 '21 19:11 suchmememanyskill

I would imagine that hekate would be better if you just want to back up your nand

Masamune3210 avatar Nov 08 '21 22:11 Masamune3210

@Masamune3210: The script used here is just to ilustrate the problem, I know that dumping via Hekate could be better but this is for testing some things on OLED consoles. And I prefer flexibility of scripts than pre-defined params like Hekate do.

@suchmememanyskill : Thank for confirming what I was suspected. May an option to not decrypt the dump (or encrypt for restore) could be an intresting param to add to the functions.

shadow2560 avatar Nov 09 '21 10:11 shadow2560