Anybody working AHBPROT Emulator channels?

Discussion in 'Wii - Emulation and Homebrew' started by Hielkenator, Aug 16, 2010.

Aug 16, 2010
  1. Hielkenator
    OP

    Member Hielkenator GBAtemp Psycho!

    Joined:
    Feb 7, 2010
    Messages:
    4,176
    Country:
    Netherlands
    Hi,

    Since with the latest update of SNESGX, FCEULTRAGX, VBAGX. AHBPROT for DVD is being used.
    I can only run roms from DVD if I start from HBC.
    I does'nt reckongnise my DVD if I run the emulators from my exsisting forwarder channels
    Is there an easy way of modifiing my exsisting Forwarder channels to work with the new updates?
     


  2. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    there was a new wiimc forwarder channel released today that can handle all that, and I wanted to add a second forwarder path to it, so I modded the main.c of the source code to this (see below). But I am having trouble compiling it (my extra code isn't the problem, its w/e I got installed on my Windows isn't up to date enough).

    If anyone happens 2 have a few minutes to spare, they can try compiling it.

    @OP, u can change the paths @ line 90ish to w/e u want to create your own forwarder for w/e app, but u may want to change the splash screens first

    source code
    some compiling instructions


    FYI, new code is only rows 92-96
    Warning: Spoilers inside!
     
  3. Hielkenator
    OP

    Member Hielkenator GBAtemp Psycho!

    Joined:
    Feb 7, 2010
    Messages:
    4,176
    Country:
    Netherlands
    Thank you for the info!
    Unfortunally I have no idea what to do...

    If anyone could make these channels AHBPROT compatible , it would be very appriciated!



    Thank you everyone! Tantric is working on it!
     
  4. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    btw, I got it to compile, I just had to update my devkit installation. I still have to test out the forwarder dol though... should be fine

    I got a Q though, for Tantric or anyone else who happens to have the answer...

    Will using Tantric's WiiMC Forwarder source code to build forwarders for other apps, make them all have USB2.0 speeds (if IOS58 is installed), as well as have direct hardware access (for the apps that can handle it... and it shouldn't interfere with those that can't handle it right?). Is there any reason why I shouldn't mass produce new forwarder dols for ALL my forwarder channels?
     
  5. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    The source code of the forwarder won't help you, it's the Channel Installer one that you need but unfortunately, I think it's closed-source.

    To get DVD support without DVDX, I think all you need is to set some bits in the channel header and be sure not to reload any IOS when lauching the app in the forwarder.
    USB2 support should be straight forward as long as you have IOS58 installed (snes9xGX seems to automatically reload it on startup if it is not already running, but then you lose DVD support)
     
  6. FIX94

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,523
    Location:
    ???
    Country:
    Germany
    No you only need the forwarder source, it will create a dol file that you can inject into a channel.
    But the old forwarder also works for me with USB2.0 speed (the IOS202 one)
     
  7. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    I don't think that so easy. AHBPROT requires a special channel TMD, this is not set by the forwarder but during channel installation.
    USB2 support is not related to AHBPROT though, it only needs IOS58 to be loaded once then you automatically get USB2 speed when accessing the device.

    To get both USB2 and DVD support, you need to have the channel header (TMD) having the special bits set and IOS field indicating IOS58 so that system menu reloads IOS58 and IOS58 enables both USB2 and DVD access. Any attempt to reload IOS after that would break DVD support.
     
  8. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    so... if I am to understand correctly, u are saying there is currently no open source way for me to build my own forwarder channel for WiiMC with DVD access enabled? In fact, u are saying its not even enough to install a WAD, you have to use the custom closed source installer? I wonder of YAWMM can be made to install a wad with the "special TMD" for AHBPROT.... hmmmmm

    Ok, so here's a Q... 2 make a forwarder channel load an app with USB 2 speeds (no dvd support, forget about that for now), do I even need to recompile the forwarder? Or can I just change the IOS the forwarder uses (using customize mii) to use IOS58?
     
  9. Coto

    Member Coto GBAtemp Addict

    Joined:
    Jun 4, 2010
    Messages:
    2,274
    Country:
    Chile
    So.. why AHBPROT sys call instead of IOS? :s

    is it faster? I know already it has direct hardware access..
     
  10. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    that should also work, once IOS 58 is loaded, any app compiled with the new libogc benefits of USB2 speed
    But you have to make sure IOS58 is installed on the console or it will results in black screen when launching the channel
     
  11. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    So, if I understand correctly, by recompiling using the above code (instead of changing the wad's loaded IOS to 58 in customize mii/showmiiwads), the only real difference is that it will first try to use IOS58, but if its not found, it will use something else (as opposed to returning to the System Menu if IOS58 isn't found)

    I think I may actually have to personally test this out to fully understand it... I am especially curious to see if I inject the compiled forwarder dol into a wad, then install the wad using yawmm or w/e, if it will have dvd access (I know we said it shouldn't... but maybe the difference between a wad install and the official WiiMC installer is that the installer doesn't need a fakesigned IOS to install the forwarder channel, but maybe the installed content is the same in either case... I don't know!)
     
  12. Jacobeian

    Member Jacobeian GBAtemp Advanced Maniac

    Joined:
    May 15, 2008
    Messages:
    1,879
    Country:
    Cuba
    No, you didn't understand. DVD support (without DVDX or CIOS) is ONLY possible if the channel was installed with some special bits set in the TMD, the installed content (.dol) has nothing to do with this.
    no channel installer actually do this but it should be possible in theory, this is quite well documented I think on hackmii
     
  13. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    ok, i get it now (even though it wasn't the answer I was hoping for). Maybe you can confirm my summary below...

    So basically for dvd access, WiiMC needs to be launched using the HBC or the official WiiMC channel (latest rev). USB2 support can still be put into any forwarder channel though, either by using the new source code from above, or by changing existing forwarder channels to use IOS58 with customizemii/showmiiwads. But if using the 2nd method (customize mii/showmiiwads), the channel will require IOS58 installed otherwise the channel will just return to the system menu.

    I wouldn't be surprised if wad managers could be modded to install content with modified TMD's... that is beyond me... but maybe in the future, there could be another way to install forwarder channels with full hardware access without needing the closed source wiimc forwarder channel installer code.
     
  14. UranusKiller

    Member UranusKiller TranceMaster

    Joined:
    Feb 9, 2009
    Messages:
    951
    Location:
    Redcar, England, UK.
    Country:
    United Kingdom
    Don't expect that secretive code to be revealed! [​IMG]
     
  15. qwertymodo

    Member qwertymodo GBAtemp Advanced Fan

    Joined:
    Feb 1, 2010
    Messages:
    769
    Country:
    United States
    The WiiMC forwarder is GPL, and based on past versions Tantric uses official libogc releases (instead of so many other projects that use their own custom builds... so annoying... although the IOS58 code may only be in the SVN releases so far, not sure), so using it to create other forwarders is trivial. I plan on creating a bunch of forwarders here in the next couple of days. However, there are some known issues with the latest forwarder (which causes USB HD's to not be detected at all), but Tantric said he has fixed them and will be releasing soon. I'm just waiting to get the bugs fixed before I start cranking out a bunch of forwarders based on buggy source.

    Edit: Woops, missed the part about that not having anything to do with AHBPROT, but at least the new forwarders will have IOS58 support...
     
  16. Skater4599

    Member Skater4599 GBAtemp Advanced Fan

    Joined:
    May 29, 2008
    Messages:
    939
    Location:
    United States
    Country:
    United States
    Ive looked at tantrics new forwarder source it does infact contain the way to use the new functions AHBPROT stuff for dvd access etc. It is possible to add these to his emulators as well. I planned on updating the forwarders in my thread (in my sig). But im also leaving 202 ones up cause i personally find ios58 usb speeds much slower, and i could care less about reading roms from DVD. AHBPROT has actually been knows for some time now, it just was not that usefull until IOS58 came along with USB2.0 modules. "Officially"
     
  17. Slimmmmmm

    Member Slimmmmmm GBAtemp MoNkEeE

    Joined:
    Nov 1, 2007
    Messages:
    1,687
    Location:
    the land of lol
    Country:
    United Kingdom
    I'm not sure but I "think" some dlc installers modify the tmd.
     
  18. qwertymodo

    Member qwertymodo GBAtemp Advanced Fan

    Joined:
    Feb 1, 2010
    Messages:
    769
    Country:
    United States
    No, it was useful, and used. It's just that until now we've known it as DVDX (since DVDX was the old way of activating it, before they integrated it directly into HBC). USB2.0 has nothing to do with the usefulness of AHBPROT because AHBPROT enables direct hardware access from PPC, bypassing the restrictions of IOS for things like direct DVD reading, so it bypasses IOS entirely... meaning a new IOS has nothing to do with its usefulness.
     
  19. Hielkenator
    OP

    Member Hielkenator GBAtemp Psycho!

    Joined:
    Feb 7, 2010
    Messages:
    4,176
    Country:
    Netherlands
    For anyone who missed it, and does'nt want to get to technical,
    Tantric is working on "official" forwarder channels for his emulators.

    Just be patient.
    In the mean time I'll load the emulators from the HBC, wich enables DVD support to the emu's ( AHBPROT)
     
  20. cwstjdenobs

    Member cwstjdenobs Sodomy non sapiens

    Joined:
    Mar 10, 2009
    Messages:
    1,757
    Location:
    Ankh-Morpork
    Country:
    United Kingdom
    Just set the access rights field in your TMD to 3 and the IOS (sys_version) to 58 if you don't want to wait.

    EDIT: So if you're handy with a hex editor that's 0x18B to 0x3A and 0x1DB to 0x03
    EDIT the 2nd: Also make sure the forwarder dol you are using doesn't do any IOS reload.
     

Share This Page