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 

[How To] Make Booster's IPL SDK work with GCC > 4.0.2

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



Joined: 06 May 2008
Posts: 74

PostPosted: Sun Jan 03, 2010 3:06 am    Post subject: [How To] Make Booster's IPL SDK work with GCC > 4.0.2 Reply with quote

Hi.
Today i was experimenting with Booster's IPL SDK and my IPL wasn't working, even if it compiled correctly.
Searching in this forum i found that the IPL SDK doesn't work with a GCC version highter than 4.0.2. I found a solution to this problem, so i wrote this short How To.

The solution is deleting optimize (-O) flags from the Makefile, cleaning all the O files and recompiling.
Open your Makefile and find the CFLAGS line. It looks like this:
Quote:
CFLAGS = -O2 -G0 -Wall

Now disable optimization (-O flags). The CFLAGS line without optimizations looks like this:
Quote:
CFLAGS = -G0 -Wall

Now do a make clean.
If you previously compiled with a Makefile with optimization flags, you'll need to clear all IPL SDK .o files.
So delete all the .o files from these folders:
Quote:
IPL_SDK
LIBC
tff

Now you're done. Just compile your IPL.

Bye!
ab5000.
_________________
Code:
%:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%>
Back to top
View user's profile Send private message
Draan



Joined: 17 Oct 2009
Posts: 55

PostPosted: Sun Jan 03, 2010 11:09 pm    Post subject: Reply with quote

The IPL prepared with sdk is working on Slim devices?
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Mon Jan 04, 2010 12:00 am    Post subject: Reply with quote

thx to share this. I was obliged to recompile with a older gcc to have it working
would be interresting to compare the assembler generatedwith and without
optimization to see where the code breaks
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Draan



Joined: 17 Oct 2009
Posts: 55

PostPosted: Mon Jan 04, 2010 12:26 am    Post subject: Reply with quote

I have a question.

I have MinPSPW + DevC++. I've tried to compile Flash Led sample.
I've got an error:
Code:

Assembler messages:
line numbers must be positive; line number 0 rejected


but it creates pspboot.bin anyway. So I can just ignore this error?
Back to top
View user's profile Send private message
ab5000



Joined: 06 May 2008
Posts: 74

PostPosted: Mon Jan 04, 2010 12:49 am    Post subject: Reply with quote

Draan wrote:
I have a question.

I have MinPSPW + DevC++. I've tried to compile Flash Led sample.
I've got an error:
Code:

Assembler messages:
line numbers must be positive; line number 0 rejected


but it creates pspboot.bin anyway. So I can just ignore this error?


Yes, you can ignore it.
_________________
Code:
%:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%>
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