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 76.2%
  • NO - Too many noobs and danger of power failures mid-dump (TOO DANGEROUS).

    Votes: 39 23.8%

  • Total voters
    164

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
  • LeoTCK @ LeoTCK:
    in the wanted list thread
  • LeoTCK @ LeoTCK:
    because you are an awful liar and narcissistic hypocrite
  • AncientBoi @ AncientBoi:
    LEOtck? Who's he? Never 'erd of the las. :)
  • LeoTCK @ LeoTCK:
    I only show the mirror to people and you all can't stand what you're seeing
  • LeoTCK @ LeoTCK:
    bunch of bullies
  • RedColoredStars @ RedColoredStars:
    Narcissistic Personality Disorder 101
  • LeoTCK @ LeoTCK:
    I think that's what you have
  • RedColoredStars @ RedColoredStars:
    Thanks for providing further evidence of my claim in a single comment. lol.
  • LeoTCK @ LeoTCK:
    pff\
  • RedColoredStars @ RedColoredStars:
    You're a gaslighting narcissist. Everyone out to get you. You wont get professional help because you'll just chalk up their diagnosis as another conspiracy out to get you.
  • LeoTCK @ LeoTCK:
    leave me alone, I'm not going to engage with you anymore, bye
  • LeoTCK @ LeoTCK:
    Motherfucker I was checked by a psychiatrist and there's nothing wrong with me
  • RedColoredStars @ RedColoredStars:
    okay. Bye. Thought you were leaving anyway. Why are you still around? You already said goodbye to everyone here.
  • LeoTCK @ LeoTCK:
    so stop spurting your nonsense
  • RedColoredStars @ RedColoredStars:
    lol. liar.
  • DinohScene @ DinohScene:
    knock it off now, both of you
  • LeoTCK @ LeoTCK:
    yea you're just a mean bully
  • LeoTCK @ LeoTCK:
    he SHOULD
  • LeoTCK @ LeoTCK:
    and NOW
  • RedColoredStars @ RedColoredStars:
    liar, loudmouth, cussing and swearing, all angry
  • RedColoredStars @ RedColoredStars:
    ok. sorry. ill stop now. promise
  • RedColoredStars @ RedColoredStars:
    Sooo. How about Dune part 1 & 2? The cinematography is fantastic, but thats some of the most boring ass sci-fi Ive seen in my life.
  • DinohScene @ DinohScene:
    haven't seen both
  • RedColoredStars @ RedColoredStars:
    Im going to see the new Godzilla next week. Sure they aren't some cinematic masterpieces but the last few were all really great and fun popcorn flicks to see on the big screen.
  • DinohScene @ DinohScene:
    can't remember the last time I went to the cinemas
    DinohScene @ DinohScene: can't remember the last time I went to the cinemas