Coding SD HC support?

Started by Deathwolf, July 12, 2012, 03:20:02 PM

Previous topic - Next topic

Deathwolf

Heyo... at the moment I'm trying to make a code which allows to use a SD HC card... The game is Super Smash Bros Brawl.
Is this even a little bit possible? Idk anything about file transfer between the Wii and the SD Card so that's why I'm asking...

Thanks for any help.
lolz

wiiztec

This is a copypasta from a march 2010 post I made on smashboards it's the US version of course

Since I have both an SDHC and 2 SD cards I decided to see if I could make a code to enable reading & writing to & from SDHC, I wasn't successfull but I found some information that might be of use to some more expirenced hackers, with the first to lines of the code below active the game will not tell you that you cannot use the SDHC card but If you try to save anything to it it will fail

SDHC test MEM1
04423694 00000000 <- value for what's in the SD card slot, nothing = 1 SD = 0 SDHC = 3
04423698 000006C5 <- amount of blocks left (on my regular SD card at the time)
04497EC8 00000000
04563954 80494910 <- I think this is some kind of pointer it never changes though
04563FDC 00000005
04564500 00000003
045664EC 00054100
045996B0 F3130000 <- I think this is some sort of SD card ID it changed to E624 when I swapped
045996C4 00000001 my 2GB for a 128MB SD card with my SDHC card it's 0000

Regarding the "ID" this seems to be a circular origin paradox the 2 addresses get the ID's from each other it seems

805996B0 set write breakpoint and looked 1 ASM instruction up to find address below

803CB920 <- where r5 gets ID from

935E2600 set write breakpoint and looked several dozen ASM instructions up to find address below

803CC37C <- where r29 gets ID from

to find most of these addresses I had to use an older version of WiiRd that let me access 93400000-93800000 range of MEM2

SDHC test MEM2
42000000 90000000
4A000000 92000000
019B6615 0000003F <- this byte changes between the snapshot replay and custom stage
315E2600 00000000 menus but with the SDHC card it's always 1 value lower
155E2600 00000001 <- this value is the only value of the rest of these values to stay the same
155E2820 00000012 between 2GB & 128MB SD cards
155E2828 00000001
155E2830 00000001
155E2834 00000200
155E283C 00000001
E0000000 80008000
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

Skyground95

Wouldn't you have to make SDHC support for Gecko OS before maing SDHC code for Brawl?

Deathwolf

Gecko OS itself already supports SDHC.
lolz