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 

What is happening at bootup with the memory stick?

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



Joined: 13 Jan 2005
Posts: 56

PostPosted: Wed May 18, 2005 4:52 pm    Post subject: What is happening at bootup with the memory stick? Reply with quote

Has anyone had a looksee at what's going on when the psp is first turned on?

The psp, when first turned on, access the memory stick for about 1.5 seconds before actually booting to the firmware's opening screen.

Could it be looking for a diagnostic program on the memory stick? perhaps something that only sony has? Some kind of failsafe flash loader?

I'm just tossing ideas around here, but is there a way to tap into the memory stick and see what the psp is looking for?

perhaps a "boot loader" could be written that would be run when the psp is first turned on. Finding out what the PSP is looking for would be a first step to seeing what might happen no?

If that's the case, there might be a certain folder that gets accessed that we could try dumping a file with the "bootable" flag set to 1?

Just an idea.

Cheers
Back to top
View user's profile Send private message
Erant



Joined: 13 May 2005
Posts: 33

PostPosted: Wed May 18, 2005 6:24 pm    Post subject: Reply with quote

I've already discussed this idea earlier, and it is a good idea, but the actual execution might be a problem. I think it to be a good idea because it's really looking for something, not just confirming that there's a memorystick in there, because it does that when booting the GUI. (The memstick icons won't show up at first, only after some slight memstick activity). In order to execute this, you'd have to have one of those Memstick to Memstick Duo converters, and tap the lines into an FPGA or a digital multi-channel oscilloscope. And I have neither...
_________________
Live free, prosper, and under my rule.
Back to top
View user's profile Send private message
th0mas



Joined: 24 Apr 2005
Posts: 43
Location: Canada

PostPosted: Wed May 18, 2005 10:59 pm    Post subject: Reply with quote

Examining the bootstrap code would be the only way to know what it's looking for.

I have a related question.

On the flash0/1 filesystems, there are portions of the kernel that are encrypted.

Wouldn't these modules be loaded in readable RAM in the userspace (as they are callable kernel calls)?

(in other words we could obtain the decrypted modules, providing a better insight, by copying from RAM instead of dumping from the flash)
_________________
http://th0mas.xbox-scene.com
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu May 19, 2005 12:52 am    Post subject: Reply with quote

th0mas wrote:
Wouldn't these modules be loaded in readable RAM in the userspace (as they are callable kernel calls)?


No, they are loaded in kernel space and protected from read access by the MMU.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu May 19, 2005 12:58 am    Post subject: Re: What is happening at bootup with the memory stick? Reply with quote

Pikoro wrote:
The psp, when first turned on, access the memory stick for about 1.5 seconds before actually booting to the firmware's opening screen.

Could it be looking for a diagnostic program on the memory stick? perhaps something that only sony has? Some kind of failsafe flash loader?


It does the same 1.5 second access when you quit out of USB mode, or exit from a game. It's probably rescanning the memory stick for XMB accessible content, such as media and games.

Even if you could log what's going on in those accesses, and you saw something that looked like it wanted to boot a file, how would you figure out the executable format it wanted?
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu May 19, 2005 1:08 am    Post subject: Reply with quote

Ok, I've had enough of these empty posts with idle speculation and no research. It adds no new or useful information, and it doesn't get you cool points or whatever (I think I've said this before). From now on I'm moving such posts out of PSP Development into General or Off-topic. If it's redundant it gets locked.

Moved.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu May 26, 2005 2:17 am    Post subject: Reply with quote

Moved to it's rightful place on the exploit board.
Back to top
View user's profile Send private message
jimmygoon



Joined: 26 May 2005
Posts: 8

PostPosted: Thu May 26, 2005 10:03 am    Post subject: Reply with quote

Maybe this is something that could be looked into by examining the contents of the 1.0 Firmware dump... I would but I have no idea about any of this PSP stuff... but I figured... if its doing it at cold-start then it must be in the firmware

sorry if I'm pointing out the obvious :S
Back to top
View user's profile Send private message
Pikoro



Joined: 13 Jan 2005
Posts: 56

PostPosted: Thu May 26, 2005 4:31 pm    Post subject: Reply with quote

Another thing i was thinking about is... perhaps it's looking for a theme to be loaded?

I've been playing around with tossing different types of files in different directories on the memory stick.. but haven't really put much time into it since i've been busy with other stuff...

Cheers
Back to top
View user's profile Send private message
konfig



Joined: 06 Jan 2005
Posts: 68

PostPosted: Sat May 28, 2005 3:29 pm    Post subject: Reply with quote

If the psp is finding bootable data, the bootable data in the ms may not be files. It may be stored in some boot section, or even in some unknown area.

I know about the ms hardware, so it is only a guess.
Back to top
View user's profile Send private message MSN Messenger
konfig



Joined: 06 Jan 2005
Posts: 68

PostPosted: Sat May 28, 2005 3:39 pm    Post subject: Reply with quote

mrbrown wrote:
th0mas wrote:
Wouldn't these modules be loaded in readable RAM in the userspace (as they are callable kernel calls)?


No, they are loaded in kernel space and protected from read access by the MMU.


Could this mean umd games and ms applications must base on the psp os kernel from the firmware and thus can't take full control of the psp hardware?

It has been found that umd games have their own files to replace the firmware in the memory. How does umd game do this?
Back to top
View user's profile Send private message MSN Messenger
Fabre



Joined: 22 May 2005
Posts: 18

PostPosted: Thu Jun 02, 2005 9:01 am    Post subject: Reply with quote

I noticed that in the technical specs, it mentions 4 MB of DRAM. Is the other 32 MB Static RAM? If it is, you could just hook up an external power source to the RAM chip, wait until a point at which the decoded modules would be in RAM, then disconnect the chip, keeping the power lines attached. Drop it in a reader, and you have all the decoded modules you need :D
Back to top
View user's profile Send private message
darkfader



Joined: 27 Mar 2005
Posts: 8
Location: Netherlands

PostPosted: Fri Jun 10, 2005 11:41 am    Post subject: Reply with quote

Hmz.. that's not very easy to do :)
What about loading some tiny program into memory (some OS call) before starting a real game and then trap the call and dump the memory?
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Fri Jun 10, 2005 9:38 pm    Post subject: Reply with quote

Fabre wrote:
I noticed that in the technical specs, it mentions 4 MB of DRAM. Is the other 32 MB Static RAM?


it is extremely well and authoritatively documented that the 32MB is SDRAM. You may wish to make use of the search function on pre-existing threads to educate yourself before further commenting on physical memory issues.
Back to top
tazaleth



Joined: 29 May 2005
Posts: 6

PostPosted: Sat Jun 11, 2005 3:03 am    Post subject: Reply with quote

I believe a tool recently came out that does in fact run in kernel mode and allow one to dump memory. KDumper. It has source included. It should be available here on ps2dev, seeing as they are the ones who released it.
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