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 

PSP Slim RAM partitions
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
kururin



Joined: 05 Jul 2006
Posts: 36

PostPosted: Tue Sep 11, 2007 8:28 am    Post subject: PSP Slim RAM partitions Reply with quote

A quick bruteforce using sceKernelQueryMemoryPartitionInfo gave this:

partition 1 (kernel high)

topaddr = 0x88000000, size = 0x300000 (3 MB), attr = 0x0C

partition 2: (user)

topaddr = 0x08800000, size = 0x1800000 (24 MB), attr = 0x0F

partition 3: (mirror of partition 1)

partition 4: (kernel low)

topaddr = 0x88300000, size = 0x100000 (1 MB), attr = 0x0C

Partition 5: (volatile)

topaddr = 0x08400000, size = 0x400000 (4 MB), attr = 0x0F

Partition 6: (mirror of partition 2)

Partition 8: (new in the psp slim!)

topaddr = 0x8A000000, size = 0x1C00000 (28 MB), attr = 0x0C

Partition 10: (new in psp slim!)

topaddr = 0x8BC00000, size = 0x400000 (4 MB), attr = 0x0C


So it seems at first the new partitions are for kernel mode use, but i guess they can be unlocked for user mode use with the SetDdrMemoryProtection function :)
Back to top
View user's profile Send private message
Chrighton



Joined: 15 Jun 2005
Posts: 58

PostPosted: Wed Sep 12, 2007 12:58 am    Post subject: Reply with quote

Nice info, thanks :)
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Wed Sep 12, 2007 2:53 am    Post subject: Reply with quote

Interesting info, 0x8A000000 is probably the one used for UMD cache :P
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Sep 12, 2007 4:07 am    Post subject: Reply with quote

Whether or not RAM is used for the cache is selectable in the settings. Does turning OFF the UMD cache affect the RAM partitions? It's something to check, at least.
Back to top
View user's profile Send private message AIM Address
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Thu Sep 13, 2007 9:47 am    Post subject: Reply with quote

According to Mathieulh the memory is reserved regardless of whether the cache is enabled or not. How wasteful...
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Sep 13, 2007 10:31 am    Post subject: Reply with quote

Sure enough it can be changed somehow :)
Back to top
View user's profile Send private message AIM Address
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Thu Sep 13, 2007 11:47 am    Post subject: Reply with quote

Yeah, unload umdcache.prx or (if the memory still stays allocated after unloading) patch sceKernelLoadModule to refuse to load that module :)

Break it! Break it!
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Sep 13, 2007 11:59 am    Post subject: Reply with quote

maybe have an option in recovery mode to enable it :P
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Sep 13, 2007 1:15 pm    Post subject: Reply with quote

Wally4000 wrote:
maybe have an option in recovery mode to enable it :P


Yeah, patch the firmware to disable the cache and map the mem contiguously. I'd rather have 56MB of contiguous user mem than a UMD cache.
Back to top
View user's profile Send private message AIM Address
Vincent_M



Joined: 03 Apr 2007
Posts: 73

PostPosted: Thu Sep 13, 2007 2:14 pm    Post subject: Reply with quote

Would it be possible to have both? In other words, have a switch in the firmware recovery mode that could set the system ram from default partition mode to contiguous ram. That way, you still have the default UMD cache if you want. It's just a thought, probably can't work, or probably doesn't make sense, I know... I wouldn't even know what you'd use the UMD cache for anyway.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Sep 13, 2007 3:12 pm    Post subject: Reply with quote

Play UMD's quicker :)
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Sep 13, 2007 4:09 pm    Post subject: Reply with quote

Vincent_M wrote:
Would it be possible to have both? In other words, have a switch in the firmware recovery mode that could set the system ram from default partition mode to contiguous ram. That way, you still have the default UMD cache if you want. It's just a thought, probably can't work, or probably doesn't make sense, I know... I wouldn't even know what you'd use the UMD cache for anyway.


They have an M33 VSH Menu that comes up when you press Home. You can change various things like the CPU speed and the UMD ISO mode. Maybe they could work this into that menu. It would be nice, but I'm not holding my breath on that one. :)
Back to top
View user's profile Send private message AIM Address
tacoSunday



Joined: 31 Aug 2007
Posts: 34

PostPosted: Thu Sep 13, 2007 9:57 pm    Post subject: Reply with quote

I think that the most transparent solution would be to add another flag to PSP_MAIN_THREAD_ATTR. A custom fw should be able to recognize this flag and remap the partition to userspace upon launching the app. I see no reason why the end user should have to bother with this.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Sep 14, 2007 3:47 am    Post subject: Reply with quote

tacoSunday wrote:
I think that the most transparent solution would be to add another flag to PSP_MAIN_THREAD_ATTR. A custom fw should be able to recognize this flag and remap the partition to userspace upon launching the app. I see no reason why the end user should have to bother with this.


Yes, if they can do that, it's certainly the best idea so far. :)
Back to top
View user's profile Send private message AIM Address
Vincent_M



Joined: 03 Apr 2007
Posts: 73

PostPosted: Fri Sep 14, 2007 6:39 am    Post subject: Reply with quote

Yeah, you guys really know your stuff... I don't know much just yet. Is there a way to downgrade the PSP Slim's custom firmware down to version 1.5. I really like using it, but I don't really know if the new PSP can support the older firmware. Do any of you know? The whole point of downgrading for me is so that I can continue to work on my current projects with the extra memory. I've been looking at the compatibility lists, and some homebrew apps created on the original PSP (like the ones that use ME features in particular) don't work on PSP Slim. Also, I've heard that custom firmware doesn't always work as well as version 1.5. Anyway, just wondering. Good work though, mad props!
Back to top
View user's profile Send private message
cloudhunter



Joined: 17 Aug 2006
Posts: 86

PostPosted: Fri Sep 14, 2007 12:53 pm    Post subject: Reply with quote

No, you cannot downgrade the PSP slim. And custom firmwares run just as well as 1.50, with more features.

Besides, 1.50 wouldn't even understand the extra memory - your best bet is coding for M33's firmware.

Cloudy
_________________
:)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Marco_N



Joined: 29 May 2005
Posts: 46

PostPosted: Fri Sep 14, 2007 3:13 pm    Post subject: Reply with quote

cloudhunter wrote:
And custom firmwares run just as well as 1.50, with more features.


Has kernel mode been unlocked on 3.60? I thought homebrew had to be usermode?

Until programs like Bookr run on 3.xx my "fat" PSP stays at 1.50 and you might want to try while you still can and obtain a "fat" PSP and downgrade it using Pandora to 1.50.
Back to top
View user's profile Send private message
Vincent_M



Joined: 03 Apr 2007
Posts: 73

PostPosted: Fri Sep 14, 2007 3:32 pm    Post subject: Reply with quote

That's good, because I have 3 of the original PSP's. I still have to revive my oldest one from it's corrupt firmware coma using Pandora's Battery. Yeah, and that was my thought too about v1.5 not being able to realize that there was extra memory on the PSP Slim. The addresses would just simply not exist in the v1.5 firmware, I guess. So, how would I program differently on M33's custom firmware from 1.5 firmware? Also, is there a way to heap all the memory together into 56MB of contiguous memory, or should I just wait until M33 does it. Good work M33!
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Fri Sep 14, 2007 4:01 pm    Post subject: Reply with quote

Quote:
Besides, 1.50 wouldn't even understand the extra memory

Yes it will... It is built (for devkit) to understand it :) There is only the partitioning of the NAND to change.

Quote:
Has kernel mode been unlocked on 3.60

Yes.

Quote:
Until programs like Bookr run on 3.xx

It should probably work after recompilation - as it is not the kind of app one expects to use a huge amount of Api.
Back to top
View user's profile Send private message
kururin



Joined: 05 Jul 2006
Posts: 36

PostPosted: Fri Sep 14, 2007 8:18 pm    Post subject: Reply with quote

J.F. wrote:
Wally4000 wrote:
maybe have an option in recovery mode to enable it :P


Yeah, patch the firmware to disable the cache and map the mem contiguously. I'd rather have 56MB of contiguous user mem than a UMD cache.


I talked to the guys, and they say they will avoid umdcache module loading when executing homebrew in a future revision. Good to hear, all memory available :)
Back to top
View user's profile Send private message
Be3f



Joined: 15 Mar 2007
Posts: 59

PostPosted: Fri Sep 14, 2007 10:23 pm    Post subject: Reply with quote

kururin wrote:

I talked to the guys, and they say they will avoid umdcache module loading when executing homebrew in a future revision. Good to hear, all memory available :)

Awesome! We need 56 Megs of RAM for the next-gen homebrew :)
Did you ask them about the 1.50 firmware part in any future custom FW for slim? We also need the 1.50 kernel to run old homebrews with no avaluable source code...
_________________
00000110 00000110 00000110


Last edited by Be3f on Sat Sep 15, 2007 12:50 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Viper8896



Joined: 26 Jan 2006
Posts: 110

PostPosted: Fri Sep 14, 2007 10:27 pm    Post subject: Reply with quote

if 1.5 currently cant be run on new psps. couldnt 1.5 be hacked around and customized so it just can work on new psps. just like the custom ipl enabled 1.5 to be run ta-086 without corrupted keys.
Back to top
View user's profile Send private message
Be3f



Joined: 15 Mar 2007
Posts: 59

PostPosted: Fri Sep 14, 2007 10:31 pm    Post subject: Reply with quote

But maybe it's possible to take some modules, that don't work on slim (like display.prx) from the higher fws and implement them into 1.50 fw part on slim? m33 can also compare the prxs from the decrypted 3.71 fw for slim and for fat and find the differences, that make 3.71 drivers work on old hardware like ta079 - to understand how to adapt 1.50 to ta-085 (Slim)... BTW, i'm not a fw guru to give them advices...
_________________
00000110 00000110 00000110


Last edited by Be3f on Sat Sep 15, 2007 1:04 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sun Sep 16, 2007 1:02 pm    Post subject: Reply with quote

Why do you people want 1.50 so much?

It doesn't take much to port a game over to the 3.60 kernel and it also encourages many developers to update their projects. :)

If you want something working in 3.60, why not get it working yourself (If of course is Open Source)?
Back to top
View user's profile Send private message AIM Address
Be3f



Joined: 15 Mar 2007
Posts: 59

PostPosted: Sun Sep 16, 2007 5:30 pm    Post subject: Reply with quote

Wally4000 wrote:
Why do you people want 1.50 so much?

It doesn't take much to port a game over to the 3.60 kernel and it also encourages many developers to update their projects. :)

If you want something working in 3.60, why not get it working yourself (If of course is Open Source)?

Most of the PSP-coders released only binaries (eboots) with no src :( And some of them have left the scene, e.g. PeterM & PSMonkey now work in commercial PSP-developement... So, the 1.50 part in 3.XX custom fw for slim seems to be the ideal solution...
_________________
00000110 00000110 00000110
Back to top
View user's profile Send private message Send e-mail
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sun Sep 16, 2007 5:41 pm    Post subject: Reply with quote

Noobz have released an Eloader for the slim..

Perhaps this is the solution :)

www.noobz.eu
Back to top
View user's profile Send private message AIM Address
Be3f



Joined: 15 Mar 2007
Posts: 59

PostPosted: Sun Sep 16, 2007 6:02 pm    Post subject: Reply with quote

Wally4000 wrote:
Noobz have released an Eloader for the slim..

Perhaps this is the solution :)

www.noobz.eu

Oh, forget about all my words about 1.50 fw part... I luuuv noobZ! :P
I'm sure that it's possible to integrate the core of this loader into custom fw, hopefully Team m33 will perform it...
_________________
00000110 00000110 00000110
Back to top
View user's profile Send private message Send e-mail
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Sun Sep 16, 2007 9:15 pm    Post subject: Reply with quote

Quote:
Why do you people want 1.50 so much?

It's official Sony firmware ;)
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
Be3f



Joined: 15 Mar 2007
Posts: 59

PostPosted: Mon Sep 17, 2007 3:38 am    Post subject: Reply with quote

Jim wrote:
Quote:
Why do you people want 1.50 so much?

It's official Sony firmware ;)

I don't care, is firmware offical, or modified... i just want to have the ability to run ALL homebrews on Slim ;)
_________________
00000110 00000110 00000110
Back to top
View user's profile Send private message Send e-mail
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Mon Sep 24, 2007 7:14 am    Post subject: Reply with quote

As you can see, you can now access the extra mem in user mode in 3.71, and without umdcache around there :p

Techincal stuff, the memory protection of te extra slim memory is in these hardware registers: 0xbc000040-0xbc00007F.

Set all to 0xFF, and you have access to it in user mode (note: sceKernelSetDdrMemoryProtection wouldn't do it)., but anyways is done automatically by m33 when launching homebrew, so no need to care about that.
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
Goto page 1, 2  Next
Page 1 of 2

 
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