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

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
ab5000
Posts: 74
Joined: Tue May 06, 2008 2:37 am

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

Post by ab5000 »

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:
CFLAGS = -O2 -G0 -Wall
Now disable optimization (-O flags). The CFLAGS line without optimizations looks like this:
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:
IPL_SDK
LIBC
tff
Now you're done. Just compile your IPL.

Bye!
ab5000.

Code: Select all

%&#58;include<stdio.h>
int _&#40;int __,int ___,int ____,int _____&#41;
<%for&#40;;____<___;_____=_____*__,____++&#41;;
return _____;%>main&#40;&#41;<%printf
&#40;"%d\n",_&#40;2,5,0,1&#41;&#41;;%>
Draan
Posts: 48
Joined: Sat Oct 17, 2009 3:39 am

Post by Draan »

The IPL prepared with sdk is working on Slim devices?
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

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
Draan
Posts: 48
Joined: Sat Oct 17, 2009 3:39 am

Post by Draan »

I have a question.

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

Code: Select all

Assembler messages&#58;
line numbers must be positive; line number 0 rejected
but it creates pspboot.bin anyway. So I can just ignore this error?
ab5000
Posts: 74
Joined: Tue May 06, 2008 2:37 am

Post by ab5000 »

Draan wrote:I have a question.

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

Code: Select all

Assembler messages&#58;
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: Select all

%&#58;include<stdio.h>
int _&#40;int __,int ___,int ____,int _____&#41;
<%for&#40;;____<___;_____=_____*__,____++&#41;;
return _____;%>main&#40;&#41;<%printf
&#40;"%d\n",_&#40;2,5,0,1&#41;&#41;;%>
Post Reply