 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
dmonchild
Joined: 23 Dec 2007 Posts: 15
|
Posted: Sun Feb 17, 2008 10:22 am Post subject: Confusing problem with usb. Probably common... |
|
|
Alright i'm having some major problems getting the usb modules to load on any firmware other then 3.71, at 1st i thought oh it probably wants some spiffy call backs so i wrote the modules into call back threads and put them in, it doesn't make a difference.
The source from the sdk seems to work just great on any firmware compiled as an eboot.
I've scammed some lines from it that i thought looked appropriate, it all works great but the only catch is it doesn't work on any other firmwares other then 3.71, please note my final binary is PRX not eboot also. and the way i have it set up is potentialy dangerous and has been taken into consideration.
What could be done to the way i am putting this into my prx to make usb work on all firmwares rather then just 3.71?
i'd post my source but its 6000 lines. (I doubt their sql would like me for that)
| Code: |
#include <pspusb.h>
#include <pspusbstor.h> |
Here is my usb start.
| Code: |
void usb()
{
//start necessary drivers
LoadStartModule("flash0:/kd/semawm.prx");
LoadStartModule("flash0:/kd/usbstor.prx");
LoadStartModule("flash0:/kd/usbstormgr.prx");
LoadStartModule("flash0:/kd/usbstorms.prx");
LoadStartModule("flash0:/kd/usbstorboot.prx");
sceUsbstorBootSetCapacity(0x800000);
sceUsbStart(PSP_USBBUS_DRIVERNAME, 0, 0);
sceUsbStart(PSP_USBSTOR_DRIVERNAME, 0, 0);
sceUsbActivate(0x1c8);
} |
in the main i put
to get the ball rolling. (works)
and in the stop thread i put sceUsbDeactivate(0x1c8);
| Code: |
int _stop(SceSize args, void *argp)
{
sceUsbDeactivate(0x1c8);
running = 0;
sceKernelTerminateThread(thid);
return 0;
} |
Sorry about the noobish post :( but im really interested in this stuff i wake up early and dream about code , wack back 2 liters of cola in 20 hours of uptime while my computers melting just to learn lol... |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
|
| Back to top |
|
 |
dmonchild
Joined: 23 Dec 2007 Posts: 15
|
Posted: Mon Feb 18, 2008 12:17 am Post subject: |
|
|
Wow! witty you're in a lot of places @ the same time, irc, the other site where you'd also replied to a similar thread of mine and here.
Welp this was what i was looking for but didnt solve any problems.. very strange.. i've tried just about everything now. oh well i'll try again when i'm feeling like losing again. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|