forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Loading PRX's/Raw Reading in C

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
erifash



Joined: 28 Nov 2005
Posts: 6

PostPosted: Wed Mar 29, 2006 5:54 am    Post subject: Loading PRX's/Raw Reading in C Reply with quote

I have a few questions, namely what I am trying to accomplish is making a UMD ripper. I would guess that the major steps in doing this would be:

1. Load the PRX to mount the UMD to a drive letter.
2. Open the UMD for raw reading.
3. Read each sector, writing to a file as it goes along (I am assuming sector size is 512 bytes, correct me if I am wrong).
4. Close all the file handles and stuff :)

My main questions about completing this are:
1. How do you use the UMD mounting PRX?
2. How do you raw read from a drive?

If any of you coders have some snippets or even the source code of a UMD ripper (ex: fastloader) that would be greatly appreciated. I just want to be pointed in the right direction because the PSP has a lot of programming potential. Thanks!
_________________
AutoIt3 scripter.
Back to top
View user's profile Send private message
erifash



Joined: 28 Nov 2005
Posts: 6

PostPosted: Wed Mar 29, 2006 6:29 am    Post subject: Reply with quote

Hmmm... I have found the prx sample (testprx) but I can't seem to compile it. Here is the error I get:
Quote:
L:\CPP\dkp\dkPSP\psp\sdk\samples\prx\testprx>make
psp-gcc -I/l/CPP/dkp/dkPSP/psp/sdk/include/libc -I. -I/l/CPP/dkp/dkPSP/psp/sdk/i
nclude -O2 -G0 -Wall -c -o main.o main.c
psp-build-exports -b exports.exp > exports.c
psp-gcc -I/l/CPP/dkp/dkPSP/psp/sdk/include/libc -I. -I/l/CPP/dkp/dkPSP/psp/sdk/i
nclude -O2 -G0 -Wall -c -o exports.o exports.c
psp-gcc -I/l/CPP/dkp/dkPSP/psp/sdk/include/libc -I. -I/l/CPP/dkp/dkPSP/psp/sdk/i
nclude -O2 -G0 -Wall -L. -L/l/CPP/dkp/dkPSP/psp/sdk/lib -specs=/l/CPP/dkp/dkPSP
/psp/sdk/lib/prxspecs -Wl,-q,-T/l/CPP/dkp/dkPSP/psp/sdk/lib/linkfile.prx main.
o exports.o -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpsplibc -lpspn
et -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspke
rnel -o mymodule.elf
l:\cpp\dkp\dkpsp\bin\..\lib\gcc\psp\4.0.2\..\..\..\..\psp\bin\ld.exe: cannot ope
n linker script file /l/CPP/dkp/dkPSP/psp/sdk/lib/linkfile.prx: No such file or
directory
make: *** [mymodule.elf] Error 1
rm exports.c

It is something wrong with my PATH variable, how do I fix this?
_________________
AutoIt3 scripter.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed Mar 29, 2006 6:51 am    Post subject: Reply with quote

Before I even start we do not support iso ripping, iso loading or piracy in general on these forums. There is virtually no legitamate need to rip a raw image of a umd disc except for very specific reasons and even then they are scant at best (and would be purely for tasks which based on your posts I doubt you are yet capable of). There isn't really even much of a reason to just take the files from a umd disc.

Why do you want to make a prx anyway? From what you've said there is no need for using one, it could all be done using a normal user mode elf file. Perhaps you are best off trying the dev forums of pspupdates for info ;)
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Wed Mar 29, 2006 7:24 am    Post subject: Reply with quote

Locked.
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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