Hacking Dump Mii NAND - a BootMii format (nand.bin) NAND dumper for vWii/Wii

Should I make it an option to write back the NAND dump? (The code is practically all already there)

  • YES - That could be useful.

    Votes: 125 75.8%
  • NO - Too many noobs and danger of power failures mid-dump (TOO DANGEROUS).

    Votes: 40 24.2%

  • Total voters
    165

JoostinOnline

Certified Crash Test Dummy
Member
Joined
Apr 2, 2011
Messages
11,005
Trophies
1
Location
The Twilight Zone
Website
www.hacksden.com
XP
4,339
Country
United States
Just saying, if its something this simple, a short inline asm would make this a distinct possibility.

[Edit] I'm not quite sure whether nintendont disables AHB or just takes the setting from HBC as it seems to do both. [End Edit]

from the nintendont source: svn/trunk/kernel/

syscall.h:
#define EnableAHBProt(a) syscall_54(a)
void syscall_54( u32 a );

syscall.s:
.global syscall_54
.type syscall_54 STT_FUNC
syscall_54:
.long 0xe6000a90
bx lr

main.c:
EnableAHBProt(-1); //Disable AHBPROT
You need to run it from the HBC, which gives you the access rights to disable the HW_AHBPROT register.
 

Bug_Checker_

Well-Known Member
Member
Joined
Jun 10, 2006
Messages
950
Trophies
0
XP
664
Country
United States
You need to run it from the HBC, which gives you the access rights to disable the HW_AHBPROT register.

You can't just use HW_MEMMIRR/HW_AHBPROT combo?

#define HW_MEMMIRR 0x0d800060
#define HW_AHBPROT 0x0d800064 // defaults to 0xFFFFFFFF on boot

void syscall_54(int factory_mode) {
if (factory_mode) {
set32(HW_MEMMIRR, 8); // this probably enables access to Hollywood regs from PPC
set32(HW_AHBPROT, 0x80000DFE); // re-enable PPC access to (previously) disabled hardware devices
write16(0x0d8b4202, 0); // dunno what this does
} else {
clear32(HW_MEMMIRR, 8); // this probably disables to Hollywood regs from PPC
clear32(HW_AHBPROT, 0x80000DFE); // disable access to some hardware devices from PPC
write16(0x0d8b4200, 0x18); // dunno what this does
}
}

Source:
http://hackmii.com/2009/08/of-tmds-and-hardware/
HW_MEMMIRR= 0x0d800060= HOLLYWOOD[0x60] on
http://wiibrew.org/wiki/Hardware/Main_Memory
text in red color are my additions
I'm guessing HW_MEMMIRR is short for Memory Mirror (handling bank switching etc.)
 
  • Like
Reactions: pelago

pelago

Member
Member
Joined
Feb 20, 2006
Messages
1,019
Trophies
0
XP
565
Country
Thanks for the recent posts. It seems to me that it should be possible to make this work using AHBPROT without running it from HBC, although I appreciate it might involve adding a bunch more code.
 

megatokyo500

Well-Known Member
Newcomer
Joined
Jan 31, 2008
Messages
78
Trophies
0
XP
224
Country
United States
That is ARM code, which you can't run unless AHBPROT is already disabled (unless you find an IOS exploit). You can't just "ask" ES to disable AHBPROT for you either, it's meant to be a security feature.
 

nastys

ナースティス
Member
Joined
Aug 5, 2014
Messages
1,730
Trophies
0
Age
26
Location
Earth
XP
1,794
Country
Italy
My SD card is very slow (1 block every 4 seconds), is it possible to dump to USB?

EDIT: never mind, I just dumped to SD.
 

helicon9

Member
Newcomer
Joined
Feb 25, 2015
Messages
5
Trophies
0
Age
50
XP
54
Country
I just set this going on Wii U (vWii) and it's going incredibly slow!
Has been running almost 2 hours and only done 373 blocks.
Do I just have an incredibly slow SD card??
At this rate it's going to take almost 24hrs to complete.
Do I just leave it running or is there anyway to cancel it without breaking anything, then maybe buy a better SD card.
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
I just set this going on Wii U (vWii) and it's going incredibly slow!
Has been running almost 2 hours and only done 373 blocks.
Do I just have an incredibly slow SD card??
At this rate it's going to take almost 24hrs to complete.
Do I just leave it running or is there anyway to cancel it without breaking anything, then maybe buy a better SD card.

It shouldn't take nearly that long....... something's not right here....
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
like 10 mins tops dude. Idk what's going on with that....

EDIT: mine took about 2-3 mins when I did it. Your dump will likely be corrupt. Just let it run for now and see what the file size is (it will be the nand.bin on the root of your sd card), it should be about 512mb. Even then I wouldn't trust it when the time comes that there's a way to flash that NAND image back to the vWii. Its probably a good idea to redump it with another sd card when this one is finished. Because even if the file size is correct, it could still be corrupted.
 

helicon9

Member
Newcomer
Joined
Feb 25, 2015
Messages
5
Trophies
0
Age
50
XP
54
Country
like 10 mins tops dude. Idk what's going on with that....

EDIT: mine took about 2-3 mins when I did it. Your dump will likely be corrupt. Just let it run for now and see what the file size is (it will be the nand.bin on the root of your sd card), it should be about 512mb. Even then I wouldn't trust it when the time comes that there's a way to flash that NAND image back to the vWii. Its probably a good idea to redump it with another sd card when this one is finished. Because even if the file size is correct, it could still be corrupted.


Ok thanks.
Do you think it's best to just stop it? And how would I do that if it's even possible?
Really don't want to brick my vWii !!
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
Ok thanks.
Do you think it's best to just stop it? And how would I do that if it's even possible?
Really don't want to brick my vWii !!


Honestly, better safe than sorry, just let it run. I mean it isn't writing anything to NAND but its still reading from it. I wouldn't recommend forcing it off/pulling the plug in the off chance it could brick it. Just let it run to the very end then switch it off.
 

helicon9

Member
Newcomer
Joined
Feb 25, 2015
Messages
5
Trophies
0
Age
50
XP
54
Country
best of luck! let me know if you have any other troubles :P


It finally finished this morning, about 9:30am (started it at 1pm yesterday!).
I wasn't in when it finished so the Wii U had powered itself down as it had been idle for over an hour.
Put the SD in the PC and checked the nand.bin, it's 528MB but of course no way of knowing if it's corrupt.

I've ordered another SD card and will try again tomorrow when it arrives, really hope I don't have the same problem.
 
  • Like
Reactions: TeamScriptKiddies

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    +1
    Psionic Roshambo @ Psionic Roshambo: @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87... +1