PSP Hacks

#1 Spot for PSP Hacks



Home | PSP News | PSP Hacks | PSP Saves | PSP Downloads | PSP Backgrounds | PSP Hacks Live Chat | Free PSP | Contact Us


You are not logged in.

Announcement

#1  2008-06-30 18:26:37

Ryu
Moderator
From: Dologany
Registered: 2006-03-24
Posts: 11024
Website

Porting homebrew to 4.xx kernels.

http://alek.dark-alex.org/index.php?itemid=158

Alek wrote:

As we spoke some days ago here, 1.50 kernel would probably disappear. Therefore, we spoke about migrating homebrews to 3.xx kernels, and i linked to this post on ps2dev.

So, what's new when porting to 4.xx kernels instead of 3.xx ones? Following the same guide as CpuWhiz on his post;


1. Homebrew must be in prx format. To do that, after the PSPSDK includes (include $(PSPSDK)/lib/build.mak), add this two lines:

BUILD_PRX = 1
PSP_FW_VERSION = 401

The last line (PSP_FW_VERSION) isn't really needed in this case, just for the compilation when making #ifdef branches or not; but as 4.00/4.01 hasn't included anything relevant on that affairs, you can skip that line.


2. Homebrew must be in user mode. On your main.c code, for the proper pbp compilation,

PSP_MODULE_INFO("module1", 0, 1, 0);

Remember that the PSP_MODULE_INFO system goes like this -> PSP_MODULE_INFO("module_name", mode, mayor_revision, minor_revision), and we put an "0" on mode for user mode; meanwhile 0x1000 would be for kernel mode. And also, add this line;

PSP_HEAP_SIZE_MAX();

Considering that you have a newer PSPSDK that can compile within it.


3. That would be enough for what it takes. Got any problem within running it, once compiled? Re-check latest steps from that ps2dev post to check for your kernel calls.

So, to sum up, due to the poor changes from 3.xx to 4.00/4.01, you just need to keep on the prx format, AND the user mode on the pbp code. Probably some of you already knew this, but bleh, this can't be bad to have in mind, as one user commented on the "Bye Bye, 1.50" post.


PSP 1.5 got on USA first day is was 1.5 NOW 4.01 M33 -> 4.01 M33-2(1.50 addon),PS3 60GB
::[ρøwєя for admin]:: & ::[dr34ds for mod]::
It a good idea to have "Hide extensions  for known file types" in Folder Options(under Tool) unchecked (turn on extensions)

Online

 

#2  2008-06-30 18:33:34

RazorChrist
PSP Smarty
From: Tulsa, OK
Registered: 2008-01-13
Posts: 193

Re: Porting homebrew to 4.xx kernels.

Coo, thanks twothumbs


http://img.photobucket.com/albums/v103/bratprince/Photoshop/PSP_Sig.jpg
PSP = Phat 3.71 m33-4 > 3.90 m33 > 3.90 m33-2 > 3.90 m33-3 > 3.93 GEN w/ 1.50 Kernel Addon >
          3.95 GEN > 3.90 m33-3 > 4.01 m33 > 3.90 m33-3 w/ 1.50 Kernel Addon
PS2 = Slim Unmodded

Offline

 

#3  2008-06-30 18:39:09

pirata nervo
Programmer
From: www.consoleworld.net
Registered: 2007-03-13
Posts: 4833
Website

Re: Porting homebrew to 4.xx kernels.

yeh it's the same as 1.50 -> 3.xx


http://forums.consoleworld.net/logos/sig.png
Upgrade your PSP Slim or FAT now!
NervOS Official Forum

Offline

 

#4  2008-07-01 20:49:46

hardhat
PSP Newbie
Registered: 2007-05-14
Posts: 30

Re: Porting homebrew to 4.xx kernels.

I've had a lot of troubles using PSP_HEAP_SIZE_MAX(); and so these days I'm more inclined to use PSP_KEAP_SIZE_KB(20480); or similar.   It really matters the most if you are loading extra PRXes for things like networking, hardware MP3 playback, etc.

Offline

 

#5  2008-07-02 05:55:03

pirata nervo
Programmer
From: www.consoleworld.net
Registered: 2007-03-13
Posts: 4833
Website

Re: Porting homebrew to 4.xx kernels.

PSP_HEAP_SIZE_KB +positive does not work for me, neither PSP_HEAP_SIZE -negative
I am trying to solve this problem while talking to J.F.


http://forums.consoleworld.net/logos/sig.png
Upgrade your PSP Slim or FAT now!
NervOS Official Forum

Offline

 
Home | PSP News | PSP Hacks | PSP Saves | PSP Downloads | PSP Backgrounds | PSP Hacks Live Chat | Free PSP | Contact Us



Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB