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 

Clean ram and load firmware from ms

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



Joined: 30 Mar 2008
Posts: 261

PostPosted: Thu Apr 22, 2010 6:47 am    Post subject: Clean ram and load firmware from ms Reply with quote

Hi,

It seems i can't find any clear documentation about this:
Why can't we just run a small ASM application from a exploit which clears all the ram (user and kernel space) and then imitates the behaviour of the IPL and load a firmware from the MS like timemachine?

I tought the psp uses Cooperative multitasking so when it is running a asm application which doesn't call any PSPSDK functions it would just keep running the ASM and the firmware doesn't interfere.

Do i misunderstand some facts because the consept seems so easy but it has not been made yet.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
coyotebean



Joined: 05 Dec 2009
Posts: 26

PostPosted: Thu Apr 22, 2010 2:29 pm    Post subject: Reply with quote

You cannot do anything with a user mode exploit. You have no access to kernel space, kernel functions and hardware I/O
_________________
GBASP x1, GBM x2, NDSL x2, PSP 100X x3, PSP 200X x5, PSP 300X x3, PSP Go x2, Wii x1
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Thu Apr 22, 2010 5:58 pm    Post subject: Reply with quote

Yes i know.

I'm used to be a programmer for psp apps.

But why shoeldn't you have that access? How does that access meganism work? What is the difference between usermode ASM and kernelmode ASM? You are just running plain ASM without the inteference of the firmware. So you should be able to do everything you want.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Thu Apr 22, 2010 7:17 pm    Post subject: Reply with quote

Did you read a MIPS reference before starting talk? I guess you don't. I strongly suggest you doing so.

The protection is hardware based, there's nothing you can do by software to fool it. The CPU distinguishes between 2 big types of memory: user (low 2 GB) and kernel (high 2 GB). If for example a user mode code tries to load a word from kernel space, the CPU will just raise an exception about invalid address. Also RAM interface in PSP is programmable to allow/deny read/write permissions to RAM by pages.
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Fri Apr 23, 2010 8:03 am    Post subject: Reply with quote

So if i get it right... this could only be done from kernel space.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
arnie



Joined: 11 Apr 2009
Posts: 16

PostPosted: Mon Apr 26, 2010 8:53 am    Post subject: Reply with quote

Yes. Also, some firmware modules loaded can't be unloaded, and the only firmware you can load it the one you have on flash. If you want to load from ms, that's another story. MS Fat Flash driver. D:

-Arnie
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Mon Apr 26, 2010 10:47 pm    Post subject: Reply with quote

You'd have to make sure you'd disabled all hardware interrupts too.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
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