Hacking HW_AHBPROT modification steps or guide?

  • Thread starter Thread starter officialjunk
  • Start date Start date
  • Views Views 10,650
  • Replies Replies 29
  • Likes Likes 1
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.
 
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.
 
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.
 
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.
 
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