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 

loader2 for firmware 2.0

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



Joined: 20 Aug 2005
Posts: 3

PostPosted: Tue Oct 04, 2005 9:23 am    Post subject: loader2 for firmware 2.0 Reply with quote

I made a new loader to replace Toc2rta's h.bin loader.

Why?
The main advantage of this loader is that the TIFF thread can return cleanly to libtiff and the system continues running as if nothing happened. This allows some more reverse-engineering, for instance dumping memory after entering web browser or some other program of interest.

The hello world 2 program used as example also demonstrates how to kill some VSH threads to achieve solid, flickerless screen. This may be useful if someone wants to implement a (user-space-only) homebrew loader compatible with pspsdk.

How?
This is a complete rewrite.
- Completely new loader code. Wallpaper PNG contains all of the program loader. Source code for generating PNG's from assembly is included.
- Completely new TIFF image to do the overflow. It contains only what is necessary (150 bytes). Perl code for producing the TIFF is included. Instead of BitsPerSample tag, this one uses Compression tag. It is processed earlier in libtiff, so repairing stack is easier.
- Load address changed to 0x08556000
- Hello world 2 kills VSH threads by overwriting syscalls in user memory with jump instructions. VSH threads will jump to hijacker function that calls sceKernelExitThread().

Where?
You can download it at http://sunkone.cjb.net/psp/loader2/.
Source for everything is included.
An example of background threads is here: http://sunkone.cjb.net/psp/dumper2/

Note: the loader hasn't been widely tested - nobody seems to have firmware 2.0 these days :P
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Tue Oct 04, 2005 9:26 am    Post subject: Reply with quote

nice one :)
_________________
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
sherpya



Joined: 03 Oct 2005
Posts: 61

PostPosted: Tue Oct 04, 2005 10:26 pm    Post subject: Reply with quote

Very intresting, btw if you want windows portability you must open binary files using 'wb' instead of 'w'
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