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 

UPDATER mode patch for eLoader

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



Joined: 28 Sep 2005
Posts: 217

PostPosted: Wed May 17, 2006 10:01 am    Post subject: UPDATER mode patch for eLoader Reply with quote

Hi folks, for any interested parties, we released a patch for eLoader 0.97 that allows it to run GTA in UPDATER mode, as per the technique suggested by moonlight in this thread.

It currently only works on v2.0 PSPs, but might be of interest to anyone looking to explore this little hack.

You can download the patch at http://noobz.eu.
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Wed May 17, 2006 12:49 pm    Post subject: Reply with quote

ahh why post pspu thread ...i will not be a member
just to read that thread by moonlight ...can you post
info in a paste or post in this thread ?

thanx in advance
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
0okm0000



Joined: 13 Jan 2006
Posts: 116

PostPosted: Wed May 17, 2006 2:08 pm    Post subject: Reply with quote

moonlight wrote:
Just a thought that came to my mind, but probably won't work...

#include <psploadexec.h>

#define PATH "disc0:/PSP_GAME/SYSDIR/EBOOT.BIN"

void reinit_inupdater()
{
struct SceKernelLoadExecParam param;

param.size = sizeof(param);
param.args = strlen(PATH) + 1;
param.argp = PATH;
param.key = "updater";

sceKernelLoadExec(PATH, &param);
}

In the best of cases, if it succeded, the GTA would be reinited in updater mode, where there are less restrictions, and where probably writing to the flash0 is possible.

In the worst of cases, only a waste of time

Unfortunaly, i don't have a 2.01+ to test these things myself.

moonlight wrote:
The sceKernelLoadExec can be called from user mode, at least in 1.50. (but it can only execute files from the disc, curiously, in 1.50, sceKernelLoadExec in user mode can run the BOOT.BIN, not encrypted, but not EBOOT.BIN, the encrypted one :S )

Here you have the exported LoadExec functions for user mode:

http://svn.ps2dev.org/filedetails.php?repname=psp&path=%2Ftrunk%2Fpspsdk%2Fsrc%2Fuser%2FLoadExecForUser.S&rev=0&sc=0

FreePlay, don't get confused by the word "kernel". A lot of other functions that have the "kernel" word like sceKernelCreateThread, sceKernelStartThread... can be called from user mode.

_________________
PSP hardware hack
http://0okm.blogspot.com/
Back to top
View user's profile Send private message Visit poster's website
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Wed May 17, 2006 2:45 pm    Post subject: Reply with quote

whats that fuzz about updater mode anyway?
_________________
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
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed May 17, 2006 4:19 pm    Post subject: Reply with quote

groepaz wrote:
whats that fuzz about updater mode anyway?


There is nothing special about it... I thought that maybe there would be less restrictions, but i was wrong. If the module has not vsh attributes, the access to flash and functions from sceVshBridge are restringed.
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Wed May 17, 2006 4:29 pm    Post subject: Reply with quote

indeed :) cpu mode doesnt change, regardless what configuration is booted :)
_________________
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
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Wed May 17, 2006 7:44 pm    Post subject: Reply with quote

There was some hope that some of the restrictions might be different (for instance, Yoshihiro's speculation that flash access is restricted for games), or that some different modules might be available.

VshBridge is loaded in UPDATE mode, for instance - but sadly we can't use it because we don't have the VSH thread attribute.

Anyway - it's just a little curiosity, since I had the patch in hand it seemed worth releasing it.
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Wed May 17, 2006 8:26 pm    Post subject: Reply with quote

just curious

// Define the module info section for VSH module
PSP_MODULE_INFO("modWifiTest", 0x0800, 1, 1);
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Thu May 18, 2006 7:25 am    Post subject: Reply with quote

dot_blank wrote:
just curious

// Define the module info section for VSH module
PSP_MODULE_INFO("modWifiTest", 0x0800, 1, 1);


Difficult to edit that flag into BOOT.BIN on the UMD though...

And remember that the eLoader isn't running in kernel mode (or even VSH mode, in this case) - so it can't honour the module's request for the VSH flag. The whole point of the eLoader is that it simulates what it can from sceKernelLoadExec - but it can't grant permissions that it doesn't have.

Of course, I don't know if anyone has tried to LoadExec a plaintext module from the MS in the same way as the plaintext BOOT.BIN is executed. But I suspect that the only reason the plaintext exec is allowed is because the file is on UMD, and just user-mode.
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Thu May 18, 2006 8:18 am    Post subject: Reply with quote

Fanjita wrote:

Of course, I don't know if anyone has tried to LoadExec a plaintext module from the MS in the same way as the plaintext BOOT.BIN is executed. But I suspect that the only reason the plaintext exec is allowed is because the file is on UMD, and just user-mode.


Of course!! It will give you an error ILLEGAL_LOADEXEC_DEVICE.

Btw, fanjita, have you used the function sceKernelLoadModuleMs in GTA? This function lets you load a signed kernel module (not user ones :O) from the memory stick. Maybe you could use this function to load the usb drivers in GTA, although you would have to copy them from the flash to the memstick :D
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