Forwarder Channel that wakes up USB hard drive

Discussion in 'Wii - Emulation and Homebrew' started by xombi-mp, Jan 30, 2010.

  1. xombi-mp
    OP

    xombi-mp Member

    Newcomer
    2
    Aug 28, 2009
    United States
    I have been editing the UniversalForwarder source code to forward to my usbloader applications. The problem is that when my USB hard drive is sleeping and I launch the forwarder and launch cfg usbloader, the Wii freezes at the splash screen or sometimes the 30 sec count down and I have to hard reboot the Wii.

    Most of the usbloaders that I forward to have this problem when the USB drive is asleep. However, USBLoader GX is able to boot every time. I've taken a look at their source code and they have a function that wakes up the hard drive and a ton of other logic to handle boot up issues. A section of the main function of USBLoader GX:

    CODEUSBDevice_Init();ÂÂ // seems enough to wake up some HDDs if they are in sleep mode when the loader starts (tested with WD MyPassport Essential 2.5")

    ÂÂÂÂgprintf("\n\tChecking for stub IOS");
    ÂÂÂÂios222rev = getIOSrev(0x00000001000000dell);
    ÂÂÂÂios249rev = getIOSrev(0x00000001000000f9ll);

    ÂÂÂÂ//if we don't like either of the cIOS then scram
    ÂÂÂÂif (!(ios222rev==4 || (ios249rev>=9 && ios249rev
     
  2. K405

    K405 Member

    Newcomer
    2
    Apr 21, 2009
    Netherlands
    Great findings!

    Your hero will be my hero [​IMG]

    I'll add the magic word.. Please? [​IMG]
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice