PSP Hacks - Forums
Go Back   PSP Hacks - Forums > PSP Community > PSP Programming & Development

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2008, 07:26 PM
Ryu's Avatar
Ryu Ryu is online now
Moderator
PSP Titan
 
Join Date: Mar 2006
Location: Dologany
Posts: 11,655
Ryu is on a distinguished road
Default

http://alek.dark-alex.org/index.php?itemid=158
Quote:
Originally Posted by Alek
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-2 -> 5.00 M33(1.50 addon),PS3 60GB FW:2.50
::[ρø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)
Reply With Quote
  #2  
Old 06-30-2008, 07:33 PM
RazorChrist's Avatar
RazorChrist RazorChrist is offline
PSP Smarty
 
Join Date: Jan 2008
Location: Tulsa, OK
Posts: 191
RazorChrist User Has a Beginner Reputation
Default

Coo, thanks :twothumbs:
__________________

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
Reply With Quote
  #3  
Old 06-30-2008, 07:39 PM
pirata nervo pirata nervo is offline
Moderator
PSP Titan
 
Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 5,008
pirata nervo is on a distinguished road
Default

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

Upgrade your PSP Slim or FAT now!
NervOS Official Forum
Reply With Quote
  #4  
Old 07-01-2008, 09:49 PM
hardhat hardhat is offline
Programmer
PSP Newbie
 
Join Date: May 2007
Posts: 41
hardhat is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 07-02-2008, 06:55 AM
pirata nervo pirata nervo is offline
Moderator
PSP Titan
 
Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 5,008
pirata nervo is on a distinguished road
Default

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.
__________________

Upgrade your PSP Slim or FAT now!
NervOS Official Forum
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:37 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©