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
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