QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Compiling 3.71 PRXs and PRXs in General

This is a discussion on Compiling 3.71 PRXs and PRXs in General within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Basically, I want to be able to know how to make XMB and GAME plugins for my 3.71 PSP. I ...

Reply
 
LinkBack Thread Tools
Old 11-07-2007, 11:50 AM   #1
 
 
My Mood: Bored
Join Date: Apr 2006
Location: England ~¦¦¦|+|¦¦¦~
Posts: 1,112
Trader Feedback: 0
Default Compiling 3.71 PRXs and PRXs in General

Basically, I want to be able to know how to make XMB and GAME plugins for my 3.71 PSP. I do not know how to compile any PRX for 3.71 or any firmware for that matter. I've searched over the net for tutorials/examples but I still do not know what to do. I also want to be able to blit images and text to the screen in either mode. Where do I begin? I'm requesting help regarding:

- Any tools I need for PRX compilation.
- The way the Makefile should look.
- Maybe a template for a simple 3.71 PRX in GAME mode or XMB mode.
- A library that I can use to blit images and text to the screen in the XMB or in GAME that is compatible with 3.71.

Any help appreciated, thanks.
__________________
...Just Returned To The Scene...
JaSo PsP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 02:14 PM   #2
 
 
Join Date: Jul 2007
Location: with my companion
Posts: 2,151
Trader Feedback: 0
Default

you would have to ask someone who knows how to make plugins with the new NIDS. Maybe CoolJ or Ketchup would know.
__________________
PSN: Greyone16
Greyone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 02:19 PM   #3

Developer
 
placo23's Avatar
 
Join Date: Aug 2007
Posts: 726
Trader Feedback: 0
Default

Yes.. I'd help you with that ate, but I'm still on 3.52m33-4

Though, I remember that someone posted here a tool for autoatically changing the NID's for ya. Basically you can just do all your stuff by the old fashion way, and it'll convert for you. That way you can also learn by the final result.
__________________
Placo23

Spoiler for Wanna see my Apps?:
Why not donate and become part of this selected list?
Spoiler for Donators:
DarkSeveN - 5.100.000
--DylanDangles--2.000.000
Zuiver - 100.000
AlwaysAmiYumi - 10.338.63
placo23 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 02:22 PM   #4
 
Join Date: Jul 2006
Location: USA SC/NC
Posts: 699
Trader Feedback: 0
Default

Look inside the pspsdk samples. There's several templates for making prxes. That's what the samples are for.
__________________
[CODE]Random Facts:
irc://irc.malloc.us #wtf #**********
[/CODE]

[SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]
Moca is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 02:23 PM   #5
 
 
My Mood: Bored
Join Date: Apr 2006
Location: England ~¦¦¦|+|¦¦¦~
Posts: 1,112
Trader Feedback: 0
Default

Quote:
Originally Posted by placo23
Yes.. I'd help you with that ate, but I'm still on 3.52m33-4

Though, I remember that someone posted here a tool for autoatically changing the NID's for ya. Basically you can just do all your stuff by the old fashion way, and it'll convert for you. That way you can also learn by the final result.
I don't even know the old-fashioned way, I've seen that you have to do 'mainThread' crap I, it is as simple as putting 'BUILD_PRX = 1' in the makefile?
__________________
...Just Returned To The Scene...
JaSo PsP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 02:59 PM   #6


Retired PSP Developer
 
MániácX's Avatar
 
Join Date: Feb 2007
Location: Canada
Posts: 407
Trader Feedback: 0
Default

Look for the sample here:

usr\local\pspdev\psp\sdk\ samples\prx\testprx
__________________
MániácX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 04:28 PM   #7
 
Join Date: Jul 2006
Location: USA SC/NC
Posts: 699
Trader Feedback: 0
Default

Quote:
Originally Posted by JaSo PsP
I don't even know the old-fashioned way, I've seen that you have to do 'mainThread' crap I, it is as simple as putting 'BUILD_PRX = 1' in the makefile?
What 'mainThread' crap?

Code:
#include <pspkernel.h>
PSP_MODULE_INFO("PRX",0x1000,1,1);

int function(SceSize argc, void* argp)
{
    return 0;
}

int module_start(SceSize argc, void* argp)
{
    int id=sceKernelCreateThread("thread_name",function,0x20,0x1000,0,0);
    if(id >= 0) sceKernelStartThread(id,argc,argp);
}
Or you could just do everything in the module_start function without creating another thread, but probably wouldn't want to do that anyway.
__________________
[CODE]Random Facts:
irc://irc.malloc.us #wtf #**********
[/CODE]

[SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]
Moca is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2007, 09:32 AM   #8
 
 
My Mood: Bored
Join Date: Apr 2006
Location: England ~¦¦¦|+|¦¦¦~
Posts: 1,112
Trader Feedback: 0
Default

How do I compile it for 3.71 though? I tried making a kernel mode PRX that created a text file wen it loaded in the XMB and it didnt work.
__________________
...Just Returned To The Scene...
JaSo PsP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2007, 04:58 PM   #9

lol
 
Anti-QuickJay's Avatar
 
Join Date: Aug 2006
Real First Name: Robert
Location: Whittier, CA
Just Played: Madden 10
Posts: 5,791
Trader Feedback: 0
Default

Code:
BUILD_PRX=1
PSP_FW_VERSION=303

CFLAGS = -DPSPFW3X
Something like that needs to be added to your Makefile
Anti-QuickJay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2007, 05:47 PM   #10
 
FreePlay's Avatar
 
Join Date: Dec 2005
Location: h0000000rj
Posts: 12,858
Trader Feedback: 0
Default

AFAIK, your main module cannot be kernel-mode. You have to make it user-mode, and all kernel-mode functions have to be called from a kernel-mode PRX that your user-mode PRX loads.
__________________
[qj now fails.]
FreePlay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-09-2007, 06:33 AM   #11

Avada Kedavra
 
Join Date: May 2007
Location: Spain
Posts: 703
Trader Feedback: 0
Default

Quote:
Originally Posted by FreePlay
AFAIK, your main module cannot be kernel-mode. You have to make it user-mode, and all kernel-mode functions have to be called from a kernel-mode PRX that your user-mode PRX loads.
As far as I know,your main module can and should be in kernel mode.
Coolj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-09-2007, 06:40 AM   #12
 
brethren's Avatar
 
Join Date: Apr 2007
Posts: 464
Trader Feedback: 0
Default

your prx should be in kernel mode. if you have got the latest toolchain look in pspdev/psp/sdk/samples/template and you'll find tyranids template for making kernel prx's. its called kprx_template and its what i used for my slim eboot launcher

just to clarify tyranid added the kprx_template just a few weeks ago because of the problems people were having making kernel mode prx's. So if you haven't updated your dev enviroment in a while chances are you won't have it
brethren is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-09-2007, 04:18 PM   #13
 
FreePlay's Avatar
 
Join Date: Dec 2005
Location: h0000000rj
Posts: 12,858
Trader Feedback: 0
Default

Quote:
Originally Posted by Coolj
As far as I know,your main module can and should be in kernel mode.
When did this happen? As far back as I can remember, to make homebrew for a non-1.50 kernel, your initial module had to be user-mode.
__________________
[qj now fails.]
FreePlay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-09-2007, 06:21 PM   #14
 
Join Date: Sep 2006
Location: Finland
Posts: 752
Trader Feedback: 0
Default

Quote:
Originally Posted by FreePlay
When did this happen? As far back as I can remember, to make homebrew for a non-1.50 kernel, your initial module had to be user-mode.
All plugins should be kernel mode and they work that way, but you can't loadexec an kmode elf in 2.x+ kernels. LoadModule works fine though
__________________
[center][B][SIZE="3"]wheeee =:D[/SIZE][/B][/center]
MaTiAz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-2007, 01:26 AM   #15
 
FreePlay's Avatar
 
Join Date: Dec 2005
Location: h0000000rj
Posts: 12,858
Trader Feedback: 0
Default

Meh. If I make my main module kernel mode, it never loads...
__________________
[qj now fails.]
FreePlay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
371 , compiling , general , prxs

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 02:40 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us