usb_mass and ps2link problems
Posted: Wed Aug 20, 2008 2:40 pm
Hello! I have created a simple program that loads the appropriate USB drivers to use a mass storage device. However, I can only run it from uLaunchelf. When I run it from ps2link, ps2link crashes and video output stops (blue screen).
When run from uLaunchelf, "Usb Driver Initialized" is printed to my screen.
When run from ps2link, crazy stuff happens :) Can someone please explain why this is happening and is there a way around it? Thanks
Code: Select all
int ret;
SifInitRpc(0);
init_scr();
// SBV Patches
sbv_patch_enable_lmb();
sbv_patch_disable_prefix_check();
ret = SifLoadModule("rom0:SIO2MAN", 0, NULL);
ret = SifLoadModule("rom0:MCMAN", 0, NULL);
ret = SifLoadModule("rom0:MCSERV", 0, NULL);
ret = SifLoadModule("rom0:PADMAN", 0, NULL);
ret = SifLoadModule("rom0:IOMAN", 0, NULL);
mcInit(MC_TYPE_MC);
ret = SifLoadModule("mc0:usbd.irx", 0, NULL);
ret = SifLoadModule("mc0:usb_mass.irx", 0, NULL);
nopdelay();
ret = usb_mass_bindRpc();
if (ret < 0 )
{
scr_printf("\nSifBindRpc failed: %d !!!!\n", ret);
}
else
{
scr_printf("Usb Driver Initialized\n");
}
When run from ps2link, crazy stuff happens :) Can someone please explain why this is happening and is there a way around it? Thanks