@spacejump: maybe this works ?
LOPST
and here ist the code, that i ALWAYS inserted in other usbloaders for my HDD:
(this worked best for me , cause my platinum mydrive 320GB needs ~15 sec. :-( )
CODEs32 WBFS_Init(void)
{
ÂÂÂÂs32 ret;
ÂÂÂÂint i=0;
ÂÂÂÂprintf("\nPlease insert USB device.\n");
ÂÂÂÂprintf("ÂÂ (try to connect and disconnect USB)\n");
ÂÂÂÂprintf("\nTrying to load USB (delay 40 sec. max.)");
ir:
ÂÂÂÂi++;
ÂÂÂÂprintf(">");
//ÂÂÂÂsleep(1);
ÂÂÂÂret = IOS_ReloadIOS(249);
//ÂÂÂÂsleep(5);
ÂÂÂÂ/* Initialize USB storage */
ÂÂÂÂret = USBStorage_Init();
ÂÂÂÂif (i==40)
ÂÂÂÂ{
ÂÂÂÂÂÂÂÂWpad_Init();
ÂÂÂÂÂÂÂÂprintf("\n No USB device.\n\n");
ÂÂÂÂÂÂÂÂ/* Restart */
ÂÂÂÂÂÂÂÂRestart_Wait();
ÂÂÂÂ}
ÂÂÂÂif (ret < 0)
ÂÂÂÂÂÂÂÂgoto ir;
//ÂÂÂÂÂÂÂÂreturn ret;
ÂÂÂÂWpad_Init();
ÂÂÂÂ
ÂÂÂÂ/* Get USB capacity */
ÂÂÂÂnb_sectors = USBStorage_GetCapacity(§or_size);
ÂÂÂÂif (!nb_sectors)
ÂÂÂÂÂÂÂÂreturn -1;
ÂÂÂÂreturn 0;
}