Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump/restore on nand is very slow. #56

Open
shadow2560 opened this issue Nov 8, 2021 · 3 comments
Open

Dump/restore on nand is very slow. #56

shadow2560 opened this issue Nov 8, 2021 · 3 comments

Comments

@shadow2560
Copy link

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()
@suchmememanyskill
Copy link
Owner

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

@Masamune3210
Copy link

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

@shadow2560
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants