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 

Launching an homebrew within another homebrew

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Phantom8



Joined: 17 Jun 2005
Posts: 30

PostPosted: Fri Feb 10, 2006 3:46 pm    Post subject: Launching an homebrew within another homebrew Reply with quote

I'm working on a screen shot tool which allows you to take screen shots from other UMD games/homebrew. I know there are a couple available, but I want to make my own.

I have not much problem in getting screenshots for UMD games, but I can't seem to get any homebrew to load properly within my screen shot program. I used sceKernelLoadModule, but it always returns with memory block allocation failure when loading homebrew. I checked I still have 24MB of total free memory left before launching another homebrew. Anyone has any ideas? TIA!
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Fri Feb 10, 2006 4:18 pm    Post subject: Reply with quote

you'll have to create a program that loads into kernel space - look how psplink does that by using a small bootstrap loader and a prx which contains the actual program.
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
Phantom8



Joined: 17 Jun 2005
Posts: 30

PostPosted: Sat Feb 11, 2006 12:41 pm    Post subject: Reply with quote

groepaz, thanks for the suggestion! Is creating a prx in kernel space the only way to solve the problem? Will it still work if the prx run under user space?
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sat Feb 11, 2006 12:45 pm    Post subject: Reply with quote

A possible alternative is to link your elf at a really low address (think 0x88004000 is the lowest you can go and still run), look at psp-packer's stub source for ideas how to relink an elf to a different address. However the kernel mode prx is the best solution as it moves your code completely out of user memory, although if you are making screenshots using png you will be tight for space as that lib is _big_ :)
Back to top
View user's profile Send private message
Phantom8



Joined: 17 Jun 2005
Posts: 30

PostPosted: Mon Feb 13, 2006 5:28 pm    Post subject: Reply with quote

Thanks for the hint, TyRaNiD! I think I'll stick with the kernel prx approach if I can get it to work. lol.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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