Hacking HW_AHBPROT modification steps or guide?

Ray Lewis

Banned!
Banned
Joined
Dec 30, 2012
Messages
1,518
Trophies
0
XP
419
Country
United States
The nice thing about just patching the IOS is that you can use the code it already has to access the hardware. Having the PPC talk to it directly means having to write drivers from scratch.

harder, but doable.
Interesting. Mega had it sound like it did not need patches/drivers. Unless I misunderstood his post. Or he did not go inti driver detail.
 

Maxternal

Peanut Gallery Spokesman
Member
Joined
Nov 15, 2011
Messages
5,210
Trophies
0
Age
40
Location
Deep in GBAtemp addiction
Website
gbadev.googlecode.com
XP
1,709
Country
Interesting. Mega had it sound like it did not need patches/drivers. Unless I misunderstood his post. Or he did not go inti driver detail.
For a lot of things a driver is just a couple lines of code. For other's it's huge and complicated. Basically by "driver" I just mean you would have to tell the program how to interact with that part of the hardware instead if just asking the IOS to do it for you.
 

SifJar

Not a pirate
Member
Joined
Apr 4, 2009
Messages
6,022
Trophies
0
Website
Visit site
XP
1,175
Country
I'm going to make a wild assumption here: Presumably IOS will have already mounted /dev/flash. This would mean all the PPC code would have to do is actually read it, which unless I'm mistaken shouldn't require much code.

Full disclaimer: I don't know if this is the case. Nor do I know how you would read it from PPC. But it seems logical to me.
 

davebaol

Well-Known Member
Member
Joined
Sep 3, 2010
Messages
912
Trophies
0
XP
192
Country
Italy
The nice thing about just patching the IOS is that you can use the code it already has to access the hardware. Having the PPC talk to it directly means having to write drivers from scratch.

harder, but doable.

Ok I've just looked into IOS code and they completely removed /dev/flash device from any recent ios.
So the approach proposed by megazig is definitely the clean way to proceed.
With AHB rights PPC can write to the NAND hw registers which are documented here: http://wiibrew.org/wiki/Hardware/NAND_Interface
Also nand.c from mini - see http://gitweb.bootmii.org/?p=mini.git;a=summary - is a good starting point. it's basically a reverse engineered /dev/flash.
Porting that code to PPC should be easy enough, I guess.
Anyways I'm not really interested in, so I won't do it.
I wanted to share though.
 

officialjunk

Well-Known Member
OP
Newcomer
Joined
Oct 4, 2008
Messages
72
Trophies
0
XP
224
Country
United States
Thanks for everyone's insights. When I have some time I'll make an attempt. Of course I get slammed at work the moment I began to be interested in this :(
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-