Forwarder Channel that wakes up USB hard drive

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

Jan 30, 2010
  1. xombi-mp

    Newcomer xombi-mp Member

    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

    Newcomer K405 Member

    Apr 21, 2009
    Great findings!

    Your hero will be my hero [​IMG]

    I'll add the magic word.. Please? [​IMG]

Share This Page