 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sat Jul 05, 2008 3:40 am Post subject: Execute PBP via USBHostFS |
|
|
Ok, I have been trying to get it to work but nothing.
I already read this thread:
http://forums.ps2dev.org/viewtopic.php?t=6249&highlight=assign+file
But the code supplied was very similiar to mine, just needed to add 1 thing but didn't work anyway.
I also read a post in PSP Link thread which was a reply by TyRaNiD to Ahman I think.
This was my code:
| Code: |
SceUID res;
res = sceIoUnassign("ms0:");
if (!iserr(res) || res == 0x80020321){
res = sceIoUnassign("msoem0:");
if(!iserr(res) || res == 0x80020321) {
res = sceIoAssign("ms0:", "host:", NULL, IOASSIGN_RDWR, NULL, 0);
if(!iserr(res)) {
res = sceIoAssign("msoem0:", "host:", NULL, IOASSIGN_RDWR, NULL, 0);
if (!iserr(res)) {
remapped = 1;
}
else {
printf("\nError assigning host as msoem0 0x%08X", res);
remapped = 0;
}
}
else {
printf("\nError assigning host as ms0 0x%08X", res);
remapped = 0;
}
}
else {
printf("\nError unassigning msoem0 0x%08X", res);
remapped = 0;
}
}
else {
printf("\nError unassigning ms0 0x%08X", res);
remapped = 0;
}
|
I was always getting a "No Such Device" Error.
So I decided to spend all day reading psplink's/usbhostfs's source code and found that usbhostfs.prx use host and not host0.
So I tried with host instead of host0 but nothing, again.
After that, I decided to include host_driver.c and usbhostfs.h in my prx (kernel) and use the function hostfs_init(); to add the new drive (host).
Didn't work again.
Then I tried using host0 in host_driver.c instead but nothing.
The only thing I didn't try was creating a driver called host0 and point the io functions to host_driver.c io functions.
To use host_driver.c I needed to add a new function to exports.exp (command_xchg)
I hope someone can help me :)
(I have been trying to do this whole thing because I always get a 0x00800139 error (exclusive load)) _________________
Upgrade your PSP |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sat Jul 05, 2008 11:20 pm Post subject: |
|
|
You obviously didn't read very far :P The PSP aliases host to host0 and the psp side driver of usbhostfs only hands off the drive letter to the PC side, it is the PC side which decides which mapping to use.
Still anyway I assume you probably still have blacklists even on new firmwares which you would have to remove to get the mapping to work, personally I don't pay attention to PSP stuff much these days so I have no idea :)
You might be able to unassign ms0 then create use sceIoAddDrv to create a version of hostfs which actually uses ms as its drive name... |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sun Jul 06, 2008 1:03 am Post subject: |
|
|
hmm ok :)
I will give it a try again :P
I already tried creating a driver for host0 using hostfs io functions but didn't work :P
I will try unassigning ms0 and delete the ms0 driver, then create a ms0 driver and use hostfs io functions _________________
Upgrade your PSP |
|
| 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
|